• Home
  • History
  • Annotate
  • only in /frameworks/base/services/java/
History log of /frameworks/base/services/java/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
596532d9dbea3460dbc989b0316c721ca69f4915 18-Jan-2013 Amith Yamasani <yamasani@google.com> Properly initialize recognition service if the recognizer component changed.

The getServiceInfo() call directly to IPackageManager does not throw an exception.
The return value needed to be checked for null.

Bug: 8031032
Change-Id: I701b9e8cf3b2406a3b35a486183330489b3d46f5
om/android/server/RecognitionManagerService.java
79d59f0968ffcb803f615527d52718322af0f89b 16-Jan-2013 Victoria Lease <violets@google.com> DO NOT MERGE Prevent OOM death for services under ServiceWatcher's care.

Change-Id: If87be5769b55368edaf4776189e8f6e51a21eb03

Conflicts:

services/java/com/android/server/ServiceWatcher.java
om/android/server/ServiceWatcher.java
5327322ab94711a654d41a5b53be3bf6a3a28a39 11-Jan-2013 Satoshi Kataoka <satok@google.com> Merge "Revert "Fix a bug where disabled auxilialy IME is unexpectedly re-enabled"" into jb-mr1.1-dev
b5e4835e3a4ff37693891a59841fcefa5c3aa648 10-Jan-2013 Sascha Prueter <saschap@google.com> Merge "Improve heuristics for detecting wireless chargers." into jb-mr1.1-dev
3b971598ed28d45c176e3f9b076fc743a406296d 10-Jan-2013 Jeff Brown <jeffbrown@google.com> Improve heuristics for detecting wireless chargers.

On some devices, we need to apply heuristics to determine whether
the device is docked on a wireless charger because the charging
circuits do not provide sufficient information to know whether
the device is on the charger unless it is actually receiving
power.

The previous heuristics only considered the battery level to
suppress spurious dock signals.

The new heuristics also take into account whether the device
appears to have moved from its previous position on the dock.

Bug: 7744185
Change-Id: I5ba885dac25b37840b6db46b8a0f30968a06776c
om/android/server/power/DisplayPowerController.java
om/android/server/power/PowerManagerService.java
om/android/server/power/WirelessChargerDetector.java
9d08143fa72ad87572a7d5c714f379262a73e1b2 10-Jan-2013 Satoshi Kataoka <satok@google.com> Revert "Fix a bug where disabled auxilialy IME is unexpectedly re-enabled"

This reverts commit 32b812054cce27d1c70b53ba8ac729c7186b105e

Bug: 7976890

Change-Id: I75ab60734153719b199cf7281d23f5eb1ad2d1bc
om/android/server/InputMethodManagerService.java
e62fa825794967c2067be86e8b57b83f4b82ee1c 10-Jan-2013 Dianne Hackborn <hackbod@google.com> Merge from master: fix issue #7966357: Super lights out mode vs. volume dialog

The volume panel now forces us out of the UI modes while it
is up.

Change-Id: If39fa33b1c52579bf5d376ce4722408cee3ca951
om/android/server/am/ActivityManagerService.java
32b812054cce27d1c70b53ba8ac729c7186b105e 19-Dec-2012 satok <satok@google.com> Fix a bug where disabled auxilialy IME is unexpectedly re-enabled

Bug: 7872918

This is a serious issue which the disabled system auxilialy IME is unexpectedly re-enabled by re-building internal IMI cache.

Change-Id: I0727cc973dfaea9823194021ce94af8665b98373
om/android/server/InputMethodManagerService.java
3be73abc69eaef80c6d27169ca5f15e283a9debc 18-Dec-2012 Craig Mautner <cmautner@google.com> Fade recents thumbnail to transparent earlier.

Reduce the gpu load by fading the recents thumbnail to an alpha of
0.0 before the remaining animations are completed. When alpha hits
0 the gpu treats the layer as hidden and can merge the remaining
layers in time.

This is a partial fix for 7729214.

Change-Id: I9761bbd0554db6454c7eec0485be798b11672ff5
om/android/server/wm/WindowManagerService.java
f5df689aa65682ce9217405e4a6b686e94129e8f 14-Dec-2012 John Spurlock <jspurlock@google.com> Fix NPE inside DreamManagerService.

Bug:7741911
Change-Id: Icfc39b2d89f57bba79866030df85b822e3f73ae2
om/android/server/dreams/DreamManagerService.java
2735795f5aa906fbfd885dbacee1de0b41b80bf0 12-Dec-2012 Kenny Root <kroot@google.com> Merge "If freeCache deletes APK, give out of space error" into jb-mr1.1-dev
eaae7d976a5629e064af06f0e2c10f97f1a8c462 11-Dec-2012 Jeff Brown <jeffbrown@google.com> Merge "Play a tone when wireless charging begins." into jb-mr1.1-dev
3f96d0e127542a5fc1eb00e2c327d909669c4f52 11-Dec-2012 Kenny Root <kroot@google.com> If freeCache deletes APK, give out of space error

After DownloadManager has downloaded an application to cache to install
during low memory condition, we try to free cache to fit the new
application. The free cache function deletes older files first, but it
will also delete the downloaded application (since it's in cache) as a
last resort since installd has no context about it.

This just changes the error code returned in this case so that we'll
give something more meaningful to the user. A later fix should actually
make this more sane. For instance: know which file to avoid deleting,
not even trying to delete anything if it won't arrive at the desired
free space.

Bug: 7684538
Change-Id: Ide77320fc51a4f692ef8042cb0eafe17b5cd279d
om/android/server/pm/PackageManagerService.java
84e2756c0f3794c6efe5568a9d09101ba689fb39 07-Dec-2012 Jeff Brown <jeffbrown@google.com> Play a tone when wireless charging begins.

Only plays a tone if the battery level is below 95% which
is the same heuristic used when determining whether to turn
the screen on.

Use new low battery and wireless charging sounds on Mako.

Bug: 7371658
Change-Id: Ia4527ec398d024ee418a4287e1fcbf0ec83bcc24
om/android/server/power/Notifier.java
om/android/server/power/PowerManagerService.java
bbdb062d98275f6833ebc2f0998b9e2a6534cecb 11-Dec-2012 John Spurlock <jspurlock@google.com> Fallback to default dream if the current dream is removed.

To minimize fix size, return only valid dreams from the service api.

Settings will "just work" with no changes.

Bug:7699398
Change-Id: I3eb88237a8ccc421fdb68d1de19820614b13d7b8
om/android/server/dreams/DreamManagerService.java
4abf3f987f1d7c1ca909c4b4008796e1a5851951 07-Dec-2012 Craig Mautner <cmautner@google.com> Call setSize to sync Surface to SurfaceFlinger. DO NOT MERGE

RecentsActivity screenshots are called for very quickly after
WindowStateAnimator prepareSurface(). Without enough delay the
Surface.setLayer call does not propagate to the SurfaceFlinger
and the screenshot is incorrect (black) because it stops sampling
the layers too early.

This fix calls Surface.setSize() for each sampled Surface in
screenshots. setSize forces the SurfaceFlinger to process all
transactions queued before returning from closeTransaction.

Bug 7552304 fixed.

Change-Id: I1911dfa0b09cab713c55f5ba0c612496337a77df

Conflicts:

services/java/com/android/server/wm/WindowManagerService.java
om/android/server/am/ActivityManagerService.java
om/android/server/wm/WindowManagerService.java
7b0855715bc6cb14e3ca67d815915d2172f0bc12 05-Dec-2012 Victoria Lease <violets@google.com> Merge "DO NOT MERGE Adjust update interval when expiring location requests." into jb-mr1.1-dev
5959bf2d3c7fcfa4058cbcf81c3dc376c962d25e 05-Dec-2012 Victoria Lease <violets@google.com> DO NOT MERGE Adjust update interval when expiring location requests.

Cherry-pick I88b419c92940b7e536d48b26e5fc0f72f3c9e73d

This is a more complete solution for this issue that disables
location providers when expiring their last request *and* adjusts
update intervals when expiring any request. This should help
further limit battery drain when a high-frequency-update app
exits, as it allows the system to throttle the update interval
back down to something appropriate for the remaining listeners.

Bug: 7611837
Change-Id: I7629a90f4c693be4bf96d662bd3a8b06dae0b089
om/android/server/LocationManagerService.java
7fcb5dc5e9fbad0f183f425e88e576aaca98b0d7 05-Dec-2012 Jeff Brown <jeffbrown@google.com> Merge "Pin electron beam surface to natural orientation." into jb-mr1.1-dev
487f8e93b0b5e2949fbfa6b60fd5e0a7a3e4d5b7 05-Dec-2012 satok <satok@google.com> Merge "Fix an issue on installing 3rd-party IME by a non-primary user" into jb-mr1.1-dev
e0fa1b387f6ae3d347d76860eefff7a0d149cdba 05-Dec-2012 Victoria Lease <violets@google.com> DO NOT MERGE Notify provider when disposing last UpdateRecord

Cherry-pick of Id48151eb7de40164258cde7da220a4d6bb34b89a

Location providers were not being notified of the change in status
when the last UpdateRecord was removed due to numUpdates exhaustion
or request expiry. Oops! Enjoy some free battery life!

Bug: 7611837
Change-Id: I66303b355be4e4a56a81efb5406c9353b2588595
om/android/server/LocationManagerService.java
652d8fc944c011eb15202f678588723aa9f38a84 05-Dec-2012 Sascha Prueter <saschap@google.com> Merge "PRIORITY_MIN notifications should be truly ambient." into jb-mr1.1-dev
7f3994ec2a5dce1a037f04714b1f25cab85affb6 04-Dec-2012 Jeff Brown <jeffbrown@google.com> Pin electron beam surface to natural orientation.

If a rotation occurred while the electron beam surface was showing,
the surface may have appeared in the wrong orientation. We fix this
problem by adjusting the transformation matrix of the electron beam
surface according to the display orientation whenever a display
transaction occurs.

The rotation itself is allowed to proceed but it is not visible
to the user. We must let this happen so that the lock screen
is correctly oriented when the screen is turned back on.

Note that the electron beam surface serves two purposes.

First, it is used to play the screen off animation.
When the animation is finished, the surface remains visible but is
solid black. Then we turn the screen off.

Second, when we turn the screen back on we leave the electron beam
surface showing until the window manager is ready to show the
new content. This prevents the user from seeing a flash of the
old content while the screen is being turned on. When everything is
ready, we dismiss the electron beam.

It's important for the electron beam to remain visible for
the entire duration from just before the screen is turned off until
after the screen is turned on and is ready to be seen. This is
why we cannot fix the bug by deferring rotation or otherwise
getting in the way of the window manager doing what it needs
to do to get the screen ready when the screen is turned on again.

Bug: 7479740
Change-Id: I2fcf35114ad9b2e00fdfc67793be6df62c8dc4c3
om/android/server/display/DisplayManagerService.java
om/android/server/display/DisplayTransactionListener.java
om/android/server/power/DisplayPowerController.java
om/android/server/power/ElectronBeam.java
om/android/server/power/PowerManagerService.java
526fa0e6d5cfe6ca3f390982c169b43fcb7d6f78 04-Dec-2012 Daniel Sandler <dsandler@android.com> PRIORITY_MIN notifications should be truly ambient.

If your notification is set to MIN priority, it will never
attempt to interrupt the user, either by an icon (already
implemented), or (new in this patch) by LED, vibration, or
sound.

Bug: 7648785
Change-Id: Ia0f8e010e62029d8d8ef1955dd20b7c79fb68398
om/android/server/NotificationManagerService.java
33669f35e4b63bec10bb7202b94340ebd41fbb10 04-Dec-2012 John Spurlock <jspurlock@google.com> Merge "Kill dreams that do not create a timely service connection." into jb-mr1.1-dev
006f567c214d67752cc7c2b6446c328744f40af7 03-Dec-2012 John Spurlock <jspurlock@google.com> Kill dreams that do not create a timely service connection.

Implement a timeout between when the dream binds and
when the dream creates the service connection. If
the connection is not created within a certain amount of
time, stop the dream.

This fixes the current bug where a dream that crashes in
onCreate (or the ctor) can put the dream controller in a
bad state until the screen is turned off.

The timeout is equal to the service restart delay in
activity manager (ActiveServices) to avoid restarting
(and recrashing).

Bug:7596707
Change-Id: I3e11efc6af0b79ec4cb0fbc94e4e109c7602ddac
om/android/server/dreams/DreamController.java
af5ddbfcf59e1e0bcbd43f1f88270f822c5083b8 04-Dec-2012 Matthew Xie <mattx@google.com> Change getName and getAddress permission to BLUETOOTH

The permissions were set as BLUETOOTH_ADMIN by mistake. Correct them
bug 7665249

Change-Id: Ic1bdbeb25e8f55d886f9a8d38920cbb769dd38ca
om/android/server/BluetoothManagerService.java
81f8b7c66750a0a89c8e6b6037136ca169c96f95 04-Dec-2012 satok <satok@google.com> Fix an issue on installing 3rd-party IME by a non-primary user

Bug: 7573552

Currently IMMS doesn't receive install/uninstall messages. Accordingly enabled IMEs' list is not refreshed properly.

Change-Id: I25e9798a65f528dd270cd6bb1f14b1d887194787
om/android/server/InputMethodManagerService.java
e0a676a3bb0e7b9aced9359a021e4c5d2ffef752 04-Dec-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #7649590: Background windows sometimes not being hidden for secondary users" into jb-mr1.1-dev
bb4ca5271a806c94a59d98c5c718db7b89728246 03-Dec-2012 Dianne Hackborn <hackbod@google.com> Fix issue #7649590: Background windows sometimes not being hidden for secondary users

There are two things going on here:

(1) In secondary users, some times theme information such as whether
the window is full screen opaque was not being retrieved, so the window
manager didn't know that it could hide the windows behind the app.
This would just be a performance problem, except that:

(2) There appear to be a number of applications that declare that they
are full screen opaque, when in fact they are not. Instead they are
using window surfaces with an alpha channel, and setting some pixels
in their window to a non-opaque alpha level. This will allow you to
see whatever is behind the app. If the system happens to completely
remove the windows behind the app, and somebody is filling the frame
buffer with black, then you will see what the app intends -- those
parts of its UI blended with black. If one of those cases doesn't
hold (and though we have never guaranteed they would, in practice this
is generally what happens), then you will see something else.

At any rate, if nothing else than for performance reasons, we need to
fix issue #1.

It turns out what is happening here is that the AttributeCache used
by the activity manager and window manager to retreive theme and other
information about applications has not yet been updated for multi-user.

One of the things we retrieve from this is the theme information telling
the window manager whether an application's window should be treated
as full screen opaque, allowing it to hide any windows behind it. In
the current implementation, the AttributeCache always retrieves this
information about the application as the primary user (user 0).

So, if you have an application that is installed on a secondary user but
not installed on the primary user, when the AttributeCache tries to retrieve
the requested information for it, then from the perspective of the primary user
it considers the application not installed, and is not able to retrieve that
info.

The change here makes AttributeCache multi-user aware, keeping all of its
data separately per-user, and requiring that callers now provide the user
they want to retrieve information for. Activity manager and window manager
are updated to be able to pass in the user when needed. This required some
fiddling of the window manager to have that information available -- in
particular it needs to be associated with the AppWindowToken.

Change-Id: I4b50b4b3a41bab9d4689e61f3584778e451343c8
om/android/server/AttributeCache.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityRecord.java
om/android/server/am/ActivityStack.java
om/android/server/wm/AppWindowToken.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowStateAnimator.java
40973c53acc86b576081fb720d7d6b23c55202ad 03-Dec-2012 Zhihai Xu <zhihaixu@google.com> Merge "BT is still on after enable flight mode, and reboot the DUT" into jb-mr1.1-dev
401202b5fe3d67bdf2ae6991fc451f444ecd6989 03-Dec-2012 Zhihai Xu <zhihaixu@google.com> BT is still on after enable flight mode, and reboot the DUT

bug 7275625
Change-Id: I4f8952a06152eb5f5775c1f616f6383e4f20e352
om/android/server/BluetoothManagerService.java
ed3fba653864101d3dd335941f082104aad8f532 03-Dec-2012 Jeff Sharkey <jsharkey@android.com> Merge "Avoid null mobile interfaces." into jb-mr1.1-dev
6a328afbab37981f34d8578972dbb2bf1abb7c41 01-Dec-2012 Jeff Sharkey <jsharkey@android.com> Avoid null mobile interfaces.

Bug: 7634215
Change-Id: I6745f6a78c07ba11d98b4562a6b53386112ef652
om/android/server/net/NetworkStatsService.java
c566b43d02596cba437e9a2723e9f989297cca72 01-Dec-2012 Amith Yamasani <yamasani@google.com> Fix crosstalk between users for widgets hosted in lockscreen

This was initially about the Clock widget crashing repeatedly on some
devices with multiple users. Turned out that there were race conditions
when switching users that could result in remote views of one user calling
back to the RemoteViewsAdapter in keyguard that in turn sent an incorrect widget id
to a different user's widget, resulting in a crash.

Since KeyguardHostView is instantiated in the same process for different users,
it needs to carry a user identity to pass along to AppWidgetService so that
remote views services were bound to the correct user and callbacks were attached and
detached properly.

Added some aidl calls that take the userId to do the binding properly. A more
complete fix might be needed in the future so that all calls from Keyguard carry
the user id.

Also, there was a problem in comparing host uid for secondary users, since Settings
for a secondary user has a different uid than keyguard. Not an issue on single-user
systems. Changed the host.uid comparison to accomodate for the secondary user.

Bug: 7450247
Change-Id: Idbc36e3c60023cac74174f6cb7f2b2130dd3052c
om/android/server/AppWidgetService.java
om/android/server/AppWidgetServiceImpl.java
7b1aa77a9b25b4b1e8070c9cccfadcde39954952 01-Dec-2012 Craig Mautner <cmautner@google.com> Include child windows when looking for insertion point.

After finding a window in the window list we turn around and look in
the AppWindowToken.windows list for it. If it is a child of a window
in that list we should use the parent windows index as the search
result. Instead we gave up and ended up inserting the window at the
beginning of the windows list.

Bug 7357465 fixed.

Change-Id: If77f343b8597bfbb0b7fa41dedf7972d78d03020
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
om/android/server/wm/WindowToken.java
b1a01ab01c2aa5136f7781c3a6ec682590e38ac4 30-Nov-2012 Martijn Coenen <maco@google.com> Merge "Allow the NFC process to call Bluetooth APIs." into jb-mr1.1-dev
675814d488579582e0214cc720d9ccc310173f25 30-Nov-2012 Dianne Hackborn <hackbod@google.com> Merge "Maybe fix issue #7596986: Frequent runtime restarts; IAE at..." into jb-mr1.1-dev
aae329ef0f68e30897faef55c86548dab0eadf37 30-Nov-2012 Dianne Hackborn <hackbod@google.com> Merge "Don't apply transformation fudge when not rotating." into jb-mr1.1-dev
4b16969b006613bff4901a6e979f29a0f501430b 30-Nov-2012 Dianne Hackborn <hackbod@google.com> Don't apply transformation fudge when not rotating.

There is this stupid fudge factor applied to window transformations
when doing a screen rotation animation. We need this when rotating,
but when not rotating it causes very visible artifacts. Historically
the non-rotation case only happened due to configuration changes, so
wasn't that big a deal. Now however that we use this when switching
users, it is more annoying. So get rid of it for such cases.

Change-Id: I6b343866c1bad9b16984b4a629917c2f1bb37b9e
om/android/server/wm/ScreenRotationAnimation.java
om/android/server/wm/WindowStateAnimator.java
ebec2315353941890471aa901e87f19f681d007a 30-Nov-2012 Dianne Hackborn <hackbod@google.com> Merge "Always report user switched after unfreezing screen." into jb-mr1.1-dev
6c5406acd72eed31f2b4e12f5eddc0e2d2a951e2 30-Nov-2012 Dianne Hackborn <hackbod@google.com> Maybe fix issue #7596986: Frequent runtime restarts; IAE at...

...android.os.Parcel.nativeAppendFrom(Native Method)

The failing stack trace is:

11-20 20:29:04.365 19154 19170 E AndroidRuntime: java.lang.IllegalArgumentException
11-20 20:29:04.365 19154 19170 E AndroidRuntime: at android.os.Parcel.nativeAppendFrom(Native Method)
11-20 20:29:04.365 19154 19170 E AndroidRuntime: at android.os.Parcel.appendFrom(Parcel.java:428)
11-20 20:29:04.365 19154 19170 E AndroidRuntime: at android.os.Bundle.writeToParcel(Bundle.java:1613)
11-20 20:29:04.365 19154 19170 E AndroidRuntime: at android.os.Parcel.writeBundle(Parcel.java:605)
11-20 20:29:04.365 19154 19170 E AndroidRuntime: at android.location.Location.writeToParcel(Location.java:903)
11-20 20:29:04.365 19154 19170 E AndroidRuntime: at android.os.Parcel.writeParcelable(Parcel.java:1254)
11-20 20:29:04.365 19154 19170 E AndroidRuntime: at android.os.Parcel.writeValue(Parcel.java:1173)
11-20 20:29:04.365 19154 19170 E AndroidRuntime: at android.os.Parcel.writeMapInternal(Parcel.java:591)
11-20 20:29:04.365 19154 19170 E AndroidRuntime: at android.os.Bundle.writeToParcel(Bundle.java:1619)
11-20 20:29:04.365 19154 19170 E AndroidRuntime: at android.os.Parcel.writeBundle(Parcel.java:605)
11-20 20:29:04.365 19154 19170 E AndroidRuntime: at android.location.Location.writeToParcel(Location.java:903)
11-20 20:29:04.365 19154 19170 E AndroidRuntime: at android.os.Parcel.writeParcelable(Parcel.java:1254)
11-20 20:29:04.365 19154 19170 E AndroidRuntime: at android.os.Parcel.writeValue(Parcel.java:1173)
11-20 20:29:04.365 19154 19170 E AndroidRuntime: at android.os.Parcel.writeMapInternal(Parcel.java:591)
11-20 20:29:04.365 19154 19170 E AndroidRuntime: at android.os.Bundle.writeToParcel(Bundle.java:1619)
11-20 20:29:04.365 19154 19170 E AndroidRuntime: at android.os.Parcel.writeBundle(Parcel.java:605)
11-20 20:29:04.365 19154 19170 E AndroidRuntime: at android.content.Intent.writeToParcel(Intent.java:6660)
11-20 20:29:04.365 19154 19170 E AndroidRuntime: at android.app.ApplicationThreadProxy.scheduleReceiver(ApplicationThreadNative.java:763)
11-20 20:29:04.365 19154 19170 E AndroidRuntime: at com.android.server.am.BroadcastQueue.processCurBroadcastLocked(BroadcastQueue.java:230)
11-20 20:29:04.365 19154 19170 E AndroidRuntime: at com.android.server.am.BroadcastQueue.processNextBroadcast(BroadcastQueue.java:777)

This is odd because where we do Bundle.writeToParcel(), we are just writing the Parcel
we have with its current length. There is no way this should be able to fail like this...
unless the Bundle is changed while we are running?

Hm.

It looks like the location manager is holding on to Location objects which have a
Bundle of extras. It is that Bundle of extras that the crash is happening on.
And the bundle extras can be changed as it operates. And there are places where
the raw Location object is returned from the location manager, which means the
caller can be olding on to a Location object whose extras can be changed at any
time by other threads in the location manager.

So that seem suspicious.

This change should take care of all these places in the location manager, by
making sure to copy the location object before it goes out of the location
manager.

In addition, add some code to the activity manager to not bring down the entire
system if there is a problem trying to send one of these broadcasts. There is
no need, we can just skip the broadcast as bad.

Change-Id: I3043c1e06f9d2931a367f831b6a970d71b0d0621
om/android/server/LocationManagerService.java
om/android/server/am/BroadcastQueue.java
e1a867f68d3727908be1c2cfc90a5ba6a5785c17 30-Nov-2012 Zhihai Xu <zhihaixu@google.com> Merge " BluetoothManagerService call should allow SYSTEM_UID" into jb-mr1.1-dev
6eb7652b04b92b0c3786d96e6a97f5f4e46aec69 30-Nov-2012 Zhihai Xu <zhihaixu@google.com> BluetoothManagerService call should allow SYSTEM_UID

bug 7561429

Change-Id: I1483bfe1361f71c7ae3529ea496b33504b95413e
om/android/server/BluetoothManagerService.java
4d78abfca7a253090f07796e7ac585651eb9a2f1 30-Nov-2012 Dianne Hackborn <hackbod@google.com> Always report user switched after unfreezing screen.

Change-Id: I58172896892a07e72a3430e56e4d2944d388c7c9
om/android/server/am/ActivityManagerService.java
05db19bc55962374812775bf7d980d83ca4f6c3e 29-Nov-2012 Colin Cross <ccross@android.com> Merge "trigger kernel blocked stack trace on system server watchdog" into jb-mr1.1-dev
5df1d871feabee23b16a69ee48695fd892017517 29-Nov-2012 Colin Cross <ccross@android.com> trigger kernel blocked stack trace on system server watchdog

Bug b/7638530 may be caused by a kernel deadlock when killing
processes under low memory conditions. Write to /proc/sysrq-trigger
to get a kernel log of blocked tasks before killing the system server.

Bug: 7638530
Change-Id: I60df324ad4affdadbf13650099dc4dfb38722420
om/android/server/Watchdog.java
143d73dab5bf3fe6b8835660543d3d03e781618f 29-Nov-2012 John Spurlock <jspurlock@google.com> Merge "Fix multiuser bug in StatusBarManagerService." into jb-mr1.1-dev
8f3e6d5c836353444082e4696f5e933266384580 29-Nov-2012 John Spurlock <jspurlock@google.com> Fix multiuser bug in StatusBarManagerService.

First, do no harm.

Bug:7638210
Change-Id: I113b574a021d601b0c79d65a3b4b72eeb4c667ad
om/android/server/StatusBarManagerService.java
8385c5afbd92da5f2e8bc13d153114bc3a7cb0f5 29-Nov-2012 Martijn Coenen <maco@google.com> Allow the NFC process to call Bluetooth APIs.

The NFC process used to be only running as user 0,
and it may be calling into Bluetooth. Most of the
handover code has now moved to a separate process
running as the current user.

Fix the existing checks to take into account the
correct NFC UID, whatever user it is running as.

Bug: 7309141
Change-Id: I953cfb263a28aef7fe1be5880b053425dc359a29
om/android/server/BluetoothManagerService.java
24d966a3b6a0407076b333ec2e074160b2311cb2 29-Nov-2012 Craig Mautner <cmautner@google.com> Merge "Fix math errors causing black screen. DO NOT MERGE" into jb-mr1.1-dev
9dd9e0c99dcb2db98ffbcf9ad97e58fab8d38640 15-Nov-2012 Craig Mautner <cmautner@google.com> Fix math errors causing black screen. DO NOT MERGE

Turning off animations in the Developer options creates a ValueAnimator
duration scale of 0. This is used as the denominator in RampAnimator
which, if the numerator is also 0, sets mAnimatedValue to NaN. Rounding
NaN to the nearest int produces 0 which is then assigned to
mScreenBrightness in DisplayPowerState.

A copy mistake which assigned mTransitionAnimationScale as the default
value for mAnimatorDurationScale in WindowManagerService is also
fixed here.

Bug 7515609 fixed.

Change-Id: I39f8d0a7abdd5a1fe70d757fe95fbddaf7a0ed51
om/android/server/power/RampAnimator.java
om/android/server/wm/WindowManagerService.java
860d0cd452529e7a01152582e6535c2129a46af7 29-Nov-2012 Dianne Hackborn <hackbod@google.com> Merge "Cleaner initial boot." into jb-mr1.1-dev
13579ed3305bf89b41a9fa88e1347f0e0769d279 29-Nov-2012 Dianne Hackborn <hackbod@google.com> Cleaner initial boot.

This does some cleanup of the initial boot, especially when
booting in "no core apps" mode for encryption/decryption.

Change-Id: Ifb3949f580e52f54559e603c4b0b104f6bac2f6c
om/android/server/BootReceiver.java
om/android/server/EntropyMixer.java
om/android/server/WallpaperManagerService.java
om/android/server/pm/PackageManagerService.java
om/android/server/pm/Settings.java
035352b4d62e259c86576dd3d1495b21bed172ff 29-Nov-2012 Adam Cohen <adamcohen@google.com> Merge "Making sure keyguard and homescreen only display eligible widgets (issue 7550090)" into jb-mr1.1-dev
d9e5af3851f592a00549b689dec325dc46268606 29-Nov-2012 Adam Cohen <adamcohen@google.com> Making sure keyguard and homescreen only display eligible widgets (issue 7550090)

Change-Id: I25acb7bde2e8e5ac3185a009f5c7151b81f0ae19
om/android/server/AppWidgetService.java
om/android/server/AppWidgetServiceImpl.java
b4d5a9e73b51671e25b176310bd69f2d43a1167f 29-Nov-2012 Irfan Sheriff <isheriff@google.com> Merge "WFD: Fallback to PIN mode if PBC is not supported" into jb-mr1.1-dev
6681be27875a50bd0c74826cb5d8defec72b8d58 29-Nov-2012 Irfan Sheriff <isheriff@google.com> WFD: Fallback to PIN mode if PBC is not supported

Bug: 7627641
Change-Id: Ibba6114f907c67f1cb60c460d5b65479f2d1b148
om/android/server/display/WifiDisplayController.java
68e0da7e397f6808a90509615c08c62bb00af6ba 29-Nov-2012 Dianne Hackborn <hackbod@google.com> Merge "Quiet down a lot of logging." into jb-mr1.1-dev
e3f7c45241a90d3e4b76d28911831f5dcbaaa038 28-Nov-2012 Zhihai Xu <zhihaixu@google.com> Merge "Settings shows it is connected to A2DP, though the device is not actually connected" into jb-mr1.1-dev
5c0f3e5075c8ac8b22bbaeb32bddfada9657577a 28-Nov-2012 Zhihai Xu <zhihaixu@google.com> Merge "Cannot enable Bluetooth after using airplane and Bluetooth tethering sequentially" into jb-mr1.1-dev
40e9f2922cae76ffcbc521481e5be8e80e8744ef 28-Nov-2012 Dianne Hackborn <hackbod@google.com> Quiet down a lot of logging.

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

Change-Id: I3aa3e0a9b3900967cdd2d115ee103371b0a50c41
om/android/server/DevicePolicyManagerService.java
om/android/server/MountService.java
om/android/server/SystemServer.java
om/android/server/TelephonyRegistry.java
om/android/server/am/ActivityManagerService.java
om/android/server/dreams/DreamManagerService.java
om/android/server/pm/PackageManagerService.java
9e98927e2dd3e9498753e6878709b2625e96feea 28-Nov-2012 Craig Mautner <cmautner@google.com> Merge "Retain configuration change info and sync access." into jb-mr1.1-dev
f426ace9dab65c88b36a047bf921070edcf8cf61 28-Nov-2012 Amith Yamasani <yamasani@google.com> Merge "Only wipe device if primary user (for failed password attempts)" into jb-mr1.1-dev
e8552142494bbb4438a8748707f74b1ce241ea48 07-Nov-2012 Craig Mautner <cmautner@google.com> Retain configuration change info and sync access.

- If a window was hidden while the configuration changed and then
changed back WindowManagerService would not know that the change
had ever happened and wouldn't notify the window of this. Most
windows wouldn't care but because Keyguard inflates layouts while
it is hidden...

Bug 7094175 fixed?
Bug 7501099 fixed!

Change-Id: If27f5f1d333602dac7719dd39dbdf3fe7954aa06
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
om/android/server/wm/WindowStateAnimator.java
ba4ac51823c59152e2167365b81ac56857b6b4d0 27-Nov-2012 Dianne Hackborn <hackbod@google.com> Merge "Improve debugging for issue #7586414: AlarmManager wakelocks held" into jb-mr1.1-dev
8103890a59de6ed4abaedaad80e66666ea59f9b5 27-Nov-2012 Dianne Hackborn <hackbod@google.com> Improve debugging for issue #7586414: AlarmManager wakelocks held

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

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

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

Change-Id: Icc07810053e60fb623a49937e696819cb8352b06
om/android/server/AlarmManagerService.java
om/android/server/am/ActivityManagerService.java
1af084113713743c70df04702083fff5a5325482 27-Nov-2012 Satoshi Kataoka <satok@google.com> Merge "Hide current soft input when a background user gains window focus." into jb-mr1.1-dev
7be52cbc33157e4700b7d04e69d1149cd80e9096 27-Nov-2012 Amith Yamasani <yamasani@google.com> Merge "Logging to help find the cause of widget crash in clock widget." into jb-mr1.1-dev
791f877473cc6b3e8e484b741012c95aba70c3b0 21-Nov-2012 Amith Yamasani <yamasani@google.com> Logging to help find the cause of widget crash in clock widget.

This will continue to crash as before, but will show some useful
information in the exception.

Bug: 7450247

Change-Id: Ib3160a5f64154517791d165973c12294ecd09901
om/android/server/AppWidgetServiceImpl.java
f7614fc7442e9cf2df89d4230af3f56f03a74c6e 26-Nov-2012 Winson Chung <winsonc@google.com> Removing unecessary additional lock metadata from QuickSettings user tile.

Change-Id: I89ec94385eb3cdd46ad6942bf8989fb04d5c0370
om/android/server/am/ActivityManagerService.java
7f2a98967532138f3f962216ccf2d1a8307d42de 26-Nov-2012 Craig Mautner <cmautner@google.com> Merge "Ignore invalid combination of PowerManager flags." into jb-mr1.1-dev
6edb6db512198aa0eef66341d163926b3531bca3 21-Nov-2012 Craig Mautner <cmautner@google.com> Ignore invalid combination of PowerManager flags.

ACQUIRE_CAUSES_WAKEUP is supposed to be ignored if combined with
PARTIAL_WAKE_LOCK. Instead it was being carried out for any values
of the WakeLock level.

This change reverts behavior to closely match
previous releases of the framework by only honoring
ACQUIRE_CAUSES_WAKEUP for screen wake lock levels. The only
difference being that in previous releases ACQUIRE_ could have been
combined with PROXIMITY_SCREEN_OFF_WAKE_LOCK (it never was) and
now such a combination will ignore the ACQUIRE_ flag.

Bug 7532258 fixed.

Change-Id: I46e848d8fd1b57e54c63141bf3d4f353986b5bdf
om/android/server/power/PowerManagerService.java
3f64edec6c6b2e53b42cfd8c6a6765ecee084fc2 21-Nov-2012 John Spurlock <jspurlock@google.com> Merge "Fix IME down caret in keyguard nav bar bug." into jb-mr1.1-dev
bc7b6fc2a4b701596a2c8eecc4aeef522abeeafa 14-Nov-2012 John Spurlock <jspurlock@google.com> Fix IME down caret in keyguard nav bar bug.

The input method manager service now keeps track of whether or not
the ime was shown on the keyguard. This prevents activities behind
the keyguard from incorrectly showing the down-caret in the keyguard.

Bug:7498792
Change-Id: I0de01ec29cb544e902305b0f9d9fb94a73835e7b
om/android/server/InputMethodManagerService.java
4a7a9b963b42358a891b42187e46d76ecb92ff31 20-Nov-2012 Daniel Sandler <dsandler@android.com> DEFAULT_VIBRATE must always use the default vibe pattern

The logic here was backwards, causing the (softer) fallback vibe
pattern to be applied if the notification specified a sound
(or DEFAULT_SOUND) and also DEFAULT_VIBRATE. The fallback
vibe should only play if you have *no* vibration set.

Bug: 7588655
Change-Id: Iecdd362729bccedf779b51cc9b90a12014328aff
om/android/server/NotificationManagerService.java
8d03305b576e429909e420c235163c2be1aae732 19-Nov-2012 Satoshi Kataoka <satok@google.com> Hide current soft input when a background user gains window focus.

Bug: 7507226
Change-Id: If58f68469e21eaaba8536c4b54b3aa8cf8c08eb5
om/android/server/InputMethodManagerService.java
2656abe09895088eca25caafc3e92869217d1447 18-Nov-2012 Satoshi Kataoka <satok@google.com> Merge "Fix an inconsistent state with IMMS and Settings when the hard keyboard is connected" into jb-mr1.1-dev
7b0c877959ee15c766cc7366ec6b4c024c211cd6 17-Nov-2012 Michael Jurka <mikejurka@google.com> Merge "Delete appWidgetId when removing lockscreen widgets" into jb-mr1.1-dev
75b5cfb4a41030333820d072578a288d4ec9899c 16-Nov-2012 Michael Jurka <mikejurka@google.com> Delete appWidgetId when removing lockscreen widgets

Bug: 7550012

Change-Id: Ia9f5266256016eb91bfd6a2d5a7f910c42948f1e
om/android/server/AppWidgetService.java
om/android/server/AppWidgetServiceImpl.java
32f0742e52de8cebdbbb6c8ede9d6f4315d50189 17-Nov-2012 Amith Yamasani <yamasani@google.com> Only wipe device if primary user (for failed password attempts)

When a DeviceAdmin requests a device wipe due to a number of incorrect
password attempts, only primary user can wipe the device. Secondary users
can only remove themselves from the device.

Bug: 7554445
Change-Id: I24331cb4eff37571fcd792abb2efc794f7b3f2d2
om/android/server/DevicePolicyManagerService.java
acddb72c58dbab029d1acbaea61755e79ef8b2a4 16-Nov-2012 Amith Yamasani <yamasani@google.com> Merge "Make sure that the owner user is marked initialized." into jb-mr1.1-dev
15451bd7afedb98a84574f69086936f883371c83 16-Nov-2012 Satoshi Kataoka <satok@google.com> Fix an inconsistent state with IMMS and Settings when the hard keyboard is connected

Bug: 7540140
Change-Id: Iaac951ff457c35751b442e84ac07f1f86be93494
om/android/server/InputMethodManagerService.java
6189888a2565b6362b0dd022850b748f628500d0 15-Nov-2012 Adam Cohen <adamcohen@google.com> Merge "Making sure launcher doesn't show keyguard-only widgets (issue 7550090)" into jb-mr1.1-dev
3fcc6b26c3302f47c911730f81cbc3dc9b71484d 15-Nov-2012 Adam Cohen <adamcohen@google.com> Making sure launcher doesn't show keyguard-only widgets (issue 7550090)

Change-Id: I5d0675f0c03677e06371a6730209c3466c6b0f15
om/android/server/AppWidgetServiceImpl.java
bc9625059bccc8f0d70540d0affd73320620c3c0 15-Nov-2012 Amith Yamasani <yamasani@google.com> Make sure that the owner user is marked initialized.

This is required for upgrades from previous versions of JB.

Bug: 7547639
Change-Id: I21de14a70d6ba2ab21437b5f0721321df45226d2
om/android/server/pm/UserManagerService.java
b02eb4bb7d09a19aedb9dbc08b0f731af05a8579 15-Nov-2012 Adam Cohen <adamcohen@google.com> Merge "Pushing state persistence to a background thread" into jb-mr1.1-dev
a1a2f967e2a0de4c4190a775ac314ad32288727e 01-Nov-2012 Adam Cohen <adamcohen@google.com> Pushing state persistence to a background thread

Change-Id: If776bc22c48525ba91dc7e4dd0e27de92612f2f5
om/android/server/AppWidgetService.java
om/android/server/AppWidgetServiceImpl.java
f5377a7242d71e221807150f0778a0521e1270b6 15-Nov-2012 Jeff Sharkey <jsharkey@android.com> Merge "Useful annotations for code documentation." into jb-mr1.1-dev
a319d655e336ffb0fcbee65b77926a32660c7f3f 15-Nov-2012 Jeff Sharkey <jsharkey@android.com> Merge "Avoid runtime restart after vold reconnects." into jb-mr1.1-dev
f6ba84b4242419f4765e0efcb5df82e37ad03faa 15-Nov-2012 Jeff Sharkey <jsharkey@android.com> Merge "Reduce verbosity of service event logging." into jb-mr1.1-dev
020d65290a6fe7dc5465d36c259ec62dcfd71c1f 15-Nov-2012 Daniel Sandler <dsandler@android.com> Merge "Do not vibe when the default notification sound is Silent." into jb-mr1.1-dev
83b2596155ec1845194c08bd27a6e8dfbeb530b9 15-Nov-2012 Daniel Sandler <dsandler@android.com> Merge "Notification vibration improvements:" into jb-mr1.1-dev
681ae7fc5e36f8da0c6975b316c93834c0d7b8a3 13-Nov-2012 Zhihai Xu <zhihaixu@google.com> Cannot enable Bluetooth after using airplane and Bluetooth tethering sequentially

The root cause is we can't unbind blue service when bluetooth isnot disbaled
Otherwise the bluedroid stack will be out of sync with bluetooth service
only unbind bluetoothservice, when bluetooth is at OFF state.

bug 7376846

Change-Id: If5a11926f77a1ac29e75cdddbf5e90d492179f43
om/android/server/BluetoothManagerService.java
0be607cda1aed67149963a1f602f399c79845cfd 14-Nov-2012 Jeff Sharkey <jsharkey@android.com> Avoid runtime restart after vold reconnects.

Rely on behavior of already-released CountDownLatch instead of
clearing the reference.

Bug: 7290521
Change-Id: I787e673b97d18be412d5b37e279fbf1275b49151
om/android/server/MountService.java
d4d2de2a7778b85f5af9959a5ebf07094727e672 14-Nov-2012 Daniel Sandler <dsandler@android.com> Do not vibe when the default notification sound is Silent.

(This relates to the new vibration fallback behavior, where
notifications that expect to make a sound should always
vibrate in vibrate mode. We should not vibrate if the
notification's sound is silent, but we should also not
vibrate if the notification uses the default sound and the
default is silent.)

Bug: 7537077
Change-Id: I08e149c8c00ef2d2f61e418d88a086cb5e9cf241
om/android/server/NotificationManagerService.java
75819a9cddd646af72a6071311d8e5b3cd6b8c43 14-Nov-2012 Victoria Lease <violets@google.com> Merge "Resolve LocationManager + ActivityManager conflict" into jb-mr1.1-dev
edbb380950d60a5e7bcda04599fdf9cf43d18dbd 14-Nov-2012 Daniel Sandler <dsandler@android.com> Notification vibration improvements:

- When notifications vibrate as a fallback (that is,
because they want to play a sound but the device is in
vibrate mode), this no longer requires the VIBRATE
permission.
- As a bonus, if your notifications use DEFAULT_VIBRATE,
you don't need the VIBRATE permission either.
- If you specify a custom vibration pattern, you'll still
need the VIBRATE permission for that.
- Notifications vibrating in fallback mode use a different
vibration pattern.
- The DEFAULT_VIBRATE and fallback vibrate patterns are now
specified in config.xml.

Bug: 7531442
Change-Id: I7a2d8413d1becc53b9d31f0d1abbc2acc3f650c6
om/android/server/NotificationManagerService.java
61ecb02f544d9abd098506afb50cb514818f4eb4 14-Nov-2012 Victoria Lease <violets@google.com> Resolve LocationManager + ActivityManager conflict

LocationManagerService was serially stuffing the same Location into
multiple Intents, which it would immediately hand off to
ActivityManagerService, running as a different thread in the same
process. LocationManager would continue to work with that Location
while ActivityManagerService worked with a Parceled version of it.

However, Location.mExtras is also a Bundle, and both
ActivityManagerService and LocationManagerService ended up working
with references to the same Bundle. ActivityManagerService needs
it in Parceled form (ie mParceledData != null), but
LocationManagerService was triggering Bundle.unparcel() when
referencing the data contained within.

As a result, LocationManagerService was able to trigger NPE (or
worse) in ActivityManagerService by manipulating the mExtras
member of a Location that was in the process of being reported to
listeners.

To resolve this issue, I copy-construct a new Location to report to
each listener. This should prevent ActivityManagerService and
LocationManagerService from referencing the same Bundle data, as
Location's copy constructor also copyconstructs the mExtras member,
rather than simply share references.

Bug: 7518371
Change-Id: I1a92615cba361831494447d5de085a8d910b6b2c
om/android/server/LocationManagerService.java
4e22ad35045dc5861193526afe1565d52f983698 14-Nov-2012 Zhihai Xu <zhihaixu@google.com> Settings shows it is connected to A2DP, though the device is not actually connected

the root cause is the A2dp and Pbap service need receive STATE_TURNING_OFF intent
to shutdown cleanly. So we need send completely state transition intents
in user switch handler.

bug7403171

Change-Id: Ic92bc85c2b74ae7c95440b237ea8851771ee9f04
om/android/server/BluetoothManagerService.java
c10914ca5c83ad6ac2c9acd7b52bfeb05d6e72e5 13-Nov-2012 Craig Mautner <cmautner@google.com> Merge "Support Wifi display devices that rename themselves." into jb-mr1.1-dev
8b2c3a14603d163d7564e6f60286995079687690 12-Nov-2012 Jeff Sharkey <jsharkey@android.com> Useful annotations for code documentation.

Bug: 6537978
Change-Id: I806c3c09e3255f8789455f13bf37c1dde2a93f1f
om/android/server/MountService.java
om/android/server/NativeDaemonConnector.java
om/android/server/net/NetworkPolicyManagerService.java
om/android/server/net/NetworkStatsService.java
om/android/server/usb/UsbDeviceManager.java
om/android/server/usb/UsbHostManager.java
om/android/server/usb/UsbService.java
282e9fc62e571aba741ddc9523d6dfe2eca313b6 12-Nov-2012 Jeff Sharkey <jsharkey@android.com> Merge "Avoid recycling recently removed user IDs." into jb-mr1.1-dev
bc0edecb7372a9ddf7644cb694c131b76ace8c41 12-Nov-2012 Jeff Sharkey <jsharkey@android.com> Merge "Increase readability of connectivity event log." into jb-mr1.1-dev
4f017e757bdc87d603d135386c888118fc2653ba 10-Nov-2012 Ed Heyl <edheyl@google.com> Merge "When in vibrate mode, all notifications will vibrate." into jb-mr1.1-dev
71789e11cc5266c44886b4894057966a0380757a 10-Nov-2012 David Agnew <dsandler@android.com> When in vibrate mode, all notifications will vibrate.

(Unless the notification specifies no ringtone AND no
vibration, in which case it will remain silent.)

Change-Id: I926d0fe0165b9622cd117e6c3ef6e3637772b444
om/android/server/NotificationManagerService.java
9d6d890e0d614388ab087a3ac8a26633ada90158 10-Nov-2012 Jeff Sharkey <jsharkey@android.com> Reduce verbosity of service event logging.

Omits service name from destroyed events, since it can be derived by
looking back to the created event with the same ServiceRecord.

Change-Id: Ib7ab1031c0859437735e1fc985d58f47629b7ac4
om/android/server/am/ActiveServices.java
om/android/server/am/EventLogTags.logtags
2528b50b9155dcaa8de6421996208c7e0b1da4be 10-Nov-2012 Jeff Sharkey <jsharkey@android.com> Increase readability of connectivity event log.

Bug: 6322766
Change-Id: I556759f5fc1466cdd4db6b4574084a8068dc9909
om/android/server/ConnectivityService.java
om/android/server/EventLogTags.logtags
86597df79fdc793d72d2e491f0a7a51ced31fdd3 10-Nov-2012 Jeff Sharkey <jsharkey@android.com> Emit event log message when switching users.

Change-Id: I8e521e177b0e17e2ab9e033e0ff8bc421cd5f784
om/android/server/am/ActivityManagerService.java
om/android/server/am/EventLogTags.logtags
a46a74fcd61d2b4e72b6027625a471f10b21b1c9 08-Nov-2012 Dianne Hackborn <hackbod@google.com> Merge "Remove extraneous logs." into jb-mr1-dev
7ff30113de68539ec840c524b8f1561f938f96c5 08-Nov-2012 Dianne Hackborn <hackbod@google.com> Remove extraneous logs.

Change-Id: I4c47d36748de91bd6fddc419afbf59552bf63e9a
om/android/server/BackupManagerService.java
om/android/server/ConnectivityService.java
om/android/server/LocationManagerService.java
om/android/server/usb/UsbDeviceManager.java
om/android/server/wm/WindowManagerService.java
4eeb4f664ac6b5901a8e874dcf70c0382295f792 08-Nov-2012 Jim Miller <jaggies@google.com> Add mechanism to kick keyguard to show the assistant

Fixes bug 7499778

Change-Id: Ic9ea514feb489feeee6716f40bdb9792842f9515
om/android/server/wm/WindowManagerService.java
3fe2cb4db60827889abd1f971910f807ae346488 08-Nov-2012 Amith Yamasani <yamasani@google.com> Merge "Don't cancel any notifications that are meant for all users, if no package is specified." into jb-mr1-dev
74da109102864f19b3dcdb30cd1d92c46fb12f2f 08-Nov-2012 Jeff Brown <jeffbrown@google.com> Support Wifi display devices that rename themselves.

Some Wifi display devices like to rename themselves after a
connection completes (or at other times). Make sure to update
the name of the display when we detect that it changed in
our scan results.

This problem is somewhat complicated by the fact that we remember
the display name persistently, so we need to update our list
of remembered displays too.

Improve the state machine to avoid redundant attempts to
disconnect or cancel connection.

Bug: 7478895
Change-Id: I35a9e2c6a8deadbe892dacd5e3b4a5a2b12d6cf0
om/android/server/display/PersistentDataStore.java
om/android/server/display/WifiDisplayAdapter.java
om/android/server/display/WifiDisplayController.java
5ec00e930fb4d523ce5784fb336841410d030cef 08-Nov-2012 Amith Yamasani <yamasani@google.com> Don't cancel any notifications that are meant for all users, if no package is specified.

Bug: 7490028

Otherwise notifications such as the USB debugging and OTA notifications will be
dismissed when any user is stopped.

Change-Id: I0ae0c1136a999dd3aade99ca9e71c714b359eab4
om/android/server/NotificationManagerService.java
ad84f7f46b0207a7ad316b4df37c1f02c889cca9 07-Nov-2012 Victoria Lease <violets@google.com> Merge "disable geofences for secondary users" into jb-mr1-dev
ffe0cb49d14d9c21b5609de009f7e7434e5b0753 06-Nov-2012 Jeff Sharkey <jsharkey@android.com> Avoid recycling recently removed user IDs.

Currently, installd doesn't correctly evict VFS cache entries for
FUSE emulated external storage. This means zygote processes have an
inconsistent view of the FUSE daemon when the system rapidly
recycles user IDs.

To work around this, only consider recycling a user ID after its
VFS cache entries have expired. The emulated storage FUSE daemon
currently uses a 'entry_valid' timeout of 10 seconds.

Bug: 7407902
Change-Id: Id80cbdd2215d8456467fb31e4c209ca12a505e16
om/android/server/pm/UserManagerService.java
8d803258ca1550583d03c1a24c5c6d4b38535ba8 07-Nov-2012 Victoria Lease <violets@google.com> am e6299d5a: Merge "Fires geofence if the device is already in the geofence area." into jb-mr1-dev

* commit 'e6299d5af702dd17eb3585dbe84d29c289bfa8da':
Fires geofence if the device is already in the geofence area.
56e675b3a1c351de34de68a149762d3ad1b308c5 06-Nov-2012 Victoria Lease <violets@google.com> disable geofences for secondary users

Geofences are broken in multiuser, and need to be fixed before
reenabling the feature for secondary users.

Change-Id: Ief3008a294deed47760ee25efcf1cdef5371b038
om/android/server/LocationManagerService.java
4cd0a50b26eeb68517d03bc0cafc18e98bfc1fec 03-Nov-2012 Victoria Lease <violets@google.com> Fires geofence if the device is already in the geofence area.

Process the location of the fence as soon as it is added.

Clarified how the distance to the fence was being used.

Added more debug logs (disabled by default).

Fixed a numerical overflow in the location request if the
distance to the border of the nearest fence was greater
than about 2000Km.

Removed a useless call to request location updates passively
when the geofence manager is initialized. We have no need
of location updates unless there are active geofences.
The effect of this call was undone the next time the location
request was updated anyhow.

Changed the location request to always request a fastest update
interval of 0 which accomplishes the goal of passively
monitoring all updates. This does not increase the power
consumption because we are conservative about choosing
a minimum location update interval. We're simply stating
that the geofence manager is willing to handle a higher
report rate which is very important.

Subject location to a "freshness test" - only use relatively
recent locations for geofence testing.

Run all geofence updates on the handler and avoid making
multiple redundant calls into the location manager when
updating the provider requirements.

Ensure that we update geofences correctly even if we don't
know the initial location of the device at the time the
geofence is created.

Pin update interval value to the range [1m..2hr].

Distance to fence is now distance to fence's border, not
distance to fence's centre.

Bug: 7466334
Change-Id: I28e571ecfc508d5ceb9bb2afcabaaf05abb26369
om/android/server/location/GeofenceManager.java
om/android/server/location/GeofenceState.java
bfec0a8616bc197ee3b7b71be6fed1939d0c3c4d 06-Nov-2012 Jim Miller <jaggies@google.com> Add isSafeModeEnabled() API to WindowManagerService

This adds a means of determining when the device is in safe mode,
as required by keyguard to disabled some features.

Change-Id: I31d357e6738c92e1837f9e0263e5f3f4de66315a
om/android/server/wm/WindowManagerService.java
47eb0c103a38fe710381c23284d01840930b93e2 04-Nov-2012 Dianne Hackborn <hackbod@google.com> am 2ea9bae7: Fix issue #7457380: IME leaves a mark after user switching

* commit '2ea9bae7121f1df5461437d7d08fa550cdf6e0b0':
Fix issue #7457380: IME leaves a mark after user switching
2ea9bae7121f1df5461437d7d08fa550cdf6e0b0 03-Nov-2012 Dianne Hackborn <hackbod@google.com> Fix issue #7457380: IME leaves a mark after user switching

The gnarly stuff where we keep track of the old input method
window as if it was still there was sitting around leaving things
in a stuck state. Now we clear this out at key points in the
window manager (freezing screen, user change), and the input
method manager service is less aggressive about asking the window
manager to do it.

Also fixed a problem that was causing flickers during some
wallpaper transitions -- when we are animating two things on
top of the wallpaper and one of them disappears, we need to
make sure the wallpaper target points to whatever the current
target should be (if any), not left pointing to the old target
that has gone away.

Change-Id: I2fb9600f569a5bd5e3528aaf24cde9340af56cb0
om/android/server/InputMethodManagerService.java
om/android/server/wm/WindowAnimator.java
om/android/server/wm/WindowManagerService.java
841ce670b29180a157a084a9c0e803b13e92020c 03-Nov-2012 Baligh Uddin <baligh@google.com> Merge commit '81af21e67cd842d16d4b45e8a2d1ec56ff8d764f' into jb-mr1-dev
f74d0c39b62ff542542df69e641477eb1e09b157 02-Nov-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Polish user selector accessibility." into jb-mr1-lockscreen-dev
fc9c4cd51b3bdca27726dd6d8a00d47e388ca2aa 02-Nov-2012 Svetoslav Ganov <svetoslavganov@google.com> Polish user selector accessibility.

1. The current user was not announced as such.

2. The event for a user switch was not sent.

Change-Id: Ib3caf1f9e93ea1f0b5450246601bc37f416be6da
om/android/server/accessibility/AccessibilityManagerService.java
35e01866d86ac1d2484afbc82266524d322b6dc3 02-Nov-2012 Laurent Tu <laurentt@google.com> am 685cc8c7: Merge "Decrement number of updates in LocationRequest" into jb-mr1-dev

* commit '685cc8c7cba0bef5257bf00e9821e82a2dbbfc91':
Decrement number of updates in LocationRequest
685cc8c7cba0bef5257bf00e9821e82a2dbbfc91 02-Nov-2012 Laurent Tu <laurentt@google.com> Merge "Decrement number of updates in LocationRequest" into jb-mr1-dev
78bc99001f422c442c76849b575539c88575b300 02-Nov-2012 Dianne Hackborn <hackbod@google.com> am 8ae0420e: Merge "Fix issue #7343200: Fails to show wallpaper in the background for..." into jb-mr1-dev

* commit '8ae0420e4b4169855608d404e389a66ce7253a36':
Fix issue #7343200: Fails to show wallpaper in the background for...
8ae0420e4b4169855608d404e389a66ce7253a36 02-Nov-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #7343200: Fails to show wallpaper in the background for..." into jb-mr1-dev
98129739afcb3786a6ec9f3efe774d8e01f6d632 02-Nov-2012 Dianne Hackborn <hackbod@google.com> Fix issue #7343200: Fails to show wallpaper in the background for...

...lockscreen sometimes and remains black / blank

The problem was that we were using the animation-side wallpaper state
in cases where it was not updated yet.

The mWallpaperTarget variable is propagated over to the animation
side when the main window manager state updates. On the animation
side, this is used by hideWallpapersLocked() to determine if the
current wallpaper should be hidden.

The problem is that various paths to hideWallpapersLocked() can
come from the layout side of the window manager instead of the
animation side. This causes the problem here because in this case
the wallpaper state may not have yet been propagated to the
animation side, so it could incorrectly decide to hide the wallpaper
because it thinks there is not a target when in fact a target is
set in the layout side. This won't get fixed until some time way
later that the layout side decides that a new window is being shown
that may need to have the wallpaper shown.

The fix here is pretty gross, but as safe as possible -- the
hideWallpapersLocked() function now uses either the animation or
layout wallpaper state depending on where the call to it is coming
from.

Change-Id: I9250bfeae6e11c1761760bcc696fdb33fb5c8a5f
om/android/server/wm/WindowAnimator.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
om/android/server/wm/WindowStateAnimator.java
b8e58bb6edb56fd8fef1bc43fa42cc48aecf31d1 02-Nov-2012 Svetoslav Ganov <svetoslavganov@google.com> am 28e8f76c: Merge "Cannot click on partially visible views in touch exploration." into jb-mr1-dev

* commit '28e8f76c50b26efd657bc0740fee25ac18520f9e':
Cannot click on partially visible views in touch exploration.
28e8f76c50b26efd657bc0740fee25ac18520f9e 02-Nov-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Cannot click on partially visible views in touch exploration." into jb-mr1-dev
75defb6f8840dcd2aaf866a5df9d689413fbe433 02-Nov-2012 Laurent Tu <laurentt@google.com> Decrement number of updates in LocationRequest

Decrement the number of updates after a location fix has been sent to a
a listener. This is necessary for respecting calls such as
requestSingleUpdate().

Bug: 7460868
Change-Id: Iea207ab494b93b936ca434d59652bb2cb6404cef
om/android/server/LocationManagerService.java
9de90c1c57b65498afca39c29834ad2bb75f0cbb 02-Nov-2012 Michael Jurka <mikejurka@google.com> Merge "Use clock's widget as the default keyguard widget" into jb-mr1-lockscreen-dev
67a871d85732e582c70a2a1d85ef4419eb658a12 02-Nov-2012 Michael Jurka <mikejurka@google.com> Use clock's widget as the default keyguard widget

Also, if we have no widgets in lockscreen,
reinflate the default widget. If that fails,
inflate the built-in clock (KeyguardStatusView)

Change-Id: I2e90ab0893c993a755700e075e4a8ac5a685e0f2
om/android/server/AppWidgetServiceImpl.java
39912f7fcd5bfc4943bac1746c3ff2a9f1d93043 02-Nov-2012 Ed Heyl <edheyl@google.com> Merge commit '87bb019e57eddcedd4aeca180ac36bdf1d42064a' into jb-mr1-dev
a94c3194ffa896632f025b983ca57095cd4ba277 01-Nov-2012 Svetoslav Ganov <svetoslavganov@google.com> Cannot click on partially visible views in touch exploration.

1. In touch exploration mode the system clicks in the center of the
accessibility focus rectangle. However, if this rectangle is only
partially shown on the window or on the screen the system may not
be able to perform the click, if the accessibility focus center
is not on the screen, or click on the wrong window, if the access
focus center is outside of the window.

This change clips the rectangle to the window bounds which and the
display bounds. This will ensure no clicks are sent to the wrong
window and no clicks are sent outside of the screen.

bug:7453839

Change-Id: I79f98971e7ebcbb391c37284467dc76076172c5f
om/android/server/accessibility/AccessibilityManagerService.java
872e3d36eed6f2e01968ce2e8ff18802e2ca50d6 01-Nov-2012 Dianne Hackborn <hackbod@google.com> am b9372de0: Merge "More debugging for issue #7343200 Fails to show wallpaper in the..." into jb-mr1-dev

* commit 'b9372de07d3329928f28104bb997aab57237504c':
More debugging for issue #7343200 Fails to show wallpaper in the...
f19cce180ffad6b2dac60da7b3963c423733c8e7 01-Nov-2012 Adam Cohen <adamcohen@google.com> Merge "Revert "Pushing state persistence to a background thread"" into jb-mr1-lockscreen-dev
b9372de07d3329928f28104bb997aab57237504c 01-Nov-2012 Dianne Hackborn <hackbod@google.com> Merge "More debugging for issue #7343200 Fails to show wallpaper in the..." into jb-mr1-dev
b6f83374cc706e5da95a137e9d0f6bd6bbf3220e 01-Nov-2012 Adam Cohen <adamcohen@google.com> Revert "Pushing state persistence to a background thread"

This reverts commit 039206a9b40d2188eb735f56ee51f131555c9dd3

Change-Id: I30fa07bf55a489562831b6334768b28bed638ef8
om/android/server/AppWidgetServiceImpl.java
529e744d3131b9ebeb6b33c8030230c29a44ad12 01-Nov-2012 Dianne Hackborn <hackbod@google.com> More debugging for issue #7343200 Fails to show wallpaper in the...

...background for lockscreen sometimes and remains black / blank

There was a bunch of state not being put into the dumpsys output.
In particular, the current wallpaper target of the WindowAnimator
was not being included. I think the problem is that these targets
are not being updated from the main window manager state at some
point where they need to be.

Change-Id: Ic795047f6aea9b6f72d5550bccc9f8d76c6ecb67
om/android/server/wm/AppWindowAnimator.java
om/android/server/wm/WindowAnimator.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
om/android/server/wm/WindowStateAnimator.java
6917cec8ded216d5a21e7358aaaf7b8b677475ea 01-Nov-2012 Adam Cohen <adamcohen@google.com> Merge "Pushing state persistence to a background thread" into jb-mr1-lockscreen-dev
039206a9b40d2188eb735f56ee51f131555c9dd3 01-Nov-2012 Adam Cohen <adamcohen@google.com> Pushing state persistence to a background thread

Change-Id: If776bc22c48525ba91dc7e4dd0e27de92612f2f5
om/android/server/AppWidgetServiceImpl.java
09452829e6e2d6d90d6baef5442d016373060585 01-Nov-2012 Zhihai Xu <zhihaixu@google.com> am 0de49148: Merge "Fix for BluetoothAdapter.getAddress() when BT is off on some devices" into jb-mr1-dev

* commit '0de49148f07c7f0b3b45cec0ef502db4b9163711':
Fix for BluetoothAdapter.getAddress() when BT is off on some devices
0de49148f07c7f0b3b45cec0ef502db4b9163711 01-Nov-2012 Zhihai Xu <zhihaixu@google.com> Merge "Fix for BluetoothAdapter.getAddress() when BT is off on some devices" into jb-mr1-dev
9767597a74bd9a5a265ff72aa5f77dd7efb93b53 01-Nov-2012 Adam Cohen <adamcohen@google.com> Merge "Stripping dead API related to keyguard widgets" into jb-mr1-lockscreen-dev
d31c32217c17f402c295514a862347dd68c9e16d 01-Nov-2012 Zhihai Xu <zhihaixu@google.com> Fix for BluetoothAdapter.getAddress() when BT is off on some devices

There are two problem, 1.If we have wrong bluetooth address in
global settings db, we never will update it 2. We need enable bluetooth
to get the bluetooth address for some devices. For 1, we fix it by add
a valid flag in global setting db, this flag will be set when we stored
correct address and name to db. We only load the name and address from
global setting db when this valid flag is set during power up.
For2. we will read BT address after bluetooth is at ON state.
bug 7440409

Change-Id: Ic4740b3f0b2fcd214c7ca8393f7331c140eec66d
om/android/server/BluetoothManagerService.java
c4842c11932ea4f60fe7ae09b0a59660207e1587 31-Oct-2012 Svetoslav Ganov <svetoslavganov@google.com> Accessibility support for the lockscreen - phone.

Change-Id: Idc99f1322a1d635dd07e1f5efa1665a4676267c2
om/android/server/accessibility/TouchExplorer.java
8f697d858098ec1e7bb7f84abcd15ba49e3e8927 01-Nov-2012 Adam Cohen <adamcohen@google.com> Stripping dead API related to keyguard widgets

Change-Id: Ieb6c57ef736712b3266de08027f9626104cdf1bb
om/android/server/AppWidgetServiceImpl.java
fe28ff0d063818762dd585a67fcffd61cabd5a2f 01-Nov-2012 Chet Haase <chet@google.com> Merge "Fix for regression in WindowManager orientation changes" into jb-mr1-dev
d5d11af3d3cefff6267d4e3a19e61a9b03cfbab5 31-Oct-2012 Chet Haase <chet@google.com> Fix for regression in WindowManager orientation changes

A fix yesterday for #7428221 caused a regression where new orientations would
sometimes cause a flash through black on the way to seeing the real static wallpaper.
There is a fundamental problem in WindowManagerService where we show a window before
it has all of the layout/sizing information it needs, which is the cause of the black
flash. The regression yesterday was that we are now less aggressive about layout out
hidden windows, so we won't layout the window until after the window is shown with the
incorrect sizing info.

The fix/workaround is to back off the layout logic specifically for the wallpaper,
ensuring that we will lay it out on orientation changes, even when hidden. This means that
when we finally do show it, it will already have been drawn in the correct orientation/size.

Issue #7444971 Home jank regression

Change-Id: Ib20fdabc43ece9720b261bf04b272c5511e2d902
om/android/server/wm/WindowManagerService.java
03f7ebfeaadb3f03c9a9a6405276fb702ad11fe1 31-Oct-2012 Amith Yamasani <yamasani@google.com> Merge "Relax permission requirements for posting notifications across users" into jb-mr1-dev
27f752eb1d5c0f92fb38e7d6d0ea20b3b3b26a02 31-Oct-2012 Chet Haase <chet@google.com> Merge "WindowManager shouldn't layout non-visible windows" into jb-mr1-dev
a07d047f34b28fdf7b3b342ceb31c8c982b24fd8 31-Oct-2012 Amith Yamasani <yamasani@google.com> Merge "Don't clean up wallpaper map entry when stopping a user." into jb-mr1-dev
9cceae9a5f4a2e8b5abc7dc9610dc7e40c7d283c 31-Oct-2012 Chet Haase <chet@google.com> WindowManager shouldn't layout non-visible windows

A recent change in WindowManager made background windows perform layout
(when they should really be left alone). This resulted in artifacts
where rotating the device and then going to a backgrojnd activity (launcher,
Recents) would briefly show that activity in the wrong size/orientation, then
flash to the correct one after a proper layout.

This fix is a simple workaround, leaving in the original fix that the code
change addressed (for keyguard orientation changes), while going back to the
previous (don't layout gone windows) for all other cases.

Issue #7428221 sometimes recents is drawn off-center and then fixes itself

Change-Id: I41b47933c2bd86f29133853d3387bb7294be8f48
om/android/server/wm/WindowManagerService.java
2c7ebeae9f2b795c4802b4aa4d7b3d84e8fff239 30-Oct-2012 Amith Yamasani <yamasani@google.com> Relax permission requirements for posting notifications across users

Bug: 7430689
Change-Id: I2430b20137705ed2d6dc0f870690acda0662392b
om/android/server/NotificationManagerService.java
om/android/server/am/ActivityManagerService.java
0c293717126b52e71eaf794394f336b5940fb349 30-Oct-2012 Amith Yamasani <yamasani@google.com> Don't clean up wallpaper map entry when stopping a user.

Sometimes on quickly stopping and starting a user, a race condition
causes the user entry to disappear, causing crashes in Launcher and
SystemUI. Removing this step, since it doesn't really leave much
residue behind.

Bug: 7434849
Change-Id: Ia188602f1a79f75d307397459c2a03fadee4c722
om/android/server/WallpaperManagerService.java
ad09bccfe4cc0a3075e97c0911a02b329023a34a 08-Oct-2012 Craig Mautner <cmautner@google.com> Bring up unlock screen for FLAG_DISMISS_KEYGUARD.

Widgets that did not launch Activitys would not display the unlock
screens when they were tapped. Now any window that is shown with
FLAG_DISMISS_KEYGUARD set while the keyguard is locked will
cause the unlock screen to be displayed.

Bug: 7301530 fixed.
Change-Id: I90d11b52d2b63260bdb5f2b6eb7e98eb7a4d9331
om/android/server/wm/WindowState.java
44251a70edba3e950aab1f706e1ff34e2fa4dfae 30-Oct-2012 Dianne Hackborn <hackbod@google.com> Merge "Work on issue #7343200: Fails to show wallpaper in the background..." into jb-mr1-dev
ef03a7f441cf0cbef5a5f7fafb58a7d5aea7ef52 30-Oct-2012 Dianne Hackborn <hackbod@google.com> Work on issue #7343200: Fails to show wallpaper in the background...

...for lockscreen sometimes and remains black / blank

Add some debug output to try to track down what is going on.

Change-Id: I98a96c5da9c04b988e948f6fc2766d927db49ebf
om/android/server/wm/WindowAnimator.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowToken.java
ca60ba1874a6537b42854b52cd766ebf1a8c8189 30-Oct-2012 Kenny Root <kroot@google.com> Merge "Move app-lib definition up for system app scanning" into jb-mr1-dev
7c258505ecfbf726c56814963bee798e74ff4cb4 29-Oct-2012 Amith Yamasani <yamasani@google.com> Merge "Fix for some downloaded apps showing up on all users" into jb-mr1-dev
584c4cdbf36681bee210bffecb81f7900fcfa1b6 29-Oct-2012 Kenny Root <kroot@google.com> Move app-lib definition up for system app scanning

System apps were getting the wrong path because app-lib directory was
defined after the scanning of packages.

Bug: 7425516
Change-Id: I7a7a6b2a74f846c84516440ee950099bdc564d0b
om/android/server/pm/PackageManagerService.java
269518e83efc01b387235d6194dcf93726e384ff 29-Oct-2012 Victoria Lease <violets@google.com> Revert "make FLP play nicely with multiuser"

This reverts commit e5601ce9bfa4effbddb84186f0fe1bfe4ad50301

Change-Id: Icd12f2d2c18f2eeeb2c367a885fb6d170ce426ae
om/android/server/LocationManagerService.java
99e88721a8bd19f04278e2fdccd224fc7ee705d4 29-Oct-2012 Jeff Brown <jeffbrown@google.com> Merge "Don't scale screen brightness by electron beam level." into jb-mr1-dev
356bd4cf2c6db38c61c79e81fd5d9d119d299b8d 27-Oct-2012 Jeff Brown <jeffbrown@google.com> Don't scale screen brightness by electron beam level.

This change removes the modulation of the screen brightness
by the electron beam level. The screen brightness remains
constant while the electron beam animation is playing.

Previously we were multiplying the screen brightness by the
electron beam level so as to animate both at the same time.
The problem is that when the screen brightness is already dim
to begin with, it may not be possible to see the electron beam
animation because the modulated screen brightness rapidly
converges on 0. This may manifest give the appearance of
an abrupt transition or a flash as the screen turns off.

Bug: 7387800
Change-Id: I27b90f0098bbdc3de1d66fad819548d1301405cd
om/android/server/power/DisplayPowerState.java
319c7e85019350e3a5f26c64803900b945130c3b 27-Oct-2012 Victoria Lease <violets@google.com> Merge "make FLP play nicely with multiuser" into jb-mr1-dev
f031f230f5e42613dab6b30431fac9b2839d68e6 27-Oct-2012 Amith Yamasani <yamasani@google.com> Fix for some downloaded apps showing up on all users

Bug: 7226656

In the case of packages with sharedUserId, the packages were inserted
into mPackages a little later. We were reading the package restrictions
before this happened and so the apps were being removed from the restricted
list, effectively setting installed=true.

Moved the block that reads the restrictions to after the processing of
mPendingPackages.

Also, don't setInstalled for all users in the pending packages processing.

Change-Id: I382787e45fecdb871d80ffb4d854782d8e32e4a7
om/android/server/pm/Settings.java
8a6f6a8ca9824891cc841d8c6ebd72a74c7d2580 27-Oct-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #7419050: Time is not getting updated after launching Clock" into jb-mr1-dev
084824548f9706db8356ed4480c282288ffc0bd0 27-Oct-2012 Amith Yamasani <yamasani@google.com> Merge "Fix the user name for the owner." into jb-mr1-dev
e5601ce9bfa4effbddb84186f0fe1bfe4ad50301 26-Oct-2012 Victoria Lease <violets@google.com> make FLP play nicely with multiuser

Frameworks' FusedLocationProvider runs as a specific user so that it
can join a specific process. The solution that works for NLP, run one
copy per user as that user, does not work for FLP.

To make FLP play nicely with multiuser, I've allowed SYSTEM_UID to
operate in the background and included a hardcoded exception to
prevent ServiceWatcher from trying to launch one FLP per user.

Bug: 7279799
Change-Id: I573ea5226d8d00777421b39c5c3fb0899bf09b4d
om/android/server/LocationManagerService.java
db5aca9aa6a3cb70c865e7f825a2826ccef5bb32 26-Oct-2012 Dianne Hackborn <hackbod@google.com> Fix issue #7419050: Time is not getting updated after launching Clock

Change-Id: Iaa8de2d3732bffd63fcd4fafba50955d1776611d
om/android/server/AlarmManagerService.java
6f34b411144a8202c96d05ff79e8040d3885643a 23-Oct-2012 Amith Yamasani <yamasani@google.com> Fix the user name for the owner.

Use a version number to update the name to Owner, from Primary.
For new installations, use the correct localized string.

Bug: 7417150

Fix a typo in the permission description.

Bug: 7333304
Change-Id: I123741e581c6a02d4597b3cd81f2ca48a8587e2a
om/android/server/pm/UserManagerService.java
92130f6407dc51c58b3b941d28a6daf4e04b8d62 25-Oct-2012 Jeff Brown <jeffbrown@google.com> Add MediaRouter API to get presentation display.

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

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

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

Bug: 7409073
Change-Id: Iab451215e570ae55f3718fc228303143c800fe51
om/android/server/display/DisplayDeviceInfo.java
om/android/server/display/HeadlessDisplayAdapter.java
om/android/server/display/LocalDisplayAdapter.java
om/android/server/display/LogicalDisplay.java
om/android/server/display/OverlayDisplayAdapter.java
om/android/server/display/WifiDisplayAdapter.java
7fd9882ba3e97423901e06188c6dbaaca661ecbd 25-Oct-2012 Svetoslav Ganov <svetoslavganov@google.com> Accessibility layer in inconsistent state after running UI test automation tests.

1. The accessibility layer has a back door for a UI test automation code running
from the shell to attach. The unregister code does an incorrect identity check
and as a result the register UI test automation service is not disconnected
until its process is killed. The fix is super safe and simple.

bug:7409261

Change-Id: I4b1da18be6c5619dadd4a58fca6724529bc59dea
om/android/server/accessibility/AccessibilityManagerService.java
900e0ba5163bd03becf49922dfdfad07460716f0 24-Oct-2012 Jeff Brown <jeffbrown@google.com> Merge "Dim the screen quickly in response to user activity timeout." into jb-mr1-dev
5244c93176497f7c151f85a46e46b534379603bc 24-Oct-2012 Jeff Brown <jeffbrown@google.com> Dim the screen quickly in response to user activity timeout.

Reverts a previous change that made the screen dim slowly instead.
The quick transition does a better job of attracting the user's
attention to the fact that the screen is about to turn off
unless the user touches the screen.

Bug: 7386034
Change-Id: I81e4d8939f6791b96352004984a9e5b2aab79788
om/android/server/power/DisplayPowerController.java
cd668554417f089aa0ae013a29ab81864b4b4685 24-Oct-2012 Amith Yamasani <yamasani@google.com> Merge "Fix a crash in InputMethodManagerService due to permission failure." into jb-mr1-dev
acf5943c44d34845386afe7946aed086f8b3e87e 24-Oct-2012 Christopher Tate <ctate@google.com> Merge "Fix the Backup Manager's uninstall tracking" into jb-mr1-dev
1202c43685c475158a773d03d70effa01b6bb4ff 24-Oct-2012 Jeff Brown <jeffbrown@google.com> Merge "Secure windows, secure surface views and secure displays." into jb-mr1-dev
8e080d7e10dd17662750605538a9799af66494e9 24-Oct-2012 Zhihai Xu <zhihaixu@google.com> Merge "License of files Bluetooth package is not updated to ASL2" into jb-mr1-dev
ecf4725ef4e753a2ef08205c922391753eb3803f 24-Oct-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #7401818: Wrong transition animation when clearing task" into jb-mr1-dev
f043de93ebb5178fb4b5c8f14e143c6f08bcc26f 24-Oct-2012 Amith Yamasani <yamasani@google.com> Fix a crash in InputMethodManagerService due to permission failure.

Clear calling identity before sending broadcast to the current user.

Bug: 7403829
Change-Id: If2b27d07d917b892470163e1303883b29a86c0e4
om/android/server/InputMethodManagerService.java
799916e6ac706921e43a3382e5d9e06e13f87525 24-Oct-2012 Dave Burke <daveburke@google.com> Merge "Revert "Check non-primary user dirs during package scan"" into jb-mr1-dev
383fa18b511c195cc51a96c5504442bfec998e9f 24-Oct-2012 Dave Burke <daveburke@google.com> Revert "Check non-primary user dirs during package scan"

This reverts commit 4525f5b69cb44a9a0c92f9c525fc47541f456621

Change-Id: I31b7a0860972532478ab3420556b806bfa78739a
om/android/server/pm/Installer.java
om/android/server/pm/PackageManagerService.java
f0681b34dffc1510cbd9c3da5c3a7e695553fa8d 24-Oct-2012 Jeff Brown <jeffbrown@google.com> Secure windows, secure surface views and secure displays.

Add new API to determine whether a display is secure.
Add new API to make a SurfaceView secure.
Clarify documentation.

Bug: 7368436
Change-Id: I7068c34c910e43b4bc72e43fa0dded59a25f0fe2
om/android/server/display/LocalDisplayAdapter.java
om/android/server/display/LogicalDisplay.java
om/android/server/display/WifiDisplayAdapter.java
9622ca4f8870f4e66ecb3ad771410620c950bb5c 24-Oct-2012 Dianne Hackborn <hackbod@google.com> Fix issue #7401818: Wrong transition animation when clearing task

When we are clearing activities off the top of a task, propagate
any activity options down from the top-most one to whatever top
activity we are keeping. This ensures that if we set the activity
options on the top activity of the task previously to give it the
correct animation, we still keep that animation for the activity
that really ends up being the top.

Change-Id: I6919b644a530ac283fe4d320496edc2bf72aa04e
om/android/server/am/ActivityRecord.java
om/android/server/am/ActivityStack.java
92bc9b3196907a76d4b73c3f361d41c14dfd7f5c 24-Oct-2012 Kenny Root <kroot@google.com> PMS: check outInfo for null during delete

It appears that changing an application's signature during boot can pass
an outInfo of null to this function.

Bug: 7402550
Change-Id: I839fea6c8ee728a352c6b906f0fa6671c85f8694
om/android/server/pm/PackageManagerService.java
56e75631bd737e5362309330d4839cc1dddb501c 24-Oct-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #7342364: JellyBean broke Toddler Lock, again" into jb-mr1-dev
fa0fd39a4bf296d254aa398c1b19ec960efa641d 24-Oct-2012 Zhihai Xu <zhihaixu@google.com> License of files Bluetooth package is not updated to ASL2

bug 7385618

Change-Id: I6232f537f4fda979d3aabe3a059c11d3299de9b8
om/android/server/BluetoothManagerService.java
da2509c434ebb2a5a0da1bc270cae7f007cbb0f9 24-Oct-2012 Kenny Root <kroot@google.com> Merge "Check non-primary user dirs during package scan" into jb-mr1-dev
e82f68d0164fa12a36da5ae9c839ab292224c384 24-Oct-2012 Christopher Tate <ctate@google.com> Fix the Backup Manager's uninstall tracking

The bug was that when an app was uninstalled, the Backup Manager was
discarding its bookkeeping about that app being represented in the
device's current live backup dataset. This in turn meant that if the
app was subsequently reinstalled, its data would not be restored from
that most-recent dataset: it would be restored from the *ancestral*
dataset if possible, or not at all.

Now the "ever backed up" state is retained correctly, and the app
will get its most-recent-data restored as expected.

Bug 7394519

Change-Id: I733cf41737765676e0a3a05fb1bcd32b165cb4ba
om/android/server/BackupManagerService.java
77119bc6c90a62beb2f83d9496d99199a7aefe14 23-Oct-2012 Dianne Hackborn <hackbod@google.com> Fix issue #7342364: JellyBean broke Toddler Lock, again

Change-Id: I400c02711edc302a1bc7fbf98b62fcb9f76e5e12
om/android/server/pm/PackageManagerService.java
om/android/server/wm/WindowManagerService.java
6fd394ae799cc81e3b571773819ee99374a25158 23-Oct-2012 Jeff Brown <jeffbrown@google.com> Merge "Improve auto-brightness hysteresis." into jb-mr1-dev
e941b1e27f6aad8a351c3caa3e0ad5f53dbf3707 23-Oct-2012 Jeff Brown <jeffbrown@google.com> Improve auto-brightness hysteresis.

Reintroduced the stability time heuristic which requires brightness
to remain significantly above or below the currently accepted
ambient brightnes before effecting a brightness change. The
heuristic has the nice property of preventing light sensor noise
from causing oscillations in brightness even when the noise has
a relatively large magnitude (such as in low light environments).

The time bound and filter thresholds are current set so that
brightness increases typically occur within 5 seconds of a change
in the ambient environment. Decreases take somewhat longer and
typically occur within 10 seconds.

Changed the timing for brightness animations when the screen is
being dimmed due to a pending user activity timeout. The screen
now dims slowly but then brightens rapidly when touched.
Previously the screen dimmed quickly and brightened slowly which
felt somewhat unresponsive.

Fixed a problem where a brightness change might not occur because
the light sensor had not reported a new value in a long time.
Now we synthesize measurements when needed to ensure that a
transition will take place if appropriate.

Bug: 7387800
Change-Id: I998df2fec59922042a41a1ba4af97ea52c0bd02a
om/android/server/power/DisplayPowerController.java
4525f5b69cb44a9a0c92f9c525fc47541f456621 22-Oct-2012 Kenny Root <kroot@google.com> Check non-primary user dirs during package scan

During package scan, only the primary user data directories were
checked. If the secondary user didn't have an application directory, it
would happily ignore it. The app would then crash upon startup.

Bug: 7391882
Change-Id: I1fa92aa27386104d4ac6bc5dc92bfbf2e7dfac9f
om/android/server/pm/Installer.java
om/android/server/pm/PackageManagerService.java
034b386ccfc42bc9b44e728bb39959c81b1d2e8c 22-Oct-2012 Colin Cross <ccross@android.com> Merge "Add ro.revision property to checkin headers" into jb-mr1-dev
8b2c916a8dc2370ce700a577d999f1a0fd848735 22-Oct-2012 Colin Cross <ccross@android.com> Add ro.revision property to checkin headers

Early hardware revisions often have known issues. Add the ro.revision
property to the header for the checkin reports so known issues can
be easily filtered.

Change-Id: I337b09ddfa41ebbe7f8f56223392b0bd491f897b
om/android/server/BootReceiver.java
23d622418b5c67dc43faabd930d1c59c5ce34f6a 22-Oct-2012 Jamie Gennis <jgennis@google.com> Merge "Set the secureness when creating displays" into jb-mr1-dev
cd75706117432e33d11639e675bcff50479a6bb9 20-Oct-2012 Amith Yamasani <yamasani@google.com> System server should always send broadcasts to a specific or all users

Bug: 7368245

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

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

Change-Id: I17f15c8be9adf7becd456d6abbab606f19befdbf
om/android/server/BackupManagerService.java
om/android/server/InputMethodManagerService.java
om/android/server/SystemServer.java
om/android/server/dreams/DreamController.java
d6e3ad54907ec085aa41e5c77296e9f385c22e67 22-Oct-2012 Jeff Brown <jeffbrown@google.com> Merge "Reduce screen on/off latency." into jb-mr1-dev
f584f1112772fdffce13cba38995b9e28adca191 22-Oct-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #7353900: Brief flash of home screen while dream starts on lock screen." into jb-mr1-dev
8074e98b20ac04fdc032a1ed00dd6763b7e04147 21-Oct-2012 Amith Yamasani <yamasani@google.com> Merge "Fix crashes when quickly adding and removing users" into jb-mr1-dev
7bbf8163fb83afc54b353a8def52bfb87ecce047 20-Oct-2012 Jamie Gennis <jgennis@google.com> Set the secureness when creating displays

This change makes use of the new 'secure' argument to the
ISurfaceComposer::createDisplay method. In this change both the overlay and
wifi displays are hard-coded to be non-secure displays.

Bug: 7368436
Change-Id: Ib65312f2adab5104d8deefbfc32af9dc106a9129
om/android/server/display/OverlayDisplayAdapter.java
om/android/server/display/WifiDisplayAdapter.java
32dafe25ac2e06f127f48d6a5826537e11575f52 20-Oct-2012 Jeff Brown <jeffbrown@google.com> Reduce screen on/off latency.

Reduce latency of screen on/off and improve how it is synchronized with
backlight changes. Screen state changes are no longer posted to vsync
which should save time. What's more, the state change occurs on a
separate thread so we no longer run the risk of blocking the Looper
for a long time while waiting for the screen to turn on or off.

Bug: 7382919
Bug: 7139924
Change-Id: I375950d1b07e22fcb94efb82892fd817e2f780dc
om/android/server/power/DisplayPowerController.java
om/android/server/power/DisplayPowerState.java
om/android/server/power/PhotonicModulator.java
om/android/server/power/PowerManagerService.java
7ad4438414de7b2d4e44798877df1700764c4472 19-Oct-2012 Dianne Hackborn <hackbod@google.com> Fix issue #7353900: Brief flash of home screen while dream starts on lock screen.

Not very clean, this has a special hack in the window manager to
redo layout when a dream window is shown. After MR1 we should clean
this up (and the various other special dream hacks).

Change-Id: Ic1a5a2b10a0a07b4a5dccdbf0736b614ec06dd4a
om/android/server/wm/WindowManagerService.java
9bef3294d3660a85442829a25c9777e25d3c3cc8 20-Oct-2012 Kenny Root <kroot@google.com> Merge changes Ie3c8ca8d,Ia175b36d into jb-mr1-dev

* changes:
Try to free cache before giving up on install
Robustly add symlink and add for non-primary users
db6a14cc85cede0769735fdac4da70766989a3ce 18-Oct-2012 Amith Yamasani <yamasani@google.com> Fix crashes when quickly adding and removing users

Make USER_REMOVED an ordered broadcast and send it before the user's
state is completely removed from the system. This gives services the
opportunity to clean up their state, while still having access to the
user's directory and UserInfo object (such as serial number).

Tell SyncManager to skip over dying/partially created users.

Improve UserManager tests, waiting for users to be removed fully.

Bug: 7382252

Change-Id: I93cfb39c9efe6f15087bf83c569a2d154ef27168
om/android/server/pm/PackageManagerService.java
om/android/server/pm/UserManagerService.java
9823723d0f0bb47dfd3a6b251d7155dc1eb0918b 19-Oct-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Cannot pan in browser if magnification is enabled." into jb-mr1-dev
8c82025650fdbcb2a80be03f8be6dbff430b678c 19-Oct-2012 John Spurlock <jspurlock@google.com> Merge "Frameworks base: Promote dream setting defaults to config." into jb-mr1-dev
0ed07a0a30ef71053d0426956d3c198bb7540d4e 19-Oct-2012 Craig Mautner <cmautner@google.com> Merge "Allow getDisplayContentLocked to return null..." into jb-mr1-dev
ed108f3d125b0a4cc465057e3514caf781cdea19 18-Oct-2012 John Spurlock <jspurlock@google.com> Frameworks base: Promote dream setting defaults to config.

So that:
- the values can be shared (to fix assoc bug)
- the values can be customized in product overlays

Bug:7373284
Change-Id: I37f037082523a3d975f6014f36afa28c60117372
om/android/server/SystemServer.java
om/android/server/power/PowerManagerService.java
738cfc91053fc888397ec2d139e0798f8c95b3ca 19-Oct-2012 Michael Jurka <mikejurka@google.com> Fixing wallpaper flash when going in/out of Recents

Bug: 7372516
Bug: 7216872

Change-Id: I2a2308a85caf9f2ad2d382c709e5f8867bd060be
om/android/server/wm/WindowManagerService.java
ff6c329f61ea4f00d9cbbe55387adbc2050f4679 19-Oct-2012 Svetoslav Ganov <svetoslavganov@google.com> Cannot pan in browser if magnification is enabled.

1. We cache some events to see if the user wants to trigger magnification. If no
magnification is triggered we inject these events with adjusted time and down
time to prevent subsequent transformations being confused by stale events.
After the cached events, which always have a down, are injected we need to also
update the down time of all subsequent non cached events.

bug:7379388

Change-Id: I41d8b831cc1016a0ee8f9c5ef5f42eb60a6f64d9
om/android/server/accessibility/ScreenMagnifier.java
1d2b445d7431420b7cfbd9ef3fe4e326e121eeae 19-Oct-2012 Jeff Brown <jeffbrown@google.com> Merge "Reduce auto-brightness jitter." into jb-mr1-dev
5831159b8d4cf85fa46e2c4cb8e7d9f750014d6f 19-Oct-2012 Jeff Sharkey <jsharkey@android.com> Merge "More migration to Global settings." into jb-mr1-dev
ce78b026179bc041bce9c9e2d8b63b79a97cbf67 19-Oct-2012 Jeff Brown <jeffbrown@google.com> Merge "Fix deadlock." into jb-mr1-dev
4f0e969eabc336f6dfa31c6218efc1b3dec55139 19-Oct-2012 Jeff Brown <jeffbrown@google.com> Reduce auto-brightness jitter.

Apply additional hysteresis controls to prevent repeated brightness
changes within a short interval.

Bug: 7266090
Change-Id: I73122457f6f3200c80188d3716ce2baf38f6a0a6
om/android/server/power/DisplayPowerController.java
om/android/server/power/PhotonicModulator.java
66692500344cab2f53cdb6ee1545c567fff7cb16 19-Oct-2012 Jeff Brown <jeffbrown@google.com> Fix deadlock.

The display manager must never call into the activity manager with
its lock held. Make it clear that the adapters are constructed
while holding the syncroot lock.

Bug: 7377631
Change-Id: I1557313cbb31dcad9b5a46919a88a5a1c1af3e9b
om/android/server/display/DisplayAdapter.java
om/android/server/display/HeadlessDisplayAdapter.java
om/android/server/display/LocalDisplayAdapter.java
om/android/server/display/OverlayDisplayAdapter.java
om/android/server/display/WifiDisplayAdapter.java
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
om/android/server/pm/PackageManagerService.java
8d9a1f66d9d3dbbd45a56d441a746ec11dba7645 19-Oct-2012 Jeff Sharkey <jsharkey@android.com> More migration to Global settings.

Bug: 7375796
Change-Id: I3954ce141ad30073896090a28eee743ba15fd736
om/android/server/am/ActivityManagerService.java
a3e90798b7ad3ed62e5b31842c699b2f98bd457b 18-Oct-2012 Kenny Root <kroot@google.com> Robustly add symlink and add for non-primary users

Amazingly, some apps still don't use the nativeLibraryPath. So add a lib
symlink for non-primary users to fix that.

Also, there was an error when the symlink existed that it would give up.
This shouldn't really happen, but in that case, just remove it and
create a new one to be safe.

Also, move the downgrade code to the appropriate place. This downgrade
case triggered the above symlink existing bug.

Bug: 7318366
Bug: 7371571
Change-Id: Ia175b36d98f00bdc2f2433b909aafd524eb34d15
om/android/server/pm/Installer.java
om/android/server/pm/PackageManagerService.java
80ce3d8746e9bb727ebf37a8963b96be84d82413 19-Oct-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Magnifier not respecting RTL/LTR direction and keyguard dialogs not properly centered." into jb-mr1-dev
be2a4a5e629b31071a160d57188219d6a76011fa 18-Oct-2012 Craig Mautner <cmautner@google.com> Merge "When removing windows remove from resize list." into jb-mr1-dev
2d5618c22101cfc4d6478cfe1d846798389540c1 18-Oct-2012 Craig Mautner <cmautner@google.com> Allow getDisplayContentLocked to return null...

... and check for null returns. This prevents DisplayContent objects
from containing null Display references.

Bug: 7368565 fixed.
Change-Id: I830fb4c1349204c366193657a95a92c48ccee66c
om/android/server/wm/DisplayContent.java
om/android/server/wm/DragState.java
om/android/server/wm/WindowManagerService.java
e09aed49e3498c9e0f3545ab97f816233d5eac66 18-Oct-2012 Jeff Hamilton <jham@android.com> Merge "Changes to support updating location providers." into jb-mr1-dev
444e8aabc12994316315688cc3674a432424adb9 18-Oct-2012 Svetoslav Ganov <svetoslavganov@google.com> Magnifier not respecting RTL/LTR direction and keyguard dialogs not properly centered.

1. When magnifier, if a dialog that popped up is wider than the scree we pan to its upper
left corner. We now show the upper right corner if the locale direction is RTL.

2. Keyguard dialogs are not centered since they are used as a sign to recompute the
magnified area but an unnecessary else statement prevents such dialogs from being
properly show via a pan.

bug:7374331

Change-Id: I285e46b822a29f0082c502cb642f9da32dabfe6a
om/android/server/accessibility/ScreenMagnifier.java
1ea75b88b7ac4273b7a5395c5c57c6453d6cd3d1 18-Oct-2012 Christopher Tate <ctate@google.com> Merge "Sanity-check erroneous backup agent instantiations" into jb-mr1-dev
588fb15d16118b848c2d76497861b0e86846486b 18-Oct-2012 Victoria Lease <violets@google.com> Merge "LocationManager permissions cleanup" into jb-mr1-dev
0141faecc3b4a1cb771f38495d42c56eb6852fa8 18-Oct-2012 Amith Yamasani <yamasani@google.com> Merge "Allow services to query the info for a dying user." into jb-mr1-dev
860f660a0f891b44a9f61558d75119184bafa9e3 18-Oct-2012 Craig Mautner <cmautner@google.com> When removing windows remove from resize list.

Windows remained in the resized list if they were removed during
rotations.

Bug: 7372289 fixed.
Change-Id: I41f949b7836b08b33d4d178e9aa016548328749a
om/android/server/wm/WindowManagerService.java
37425c3475877f2fdadb78f669ec57fecf82dca7 17-Oct-2012 Victoria Lease <violets@google.com> LocationManager permissions cleanup

This commit is the result of a comprehensive permissions review for
MR1 release. It addresses a number of deviations from spec and from
MR0's behavior, bringing MR1 into sync with both.

It also cleans up the concept of "location resolution permission",
representing it internally as an enumerated access level to reduce
reliance on cumbersome string manipulation. There's a function to
convert the enum int into a permission string where needed, too.

Additionally, this confines caller-identity-sensitive calls to the
hopefully-obviously-named "getCallerAllowedResolutionLevel()". This
should make it much easier to prove correctness with respect to
accidentally calling functions that depend upon the caller's identity
after identity has already been shed by Binder.clearCallingIdentity().

Change-Id: I446169aee8fb2fde26ac6d04b479b40253782acb
om/android/server/LocationManagerService.java
88c66cbb00a572ac8280f0e0ea38079d48ec59f3 18-Oct-2012 Jeff Brown <jeffbrown@google.com> Merge "Dream when user activity times out while docked if appropriate." into jb-mr1-dev
586503d51fbcc622af62b43b25579ce2f299d68b 18-Oct-2012 Jeff Brown <jeffbrown@google.com> Merge "Add special mirroring modes for demonstration purposes." into jb-mr1-dev
fbadb69978be578cea9d2bf038de7c79b0787e4f 05-Oct-2012 Jeff Hamilton <jham@android.com> Changes to support updating location providers.

This reverts commit 20de160ca32a8f2936a80ffd70551a22e2371d25.

Bug: 7242814
Change-Id: I9ec49a14feb835b6683186fc6da4a74ae19fbae2
om/android/server/LocationManagerService.java
om/android/server/ServiceWatcher.java
1638931166b7b5571886a8fe6d413ea90d4194b5 18-Oct-2012 Amith Yamasani <yamasani@google.com> Allow services to query the info for a dying user.

This allows services watching for USER_REMOVED to fetch the serialNumber of a dying user.

Also fix an AIOOBE when building the userId array, typically on cleanup.

Bug: 7368826
Change-Id: I24e52278af8353b5744372127da4bf4fafc89baa
om/android/server/pm/UserManagerService.java
ec6aa5945408ce97034d24e1ba5d80bed88cebf4 18-Oct-2012 Jeff Brown <jeffbrown@google.com> Dream when user activity times out while docked if appropriate.

If the user has requested that dreams start when docked and a user
activity timeout occurs, then start dreaming assuming all of the
other usual conditions are appropriate for dreaming (the device is
powered, etc.).

Previously dreams only started when the device was initial docked
but not if the device fell asleep while remaining docked.

Bug: 7281240
Change-Id: I72c3f854fd1ae8e6615f4fa6e4c4ecd8de37c84b
om/android/server/power/PowerManagerService.java
23fa0320b88bd2141742d47eaf2626369cb03b22 18-Oct-2012 Jeff Brown <jeffbrown@google.com> Merge "Add a notification icon when connected to wireless display." into jb-mr1-dev
27f1d674bf9fb53af7facdcb746912e036d5bf75 18-Oct-2012 Jeff Brown <jeffbrown@google.com> Add special mirroring modes for demonstration purposes.

Assume rotation of HDMI display is portait.
$ adb shell setprop persist.demo.hdmirotation portrait

Don't lock rotation while HDMI is plugged in.
$ adb shell setprop persist.demo.hdmirotationlock false

Hide secondary displays from apps but continue mirroring to them.
$ adb shell setprop persist.demo.singledisplay true

Bug: 7326281
Change-Id: I8f9a3b0bc19821a3a01043b0f516806dac82ce53
om/android/server/display/DisplayDeviceInfo.java
om/android/server/display/DisplayManagerService.java
om/android/server/display/LocalDisplayAdapter.java
om/android/server/display/LogicalDisplay.java
a7f9c966bc90e52baaf0cf0c165463e5f44354c5 18-Oct-2012 Jeff Brown <jeffbrown@google.com> Add a notification icon when connected to wireless display.

Bug: 7350174
Change-Id: I18481e2a1445b0aa3340e5d9b02511394521e50e
om/android/server/display/WifiDisplayAdapter.java
346acb123dd87396726941b484be6fdd5cd4ea44 16-Oct-2012 Christopher Tate <ctate@google.com> Sanity-check erroneous backup agent instantiations

Two distinct changes:

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

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

Bug 5874010

Change-Id: Ic389f4a96c9dcd0ba6b3962b579084033d8ae9f8
om/android/server/BackupManagerService.java
om/android/server/am/ActivityManagerService.java
b6c171b1afa871aa092dd2ec2ed25f48275ef194 17-Oct-2012 Amith Yamasani <yamasani@google.com> Merge "Do cleanup when Stopping users" into jb-mr1-dev
05ad745ff63ed3bcdb86d42290ddc2ee214fe90f 17-Oct-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Long press not working if explore by touch and magnification are on." into jb-mr1-dev
e13ae648504661ca158d15aa415568e351b380c4 17-Oct-2012 Craig Mautner <cmautner@google.com> Merge "Use parent window to evaluate show-to-all-users." into jb-mr1-dev
72e351296046d61ecc5863da2faca0ab4ba0fd62 17-Oct-2012 Svetoslav Ganov <svetoslavganov@google.com> Long press not working if explore by touch and magnification are on.

1. In the magnifier we are caching the touch events until we figure
out whether the user is triple tapping to enable magnification.
If the user is not trying to engage magnification we deliver the
stashed events. However, these events are stale and the subsequent
transformations such as the touch explorer get confused when trying
to detect a tap since the delay is longer than the tap slop.
This change compensates for the time the events were cached
before sending them to the next transformation in the chain.

bug:7362365

Change-Id: Idd8539ffed7ba4892c5a916bd34910fd2ef50f75
om/android/server/accessibility/ScreenMagnifier.java
de5c3a04517bba3adacd8c6eb2b365cf93c73a69 17-Oct-2012 Laurent Tu <laurentt@google.com> Merge "Handle unknown case in LocationManager.getProvider" into jb-mr1-dev
645b05a6e47ee7052b12a8b4e916d311f4e59e99 17-Oct-2012 Jeff Brown <jeffbrown@google.com> Merge "Blank all displays including Wifi Display when screen is off." into jb-mr1-dev
8ec0943a7963178da838e4b6b842ec1109707b35 17-Oct-2012 Jeff Brown <jeffbrown@google.com> Blank all displays including Wifi Display when screen is off.

Calling blank() on Surface Flinger to turn the screen off is not
enough to ensure that the content is blanked to all virtual displays.
What's more, the black surface left in place by the ElectronBeam may
not completely hide the content (particularly if the display orientation
changes). To fix this for real, we'll want to move the display power
management code from the power manager into the display manager
but we don't have time for that.

As a work around, force all displays to show an empty layer stack
with no surfaces on it while blanked.

Bug: 7311959
Change-Id: I870c985f9e76f3f2322e5d83cdbbed9ed15b9f10
om/android/server/display/DisplayManagerService.java
om/android/server/display/LogicalDisplay.java
341220fd099b2e74ac605d417f274537dc4bc749 17-Oct-2012 Craig Mautner <cmautner@google.com> Use parent window to evaluate show-to-all-users.

When a window is attached to another window use the parent window's
attributes to determine whether the child window should be shown
to all users.

Bug: 7328633 fixed.
Change-Id: I9601c149af87f624378e6895063bb3179d4f845e
om/android/server/wm/WindowState.java
b7f9d254978b285bf04613f6e69a1afa89240ca9 16-Oct-2012 Laurent Tu <laurentt@google.com> Handle unknown case in LocationManager.getProvider

If a provider is unknown, return null in
LocationManagerService.getProviderProperties() instead of throwing a
security exception, so that LocationManager.getProvider() returns null
in this case, as specified by the javadoc.

Bug: 7359960
Change-Id: I1b8b74745f66717a3439a1d353a46a23272cc313
om/android/server/LocationManagerService.java
964629aca8d076826198a21b654ed858618b5619 16-Oct-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Occasionally triple tap on the keyboard toggles screen magnification." into jb-mr1-dev
dc9e13b30ab26f8382b7e67dd681dee9b04bdb29 16-Oct-2012 Craig Mautner <cmautner@google.com> Merge "Perform all layouts within first loop." into jb-mr1-dev
417b05912a2eb960d59541d546d1e857f95d906b 16-Oct-2012 Craig Mautner <cmautner@google.com> Merge "Revert app freeze timeout delay." into jb-mr1-dev
a13a41dc0ed049319c3a6b51d1f35b0b1c20d81b 16-Oct-2012 Craig Mautner <cmautner@google.com> Perform all layouts within first loop.

Do not begin animation while layout requests are still
outstanding.

Bug: 7333622 fixed.
Change-Id: I77c2cdc123c1e26f9661feade0d9a1843c75d5f6
om/android/server/wm/WindowManagerService.java
55468c64bc4f3c4b16bf144f66907d75bb656b0a 16-Oct-2012 Svetoslav Ganov <svetoslavganov@google.com> Occasionally triple tap on the keyboard toggles screen magnification.

1. Sometimes unlocking the device when the IME is up and triple tapping on the keyboard
toggles screen magnification. The core reason is that when the kayguard window is
shown we hide all other windows and when it is hidden we show these windows. We did
not notify the screen magnifier for windows being shown and hidden. Also when the
windows are shown we may reassign layers to put the IME or the wallpaper in the
right Z order. The screen magnifier is now notified upon such layer reassignment
since window layers are used when computing the magnified region.

bug:7351531

Change-Id: I0931f4ba6cfa565d8eb1e3c432268ba1818feea6
om/android/server/accessibility/ScreenMagnifier.java
om/android/server/wm/WindowManagerService.java
a4942c9fb9cc224bcb1a0a53dcacd13848819951 16-Oct-2012 Craig Mautner <cmautner@google.com> Revert app freeze timeout delay.

Speed up of wallpaper loading on Manta means this workaround is no
longer necessary.

Bug 7354440 fixed.

Change-Id: Ic0ad3c689abb5342fb29c824857db9d5c2d45008
om/android/server/wm/WindowManagerService.java
1f0752993ffd4339cdf0e7d69b96093503bd2e24 16-Oct-2012 Daniel Sandler <dsandler@android.com> Merge "Allow any user to clear a notification targeted at USER_ALL." into jb-mr1-dev
f6dbd61b108e586c1db3e61cbfc07d4d750027c0 16-Oct-2012 Craig Mautner <cmautner@google.com> Merge "Always layout Keyguard on config change." into jb-mr1-dev
809bb404da66498f1723279542d2a7d1f4512052 16-Oct-2012 Jamie Gennis <jgennis@google.com> Merge "Flag window animation transactions as animations." into jb-mr1-dev
b6ce6e42cc89864354c7ecb9ae80504a6c9dddcf 16-Oct-2012 Jamie Gennis <jgennis@google.com> Flag window animation transactions as animations.

This change makes WindowManager use the new eAnimation flag when animating
windows. This prevents some of the window updates from being combined with
updates from prior animation frames.

Bug: 7353840
Change-Id: I5a9f8fa2c1a2f5f08363a45cd9f28bb97cd77080
om/android/server/wm/WindowAnimator.java
0e082155ef2d7390d7befc139a788d3def94fecc 16-Oct-2012 Jeff Brown <jeffbrown@google.com> Merge "Stop dreaming if the battery not charging effectively." into jb-mr1-dev
322de606574f45d1a4335b515369ce27c74d2b6b 16-Oct-2012 Jeff Brown <jeffbrown@google.com> Merge "Cleanup some internal documentation." into jb-mr1-dev
df409231a75c8b2ae976af66c0baec99b280aa33 16-Oct-2012 Jeff Brown <jeffbrown@google.com> Merge "Update wifi display device name when renamed." into jb-mr1-dev
756901d82b41f50610a63b7cf4c7747a70f1f724 12-Oct-2012 Amith Yamasani <yamasani@google.com> Do cleanup when Stopping users

Mark user 0 as initialized, otherwise it will show up as
uninitialized when viewed from secondary user if never switched to user 0.

Bug: 7301595

Also clean up any users that were in the process of being removed, if device
crashes at a bad time.

Change-Id: Ic16a6c9ccb6a64b7463725f6cc279335a821fcd5
om/android/server/AppWidgetService.java
om/android/server/AppWidgetServiceImpl.java
om/android/server/WallpaperManagerService.java
om/android/server/pm/UserManagerService.java
016ff14f12900a12499a434b297b2192b62ff2da 16-Oct-2012 Jeff Brown <jeffbrown@google.com> Stop dreaming if the battery not charging effectively.

If the user activity timeout expired and the battery appears
to be draining faster than it is charging then stop dreaming
and go to sleep.

Bug: 7312455
Change-Id: I1b9d89e5b2647c72c455d2792e3778a2fe6a4e34
om/android/server/power/PowerManagerService.java
ab887a09ad1a0e82d848a91c49449538377f075d 16-Oct-2012 Jeff Brown <jeffbrown@google.com> Cleanup some internal documentation.

Bug: 7312455
Change-Id: Idefd71f2e9d1abe1b2671dac9702edf7f5fbc118
om/android/server/power/PowerManagerService.java
3f840c8c3c1c53f046f6d187b2d3c4120b8d8afe 16-Oct-2012 Victoria Lease <violets@google.com> Merge "fix crashing apps" into jb-mr1-dev
ee4f029ff4905abbdbc1ce47db2cf2c3510949e9 16-Oct-2012 Jeff Brown <jeffbrown@google.com> Update wifi display device name when renamed.

Bug: 7340725
Change-Id: Ia3835a37fa3800371920f863b82f992efe764664
om/android/server/display/WifiDisplayAdapter.java
da479c5f8c9675dc11b3d6c4024749064d54bb67 16-Oct-2012 Victoria Lease <violets@google.com> fix crashing apps

Bug: 7349330
Change-Id: Iea61bce23cb197c7a28d574098253823df73a99b
om/android/server/LocationManagerService.java
532c9c4543135463ee1f39b282d3156a3e226d50 15-Oct-2012 Jeff Sharkey <jsharkey@android.com> Merge "Protect more service dump() methods." into jb-mr1-dev
a3f4bf531f64c49b6a792368b3e5628fe7cc0e5c 11-Oct-2012 Craig Mautner <cmautner@google.com> Always layout Keyguard on config change.

Add Keyguard to list of windows that can't be hidden by keyguard.

Don't assign Configuration to window until layout has had a chance
to compare it to window's existing Configuration.

Bug: 7094175
Change-Id: I99a9fd4af9a31871fe130db7b6bdf49bd51a6092
om/android/server/wm/WindowManagerService.java
321e9c562b9146cf936b3d1ec2f9317e98edd5fe 12-Oct-2012 Daniel Sandler <dsandler@android.com> Allow any user to clear a notification targeted at USER_ALL.

This also adds the userid to notification_* eventlogs.

Bug: 7325802
Change-Id: I48055caf1344acd58b61607bf0be38cc299fc7be
om/android/server/EventLogTags.logtags
om/android/server/NotificationManagerService.java
a30d969401a8533a5a341664421ba9b1e150bac3 15-Oct-2012 Robert Greenwalt <rgreenwalt@google.com> Merge "Monitor the right interface re VPN" into jb-mr1-dev
52801aae89196b7ad16ef21b07d2d621e7d0bb61 13-Oct-2012 Jeff Sharkey <jsharkey@android.com> Protect more service dump() methods.

Bug: 6406965
Change-Id: Ia45a580c1e6f403308e7e540f18f2c0505af0f29
om/android/server/AppWidgetService.java
53c04bdd35a85aa65d1a1f18ca2ee34970e2c2d0 13-Oct-2012 Robert Greenwalt <rgreenwalt@google.com> Monitor the right interface re VPN

Must remember the outer interface - undoes a change from a
couple months ago that broke things.

bug:7336302
Change-Id: Ia4f60862c60f3078853e151980e09cbf22a57222
om/android/server/connectivity/Vpn.java
861a3b2d4f2090d23cc5e135890a0faf091b9e12 13-Oct-2012 Dianne Hackborn <hackbod@google.com> Revert fix to issue #6880627: PendingIntent.getService() returns...

...stale intent of force stopped app

Fixing this caused other problems elsewhere that we don't have time
to address at this point.

Fixes issue #7338275: Tapping clock home screen widget doesn't open
alarms anymore

Change-Id: Iedc1fae5f62b6ead28d1895d709591358e5d6634
om/android/server/am/ActivityManagerService.java
810df8951eb4bbe77f150483208f04daadac5dd9 12-Oct-2012 Jeff Sharkey <jsharkey@android.com> Merge "Return ApplicationInfo with requested userId." into jb-mr1-dev
3da6c219a8b1acebbfd8a56ee31b5d91d0425dc4 12-Oct-2012 Jeff Brown <jeffbrown@google.com> Merge "Do not launch Somnambulator as a dock app." into jb-mr1-dev
11159e9a785a143c9f3765bdf5a5ccfd77842d7a 12-Oct-2012 Jeff Brown <jeffbrown@google.com> Do not launch Somnambulator as a dock app.

Fixes a black flash that occurred when the device was docked
because the UiModeManagerService was launching the Somnambulator
to start the dream when docked. This caused an unnecessary
activity transition and could in fact make dreaming less
reliable than if the UiModeManagerService started the dream itself.

Moved common code from UiModeManagerService and Somnambulator
to Sandman to ensure it is kept in sync.

Bug: 7328545
Change-Id: I46102784e2ab1acc0241d43a48abf0581278af24
om/android/server/UiModeManagerService.java
38f8688baeb0f610a47c17bb7810349502d62ab6 12-Oct-2012 Jeff Sharkey <jsharkey@android.com> Return ApplicationInfo with requested userId.

Return ApplicationInfo with requested userId instead of trying to
infer it from calling UID.

Bug: 7334712
Change-Id: I9ce0061e2d020b0d74c7c9cd22d89c5ff2466a6c
om/android/server/pm/PackageManagerService.java
4cce397c0dab44cf7b1b657d0e5410b5970eef55 11-Oct-2012 Winson Chung <winsonc@google.com> Merge "Letting partial update fall through if the widget has not received a full update yet. (Bug 7214731)" into jb-mr1-dev
2e21bdbe303a8abba406bdb5469944419e3a698a 11-Oct-2012 Jeff Brown <jeffbrown@google.com> Merge "Ensure MediaRouter correctly handles renamed Wifi displays." into jb-mr1-dev
17026864e846630da7b619b55c5a65311484656c 11-Oct-2012 Jeff Brown <jeffbrown@google.com> Merge "Ensure Binder in-calls to UiModeManagerService are guarded." into jb-mr1-dev
46fb9e9f226c234c2b95428b8827df3cb0333cde 11-Oct-2012 Craig Mautner <cmautner@google.com> Merge "Check for apps closing and restore mExiting test." into jb-mr1-dev
2444ae7e2b8658a4a90f996e678423558744b4a2 11-Oct-2012 Jeff Brown <jeffbrown@google.com> Ensure MediaRouter correctly handles renamed Wifi displays.

Fix a couple of bugs that cause MediaRouter to disconnect from
the current Wifi display whenever it is renamed.

Added an extra check in WifiDisplayAdapter for identity renames.
The Settings app already handles this case but it's good to have
the service check for it as well so we don't store unnecessary
aliases.

Bug: 7310777
Change-Id: I8fddd32ca59f9b798ee31b467b81457508c345f8
om/android/server/display/WifiDisplayAdapter.java
6611988429d1d70ec429f87bbf2b093cf1e2e31f 11-Oct-2012 Winson Chung <winsonc@google.com> Letting partial update fall through if the widget has not received a full update yet. (Bug 7214731)

Change-Id: I4da99c259df51f8f66d3ade1156040bd0360ca5d
om/android/server/AppWidgetServiceImpl.java
a987d43bc916b6446fe41037d9fcf07e778b3452 11-Oct-2012 Craig Mautner <cmautner@google.com> Check for apps closing and restore mExiting test.

Removal of the mExiting test in a previous CL was a mistake leading
to z-order errors. In particular the auto complete dialog was on top
of the IME and was being dismissed due to touches on the IME.

Restoring mExiting alone missed cases where apps were exiting which
don't set mExiting. Adding a test for membership in mClosingApps
fixes that.

Bug: 7327220 fixed.
Change-Id: I3965b8a07080d1347bdada51ffeafe6ef2e32c8e
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
ee0d8deb5e4bb9e2d9caef2c988f483afe9f24a7 11-Oct-2012 Winson Chung <winsonc@google.com> Merge "Skip merge and assign RemoteViews directly if updateAppWidget() has not been called. (Bug 7214731)" into jb-mr1-dev
487bb6e20b96aa6920e08669a260118a40e604d5 11-Oct-2012 Jeff Brown <jeffbrown@google.com> Ensure Binder in-calls to UiModeManagerService are guarded.

Fixed a couple of problems where locks were not being taken or
where the calling identity was being clear deep in the call
stack whereas it should be cleared as close to the entry point
possible to ensure code correctness.

Bug: 7328545
Change-Id: I8ff646a772cd7f4025d5604bc35c6372c3d2428e
om/android/server/UiModeManagerService.java
596b1850f39e6d4b2f4392dbfb591d99a73b7563 11-Oct-2012 Winson Chung <winsonc@google.com> Skip merge and assign RemoteViews directly if updateAppWidget() has not been called. (Bug 7214731)

Change-Id: Ie19b629deea9133800df265a2cebedc8bcb2a74d
om/android/server/AppWidgetServiceImpl.java
0ea16037c7b6db95b3c23180bd88bdf431bf54a3 11-Oct-2012 Svetoslav Ganov <svetoslavganov@google.com> Screen magnification does not auto-pan when fragment dialog pops up.

1. We auto pan when certain type of window pop up to make sure the user
knows about the context change. This does not happen however for
fragment dialog since its window type is not in the list of one
we auto pan for. Updating the window type list.

bug:7332090

Change-Id: I9b097c57df929d2e4e807a948c3a0540f4092a76
om/android/server/accessibility/ScreenMagnifier.java
ee44fae19664594d4a17dd86723106533f4b218a 04-Oct-2012 Svetoslav Ganov <svetoslavganov@google.com> Prevent out of range magnification scale to be persisted.

1. If a bad magnification scale is persisted, i.e. it is
not between the min and max, the screen magnifier gets
into a bad state which even a reboot does not fix since
the scale is persisted in settings.

This change ensures that only valid scales are presisted.
In general a bad value should not be attempted to be
persisted but at this point this is the safest change.

bug:7288239

Change-Id: I3e9c7c091772fa64128ab8403c2127ce65cb94b8
om/android/server/accessibility/ScreenMagnifier.java
a517de36c44ab8cad5a267315aedf940aefa44cb 11-Oct-2012 Matthew Xie <mattx@google.com> Donot reset mEnable flag when binding timeout.

During start up, binding could take a while. When binding timeout
only reset mBinding but not mEnable.
bug 7328147

Change-Id: I306a84ca53d9e1d05111395642626e68d19e9663
om/android/server/BluetoothManagerService.java
78eb122450f127d66d4e8cf7f65cad80ea85d3ac 11-Oct-2012 Jeff Brown <jeffbrown@google.com> Dejank electron beam.

On some devices it can take hundreds of milliseconds to get a
brand new EGL surface performing in tip-top shape. To get it
ready make it do a few pushups before the show begins.

Bug: 7318962
Change-Id: I7ae92ce100c368327042a29ffa65faee9b567c8d
om/android/server/power/ElectronBeam.java
3c584f20ac8fe9378c094ad3b63936bca35954ba 10-Oct-2012 Jeff Brown <jeffbrown@google.com> Use exactly the same timings for the ElectronBeam as JB.

Bug: 7318962
Change-Id: Ic04bac5b07ec64fed84a6381ee1916ddeed01255
om/android/server/power/DisplayPowerController.java
om/android/server/power/ElectronBeam.java
bcfc1ca8ab8bf057e20d9369af3d007d80ca83e4 11-Oct-2012 Jean-Michel Trivi <jmtrivi@google.com> Merge "Don't play notifications during speech recognition" into jb-mr1-dev
0a75ed0805dd7f97ff058623eb8e4f4b258c44ab 11-Oct-2012 Craig Mautner <cmautner@google.com> Merge "Revert "Remove debugging statements before final ROM."" into jb-mr1-dev
f864401cfa1fdf863003f9d2d624fd742f7b5f4b 11-Oct-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge changes I00665385,Ic76db232 into jb-mr1-dev

* changes:
Send accessibility notification events only for the current user.
No sound produced on global actions dialog pops up if no vibrator is present.
c1940167109098b5748cde025e49575c6515e490 11-Oct-2012 Chris Craik <ccraik@google.com> Merge "Use the original caller pid for computing visibility" into jb-mr1-dev
c31ed39e7a5a8c709aa5f356cb5bcb563b059d65 10-Oct-2012 Svetoslav Ganov <svetoslavganov@google.com> Send accessibility notification events only for the current user.

1. The notification manager service is firing accessibility events
for notification for a background user. Events for the current
user's notifications should be sent.

bug:7326302

Change-Id: I00665385ba2106f161928dad1b76536c93c17f27
om/android/server/NotificationManagerService.java
3198ef3f971384cfb92f7d18b0fc8dae222bd58f 10-Oct-2012 Chris Craik <ccraik@google.com> Use the original caller pid for computing visibility

bug:7325771

Make Strict mode violations flicker the screen for visible app correctly.

Change-Id: I293dc9e945cb0366a1cd7b63a5b746159aab7c74
om/android/server/wm/WindowManagerService.java
9ea6343fa4dc6c0e2144880594fa7a80f94c31f3 10-Oct-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "The active window for accessibility purposes can be miscomputed." into jb-mr1-dev
64ecc0e1015f1c6c1f949bb74ba3f0875178c737 10-Oct-2012 Craig Mautner <cmautner@google.com> Revert "Remove debugging statements before final ROM."

The bug cropped up again. Need these statements to pin it down.

This reverts commit f1f3b49b949af72692f7f85a1c1ef220e8630e30

Change-Id: Ie0548232daff32ee2541249b0950e23bd98c08d2
om/android/server/wm/WindowManagerService.java
6ae8a24fc045bc7970f2843fa9baf06aff15e22d 10-Oct-2012 Svetoslav Ganov <svetoslavganov@google.com> The active window for accessibility purposes can be miscomputed.

1. The active window is the one that the user touches or the one
that has input focus. We recognize the user touching a window
by the received accessibility hover events and the user not
touching the screen by a call from the touch explorer. It is
possible that the user touches window that does not have
input focus and as soon as he lifts finger the active one
will become the window that has input focus but now we get
he hover accessibility events from the touched window which
incorrectly changes the active window to be the touched one.
Note that at this point the user is not touching the screen.

bug:7298484

Change-Id: Ife035a798a6e68133f9220eeeabdfcd35a431b56
om/android/server/accessibility/AccessibilityManagerService.java
om/android/server/accessibility/TouchExplorer.java
fa5bc081593891959c143e0de9e59dd076a47b42 10-Oct-2012 Craig Mautner <cmautner@google.com> Merge "Increase window freeze timeout for bigger screens." into jb-mr1-dev
d677054ca63f55abaa1c478ea3c50f6be665a979 10-Oct-2012 Jean-Michel Trivi <jmtrivi@google.com> Don't play notifications during speech recognition

Add support for querying AudioManager to know whether speech
recognition is currently underway.

Don't play a notification if speech recognition is underway.

Bug 7314859

Change-Id: I1bd013a3168cfe1a6b6dcfd28565e1c3c512eb6a
om/android/server/NotificationManagerService.java
7dfcb018206abebc45e478ef01465a50532f0f4e 10-Oct-2012 Craig Mautner <cmautner@google.com> Increase window freeze timeout for bigger screens.

More pixels take longer. Timeout was occurring before Status and
Navigation Bars were finished drawing causing them to animate in
during rotations.

Bug 7307718 fixed.

Change-Id: Iccf27b6172d0c9831690cc2fcf93027a40b705d8
om/android/server/wm/WindowManagerService.java
251445667ce045c4425c10fb24e3e23f90a210c0 10-Oct-2012 Zhihai Xu <zhihaixu@google.com> Merge "Bluetooth multi-user updates: change bluetooth manager system service to reject background user access. disable and enable Bluetooth when user is switched" into jb-mr1-dev
f6138f0720e678f236fe8c442a7660a955da9d10 10-Oct-2012 Jeff Brown <jeffbrown@google.com> Merge "Don't consider the boot completed until the animation is over." into jb-mr1-dev
40874a096ba6448ebffea4b17486dbfbc957c0df 09-Oct-2012 Zhihai Xu <zhihaixu@google.com> Bluetooth multi-user updates: change bluetooth manager system service
to reject background user access. disable and enable Bluetooth when user is switched

bug 6925422

Change-Id: I52136e707da2d1ba8228c1bb8beef1414ead1893
om/android/server/BluetoothManagerService.java
20767b2d1ea7af5539e6d3be5e70ce245da34b42 10-Oct-2012 Jeff Brown <jeffbrown@google.com> Don't consider the boot completed until the animation is over.

This fixes a problem where the screen times out shortly after
boot before the user has had a chance to interact with the device.
Now we wait until the boot animation has completed then set
boot completed, poke user activity and start the countdown.

Bug: 7316397
Change-Id: Ie5a0b1012d265e655d33cc8fba49ca349f48f1de
om/android/server/power/PowerManagerService.java
c0bd747b0605af251ff136277f14220a5a4c9818 09-Oct-2012 Dianne Hackborn <hackbod@google.com> Further work on issue #7307399: Framework needs a new pre-user-shutdown...

...phase & callback API

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

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

Change-Id: Id8a536defbbad1f73d94a37d13762436b822fbe3
om/android/server/am/ActiveServices.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/BroadcastQueue.java
om/android/server/am/BroadcastRecord.java
840590dd642719f402491092944a12475d6d6a8e 10-Oct-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #7311376: Add API to allow apps to know if they are..." into jb-mr1-dev
6f2cdcdbe4096565434c31cf4fe3c782c38f1ce1 10-Oct-2012 Eric Laurent <elaurent@google.com> Merge "fix concurrent headset and HDMI connection" into jb-mr1-dev
0cd641001a152893642b702446bb12c7c0c08e48 10-Oct-2012 Craig Mautner <cmautner@google.com> Merge "Remove debugging statements before final ROM." into jb-mr1-dev
a8a9bd65bf5865d83ef44f54552ca39522bfbcf0 10-Oct-2012 Dianne Hackborn <hackbod@google.com> Fix issue #7311376: Add API to allow apps to know if they are...

...running as the foreground user

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

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

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

Change-Id: I84672fa8748fc027fd402729586b5603f640e498
om/android/server/am/ActivityManagerService.java
f545660dcb54f90ad6a79ef0d7dccb509dc69017 10-Oct-2012 Jeff Brown <jeffbrown@google.com> Merge "Prevent full wake lock from keeping device awake while dreaming." into jb-mr1-dev
9e6e8355f8d7bd1856e69cb8965087a00f1792bd 10-Oct-2012 Eric Laurent <elaurent@google.com> fix concurrent headset and HDMI connection

Fix a bug in WiredAccessoryManager causing an
HDMI disconnection to be signaled to AudioService when a
headset is connected.

Bug 7313250.

Change-Id: I7c6446104c55f9a4fc146abe7020df45ad6ba5e7
om/android/server/WiredAccessoryManager.java
10428748f98518dbaef8c56cf1ad75aabd75da45 10-Oct-2012 Jeff Brown <jeffbrown@google.com> Prevent full wake lock from keeping device awake while dreaming.

A dream may itself hold a wake lock in order to keep the screen
bright as it runs. However this wake lock also causes the device
to stay awake even when it is not plugged in which is undesirable.

This change makes full wake locks behave differently when napping
or dreaming. The wake lock still keeps the screen bright but
it does not prevent the device from falling asleep. This is
similar to our policy of ignoring full wake locks completely when
the device is manually put to sleep by the user.

Bug: 7295909
Change-Id: Id99e82d2143ae1a81629281d6407d7527efb8137
om/android/server/power/PowerManagerService.java
a8a6b0848d1c11c3ed0fcb846e3d6c39b91536a0 10-Oct-2012 Kenny Root <kroot@google.com> Merge "Add fused location provider to real provider list" into jb-mr1-dev
f1b246ddfed6757180768eea080b80c1538333f3 09-Oct-2012 rich cannings <richc@google.com> Merge "Fix verfication bypassed for adb installs" into jb-mr1-dev
36070b414a710dd09a24698699f501d58c5772a4 09-Oct-2012 rich cannings <richc@google.com> Fix verfication bypassed for adb installs

ADB installs appear as UserHandle.USER_ALL, and can only be performed by
UserHandle.USER_OWNER, so use the package verifier for UserHandle.USER_OWNER.
This returns a valid userId to call PackageManagerService.getPackageUid.

Bug: 7293091
Change-Id: I7a5497cfe5fa2e7aa804345cf9f507ec26a0db21
om/android/server/pm/PackageManagerService.java
f1f3b49b949af72692f7f85a1c1ef220e8630e30 09-Oct-2012 Craig Mautner <cmautner@google.com> Remove debugging statements before final ROM.

Change-Id: I18afd1a4c4f8f945308edc9b3af48b8c8adb3b9e
om/android/server/wm/WindowManagerService.java
c3575188c2f2ad27b1f03b9b9c0705a686a5e42f 09-Oct-2012 Kenny Root <kroot@google.com> Add fused location provider to real provider list

During testing it's possible to mock a location provider, but the fused
location provider wasn't being inserted into the "mRealProviders" map so
when the fused location provider was unmocked, it would disappear
permanently from the list until the next reboot.

Bug: 6949478
Change-Id: I4993aa7fbbd21cea16bdbf2722d637c909b1cd73
om/android/server/LocationManagerService.java
c0c0c0e612e1ccf1e55eb2a9338ddfff40d8d7f2 09-Oct-2012 Victoria Lease <violets@google.com> Merge "Multiuser love for LocationManager" into jb-mr1-dev
6be35dd636bd530a781e997ea9f9a43fc82a1fef 09-Oct-2012 Satoshi Kataoka <satok@google.com> Merge "Fix an issue on showInputMethodPickerFromClient" into jb-mr1-dev
c86884cd839123e3be3cc97c8f293ac47d3624a9 09-Oct-2012 Satoshi Kataoka <satok@google.com> Fix an issue on showInputMethodPickerFromClient

Bug: 7302748
Change-Id: Iff4345d26b3d6e4bfedf893bbd6a864c771df01d
om/android/server/InputMethodManagerService.java
9e316a1a2a8d734315bbd56a85308f9657a92913 09-Oct-2012 Jeff Brown <jeffbrown@google.com> Blank or unblank all displays as need.

Ensures that both the internal display and HDMI are blanked
or unblanked in tandem.

Bug: 7309812
Change-Id: Ie8b96d393e8bb20d23c92f3320142d9f7cf42aff
om/android/server/display/DisplayDevice.java
om/android/server/display/DisplayManagerService.java
om/android/server/display/LocalDisplayAdapter.java
om/android/server/power/DisplayBlanker.java
om/android/server/power/DisplayPowerController.java
om/android/server/power/DisplayPowerState.java
om/android/server/power/PowerManagerService.java
b711d57ca4e2c6a1befbfa1a41f4b8094755a93f 02-Oct-2012 Victoria Lease <violets@google.com> Multiuser love for LocationManager

LocationManagerService now keeps track of the current user ID and
denies location requests made by all but the foreground user.

Additionally, location settings are now user-specific, rather than
global to the device. Location provider services now run as specific
users, and when the device's foreground user changes, we rebind to
appropriately-owned providers.

Bug: 6926385
Bug: 7247203
Change-Id: I346074959e96e52bcc77eeb188dffe322b690879
om/android/server/LocationManagerService.java
om/android/server/ServiceWatcher.java
om/android/server/location/GeocoderProxy.java
om/android/server/location/GpsLocationProvider.java
om/android/server/location/LocationProviderInterface.java
om/android/server/location/LocationProviderProxy.java
om/android/server/location/MockProvider.java
om/android/server/location/PassiveProvider.java
2aac1a0fe8fe5dea1185374ed914f95101de16ed 09-Oct-2012 Jeff Brown <jeffbrown@google.com> Merge "Improve the power off fade animation." into jb-mr1-dev
252c206984299d7ce91c27536cafe1bb2fb9628d 09-Oct-2012 Jeff Brown <jeffbrown@google.com> Improve the power off fade animation.

Fixes an issue where the dim surface alpha was not actually being
animated like it was supposed to.

Bug: 7224614
Change-Id: Iffd54367ca97ae7fd4b9603807f4e036750442b2
om/android/server/power/DisplayPowerController.java
om/android/server/power/ElectronBeam.java
0fb7e32a0129e9e62d58ea652cc00f8a908d65b5 09-Oct-2012 Victoria Lease <violets@google.com> Merge "Last position improvements for GeofenceManager" into jb-mr1-dev
55c7029312f67a80c658fa84bd404ef7569d02d8 09-Oct-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Show the touch explore enable dialog for the current user." into jb-mr1-dev
4efbab480d7e1b770c5515a76b897359730c1a4d 09-Oct-2012 Dianne Hackborn <hackbod@google.com> Merge "Framework side of issue #7302511: GCM client needs to use new framework API..." into jb-mr1-dev
36d337adffa6d1c4c953e83730ad58747f554877 08-Oct-2012 Dianne Hackborn <hackbod@google.com> Framework side of issue #7302511: GCM client needs to use new framework API...

...to fix background->shutdown delivery race

Add ACTION_STOPPING and ACTION_STARTING to allow such apps to keep track of
which users are started/stopped, and be involved in the process of stopping
a user.

Also get rid of the scale part of the wallpaper transitions, since it seems
like I have still failed at getting the user switch to wait until the new
wallpaper is displayed.

Change-Id: If7e8fdae3544a9d7987a1b9274dc8b49022f6f62
om/android/server/am/ActivityManagerService.java
om/android/server/am/UserStartedState.java
318b00bfeefa6dc05913c8eea0052d70185c7910 08-Oct-2012 Svetoslav Ganov <svetoslavganov@google.com> Show the touch explore enable dialog for the current user.

1. We are showing a warning dialog if the user enables an accessibility
service that requests explore by touch. This dialog was shown only
for the owner but should be shown for the current user.

bug:7304437

Change-Id: I692b5112df16405e6d2e4890aafbfde79981f973
om/android/server/accessibility/AccessibilityManagerService.java
847b12295e0a5c9e04f344f04c3540751ef6b9d1 08-Oct-2012 Craig Mautner <cmautner@google.com> Merge "Fix problems with IME layers." into jb-mr1-dev
e6f7d5054a71eeae8c0b10a2305347efdcd8c3d3 08-Oct-2012 Craig Mautner <cmautner@google.com> Fix problems with IME layers.

The query WindowState.isDisplayed did not take into account being
displayed due to app animations.

When an existing input method target was animating away the logic
for detecting if it was still on screen was faulty. This led to
assigning the input method to a layer below its target and obscuring
the input method until the animation was complete.

Bug: 7296703 fixed.
Change-Id: Ib00db4f21b726ed57d25d6a1e796b65a7d45ee97
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
9c2a38ed10592a54d9bb753ef882632f7a8cd446 08-Oct-2012 Amith Yamasani <yamasani@google.com> Merge "Fix resource reading for secondary users" into jb-mr1-dev
64442c11555d828a41af0b8a58ab933357889061 07-Oct-2012 Amith Yamasani <yamasani@google.com> Fix resource reading for secondary users

Bug: 7086881

Load resources for the correct user.

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

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

Change-Id: Id56dd15428d66084de995e28be242db27c15fda3
om/android/server/am/AppErrorDialog.java
om/android/server/am/AppNotRespondingDialog.java
b52b6bf138c9aa5e986c8be95fcd23448792a078 08-Oct-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #7295951: Mako asks which Launcher to use at every re-boot" into jb-mr1-dev
8b9cf1c8000eb581457713a5c0ce41c59f90c353 07-Oct-2012 Jeff Brown <jeffbrown@google.com> Reduce screen on latency, eliminate flashes.

Always use the ElectronBeam now, even when we are only animating
the backlight so that we will have a black surface remaining
on the screen after the screen turns off.

When turning on the screen, keep the black surface showing until
we unblock screen on then dismiss it as usual.

This change eliminates the flashing of old display content when
the screen is turned on. It also helps to conceal some of the
latency of turning the screen on. We always turn the screen on
immediately (even when screen on has nominally been blocked) and
rely on the black surface to hide the screen contents until the
last moment. Dismissing the black surface is practically
instantaneous compared to turning the screen on.

Bug: 7299370
Bug: 7139924
Change-Id: I57d13287acd05bd0a48811095bb02dc7bc7cbeb6
om/android/server/power/DisplayPowerController.java
om/android/server/power/DisplayPowerRequest.java
om/android/server/power/DisplayPowerState.java
om/android/server/power/ElectronBeam.java
om/android/server/power/ScreenOnBlocker.java
6309271f7b0f27ee725e36bfa48b4d250e44006f 07-Oct-2012 Dianne Hackborn <hackbod@google.com> Fix issue #7295951: Mako asks which Launcher to use at every re-boot

A couple problems:

- We need to clear app preferences later, now that we have encrypted apps.
- The multi-user implementation of this would allow different preferred
apps from different users to potentially interefere with each other.
They are not completely separate data structures.

Change-Id: Id4f1ebb6414fdf30ff1049adaa1efe83dabac01a
om/android/server/pm/PackageManagerService.java
om/android/server/pm/PreferredActivity.java
om/android/server/pm/PreferredIntentResolver.java
om/android/server/pm/Settings.java
138f272bfcd45f233abfd94faf4aabaa5d01b90b 07-Oct-2012 Craig Mautner <cmautner@google.com> Merge "Save resized windows even if freezing." into jb-mr1-dev
33877e15b8bfc50bd874027689a4794aa93b923d 07-Oct-2012 Craig Mautner <cmautner@google.com> Merge "Adds showWhenLocked attribute to Activities." into jb-mr1-dev
140cdb7a5d43e80d1408b05be8dd22c49ad68dfe 07-Oct-2012 Jeff Brown <jeffbrown@google.com> Merge "Allow the dim brightness to be brighter than the minimum." into jb-mr1-dev
ade0a9a9386a2cd6f11ad3cde257c11fe300d785 06-Oct-2012 Craig Mautner <cmautner@google.com> Save resized windows even if freezing.

During app freezes resized windows were being dropped if the freeze
window timed out. This fix adds windows to the list of resized
windows but does not notify the clients of the resize until freezing
is completed.

Bug: 7094175 fixed.
Change-Id: Iee1f5f532a0e661fbf900e4540146ae4b645d68e
om/android/server/wm/WindowManagerService.java
5962b12bedc4a1d0354816c1cd6b06ba04f6d807 05-Oct-2012 Craig Mautner <cmautner@google.com> Adds showWhenLocked attribute to Activities.

The new attribute allows an Activity such as the alarm to appear
on all users screens.

Bug: 7213805 fixed.
Change-Id: If7866b13d88c04af07debc69e0e875d0adc6050a
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityStack.java
om/android/server/wm/AppWindowToken.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
om/android/server/wm/WindowStateAnimator.java
b76eebff47653daf0c98119aeb68b57cb9a46f9d 06-Oct-2012 Jeff Brown <jeffbrown@google.com> Allow the dim brightness to be brighter than the minimum.

Defines the lower end of the allowable screen brightness range
as the lesser of the dim level, the user brightness setting
minimum value and the lowest auto-brightness level.

Bug: 7295909
Change-Id: I7a72b4611631f9e51578205ff12898c5bae02b1b
om/android/server/power/DisplayPowerController.java
1ad0fd9c04ae2e352c59129b979145e662f25cbc 06-Oct-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Accessibility active window not updated on time." into jb-mr1-dev
f81dc4c08b2985ef369134b73e1b383b8284e912 06-Oct-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Screen magnification cannot be engaged in landscape on a phone." into jb-mr1-dev
52177738e8fa38e2f7769db1bcad40e7405baf17 06-Oct-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #7296314, issue #7296314." into jb-mr1-dev
4c1e3183baf39ab69c0289c1511877a8bb0b0f75 06-Oct-2012 Dianne Hackborn <hackbod@google.com> Fix issue #7296314, issue #7296314.

7296314 Crashing dreams are stuck
7296510 Transition from lock screen to dreaming is really bad

The window layer for dreams is now moved down below the keyguard,
so that some of the expected stuff like crash and ANR dialogs can
be seen on top of them. While doing this, I reorganized how we
define the layers so the constants are just in the switch statement,
so it is much less crazy-making trying to read how things go
together.

We now have some special cases for when a dream is being shown
to turn off its animation if the keyguard is currently shown.
Since we know it will be hiding the keyguard we need it to be
shown immediately so that you don't see whatever is behind it.

Cleaned up some handling of when the lock screen is displayed
while a FLAG_SHOW_WHEN_LOCKED window is displayed, so that the
lockscreen doesn't transiently get shown and mess up the fullscreen
or system UI state. This also fixes problems with any normal
activity that is doing this.

Hid the methods on DreamService for setting lights out mode. It
doesn't make sense to have such methods on DreamService, because
you can just as well do that on your own View that is showing the
dream content, and when you can do that you can fully participate
in the (required) interactions about it such as being told when
the mode goes away.

The DreamService method for going fullscreen now uses the window
flag for doing this, which is what you want, because you want this
state to persistent on that window and not get knocked out if
something above the window tickles the system UI state.

Also fixed the problem where dreams that hid the status bar would
have a jerky animation when going away, since they were causing the
activity behind them to be layed out without the lock screen. This
is a kind-of ugly special case in the window manager right now to
just not layout windows that are behind a dream. Good enough for MR1.

Change-Id: Ied2ab86ae068b1db0ff5973882f6d17b515edbcd
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowStateAnimator.java
a7bcb546bc4d9492a1e3c994bdc1318db7a3a0c4 06-Oct-2012 Svetoslav Ganov <svetoslavganov@google.com> Screen magnification cannot be engaged in landscape on a phone.

1. The reason is that the screen magnifier computes that the whole
screen is not magnifiable. The miscalculation was caused due to
an incorrect assumption that the non-magnified area is only at
the bottom. In fact, on a phone in landscape the non-magnified
area is both on the right and at the bottom. This change adds
a correct algorithm for computing the magnified region.

2. Increasing the delay for computing the magnified area when the
keyguard goes away to allow all windows hidden by the keyguard
to be shown. In rare occasions the previous delay was not long
enough resulting in a state where the keyboard is considered
a part of the magnified region.

3. Removed some dead code.

bug:7293097

Change-Id: Ic5ff91977df8bcf4afd77071685c3eb20555d4f3
om/android/server/accessibility/ScreenMagnifier.java
b71ccfcf9b049372cdbd4f3f0bf51159e384f217 06-Oct-2012 Amith Yamasani <yamasani@google.com> Merge "Fix widget cross-talk between users due to Settings widget" into jb-mr1-dev
f772cba59760d1ad9eb5cb9205b2e2e9126e488d 06-Oct-2012 Svetoslav Ganov <svetoslavganov@google.com> Accessibility active window not updated on time.

1. The active window is the one the user is touching or the one
that has input focus. It has to be made current immediately
after the user has stopped touching the screen because if the
user types with the IME he should get a feedback for the
letter typed in the text view which is in the input focused
window. Note that we always deliver hover accessibility events
(they are a result of user touching the screen) so change of
the active window before all hover accessibility events from
the touched window are delivered is fine.

bug:7296890

Change-Id: I1ae87c8419e2f19bd8eb68de084c7117c66894bc
om/android/server/accessibility/AccessibilityManagerService.java
om/android/server/accessibility/TouchExplorer.java
f948500239803b2b7247ff5058e39e4d645c5b70 06-Oct-2012 Satoshi Kataoka <satok@google.com> Merge "Fix the issue on the input method switch picker" into jb-mr1-dev
8320de8e29819963845d3d386d6d087844a5ae31 06-Oct-2012 Amith Yamasani <yamasani@google.com> Fix widget cross-talk between users due to Settings widget

Bug: 7247911
Bug: 7294899

Also did some cleanup of unused code that resulted from refactoring
the app widget service. Fixed a few more ambiguous calls that weren't
using the correct user id.
Added some logging and improved the dump() formatting.

Change-Id: I27abb5c6341458e1e50a2cc9ab67e8de573ab283
om/android/server/AppWidgetService.java
om/android/server/AppWidgetServiceImpl.java
fdcb2257d20435326baa41dd713c7ffee322e84c 06-Oct-2012 Jeff Brown <jeffbrown@google.com> Merge "Fix a deadlock involving BatteryService." into jb-mr1-dev
605ea69ab16dee2047ea43905a9b443896cde121 06-Oct-2012 Jeff Brown <jeffbrown@google.com> Fix a deadlock involving BatteryService.

The PowerManager may call into the BatteryService while
holding its locks. We need to be careful that the BatteryService
doesn't call into other services, particularly the ActivityManager
while holding its own locks.

Bug: 7298218
Change-Id: Ibf8ab13224f204a9857825265e864f93583bce8e
om/android/server/BatteryService.java
2874a54068af1e7de3c1c046cc0061412daafaf8 06-Oct-2012 Craig Mautner <cmautner@google.com> Merge "Add flag for displaying non-user's Windows to user." into jb-mr1-dev
d7eece3448122fa668cdb386cd47cd1402d12012 06-Oct-2012 Jeff Sharkey <jsharkey@android.com> Merge "Clear identity when requesting current user." into jb-mr1-dev
b78738fa06b092f910ffb39989dfb700d6b21788 06-Oct-2012 Jeff Sharkey <jsharkey@android.com> Clear identity when requesting current user.

Bug: 7298189
Change-Id: Ie9c160f12067f1b9426acbfee67ef81e8f5f7992
om/android/server/NotificationManagerService.java
0728206a1138698faa171271a81fbe8dd0ddcf73 06-Oct-2012 Jeff Brown <jeffbrown@google.com> Merge "Ensure that dreams show while docked." into jb-mr1-dev
aa99257dec300c1db99ee0f0d1193e0b301dde39 06-Oct-2012 Jeff Sharkey <jsharkey@android.com> Merge "Only play notification sounds for active user." into jb-mr1-dev
88400d3a31139c40c4014faf86c243647087ef6c 30-Sep-2012 Craig Mautner <cmautner@google.com> Add flag for displaying non-user's Windows to user.

Created a new flag that indicates that a window should be shown
to all users. For the flag to be valid the owner of the window
must have system permissions.

Also separated system window types into those that show to all
users (e.g. StatusBar, Keyguard, ....) and those that appear only
to the owning users (e.g. Drag, ANR, TOAST, ...). Those that appear
only to their owner can override their default behavior using
the new flag (e.g. LowBattery).

Fixes bug 7211965.

Change-Id: I1fdca25d57b7b523f0c7f8bceb819af656c388d4
om/android/server/accessibility/ScreenMagnifier.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
om/android/server/wm/WindowStateAnimator.java
8637bd9766784473eb3849b4f21fda4a2ea6eed1 06-Oct-2012 Jeff Sharkey <jsharkey@android.com> Only play notification sounds for active user.

Bug: 7298302
Change-Id: I1e176f7b17bb51b878f2e8b345804780df92d487
om/android/server/NotificationManagerService.java
9fca9e96989bb70c3a5fa9de37681c9228c88ae6 05-Oct-2012 Jeff Brown <jeffbrown@google.com> Ensure that dreams show while docked.

Fixed a race between the UiModeManagerService and PowerManagerService
both of which are trying to wake the device when docked / powered.

Bug: 7281240
Change-Id: Ia41fef48f17f2a2eb56549437d295f9a86c95af2
om/android/server/UiModeManagerService.java
om/android/server/power/PowerManagerService.java
3f1246a29b58cf78ebe674ec0905ad1795027aac 05-Oct-2012 Jeff Brown <jeffbrown@google.com> Merge "Coordinate screen on with the window manager." into jb-mr1-dev
c38c9be031ddad5cf551b55458889f11e01dc5b2 04-Oct-2012 Jeff Brown <jeffbrown@google.com> Coordinate screen on with the window manager.

Bug: 7267457
Change-Id: Ic2c322253639e1f0b2e4e72a7b145025d0240f93
om/android/server/power/DisplayPowerController.java
om/android/server/power/DisplayPowerRequest.java
om/android/server/power/Notifier.java
om/android/server/power/PowerManagerService.java
om/android/server/power/ScreenOnBlocker.java
om/android/server/wm/WindowManagerService.java
7ef38ea9e5ee1d2fd58e818f37191a589793e236 05-Oct-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #7275122: Wall paper jank when switching users" into jb-mr1-dev
bce0cbb40d060f71a7de86d5668eb690e7073c19 05-Oct-2012 Dianne Hackborn <hackbod@google.com> Fix issue #7275122: Wall paper jank when switching users

Change-Id: I2677c7641a01b4afe89db29cb5fc1af876f9d078
om/android/server/WallpaperManagerService.java
3ba439d6481b7f23ade44bfde0700aaa1e076a32 05-Oct-2012 Satoshi Kataoka <satok@google.com> Fix the issue on the input method switch picker

Bug: 7292731
Change-Id: I8cb51dd01e4c467fff511d4ecee79426f9b2ed80
om/android/server/InputMethodManagerService.java
20de160ca32a8f2936a80ffd70551a22e2371d25 05-Oct-2012 Jeff Hamilton <jham@android.com> Revert "Changes to support updating location providers."

This reverts commit c19efc204aee1f0f3164dc21bd2ef3fdd4259c71.
om/android/server/LocationManagerService.java
om/android/server/ServiceWatcher.java
d21b483904057212ab1654b8ef606d41f2d3fe46 05-Oct-2012 Matthew Xie <mattx@google.com> Merge "Add multi user support for bluetooth" into jb-mr1-dev
f5e2b2c26c37d839e6559319d311b62598c6dade 05-Oct-2012 Daniel Sandler <dsandler@android.com> Merge "DreamService API revisions." into jb-mr1-dev
2d78490292090eeab84694330978c9ad7fad2d37 04-Oct-2012 Daniel Sandler <dsandler@android.com> DreamService API revisions.

Reduce reliance on Service interface overrides, instead
steering clients to the DreamService-specific lifecycle
hooks:

onAttachedToWindow .. onDreamingStarted ..
onDreamingStopped .. onDetachedFromWindow

The old Dream.java is finally gone now too.

Bug: 7281802
Change-Id: Ib7802c3397fde60ad1132fa49831da182eef4d7a
om/android/server/dreams/DreamController.java
a07b1fffbe7c43485b35ba83c9083a59ff328df1 05-Oct-2012 Jeff Brown <jeffbrown@google.com> Merge "Support animating just the backlight when turning off." into jb-mr1-dev
29126cf0f7992805b274510420485c95e3741598 05-Oct-2012 Jeff Brown <jeffbrown@google.com> Merge "Ensure we send at least one wakeup/gotosleep transition." into jb-mr1-dev
a52772ff26e41dbb242a78a1f30619e23fb13dd7 05-Oct-2012 Jeff Brown <jeffbrown@google.com> Support animating just the backlight when turning off.

Bug: 7224614
Change-Id: Ic9fa7a9e458c89d347b03bce6829f952bdf3b6a5
om/android/server/power/DisplayPowerController.java
om/android/server/power/DisplayPowerState.java
fca9d63635d9603c318a089397b23c17682453e3 04-Oct-2012 Matthew Xie <mattx@google.com> Add multi user support for bluetooth

Create a BLUETOOTH_STACK permission to share between all users of
Bluetooth apk. Bluetooth Manager binds to apk of current user
bug 6925422

Change-Id: I2df5546e977c2d77bc66d97d12479d933826922a
om/android/server/BluetoothManagerService.java
82b946496e2a503b5b21af318af5be828a223a44 05-Oct-2012 Jeff Hamilton <jham@android.com> Merge "Changes to support updating location providers." into jb-mr1-dev
c192c649ba3b79dff70c5ccf981d631b929b5778 05-Oct-2012 Amith Yamasani <yamasani@google.com> Merge "Fix serial number assignment for new user on a freshly wiped device" into jb-mr1-dev
543083593430208af87e51b94cdbbb51cbe2d7b5 05-Oct-2012 Jeff Brown <jeffbrown@google.com> Ensure we send at least one wakeup/gotosleep transition.

This fixes an issue where the device would not lock immediately
when the user quickly pressed power off / power on even if
configured to do so. We were suppressing the screen off
and wake up broadcast in this case.

Now we make sure to always send at least one broadcast to
indicate the transition. We still collapse back-to-back
full cycle transitions though so as not to end up enqueuing
useless broadcasts.

Bug: 7061116
Change-Id: I7211c5fd963c271c2b0aceb4d2f746063c629079
om/android/server/power/Notifier.java
om/android/server/power/PowerManagerService.java
327424d69b99213e872e91f05feba2d0a137d6c7 05-Oct-2012 Adam Cohen <adamcohen@google.com> Merge "Plumbing to allow keyguard to be shown with user switcher (issue 7175023)" into jb-mr1-dev
284b20538764afe2500be6ba5b1f3a057123ffc9 05-Oct-2012 Satoshi Kataoka <satok@google.com> Merge "Support multi-user switch in TextServicesManagerService" into jb-mr1-dev
f752202bee88e31ce765483ba2efa6999ae9c9ad 04-Oct-2012 Adam Cohen <adamcohen@google.com> Plumbing to allow keyguard to be shown with user switcher (issue 7175023)

-> Also reduced calls to lockNow, and moved this call in ActivityManagerService

Change-Id: I9ba34ca902f7c0f71fa4ec302104688ca8d11f55
om/android/server/DevicePolicyManagerService.java
om/android/server/am/ActivityManagerService.java
om/android/server/wm/WindowManagerService.java
634cf31345ae843392215237e741d76271a5cfed 05-Oct-2012 Amith Yamasani <yamasani@google.com> Fix serial number assignment for new user on a freshly wiped device

Bug: 7280093

User serial number was not being bumped up from 0 on a freshly wiped device
due to the userlist not existing. This was resulting in the first 2 users
getting the same serial number, messing up C2DM message delivery. This issue
doesn't show up if you boot the device before adding a user, so it wasn't
discovered earlier.

Change-Id: I8a5d99b9ad2ccfb66a16cacac9548ba53f0be387
om/android/server/pm/UserManagerService.java
17f36d154f1a8ebe72fc35af332f5c0069503364 05-Oct-2012 Jeff Brown <jeffbrown@google.com> Merge "Allow phone to go to sleep while in call." into jb-mr1-dev
82245c199b2bbd2f598ce3c863eea425b4909cac 05-Oct-2012 Amith Yamasani <yamasani@google.com> Merge "Fix dupes in initial wallpaper selection" into jb-mr1-dev
60ec50a850ac7265b662df3c872583b6ef581ef8 05-Oct-2012 Laurent Tu <laurentt@google.com> Last position improvements for GeofenceManager

Use LocationManager.getLastPosition() in GeofenceManager instead of
keeping track of it manually. Keeping track of it in GeofenceManager
doesn't handle the case where we install a fence, and cross it just
after that based on the last position before we installed the fence.

Also shuffle around some code in LocationManagerService to remember the
last position even if there are no UpdateRecords. This is useful in the
GeofenceManager for example.

Bug: 7047435
Change-Id: Ia8acc32e357ecc2e1bd689432a5beb1ea7dcd1c7
om/android/server/LocationManagerService.java
om/android/server/location/GeofenceManager.java
dfc8e799ed7500c1a07d4ba1f72e77d3de0f803a 05-Oct-2012 Victoria Lease <violets@google.com> Merge "Handle other providers in isAllowedProviderSafe()" into jb-mr1-dev
7fd1386b8a2b30669e0ffe0bacf17dd1feb5dba5 05-Oct-2012 Robert Greenwalt <rgreenwalt@google.com> Merge "Properly cancel Tether notification." into jb-mr1-dev
a9afaccf303da2b57a47ad16cca559e87e649d15 05-Oct-2012 Victoria Lease <violets@google.com> Merge "multiuser support for LocationBlacklist" into jb-mr1-dev
3cab6b0f1deff1ee4b4b2e048935f2201d2cbc0d 05-Oct-2012 Robert Greenwalt <rgreenwalt@google.com> Properly cancel Tether notification.

When we add a second type of tethering we unify the notifications
into a single generic type. This is done by canceling the first
and replacing it, but this flow was improperly canceling, so
you could end up with orphaned tethering icons.

bug:7283605
Change-Id: I1d136f51592b4326d48578cf67b69122e45d4984
om/android/server/connectivity/Tethering.java
93cbbb25a56356cd36523809783a277fe92e312e 04-Oct-2012 Jeff Brown <jeffbrown@google.com> Allow phone to go to sleep while in call.

Bug: 7279383
Change-Id: Ia05490218f40a1843507b95ff48fa07910e582d4
om/android/server/power/DisplayPowerController.java
om/android/server/power/PowerManagerService.java
941221c1577a34c922c03b30be7ef0a4afda4278 04-Oct-2012 Laurent Tu <laurentt@google.com> Handle other providers in isAllowedProviderSafe()

Add a case for isAllowedProviderSafe() to handle providers that are not
GPS/Passive/Network/Fused. For example, this is useful for mock
providers.

Bug: 7047435
Change-Id: If4799aa90a5338889c47582d45cbfc25772c9c53
om/android/server/LocationManagerService.java
6474c4cd939fcb03449e607c7cd06b95c4632aaa 04-Oct-2012 Amith Yamasani <yamasani@google.com> Fix dupes in initial wallpaper selection

Bug: 7281217

Needed to load the settings for the user, in case the user was stopped.

Change-Id: I52d1f59a7681f8c4f7d3596486accb91cb840ecf
om/android/server/WallpaperManagerService.java
8a2291952528303d284878468fe260ec41998db3 04-Oct-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #6968859: home not exiting an ANR'd dream" into jb-mr1-dev
d367b70c4ad5d8e6cdbcc0d6d429428413cd39b3 04-Oct-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Accessibility HOVER_ENTER / EXIT without enclosing EXPLORATION_GESTURE_START / END" into jb-mr1-dev
27b3819df0ff3bbfb680b5bac54ef7e9b4d3aac1 04-Oct-2012 John Spurlock <jspurlock@google.com> Merge "Reset status bar in keyguard, fix MU status bar bug." into jb-mr1-dev
5fe7e2a3043d6a8ca933c77ccf95c791b57b221a 04-Oct-2012 Dianne Hackborn <hackbod@google.com> Fix issue #6968859: home not exiting an ANR'd dream

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

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

Change-Id: Ib8f5d29a5572542cc506e6d338599ab64088ce4e
om/android/server/am/ActiveServices.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityRecord.java
om/android/server/am/ActivityStack.java
om/android/server/am/AppErrorDialog.java
om/android/server/am/AppNotRespondingDialog.java
om/android/server/am/AppWaitingForDebuggerDialog.java
om/android/server/am/BaseErrorDialog.java
om/android/server/am/BroadcastQueue.java
om/android/server/am/FactoryErrorDialog.java
om/android/server/am/ProcessRecord.java
om/android/server/wm/InputMonitor.java
om/android/server/wm/Session.java
om/android/server/wm/WindowState.java
dcf5a663cdec5ed1aa6b5d583cdac177a0974fcb 04-Oct-2012 Amith Yamasani <yamasani@google.com> Merge "Read in the disable-keyguard-features flag from the XML file" into jb-mr1-dev
4e6922d89e72e79a8ab31ae2cb8a19d85bee91f8 04-Oct-2012 John Spurlock <jspurlock@google.com> Reset status bar in keyguard, fix MU status bar bug.

Two things going on here, status bar disabled flags need to be reset
on user switch. Also make status bar's internal disable-record lookup
multi-user aware.

Bug:7278793
Change-Id: I1d7088d956a065330736da4c09cc1874c528c133
om/android/server/StatusBarManagerService.java
18c2b6e730f6d639421e45328f4fb2514683efe5 04-Oct-2012 Victoria Lease <violets@google.com> Merge "throw SecurityException in isProviderEnabled()" into jb-mr1-dev
7077b3c9bb7367bae3e073aa213de51baf3321a9 04-Oct-2012 Amith Yamasani <yamasani@google.com> Read in the disable-keyguard-features flag from the XML file

Bug: 7283501 Exchange Services crash while using Email App after upgrading
Change-Id: I40d13f5d3805ea3139dc3938077a5265ff78c426
om/android/server/DevicePolicyManagerService.java
83762d22c9bde92d412cf5a263a228d705606721 03-Oct-2012 Victoria Lease <violets@google.com> multiuser support for LocationBlacklist

This allows primary/secondary users to have different "Google
Location Services" preferences. It also reenables LocationBlacklist,
which is fixed elsewhere.

Bug: 7213502
Bug: 7248239
Change-Id: I94837682f95920c225c00b7da2de6dd1418a673e
om/android/server/LocationManagerService.java
om/android/server/location/LocationBlacklist.java
078a490c2276c91ab84536d603c7848dc244e330 04-Oct-2012 John Spurlock <jspurlock@google.com> Clear notifications properly on ACTION_USER_STOPPED.

Which also takes care of the ACTION_USER_REMOVED case.

Bug:7277853
Change-Id: I0a6bade11bd0d420df03e16e69a386cfccfa07cc
om/android/server/NotificationManagerService.java
c19efc204aee1f0f3164dc21bd2ef3fdd4259c71 03-Oct-2012 Jeff Hamilton <jham@android.com> Changes to support updating location providers.

There is now only a single config value pointing
at a list of packages to get certs from. The old
system was a bit confusing.

The fused location provider also now builds
against SDK 17, and the meta data service version
tag was renamed from the overly generic "version"
to "serviceVersion".

Bug: 7242814
Change-Id: I00d27c9cbd5cc31a37bb4a98160435d15a72e19e
om/android/server/LocationManagerService.java
om/android/server/ServiceWatcher.java
f429921e3a8b171771e268f23fc3fa909d791441 04-Oct-2012 Victoria Lease <violets@google.com> throw SecurityException in isProviderEnabled()

In MR0, we did not allow applications to query enabled status of
location providers they did not have permission to use. Some
applications counted on this behavior, using the thrown
SecurityException to determine whether or not they have permission
to use the specified provider.

Reverting to this behavior fixes the regressions seen in those
applications.

Bug: 7251459
Change-Id: I8b0cfd5862c80f0c831a4ab544c3fa7408bc84a0
om/android/server/LocationManagerService.java
00d2d4125e4944ebcabdecd423573ee00f716293 28-Sep-2012 Satoshi Kataoka <satok@google.com> Support multi-user switch in TextServicesManagerService

Bug: 7231549
Change-Id: I737590688b895ea00d397ddec7702d6d2bec9097
om/android/server/TextServicesManagerService.java
f068fed6c4c3fc2003aec19b6e7e892358179b02 04-Oct-2012 Svetoslav Ganov <svetoslavganov@google.com> Accessibility HOVER_ENTER / EXIT without enclosing EXPLORATION_GESTURE_START / END

1. The initial implementation was not sending the gesture start and end
events until the the user has moved more than a given slop and did not
do it faster than a given velocity. However, there is the case where
if the user did not move or just taped on the screen an exploration
occurs. The system was not sending the exploration start and end
events for the latter case.

2. The delaued command for long press was not canceled when the pointer
moves more than the slop distance.

bug:7282811

Change-Id: I7d98470cd4d9ea9b2519326e5e550ff68b040747
om/android/server/accessibility/TouchExplorer.java
ebf7e2851cab55348153fca299c52042b125924d 04-Oct-2012 Satoshi Kataoka <satok@google.com> Merge "Close the current input method when attached view doesn't have a handler" into jb-mr1-dev
a6cab32d68692f69729195ac69b7f9e9c8d2001f 04-Oct-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Events for window's content change should be dispatched only for the active window." into jb-mr1-dev
58fd9f8d6ad6bf1975e834f1a69e68673db9a452 04-Oct-2012 Svetoslav Ganov <svetoslavganov@google.com> Events for window's content change should be dispatched only for the active window.

1. Accessibility events for changes in the content of a given window, such as
click, focus, etc. are dispatched to clients only if they come from the
active window.

Events for changes in the state of a window, such as window got input focus
or a notification appeared, are always dispatched. The notification events
do not contain source, so a client cannot introspect the notification area
(unless the user explicitly touches it which generates hove events). The
events for a window getting input focus change the active window so they
have to be dispatched.

Events that are a result of the user touching the screen, such as hover
enter, first tocuh, etc. should always be dispatched.

bug:7282006

Change-Id: I96b79189f8571285175d9660a22394cc84f39559
om/android/server/accessibility/AccessibilityManagerService.java
c428aae6429c3fd5e2037c3793af399d9f6e23bf 04-Oct-2012 Dianne Hackborn <hackbod@google.com> Fix issue #7267494, issue #7212347

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

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

Change-Id: I5add25bf2a763c8dfe1df23bc5c753a9ea5d157a
om/android/server/BatteryService.java
om/android/server/ShutdownActivity.java
om/android/server/Watchdog.java
om/android/server/power/PowerManagerService.java
0fd713ca12da9a1ecaaca3a117057b8d94704a99 04-Oct-2012 Mike Cleron <mcleron@google.com> Merge "Exception in the touch explorer when dragging." into jb-mr1-dev
ec33d56300aa417efb4a055786d73d1bf23a6a85 04-Oct-2012 Svetoslav Ganov <svetoslavganov@google.com> Exception in the touch explorer when dragging.

1. During a drag in touch exploration we have two pointers moving in the same
direction but inject only one of them. If the dragging pointer goes up we
send an up to the view system and wait for all pointers to go up to transition
to touch exploring state. At this point the dragging pointer id is cleared
and if a new pointer goes down we are trying to send up (rather do nothing)
for the dragging pointer which we already did and due to the invalid pointer
id we get an exception when splitting the motion event.

bug:7282053

Change-Id: I690bf8bdf6e2e5851ee46a322c4a1bb7d484b53a
om/android/server/accessibility/TouchExplorer.java
8abd7021a681dd9db355ad7b17e0249200d6cc17 04-Oct-2012 Jeff Brown <jeffbrown@google.com> Merge "Ensure dreams can be started when not powered." into jb-mr1-dev
645832dd2ba63d5328cf934ceaa0ec6339573558 03-Oct-2012 Jeff Brown <jeffbrown@google.com> Ensure dreams can be started when not powered.

Previously dreams could not be started unless plugged in.
Now we allow them to start but they will eventually stop
if a user activity timeout occurs and no screen wakelocks
are held.

Bug: 7253639
Change-Id: I84703e144ca6d4aba1ef9437f04a201c3dde8a49
om/android/server/power/PowerManagerService.java
cdf932e050ba2220025072f37e50cc011d310cad 03-Oct-2012 rich cannings <richc@google.com> Fix PackageInstaller displays with multi-user

With this fix, when all users cancel installing an app they were warned about,
then the "Installing..." screen disappears, as desired.

Bug: 7255231
Change-Id: I2475fa790a5d09abbf94411c696682502fb1e8df
om/android/server/pm/PackageManagerService.java
fc6770e748bb69f80b7b68942a273335b165000a 03-Oct-2012 Victoria Lease <violets@google.com> Merge "Remove checkPermission() call in getAllProviders()." into jb-mr1-dev
3f0a57dcd9a060bb3b2b35da4d2ac6cb42733fef 03-Oct-2012 Jeff Brown <jeffbrown@google.com> Merge changes Iccea764b,I624b559e into jb-mr1-dev

* changes:
Improve the screen dim duration calculation.
Implement screen on hack for wireless chargers.
5558b79e7a40adb3ad550e8bdf37996ddbeb714f 03-Oct-2012 Jeff Brown <jeffbrown@google.com> Merge "Fix some synchronization issues in BatteryService." into jb-mr1-dev
ff532540f18e3b2181da0550fe55045418a3b84e 03-Oct-2012 Jeff Brown <jeffbrown@google.com> Improve the screen dim duration calculation.

Take into account whether the screen off timeout is very short.
If so, we use a shorter dim timeout. Don't allow the dim
time to be more than 20% of the total screen on time so that
the screen remains bright at least 80% of the time even when
the timeout is short.

Bug: 7273646
Change-Id: Iccea764b90f0d8b1df7009d26160c6bcf6eabe5b
om/android/server/power/PowerManagerService.java
f3fb895269deadcda0cf497d421e4b89e8ee8f8f 03-Oct-2012 Jeff Brown <jeffbrown@google.com> Implement screen on hack for wireless chargers.

We can't accurately detect whether the device is resting
on a wireless charger unless it is actually charging.
So we need to tweak the screen on when plugged / unplugged
policy accordingly to avoid spurious wakeups.

Bug: 7234284
Change-Id: I624b559e2e92b8813b12090bc20eca5f5158997e
om/android/server/BatteryService.java
om/android/server/power/PowerManagerService.java
3573950e0b30178dc963de3fa00aba2ebcfd552d 02-Oct-2012 Satoshi Kataoka <satok@google.com> Close the current input method when attached view doesn't have a handler

Bug: 7187452
Change-Id: Iba4f7ac89f5806e871aaeb97f366935b83b95a5a
om/android/server/InputMethodManagerService.java
75b694f1d6038edee8b071df1e339b81d7960e97 03-Oct-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #7274813: A few sticky broadcasts aren't being sent to all users" into jb-mr1-dev
3e2358a0e677ad1c88d677919aa9b8d7b2fb4eb2 03-Oct-2012 Craig Mautner <cmautner@google.com> Merge "Delay setting hidden until after isVisibleNow test." into jb-mr1-dev
a4d8204e3068b9d8d6908d4cf3440e81967867a3 03-Oct-2012 Jeff Brown <jeffbrown@google.com> Fix some synchronization issues in BatteryService.

Some of the BatteryService state was being locked
sometimes and it wasn't at all consistent.

Bug: 7158734
Change-Id: I46e75f66fde92c5a577a80a6bd99c9573066f3c1
om/android/server/BatteryService.java
om/android/server/Watchdog.java
om/android/server/power/PowerManagerService.java
1ed299f822b22998b7236e3147d8cf4707bced08 03-Oct-2012 Jeff Sharkey <jsharkey@android.com> Merge "Make USB services multi-user aware." into jb-mr1-dev
4b5aa78c898a827c3cd65f578d31d3809b61aad6 03-Oct-2012 Craig Mautner <cmautner@google.com> Delay setting hidden until after isVisibleNow test.

Setting hidden prior to test guarantees the test will fail. This
then causes the exit animation to not be loaded and consequently
the window is immediately hidden. Then, when the window is removed
later it reappears in order to animate away. The consequent flash
is undesirable.

Bug: 7242373 fixed.
Change-Id: I56966bd9060124be372702090f86b29b4deea8c0
om/android/server/wm/WindowManagerService.java
fc3f24b4b60c10e0d3f41f70df37e11ea311cc2c 02-Oct-2012 Jeff Sharkey <jsharkey@android.com> Make USB services multi-user aware.

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

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

Bug: 7244888
Change-Id: I8a723ad3d55ac1bff99276c5f3a3f5e8f013432f
om/android/server/usb/UsbDeviceManager.java
om/android/server/usb/UsbHostManager.java
om/android/server/usb/UsbService.java
om/android/server/usb/UsbSettingsManager.java
031e9d2e21797fd668404be407dcc625f3b149c1 03-Oct-2012 Jeff Brown <jeffbrown@google.com> Merge changes I0ed9ba00,Ia8c6d7fe into jb-mr1-dev

* changes:
Fix bug removing all windows that belong to a display.
Add some missing debug output.
bcbe9cf475835102ae2490dc9f067a3ac78a9551 03-Oct-2012 Jeff Brown <jeffbrown@google.com> Merge "Add new Display API for secure video capabilities." into jb-mr1-dev
9bfb8bcfeb585c1692830ff91a36afa852455cf7 03-Oct-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Up motion event not injected by the touch explorer at the end of a drag." into jb-mr1-dev
cb882f90e4305bd40d7219707bc1796319e9c80e 03-Oct-2012 Jeff Brown <jeffbrown@google.com> Fix bug removing all windows that belong to a display.

Removing one window causes its subwindows to also be removed.
We have to be careful when traversing the window list
because multiple windows may be removed at a time so we
don't get IndexOutOfBoundsException due to the window
list changing in unexpected ways.

Bug: 7273702
Change-Id: I0ed9ba00c325ad178ab28919ce2e763cb6fd38ba
om/android/server/wm/WindowManagerService.java
5bc54bf354f6e674a129b2e286b4bd3eefe91c2b 03-Oct-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #7272775: Auto Start Apps Not Starting" into jb-mr1-dev
3ed62adad14c213117c2b869e71abc2474102ad4 03-Oct-2012 rich cannings <richc@google.com> Merge "Fix package verification with multi-user" into jb-mr1-dev
77aebfdbae489c3712ae3f9bca29d01fb1f09dc2 02-Oct-2012 Jeff Brown <jeffbrown@google.com> Add new Display API for secure video capabilities.

Added a new API to determine whether the display supports
protected buffers so that an application can choose a different
content stream or change how it decodes the content so
that it will be viewable on the display.

At present, wifi display does not fully support protected
buffers although this may be enhanced in the future.

Bug: 6986623
Change-Id: If53a53d72b0ec92753cc4b29f99fcb131e00449b
om/android/server/display/DisplayDeviceInfo.java
om/android/server/display/HeadlessDisplayAdapter.java
om/android/server/display/LocalDisplayAdapter.java
om/android/server/display/LogicalDisplay.java
om/android/server/display/OverlayDisplayAdapter.java
om/android/server/display/WifiDisplayAdapter.java
c2726643e74873c544efc2769a5ab2a445c433c4 03-Oct-2012 Jeff Brown <jeffbrown@google.com> Add some missing debug output.

Bug: 7257579
Change-Id: Ia8c6d7fefe6d4c4e6c37f20722c7ffce4bcfcbae
om/android/server/display/LogicalDisplay.java
aa4b3c79f28560930e256ec5e2c5a7a4c20f5542 03-Oct-2012 Dianne Hackborn <hackbod@google.com> Fix issue #7274813: A few sticky broadcasts aren't being sent to all users

Change-Id: I2fc89de36be0709946f562f64002d0f6d223401f
om/android/server/DeviceStorageMonitorService.java
0d21e2161f8542db0a54bf80b74b7fd33afef6f6 03-Oct-2012 Laurent Tu <laurentt@google.com> Remove checkPermission() call in getAllProviders().

getAllProviders() should return all locators, including those not
allowed or not enabled (according to the existing javadoc, at least).
The checkPermission() call prevented this behavior by throwing a
security exception. We restore the previous behavior by removing the
call.

Bug: 6950369

Change-Id: I0c6bc676d4c4db482bb68f1ab7fa5c93675118b4
om/android/server/LocationManagerService.java
4a9f071f3d3fdd20615167cda6f22da912bc60c7 03-Oct-2012 Dianne Hackborn <hackbod@google.com> Fix issue #7272775: Auto Start Apps Not Starting

Bad defaults were causing stopped state to be set at each
boot.

Change-Id: I49b04e9c62f6ac391054201b508fddb6c7985615
om/android/server/pm/PackageSettingBase.java
d5523dc7b7318f2774109dd30716ff7b74560e61 02-Oct-2012 Craig Mautner <cmautner@google.com> Call Surface.destroy when Display is removed.

Prevents leaked Surfaces.

Bug: 7272421.
Change-Id: I6c87eb11bb0bedcf8de451b04477c70c248f905d
om/android/server/display/OverlayDisplayAdapter.java
om/android/server/display/OverlayDisplayWindow.java
om/android/server/wm/DimAnimator.java
om/android/server/wm/DimSurface.java
om/android/server/wm/WindowAnimator.java
d55deb0a7163a40fe9772ce659f0a3e3ed340de3 02-Oct-2012 rich cannings <richc@google.com> Fix package verification with multi-user

Fixes the porblem of PackageManagerService always sending Intents to user 0.

Bug: 7272549
Change-Id: I25995d8b2b9a24346f4813e6d8d9a84e5d5d2b6b
om/android/server/pm/PackageManagerService.java
aeb8d0ed0d98d398a66a092c418f4f2bca8719e0 02-Oct-2012 Svetoslav Ganov <svetoslavganov@google.com> Up motion event not injected by the touch explorer at the end of a drag.

1. The up event was not injected when the last pointer went up, i.e.
at the end of the drag. This patch sends an up event if the dragging
pointer goes up for both cases, when the dragging pointer goes up
first and when it goes up second.

bug:7272830

Change-Id: I708a2b93ee2d0a4c46dbeea002841666e919602d
om/android/server/accessibility/TouchExplorer.java
6e2bee75cea415621165698fdd9ce857bbb8872e 01-Oct-2012 Jeff Sharkey <jsharkey@android.com> Migrate more System and Secure settings to Global.

Includes telephony, WindowManager, PackageManager, and debugging
settings. Update API to point towards moved values.

Bug: 7231764, 7231252, 7231156
Change-Id: I5828747205708872f19f83a5bc821ed0a801cb79
om/android/server/accessibility/ScreenMagnifier.java
om/android/server/pm/PackageManagerService.java
om/android/server/wm/WindowManagerService.java
0944d625448209185452eb4e800daec49de51986 02-Oct-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Touch explorer and magnifier do not work well together." into jb-mr1-dev
45af84a483165f06c04d74baba67f90da29c6ad2 02-Oct-2012 Svetoslav Ganov <svetoslavganov@google.com> Touch explorer and magnifier do not work well together.

1. If tocuh exploration and screen magnification are enabled and the screen
is currently magnified, gesture detection does not work well. The reason
is because we are transforming the events if the screen is magnified before
passing them to the touch explorer to compensate for the magnification so
the user can poke what he thinks he pokes. However, when doing gesture
detection/velocity computing this compensating shrinks the gestured shape/
decreases velocity leading to poor gesture reco/incorrect velocity.

This change adds a onRawMotionEvent method in the event transformation chain
which will process the raw touch events. In this method of the touch explorer
we are passing events to the gesture recognized and the velocity tracker.

2. Velocity tracker was not cleared on transitions out of touch exploring state
which is the only one that uses velocity.

bug:7266617

Change-Id: I7887fe5f3c3bb6cfa203b7866a145c7341098a02
om/android/server/accessibility/AccessibilityInputFilter.java
om/android/server/accessibility/EventStreamTransformation.java
om/android/server/accessibility/ScreenMagnifier.java
om/android/server/accessibility/TouchExplorer.java
56925d65fde7f1ac8676ada6f91d0e604645c0a5 02-Oct-2012 Irfan Sheriff <isheriff@google.com> Always update peer list in display controller

Display controller should always stay in sync with peer list to avoid
showing incorrect available status on peers which would
cause connectivity issues.

Bug: 7268307
Change-Id: If04644339c1ee3f567939e4441dd6f6a45e4179a
om/android/server/display/WifiDisplayController.java
30ed33b141dd1add916466c193b6735cd0bf8315 02-Oct-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Owner should not be announces as a user switch." into jb-mr1-dev
59f07690c2bdd97b9e486b776d2175d914818d06 02-Oct-2012 Svetoslav Ganov <svetoslavganov@google.com> Owner should not be announces as a user switch.

1. The accessibility layer announces user switches. Even though
the initial switch to the owner on a singe user device is a
valid use switch we should not announce it for accessibility.

bug:7264693

Change-Id: Idf022fab6b74c84b7a96bc4ed7c7fee2b83029a6
om/android/server/accessibility/AccessibilityManagerService.java
3750db176adbaf3f9779df5eadf335f673b2ac4f 02-Oct-2012 Victoria Lease <violets@google.com> Merge "Route GPS notifications to all users." into jb-mr1-dev
6f354ed9994b4ea7612cc4499413de108dcac7d4 02-Oct-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #7226101: Secure image capture takes 5 seconds to start" into jb-mr1-dev
046cff13fc897e9e958ef387884eb97fd901840b 02-Oct-2012 Jeff Brown <jeffbrown@google.com> Merge "Fix CTS test failures." into jb-mr1-dev
9ba8d78186647a3f23606b5ccf9adb97b57278fb 02-Oct-2012 Jeff Brown <jeffbrown@google.com> Fix CTS test failures.

Bug: 7001730
Change-Id: I5649b601c310458de5d64b549a407e251d745b7c
om/android/server/power/PowerManagerService.java
b97d8764a0aa600d7bcc6242e7173453c87ee658 02-Oct-2012 Craig Mautner <cmautner@google.com> Merge "Switch from uevent model to /dev/input/event." into jb-mr1-dev
cc5a055613efb463275633d83a04674b0be6d770 02-Oct-2012 Dianne Hackborn <hackbod@google.com> Fix issue #7226101: Secure image capture takes 5 seconds to start

Mostly (turned off) debug output. Main fix is to resume the next
activity if we are pausing while sleeping and the top activity is
not the now pausing activity. Also helped things by fixing a problem
where removing a task would leave around dead destroy timeout
messages.

Change-Id: I9d550c216b4d7e2afe3d93553bb680cec41e2ed1
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityStack.java
410bc60a77ee3ba6e596e84d44ec23f3325ae310 02-Oct-2012 Jeff Brown <jeffbrown@google.com> Merge changes I790820b1,I3fcf3619,Ia0d5a156 into jb-mr1-dev

* changes:
Enable hardware acceleration for pointer location overlay.
Disable use of twilight mode for auto-brightness.
Use new API to override user activity timeout from keyguard.
cb6f950f15919794d26a55c20090fe5dacd11e4a 02-Oct-2012 Jeff Brown <jeffbrown@google.com> Merge "New internal API to eliminate poke locks." into jb-mr1-dev
2961d111570d310b3ba504784e7cff651bc93207 01-Oct-2012 Victoria Lease <violets@google.com> Merge "Avoid NPE in GpsLocationProvider" into jb-mr1-dev
db21284a7fb081065d26137891594bd8495b116f 01-Oct-2012 Jeff Brown <jeffbrown@google.com> Disable use of twilight mode for auto-brightness.

This adjustment is still experimental.

Bug: 7165399
Change-Id: I3fcf361933995d02a5329eeaec80155b39371ba3
om/android/server/power/DisplayPowerController.java
1e3b98d47df596d0c4eadbdf60143709f8465b28 01-Oct-2012 Jeff Brown <jeffbrown@google.com> New internal API to eliminate poke locks.

Added a new WindowManager.LayoutParams inputFeatures flag
to disable automatic user activity behavior when an input
event is sent to a window.

Added a new WindowManager.LayoutParams field userActivityTimeout.

Bug: 7165399
Change-Id: I204eafa37ef26aacc2c52a1ba1ecce1eebb0e0d9
om/android/server/power/PowerManagerService.java
om/android/server/wm/WindowManagerService.java
1f7a09b5df9f859781d9cfa0053fad44c72c2168 01-Oct-2012 Craig Mautner <cmautner@google.com> Merge "Only inform DisplayManager of visible content." into jb-mr1-dev
65d11b3eeff395011a2c6b56eb117fd3c4881c1a 01-Oct-2012 Craig Mautner <cmautner@google.com> Only inform DisplayManager of visible content.

WindowManager was notifying DisplayManager of content if any window
existed on a display. Now the window must be visible and we must not
be showing a Dream or the Keyguard.

Bug: 7214060.
Change-Id: I9ce4a49aabfbac22ff1e39a837199ce35b9f7503
om/android/server/display/DisplayManagerService.java
om/android/server/wm/WindowManagerService.java
b525c3cfc7484c87fcf96b48447b2a220b25f519 01-Oct-2012 Amith Yamasani <yamasani@google.com> Merge "Fix broadcast to a specific user" into jb-mr1-dev
2036a94a9004613644bdbdab1b10e476be3f0213 01-Oct-2012 Amith Yamasani <yamasani@google.com> Merge "Fix cache deletion for secondary users" into jb-mr1-dev
5c24fd03426db58b63e1a792c2595447cb722d46 01-Oct-2012 Victoria Lease <violets@google.com> Avoid NPE in GpsLocationProvider

Oops, looks like we were spinning up a secondary thread to run some
tasks that will just happen on the main thread regardless. Removed
the secondary thread and fixed up initialisation order regarding
mHandler and things that post to it. Also reordered GPS and
PASSIVE provider initialisation order since GPS depends on PASSIVE.

This should be both safer and easier to read.

Bug: 7248029
Change-Id: I8630caf0a7bd1b2c401603075676f13dda5be4fa
om/android/server/LocationManagerService.java
om/android/server/location/GpsLocationProvider.java
5e3dcf7210bed65d8f9aec40d9da078daf76dead 01-Oct-2012 Jeff Brown <jeffbrown@google.com> Merge "Remove clearUserActivityTimeout()." into jb-mr1-dev
e98bde011c1a723b1dffa632d7dd3b194fb4084f 01-Oct-2012 Amith Yamasani <yamasani@google.com> Fix broadcast to a specific user

Bug: 7255777
Bug: 7263657

When userId is neither CURRENT nor ALL, the correct list of receivers
was not being built, due to a typo in ActivityManagerService;

Change-Id: Ib1dc627f0dbd1c91d02c718d2e4d2384ad687d1f
om/android/server/am/ActivityManagerService.java
54289b8b4a110cc1ae106d79785cc762a2aebd6e 01-Oct-2012 Amith Yamasani <yamasani@google.com> Fix cache deletion for secondary users

Bug: 7249419

Change-Id: Idbc0f9994508059ebf5055aea961b87e08b3673a
om/android/server/pm/Installer.java
om/android/server/pm/PackageManagerService.java
c56e5600501a5c376dc13e6a99fcec7782fc8718 01-Oct-2012 Adam Powell <adamp@google.com> Merge "Construct a task stack for picking a wifi network from notification" into jb-mr1-dev
38389b6cf7bd2ef49d2bd20ff1bca8677596590e 30-Sep-2012 Victoria Lease <violets@google.com> Route GPS notifications to all users.

This takes the easy way around notifying the correct users
about GPS state transitions by notifying ALL the users(!).

I've also laid groundwork for proper multiuser support in
LocationManager and did a tiny bit of cleanup in
GpsNetInitiatedHandler while I was looking at notifications.

Bug: 7213552
Change-Id: I2d6dc65c459e55d110ac0f5f79ae7a87ad638ede
om/android/server/LocationManagerService.java
13451a25fff12c1429f9ecdc24b2aa7696359f7d 28-Sep-2012 John Spurlock <jspurlock@google.com> Status bar: Keep disabled state per user.

Bug:7165607
Change-Id: If6f7a41c2516996612aef5e013dd0d2bd23f9084
om/android/server/StatusBarManagerService.java
135e5fb71242b1151929e2ea7bf221ff421e6ad2 28-Sep-2012 Satoshi Kataoka <satok@google.com> Always accept API calls from processes which have INTERACT_ACROSS_USERS_FULL in InputMethodManagerService

Bug: 6931482
Change-Id: I1620413578b9e8da6564664219f65bdc00d5ecfd
om/android/server/InputMethodManagerService.java
d56b4d1db34bd6928f599e7e9a7321c2a81cb995 01-Oct-2012 Adam Powell <adamp@google.com> Construct a task stack for picking a wifi network from notification

Bug 7001327

Change-Id: I5a79e6933cd33386cd0aa4df626f15902deedd67
om/android/server/WifiService.java
2f39e9f8333183312b7f7d423c2ea60a93a25e32 21-Sep-2012 Craig Mautner <cmautner@google.com> Switch from uevent model to /dev/input/event.

Headsets are now detected from calls coming in from the input switch
subsystem if a config.xml value is set to true.

Bug: 6548391.

Change-Id: I79259d2742e157b106a746474f32ffd1c171ddf3
om/android/server/SystemServer.java
om/android/server/WiredAccessoryManager.java
om/android/server/WiredAccessoryObserver.java
om/android/server/input/InputManagerService.java
71520a68f3906ce2a7e425edd7fe08bac535a967 01-Oct-2012 Jeff Sharkey <jsharkey@android.com> Merge "Handle ISE when physical volume isn't mounted." into jb-mr1-dev
edce6a797878792de2b0bde4360f3171b9e9d9d2 01-Oct-2012 Jeff Brown <jeffbrown@google.com> Remove clearUserActivityTimeout().

This function is not implemented and not needed.

Bug: 7165399
Change-Id: Ib1c50fabad6292ccf670404ba70aeb1242c4614d
om/android/server/power/PowerManagerService.java
2a30547af44536f6b0e2f7020ac1a435c72afc84 01-Oct-2012 Dianne Hackborn <hackbod@google.com> Merge "Work on issue #6949468: android.dpi.cts.ConfigurationScreenLayoutTest..." into jb-mr1-dev
fe37f8f51d90fc4c6230e54dcd1270df5fcc6be3 30-Sep-2012 Dianne Hackborn <hackbod@google.com> Work on issue #6949468: android.dpi.cts.ConfigurationScreenLayoutTest...

...#testScreenLayout failures on JO

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

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

Change-Id: Ic6a84b955e9ec345a87f725203a29e4712dac0ad
om/android/server/wm/WindowManagerService.java
a2064df6ab77f71e9187da380cbe355c5eaf5a64 30-Sep-2012 rich cannings <richc@google.com> Disable package verification in test harness

Bug: 7233608
Change-Id: I521980728f5fb68b42a3906ff4fd25cd59dbbd7a
om/android/server/pm/PackageManagerService.java
32ee831eabc43001d756897e57f52f527bd9c431 30-Sep-2012 Jeff Sharkey <jsharkey@android.com> Handle ISE when physical volume isn't mounted.

Bug: 7238149
Change-Id: I85081225a1a43a2c1b6f70b6275c6bbca0b3764e
om/android/server/MountService.java
a6efc965cc6f42ab88c08e48463ea4604d29cc77 30-Sep-2012 Craig Mautner <cmautner@google.com> Merge "Changing debug for b/7094175." into jb-mr1-dev
c36c49ee83123d6083c05a3e333ac43a13f664cd 30-Sep-2012 Craig Mautner <cmautner@google.com> Changing debug for b/7094175.

Fixes bug 7094175 (but not really).

Change-Id: Ice2abb93f479ea0bda931e9643710668c25aa285
om/android/server/wm/WindowManagerService.java
9ea8f390dbe8123415b9d64ce1a31683012958d9 29-Sep-2012 Svetoslav Ganov <svetoslavganov@google.com> Explore by touch enabled when screen magnification is on.

1. A recently added check was preventing touch exploration being
disabled when the last touch exploring service was turned off.
As a consequence enabling explore by touch was initializing the
input filter with the magnification and the not disabled
screen magnification features.
bug:7256223

Change-Id: I9ed5457705d625805462e4d316b2c8a5af9aabca
om/android/server/accessibility/AccessibilityManagerService.java
7f813202cb08a829b59e17be749ffee4a2f482b8 29-Sep-2012 Jeff Brown <jeffbrown@google.com> Merge "Get rid of preventScreenOn()." into jb-mr1-dev
120664816a9bf325b618d8dd40febae2e3636ec8 29-Sep-2012 Jeff Brown <jeffbrown@google.com> Get rid of preventScreenOn().

Bug: 7165399
Change-Id: I1968265ecd74fff4d85efd2ca03b1983425ea518
om/android/server/power/PowerManagerService.java
84215565dd5dda84db7fd35b8ae4ccb571465cd2 29-Sep-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #7255954: API Review: rename Dream to DreamService" into jb-mr1-dev
be87e2f5885b28145a788fd31d1fb5ae88a71100 29-Sep-2012 Dianne Hackborn <hackbod@google.com> Fix issue #7255954: API Review: rename Dream to DreamService

Change-Id: I89ecf2c3ec4fef09c0495aa68de11576f9cfd872
om/android/server/SystemServer.java
om/android/server/UiModeManagerService.java
om/android/server/dreams/DreamController.java
om/android/server/power/PowerManagerService.java
c5211780ce60cd77d31b4df0f708bb760daddd5d 29-Sep-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Sending interaction end event at the end of a drag." into jb-mr1-dev
46824214bbe75d7e7e50cb15e3293c703d597a5f 29-Sep-2012 Svetoslav Ganov <svetoslavganov@google.com> Sending interaction end event at the end of a drag.

1. In explore-by-touch when the user slides two fingers in the same
direction we consider it a drag gesture. We merge the pointers into
one and deliver a touch event. When one of the pointers goes up
we were transitioning into touch exploring state. This means that
were transitioning to another state in the middle of a gesture which
creates complications and leads for interaction end event not being
sent.

This change transitions out of dragging state when all pointers go up
- simple and all events are properly sent. Consequentially, staring a
drag the user has to lift all pointers to touch explore. Since usually
users either drags or touch explores this seems the simplest and
*least risky* fix.

bug:7253731

Change-Id: Ie8588fbe9b26cb81312bd7fd377c94732e41e3f8
om/android/server/accessibility/TouchExplorer.java
3ff8e1a80058e5557d13693d3223e1aa011c0038 29-Sep-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #7211769 and #7244492, thrash around on #7226656." into jb-mr1-dev
925a659d824089d2977b44a6740f793ae65f809a 29-Sep-2012 Robert Greenwalt <rgreenwalt@google.com> Merge "Use updatable file for premium-sms filter" into jb-mr1-dev
d4ac8d7b3de27a9f0e4c6af2496ca71d794e42d1 28-Sep-2012 Dianne Hackborn <hackbod@google.com> Fix issue #7211769 and #7244492, thrash around on #7226656.

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

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

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

Now they do.

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

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

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

Change-Id: Iadf8f8e4878a86def2e495e9d0dc40c4fb347021
om/android/server/am/ActivityManagerService.java
om/android/server/am/AppErrorDialog.java
om/android/server/am/StrictModeViolationDialog.java
om/android/server/am/UserStartedState.java
om/android/server/pm/PackageSettingBase.java
om/android/server/pm/Settings.java
om/android/server/pm/UserManagerService.java
47c52a873e78d78a73abe85bb5491701a7b39feb 28-Sep-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Some accessibility events not sent from touch explorer if apps misbehave." into jb-mr1-dev
fe304b893968887323b93764caafa66ee8ad44de 28-Sep-2012 Svetoslav Ganov <svetoslavganov@google.com> Some accessibility events not sent from touch explorer if apps misbehave.

1. The touch explorer is relying on the hover exit accessibility event to be sent
from the app's view tree before sending the exploration end and last touch
accessibility events. However, if the app is buggy and does not send the hover
exit event, then the interaction ending events are never sent. Now there is a
timeout in which we wait for the hover exit accessibility event before sending
the gesture end and last touch accessibility events. Hence, we are making a
best effort to have a consistent event stream.

2. Sneaking in the new nine patch for the border around the magnified region
since the current one is engineering art.

bug:7233616

Change-Id: Ie64f23659c25ab914565d50537b9a82bdc6a44a0
om/android/server/accessibility/TouchExplorer.java
01996793dd2a70acb0ae006960c23c31f0e39d5f 28-Sep-2012 Amith Yamasani <yamasani@google.com> Merge "Remove user switcher from long-press power menu" into jb-mr1-dev
9dbbfcda81f251f23aded866f7f9d49d8a744c75 28-Sep-2012 Ben Gruver <bgruv@google.com> Merge "Pass the originating uid to the package verifier" into jb-mr1-dev
95841ac3c2d45a839cc3cd0bd420fd9d91ccd583 28-Sep-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Inconsistent events on transition from gesture detection to touch exploration." into jb-mr1-dev
ca8688207b68612419213cc8f3afd7abeb03a181 28-Sep-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Accessibility services that do not accept events are mismanaged." into jb-mr1-dev
c6fa237daeaae6107174a9b9d4f591ea8cd26d86 24-Sep-2012 Robert Greenwalt <rgreenwalt@google.com> Use updatable file for premium-sms filter

The data is really to big for a gservices-driven secure setting.

bug:7221402
Change-Id: Ie3d4a1a0aeb69b9ef8fad360fa7ec32e927644e8
om/android/server/updates/ConfigUpdateInstallReceiver.java
om/android/server/updates/SmsShortCodesInstallReceiver.java
bc4ba82335c091cebaaee8b20987a61fb54c1727 28-Sep-2012 Amith Yamasani <yamasani@google.com> Remove user switcher from long-press power menu

Bug: 7252218

Also lock the screen before doing the user switch. This prevents the
janky behavior of showing the target user's homescreen after the switch
and then the lock screen. This is also a privacy issue.

Change-Id: I9f8db047335d06fc93505d7b5cca71e27ca3ac39
om/android/server/am/ActivityManagerService.java
a174a776321e1620258b78424dfe38b382327679 28-Sep-2012 John Spurlock <jspurlock@google.com> Merge "Close the notification shade when starting dream." into jb-mr1-dev
0dc2b81ce1400ae23faa5cc386caeef235856307 28-Sep-2012 Daniel Sandler <dsandler@android.com> Merge "Cleanup internal status bar APIs." into jb-mr1-dev
aed4b6f812674bc60a04470013ca449e5c114fa5 28-Sep-2012 Svetoslav Ganov <svetoslavganov@google.com> Inconsistent events on transition from gesture detection to touch exploration.

1. The problem is that we have a gesture detection timeout after which we transition
to touch exploration state. This handles the case where the user is using too high
velocity while trying to touch explore. The delayed command that transitions from
gesture detection state to touch exploration state was not firing an event for the
end of gesture detection and begin of touch exploration before doing its main work
to transition to touch exploring state.

bug:7233819

Change-Id: I5c4855231aa3826dadbee324e74a3c9e52c96cd9
om/android/server/accessibility/TouchExplorer.java
1f22b6a25d7df6c5488d9bd01793e7a20d921349 28-Sep-2012 Svetoslav Ganov <svetoslavganov@google.com> Accessibility services that do not accept events are mismanaged.

1. If an accessibility service does not specify that it handles any
event types it was never added to the list of services while
the system is bound to it. Since the service is not in the list
with enabled services we never unbind it, hence it consumes
resources without doing nothing. This is also semantically
incorrect because a sevice may not want to receive events while
handling only gestures.

bug:5648345

Change-Id: Id478a4704cdeeb1729330f6ae4b8ff9e06320952
om/android/server/accessibility/AccessibilityManagerService.java
591a9e8d6ef2cab3ab3a701bd6279b6c12e6e4c6 28-Sep-2012 John Spurlock <jspurlock@google.com> Close the notification shade when starting dream.

Bug:7205491
Change-Id: I17d2b75bc502ff8fb739a6cbb4d0219681fa4e8a
om/android/server/dreams/DreamController.java
13701b50f533775fd7a547fd0e479c1ec9035ce8 28-Sep-2012 Jeff Brown <jeffbrown@google.com> Merge "Bundle correlated switch changes atomically." into jb-mr1-dev
3cd961292e877cc5fac146290421e9e67aa553a2 28-Sep-2012 Satoshi Kataoka <satok@google.com> Merge "Fix ime swtich issue" into jb-mr1-dev
d08a9238db0de62c956788ceebb227d099ad88c2 28-Sep-2012 Satoshi Kataoka <satok@google.com> Fix ime swtich issue

Bug: 7250097
Change-Id: Ibe85aaf7d60e7c3a27363eece528d19a0c8ddca2
om/android/server/InputMethodManagerService.java
448f6e1e1471db2caf218ca8918c2d82306b450a 28-Sep-2012 Hiroshi Lockheimer <hiroshi@google.com> Merge "temporarily disable blacklisting" into jb-mr1-dev
bcc046af4ef171aa3aa3c6b64efb5cafc1e46cd3 28-Sep-2012 Jeff Brown <jeffbrown@google.com> Bundle correlated switch changes atomically.

This is a prerequisite for headset jack detection on Manta.

Bug: 6548391
Change-Id: I549a194344511c0cee578b00f6a9ab5fdbdfb99c
om/android/server/input/InputManagerService.java
7befb7deb2ac15134b3bb190520cba19165d16dd 28-Sep-2012 Svetoslav Ganov <svetoslavganov@google.com> Global gesture to toggle Accessibility system-wide.

1. This change adds a global gesture for enabling accessibility.
To enable this gesture the user has to allow it from the
accessibility settings or use the setup wizard to enable
accessibility. When the global gesture is enabled the user
can long press on power to bring the global actions dialog
and then hold with two fingers for a few seconds to enable
accessibility. The appropriate feedback is also provided.

2. The global gesture is writing directly into the settings for
the current user if performed when the keyguard is not on. If
the keygaurd is on and the current user has no accessibility
enabled, the gesture will temporary enable accessibility
for the current user, i.e. no settings are changed, to allow
the blind user to log into his account. As soon as a user
switch happens the new user settings are inherited. If no
user change happens after temporary enabling accessibility
the temporary changes will be undone when the keyguard goes
away and the device will works as expected by the current user.

bug:6171929

3. The initialization code for the owner was not executed due
to a redundant check, thus putting the accessibility layer in
an inconsistent state which breaks pretty much everything.

bug:7240414

Change-Id: Ie7d7aba80f5867b7f88d5893b848b53fb02a7537
om/android/server/accessibility/AccessibilityManagerService.java
e49611452823d74b0657aed1cee8a4863f95ad8d 28-Sep-2012 Satoshi Kataoka <satok@google.com> Merge "Treat additional inputmethod subtypes per user" into jb-mr1-dev
3dc0b80dc6e6aa156eea4d737cdeaad96aa1125a 28-Sep-2012 Craig Mautner <cmautner@google.com> Merge "Fix layout state issues." into jb-mr1-dev
b319d5de196f7ff8fac39a567a449dd93db832c8 28-Sep-2012 Victoria Lease <violets@google.com> temporarily disable blacklisting

Bug: 7248239
Change-Id: I2ef28fa0d6890a127fc424e58a148fe1fb15b683
om/android/server/location/LocationBlacklist.java
812d2ca475e88d4e52870a4eeeb096a411f0f077 28-Sep-2012 Craig Mautner <cmautner@google.com> Fix layout state issues.

- Restore test of hidden to isGoneForLayoutLw(), without that
we return false when setAppVisibility(true) is called which leads
to early layout of windows. Particulary on return from full screen
to non-full we lay out once before recognizing that the status bar
should be back and then again once the status bar appears causing
a jump. Fixes bug 6470541.

- Add a new test for configuration size changes to gone or hidden
windows. This forces a layout call to these windows which informs
them of the new size even though they are not shown until later.
In particular this keeps windows that were in the background
during a rotation from using their old boundaries on return.
Fixes bug 6615859.

- Consolidate WindowState.mConfiguration tests into WindowState.

Change-Id: I7a82ce747a3fcf7d74104dc23f1532efe64bd767
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
625239a05401bbf18b04d9874cea3f82da7c29a1 27-Sep-2012 Jeff Sharkey <jsharkey@android.com> Migrate more Secure settings to Global.

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

Bug: 7232014, 7231331, 7231198
Change-Id: I772c2a9586a2f708c9db95622477f235064b8f4d
om/android/server/BatteryService.java
om/android/server/ConnectivityService.java
om/android/server/DevicePolicyManagerService.java
om/android/server/DeviceStorageMonitorService.java
om/android/server/DropBoxManagerService.java
om/android/server/NsdService.java
om/android/server/am/ActivityManagerService.java
om/android/server/net/NetworkStatsService.java
om/android/server/pm/PackageManagerService.java
3f91e43eb00764cebfdffb42a3ddcb723ae439e0 27-Sep-2012 Christopher Tate <ctate@google.com> Merge "Full (local) restore security changes" into jb-mr1-dev
37d83a3caf138e35fa1a355787d20c351f6b37a6 27-Sep-2012 Ben Gruver <bgruv@google.com> Pass the originating uid to the package verifier

Bug: 6923241
Change-Id: I85a3e0d53b469543cb0551d3a440d2663b5d0697
om/android/server/pm/PackageManagerService.java
f6d6fa8cbc0251da1900e858bb0379cda5014b6f 27-Sep-2012 Christopher Tate <ctate@google.com> Full (local) restore security changes

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

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

Bug 7168284

Change-Id: Id6a0cb4c113c2e4a8c4605252cffa41bea22d8a3
om/android/server/BackupManagerService.java
580ee8b0c6e1aea1e2e1d60499b603b9168b44f0 27-Sep-2012 Adam Cohen <adamcohen@google.com> Merge "Fixing AppWidgetService / AppWidgetHost to work in system process" into jb-mr1-dev
11cf178100e71d3f9f34ab5865e03a277c5eadaa 27-Sep-2012 Daniel Sandler <dsandler@android.com> Cleanup internal status bar APIs.

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

Bug: 7245229
Change-Id: Id157d2fdf34926d3c85ffa8b81c741a5359aede4
om/android/server/StatusBarManagerService.java
om/android/server/accessibility/AccessibilityManagerService.java
5ade83ba1233b33c5570caac6e081229e32d6cec 26-Sep-2012 Satoshi Kataoka <satok@google.com> Treat additional inputmethod subtypes per user

Bug: 6931482
Change-Id: I4f7c7e69a80534da3a48ac508ff7a9e7511f33ce
om/android/server/InputMethodManagerService.java
2480bc12a525a55ebff453dbf6ca95258b9f23cf 27-Sep-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #7232952: Settings crash on tapping on Downloaded apps on a secondary user" into jb-mr1-dev
c7ba771a4584d624e66167d018fed7727a819032 27-Sep-2012 Dianne Hackborn <hackbod@google.com> Fix issue #7232952: Settings crash on tapping on Downloaded apps on a secondary user

Also tweak bind flags for new location services so they
aren't put so aggressively up in the oom adj list.

Change-Id: I9da25a3fea7681013b4d95b7db7e9a808f2d733b
om/android/server/ServiceWatcher.java
om/android/server/am/ActivityManagerService.java
7bb89cf1632da6dc236e6603c4245301500eeb39 27-Sep-2012 Jeff Brown <jeffbrown@google.com> Merge changes I2c09abaa,I9d8406e1 into jb-mr1-dev

* changes:
Cure narcolepsy.
Allow applications to connect to known wifi displays.
f21b94a8774f238daf90105a42bc6c140dd7dae2 27-Sep-2012 Jeff Sharkey <jsharkey@android.com> Merge "Remove unused Secure settings." into jb-mr1-dev
68b7a6d14b68b38324ffd275c7227805c7d99b2d 27-Sep-2012 Jeff Sharkey <jsharkey@android.com> Merge "First step towards cleaning up Global settings." into jb-mr1-dev
f9d40f4236544db87c79d2d5dfce158a411b87d0 27-Sep-2012 Jeff Brown <jeffbrown@google.com> Cure narcolepsy.

Bug: 7204211
Change-Id: I2c09abaad5d321cec6f62f7ca0ce00c3b61ee211
om/android/server/UiModeManagerService.java
bc335457462a12434a9df6955de1dd693cdccac7 27-Sep-2012 Jeff Brown <jeffbrown@google.com> Allow applications to connect to known wifi displays.

Bug: 7177920
Change-Id: I9d8406e1016988e2cd267dfa52d78a829f1b385e
om/android/server/display/DisplayManagerService.java
om/android/server/display/WifiDisplayAdapter.java
3ff2d867d46067132890a5a6ad68be8a4314d7f6 26-Sep-2012 Adam Cohen <adamcohen@google.com> Fixing AppWidgetService / AppWidgetHost to work in system process

-> Fixes issue 7208464
-> Fixed issue with partial update as well, should address
issue 7214731

Change-Id: Ib8d9d5bee68b4fa7d6b4fbbc2f6609c287689958
om/android/server/AppWidgetServiceImpl.java
4de9936e85696208dfe91d1c40e3e5226e57634a 27-Sep-2012 Jeff Sharkey <jsharkey@android.com> Remove unused Secure settings.

Carefully leave default values intact in Watchdog for now.

Bug: 7232007, 7232230
Change-Id: Id944181109305aed41e0766fdd39625b43cb1d19
om/android/server/Watchdog.java
eed8f06f7f5d8f934ea99f16ef987a3ae1bd99b2 27-Sep-2012 Philip Milne <pmilne@google.com> Merge "Fix for bug: #7173350. elapsedRealtimeNano() -> elapsedRealtimeNanos()" into jb-mr1-dev
bdfce2ec05a3e9ca6acd6711de6133e06f2446e6 27-Sep-2012 Jeff Sharkey <jsharkey@android.com> First step towards cleaning up Global settings.

Remove all @Deprecated @hide settings, and clean up any stragglers.

Bug: 7232125
Change-Id: Ibf67093c728d4a28565129b923edb1701d3b2789
om/android/server/ConnectivityService.java
om/android/server/ThrottleService.java
62c82e4d92cc0b856059f905d81885f7808a0e7d 26-Sep-2012 Jeff Brown <jeffbrown@google.com> Make DreamManagerService more robust.

Clearly isolated the DreamManagerService and DreamController
responsibilities. DreamManagerService contains just enough logic to
manage the global synchronous behaviors. All of the asynchronous
behaviors are in DreamController.

Added a new PowerManager function called nap() to request the device
to start napping. If it is a good time to nap, then the
PowerManagerService will call startDream() on the DreamManagerService
to start dreaming.

Fixed a possible multi-user issue by explicitly tracking for
which user a dream service is being started and stopping dreams
when the current user changes. The user id is also passed to
bindService() to ensure that the dream has the right environment.

Fix interactions with docks and the UI mode manager. It is
important that we always send the ACTION_DOCK_EVENT broadcast
to the system so that it can configure audio routing and the like.
When docked, the UI mode manager starts a dock app if there is
one, otherwise it starts a dream.

This change resolves issues with dreams started for reasons other
than a user activity timeout.

Bug: 7204211
Change-Id: I3193cc8190982c0836319176fa2e9c4dcad9c01f
om/android/server/DockObserver.java
om/android/server/SystemServer.java
om/android/server/UiModeManagerService.java
om/android/server/dreams/DreamController.java
om/android/server/dreams/DreamManagerService.java
om/android/server/power/PowerManagerService.java
cef440f2a2bb8b6e8d082d12a67dc21f2ee65e3c 26-Sep-2012 Jeff Brown <jeffbrown@google.com> Move DreamManagerService to its own package.

Bug: 7204211
Change-Id: Ia6cfe252647161df357a4de149a06fa1e3fd63fa
om/android/server/DreamController.java
om/android/server/DreamManagerService.java
om/android/server/SystemServer.java
om/android/server/dreams/DreamController.java
om/android/server/dreams/DreamManagerService.java
e521573097390ce5465fc9b88dee2ae62f2317c6 26-Sep-2012 Dianne Hackborn <hackbod@google.com> Merge "Maybe fix issue #7211766: bindService() to User u0 While u10 is..." into jb-mr1-dev
b12e1354f25f04e9c9a71da76c6fca858b7d39d0 26-Sep-2012 Dianne Hackborn <hackbod@google.com> Maybe fix issue #7211766: bindService() to User u0 While u10 is...

...Forground Sometimes Doesn't Take

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

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

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

Change-Id: Icda77fb2a1dd349969e3ff2c8fff0f19b40b31d3
om/android/server/am/ActiveServices.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityRecord.java
om/android/server/am/ActivityStack.java
om/android/server/am/BroadcastFilter.java
om/android/server/am/BroadcastQueue.java
om/android/server/am/BroadcastRecord.java
om/android/server/am/ConnectionRecord.java
om/android/server/am/ContentProviderRecord.java
om/android/server/am/EventLogTags.logtags
om/android/server/am/ProcessList.java
om/android/server/am/ProcessRecord.java
om/android/server/am/ServiceRecord.java
1951db86f527ff4e8c2ddf4306779ce956cd372d 26-Sep-2012 Jeff Sharkey <jsharkey@android.com> Merge "Multi-user ringtone playback." into jb-mr1-dev
4118012da9a22694b3353040a485f8cdc27e2f17 26-Sep-2012 Philip Milne <pmilne@google.com> Fix for bug: #7173350. elapsedRealtimeNano() -> elapsedRealtimeNanos()

Change-Id: Ie38952bbaace080e81e41e61350cda172951d548
om/android/server/LocationManagerService.java
om/android/server/TwilightService.java
om/android/server/location/GpsLocationProvider.java
om/android/server/location/LocationBasedCountryDetector.java
65c4a2b26cd8776b0927e9b0e07ecf53bd31b627 26-Sep-2012 Jeff Sharkey <jsharkey@android.com> Multi-user ringtone playback.

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

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

Bug: 7202982
Change-Id: Ibf0eca8df80c1486711144a7b648f464aadfe099
om/android/server/NotificationManagerService.java
72a374705d32cf715443aa203f75c159e1bc9bd5 26-Sep-2012 Victoria Lease <violets@google.com> Merge "getBestProvider() prefers GPS over NLP" into jb-mr1-dev
4e1ab15b305aac26ad8819fc3b2951e20985944d 13-Sep-2012 Satoshi Kataoka <satok@google.com> Enable multi-user function for IMF

Bug: 6931482

Change-Id: Ib23849d352db33f0747aa9d5a178f00ac726c13b
om/android/server/InputMethodManagerService.java
5e1c74dbbe1ccf93ab13a3cc9e46e98988036762 26-Sep-2012 Matthew Xie <mattx@google.com> Merge "Remove permission check in registerAdapter" into jb-mr1-dev
670ef53353f0fc6f295df2f440bf8a159cc283f4 26-Sep-2012 Matthew Xie <mattx@google.com> Remove permission check in registerAdapter

This matches the JB behavior of getDefaultAdapter public api
bug 6948829

Change-Id: I86135bf45fddbb2d078f855f91a34d6fcce237a2
om/android/server/BluetoothManagerService.java
6e065a729dbf08f99209a7710da80442a394ec0d 26-Sep-2012 Jeff Sharkey <jsharkey@android.com> Merge "Handle multi-user mountObb() requests." into jb-mr1-dev
4fbbda4cecb078bd3867f416b02cc75f5455284f 25-Sep-2012 Jeff Sharkey <jsharkey@android.com> Handle multi-user mountObb() requests.

Since emulated external storage paths differ based on execution
context, carefully fix up paths for various use-cases:

1. When sending paths to DefaultContainerService, always scope
OBB paths as belonging to USER_OWNER.
2. When sending paths to vold, always build emulated storage paths
visible to root.
3. Always use the original untouched path when talking with apps.

Mount OBB containers using shared app GID, so that an app can read
the mount point across users.

Handle legacy paths like "/sdcard" by resolving the canonical path
before sending to MountService. Move tests to servicestests, and
add tests for new path generation logic.

Bug: 7212801
Change-Id: I078c52879cd08d9c8a52cc8c83ac7ced1e8035e7
om/android/server/MountService.java
b32e221699201cb647beae3fe0a1771fd5a41cf4 26-Sep-2012 Jeff Brown <jeffbrown@google.com> Merge changes I332f020f,I632648ac into jb-mr1-dev

* changes:
Update references to migrated global settings.
Handle user switched for settings changes.
0a52088e58a6ddea0966ba9cd2fbc7bd3e23809a 26-Sep-2012 Jeff Brown <jeffbrown@google.com> Merge "Fix typo." into jb-mr1-dev
c91fb5875bfd7f91d50d6fe939873872b53c8b2f 26-Sep-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Adding a global accessibility action to open quick settings." into jb-mr1-dev
e20a177d3f147f3011647c3bdab401f90b2c5d1d 26-Sep-2012 Svetoslav Ganov <svetoslavganov@google.com> Adding a global accessibility action to open quick settings.

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

bug:7030487

Change-Id: Ic7b46e1a132f1c0d71355f18e7c5a9a2424171c3
om/android/server/StatusBarManagerService.java
om/android/server/accessibility/AccessibilityManagerService.java
98edc951712823dbf5db2b7e9c203a0e98fc616b 25-Sep-2012 Amith Yamasani <yamasani@google.com> Load resources for the correct user

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

Bug: 7214384

Also fix binding to remote views

Bug: 7192802

Change-Id: I5d6c5f624aa37fb231f3467f9764c8d99077a91d
om/android/server/AppWidgetServiceImpl.java
om/android/server/StatusBarManagerService.java
bf6f6f9de72c9fd15e6bda9f228c05a9b37d6324 26-Sep-2012 Jeff Brown <jeffbrown@google.com> Update references to migrated global settings.

Fixed one setting that was migrated but not marked deprecated.

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

Bug: 7231172
Change-Id: I332f020f876a18d519a1a20598a172f1c98036f7
om/android/server/BackupManagerService.java
om/android/server/BluetoothManagerService.java
om/android/server/ConnectivityService.java
om/android/server/DockObserver.java
om/android/server/NetworkTimeUpdateService.java
om/android/server/NotificationManagerService.java
om/android/server/SamplingProfilerService.java
om/android/server/am/ActivityManagerService.java
om/android/server/connectivity/Tethering.java
om/android/server/location/GpsLocationProvider.java
om/android/server/pm/PackageManagerService.java
om/android/server/usb/UsbDeviceManager.java
om/android/server/wm/WindowManagerService.java
d49359631bc2642be73dc162a8a73207df1e0baf 25-Sep-2012 Jeff Brown <jeffbrown@google.com> Handle user switched for settings changes.

Move OVERLAY_DISPLAY_DEVICES to Global.

Bug: 7127417
Change-Id: I632648ac5b01408512f59424f3bb55162431bea4
om/android/server/VibratorService.java
om/android/server/display/OverlayDisplayAdapter.java
om/android/server/input/InputManagerService.java
om/android/server/power/PowerManagerService.java
28e0b09a3d22de80cca05499e98a23d5dd82fa15 25-Sep-2012 Jeff Brown <jeffbrown@google.com> Fix typo.

Bug: 7183618
Change-Id: I0c761fc7f55b3f182007cb4d50cbfdce309f844a
om/android/server/wm/WindowStateAnimator.java
1c9766e32a630c72db400a769430e60549062577 25-Sep-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "The active window for accessibilitiy incorrectly tracked." into jb-mr1-dev
a8afa694d6881266ad762aacdac92b2047f9a86c 25-Sep-2012 Svetoslav Ganov <svetoslavganov@google.com> Regression in screen introspection APIs due to the multi-user change.

1. The initial user was set to USER_NULL but some clients were registering
before the user change callback happens. Since the initial user is
the owner the current user id defaults to USER_OWNER.

2. The check for global clients and window connections was using the
calling UID but there are processes that run in a per user basis
as system UID (Setting for example). Now the check is stronger
and comparing the caller PID with that of the system process.

3. The code for finding the focused window id was not checking the
global window token list in addition to that of the current user.

4. The code updating the active window id was calling out into the
window manager with a lock held.

bug:7224670

Change-Id: I9f4b7ea67eb5598b30ee7d1b68a1d3ce0cf8cfb4
om/android/server/accessibility/AccessibilityManagerService.java
f80a9b2f8a841d32c7398ebbf4cba82b02e9f167 25-Sep-2012 Amith Yamasani <yamasani@google.com> Watch for voice recognition service changes for all users

Monitor package changes and update the default recognizer

Bug: 7216043

Change-Id: I6b358b62401eaf58b38059caa57f72585f332eb5
om/android/server/RecognitionManagerService.java
fe3632bcbea6aabe0e363c00097767465a1d7797 25-Sep-2012 Jean-Baptiste Queru <jbq@google.com> Merge into jb-mr1-dev

Change-Id: Ib0523ded92e2fe4be6a32d092baa55b527229c07
56d8cc103150eecad8911754735abec3a7ce9691 25-Sep-2012 Jean-Baptiste Queru <jbq@google.com> Merge into jb-mr1-dev

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

Change-Id: Ia9c5e2295fe61ae0f5275d3ddfd056d9778b66d1
95293865bde95d2a41cb6edb0d113277000ccb29 25-Sep-2012 Amith Yamasani <yamasani@google.com> Fix build

Merge error...

Change-Id: I0e674ee25a080fa6abfaa9da893084d6b4fa69a6
om/android/server/am/ActivityManagerService.java
0dfe1cf3cda5accef0a3c361593ccc716e725539 25-Sep-2012 Jean-Baptiste Queru <jbq@google.com> Merge into jb-mr1-dev

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

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

Change-Id: I97ff2551b36a1b590f2d314cabfcf198dd10f404
6fb2514cdf77e2657d7b73b0cd97e060aefc6b53 25-Sep-2012 Jean-Baptiste Queru <jbq@google.com> Merge into jb-mr1-dev

Change-Id: I1baab28b12364213673ed7992207ad198491f286
76c0dd48279531cb31e2a284a270c535664cbf81 25-Sep-2012 Svetoslav Ganov <svetoslavganov@google.com> The active window for accessibilitiy incorrectly tracked.

1. The active window for accessibility purposes is the either the
window the user is touching or the window that has input focus. We
were using the touch exploration gesture end event to figure
when the user stops touching the screen so we can set the active
window to the input focused one. However, we do not send such
gesture end if the user does not touch explore. If the user only
taps we do not consider this touch exploring. We now have dedicated
accessibility events for first and last touch and this change uses
them as a guide when to update the active window.

bug:6523219

Change-Id: I6262c0c5f408b02dbaa127664e4b426935d7f81f
om/android/server/accessibility/AccessibilityManagerService.java
om/android/server/accessibility/TouchExplorer.java
03e7b8881599da69207a93a2bcbbe5050efb6633 25-Sep-2012 Svetoslav Ganov <svetoslavganov@google.com> More than one finger at a time can trigger a system crash.

1. The crash was happening if: two active pointers are performing a drag;
there are some inactive pointers down; the main dragging pointer (we are
merging the dragging pointers into one) goes up; now an inactive pointer
goes up and the explorer tries to inject up for the dragging pointer
which is no longer in the event resulting in a crash. Basically two
problems: inactive pointers were not ignored; 2) having only one
active pointer should not only send the up event but also transition
the explorer in touch exploring state.

bug:6874128

Change-Id: I341fc360ebc074fe3919d5ba3b98ee5cb08dd71e
om/android/server/accessibility/TouchExplorer.java
3671410b9e09e1c5ec05dfc58651a8efaa7790dd 25-Sep-2012 Jeff Brown <jeffbrown@google.com> Fix dialogs on secondary displays.

Bug: 7183618
Change-Id: I65b650a0c423f3081c412a7341b7427b6ac85e24
om/android/server/wm/WindowStateAnimator.java
ea7e91514ee1968d15713e82a5cca745e2c46a05 25-Sep-2012 Amith Yamasani <yamasani@google.com> AppInfo from Notifications for secondary users

Required wiring up startActivitiesAsUser()

Bug: 7224950

Also fix a bug in navigateUp in secondary user

Change-Id: I114ae2de0457362d62e899fdb94b12239a3eb778
om/android/server/am/ActivityManagerService.java
1925e290e7ac2801311cb4e732d1bc5a5f3e0c44 25-Sep-2012 Victoria Lease <violets@google.com> getBestProvider() prefers GPS over NLP

Preferring the GPS location provider over NLP should produce better
average and worst-case results than NLP, which is very accurate in
certain conditions and completely useless in others.

Bug: 7182301
Change-Id: If7d50f0d3ac663cbfd84b7033adc204c11bcaca4
om/android/server/LocationManagerService.java
187f3f94901001792328b40366b434135e3f1dde 25-Sep-2012 Svetoslav Ganov <svetoslavganov@google.com> Magnified frame not properly computed when keyguard goes away.

1. The keyguard force hides some windows when it is shown and as soon
as the keyguard goes away there windows are made visible. However,
the window transition that the keyguard is moving away is reported
before the force hidden windows are shown which makes the screen
magnifier compute the magnified region with an incomplete list of
windows of interest.

bug:7215285

Change-Id: I3abc4d97b7a74de8183ad20477dadf66c82da037
om/android/server/accessibility/ScreenMagnifier.java
14a9f2b9d23976b7aae5330b56c633a03181c710 24-Sep-2012 Jeff Brown <jeffbrown@google.com> Fix drag and drop surfaces on secondary displays.

Bug: 7183618
Change-Id: I4ef746916aad984640f1eb3b3c71b1e34595aabd
om/android/server/wm/Session.java
2033763bb18913773eea3ac82bf9dbb053444ac6 24-Sep-2012 Jeff Brown <jeffbrown@google.com> Allow a window on a secondary display to have focus.

If any window on the default display has focus, then it
gets focus as usual. If no window on the default display
has focus, then we consider windows on the secondary display.

In the future we will need more elaborate schemes for
managing focus across multiple displays, but this is enough
for testing purposes now.

Bug: 7183618
Change-Id: I21ddb9904eb9e574e42d28743aeca51f4ffebf64
om/android/server/wm/WindowManagerService.java
139748fd724b482e2c012a6ec44d1c5abc0c0e97 24-Sep-2012 Dianne Hackborn <hackbod@google.com> Fix issue #7215984: java.lang.RuntimeException: Unable to create...

...service com.android.systemui.SystemUIService: java.lang.NullPointerException

- Don't acquire the activity manager lock in handleIncomingUser(),
there is really no need to do so.
- Rework the settings provider client side cache code to not hold
locks while calling into the provider.

I also changed the way the settings provider uses system properties
so that there is one property for all users. We can't do one per
user, since the system property name space is limited with a fixed
size. And we don't really need to do that; the worse that happens
by combining all users is that if one running user changes one of its
settings, all other running users will think they need to reload
settings when they go to fetch them next.

Change-Id: I13b90b832310d117eb6d721aacd122cfba7d749a
om/android/server/am/ActiveServices.java
om/android/server/am/ActivityManagerService.java
270a331cae1f8179e15c794cf8a359893d5966a1 24-Sep-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "UI test automation service should not be auto reconnected." into jb-mr1-dev
657968a65f29e9319c39b833fefc2ae7472c3e53 22-Sep-2012 Svetoslav Ganov <svetoslavganov@google.com> UI test automation service should not be auto reconnected.

1. Since adb is restarted on user switch it makes no sense to
try to reconnect the ui automation service since it will
be killed on a user switch.

Disabling touch exploration on UI automation service
connect since it can explicitly put the device in this
state if needed.

bug:6967373

Change-Id: I8cfde74f28f3f03d4ccf24746d43b8178ae2b5ef
om/android/server/accessibility/AccessibilityManagerService.java
bc391d58c8d09bd58b57dda20dd9d2281d90db32 24-Sep-2012 Philip Milne <pmilne@google.com> Merge "Revert "Fix for bug: #7173350. elapsedRealtimeNano() -> elapsedRealtimeNanos()"" into jb-mr1-dev
53fe75677212d0eb45e256a78599d7866256bc6a 24-Sep-2012 Philip Milne <pmilne@google.com> Revert "Fix for bug: #7173350. elapsedRealtimeNano() -> elapsedRealtimeNanos()"

This reverts commit 2f6d8829524dfca3a77e9a57c3b9c3862209877d

Change-Id: Id5af767a09fc319127c4ebef837c5b7a7f75cb01
om/android/server/TwilightService.java
om/android/server/location/GpsLocationProvider.java
9b93f4def131845200997c861858f34cc15c8dee 24-Sep-2012 Michael Jurka <mikejurka@google.com> Merge "Fix security check for private allocateAppWidgetId api" into jb-mr1-dev
b00df8e929f9ba865a95a7df3f949e6169332954 24-Sep-2012 Philip Milne <pmilne@google.com> Merge "Fix for bug: #7173350. elapsedRealtimeNano() -> elapsedRealtimeNanos()" into jb-mr1-dev
cd11b223f3d23ca0f92b53808f7e1cce928c2a7b 24-Sep-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #7214090: Need to be able to post notifications to all users" into jb-mr1-dev
50cdf7c3069eb2cf82acbad73c322b7a5f3af4b1 24-Sep-2012 Dianne Hackborn <hackbod@google.com> Fix issue #7214090: Need to be able to post notifications to all users

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

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

Change-Id: Iffc51e2d7c847e3d05064d292ab93937646a1ab7
om/android/server/DeviceStorageMonitorService.java
om/android/server/NotificationManagerService.java
om/android/server/ThrottleService.java
om/android/server/UiModeManagerService.java
om/android/server/WifiService.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/PendingIntentRecord.java
om/android/server/connectivity/Tethering.java
om/android/server/connectivity/Vpn.java
om/android/server/input/InputManagerService.java
om/android/server/usb/UsbDeviceManager.java
888eb73c6e86a18520cbaa999a18e8b039dbed4f 24-Sep-2012 Amith Yamasani <yamasani@google.com> resolved conflicts for merge of 814f5ac3 to jb-mr1-dev

Change-Id: Ic65395ce932971dc9c37a481aa96da79a45d0f12
8658e1aa1fb0905852c4b0f5ae1d96cd2d56b6cf 24-Sep-2012 Victoria Lease <violets@google.com> Merge "Allow apps to getProviders() without location permissions." into jb-mr1-dev
b079d1f28089ad4de05162b7df0ace90bc40a5f3 24-Sep-2012 Amith Yamasani <yamasani@google.com> am 5e8cbdc0: Merge "Fixing services start order that impacts ICS - JB upgrade"

* commit '5e8cbdc0bd6dfc51e6b54db1d5fd61347336d862':
Fixing services start order that impacts ICS - JB upgrade
49397ac93ce3cf4fc38d00b1099a6cd9075cee8a 24-Sep-2012 Jeff Sharkey <jsharkey@android.com> Merge "Always bind to DefaultContainerService as OWNER." into jb-mr1-dev
916b2b5a932a3be1a1363ac1871e74ad8b314f00 24-Sep-2012 Irfan Sheriff <isheriff@google.com> Merge "Increase WFD connect time out to 60s" into jb-mr1-dev
2c2ca5cb7c083cd53dee00e71af99d1abf931976 24-Sep-2012 Irfan Sheriff <isheriff@google.com> Increase WFD connect time out to 60s

The worst case WPS timeout for GO negotiation is two minutes.
Until, we better handle cancelling/disconnecting and re-syncing the
WFD framework with the wifi direct framework/supplicant, increase
the time out to 60s to help with dogfood

Bug: 7217600
Change-Id: I1ba0d9963b957454e2c6f47bfdf05176dea07be7
om/android/server/display/WifiDisplayController.java
752cd922f7091dfd5401faf70dc248934a9dbb6d 24-Sep-2012 Jeff Sharkey <jsharkey@android.com> Always bind to DefaultContainerService as OWNER.

When PackageManagerService deals with external storage, always bind
to DefaultContainerService as USER_OWNER. This avoids binding to a
stopped user, which would fail.

Bug: 7203111
Change-Id: I8e303c7558e8b5cbe4fea0acc9a472b598df0caa
om/android/server/pm/PackageManagerService.java
om/android/server/pm/Settings.java
17e3e9e53c5fb9c92c8972a8d92659c6bef85831 24-Sep-2012 Victoria Lease <violets@google.com> Merge "Do not use passive GPS data for COARSE only apps." into jb-mr1-dev
8dbb63419bef8678cf92ebae1d43f549f50987c7 22-Sep-2012 Victoria Lease <violets@google.com> Allow apps to getProviders() without location permissions.

This restores MR0's behavior in this regard - apps calling
LocationManager.getProviders() or LocationManager.getBestProvider()
will no longer receive a SecurityException if they do not have
any location permissions. Instead, as was the behavior in MR0, they
only receive providers that their permissions grant them access to,
including an empty list if they have no permission whatsoever.

Bug: 7207864
Change-Id: I027df425e258d436c4821c34a25bc46a2a292824
om/android/server/LocationManagerService.java
5a370882f87321629f98f6149ac946a57e25dfa8 23-Sep-2012 Jeff Sharkey <jsharkey@android.com> Merge "Check READ_EXTERNAL enforcement outside of lock." into jb-mr1-dev
11820f7386ce86fd89e9e6b49d9231dce6e1ed07 23-Sep-2012 Jeff Sharkey <jsharkey@android.com> Merge "Allow acquiring ContentProviders across users." into jb-mr1-dev
b939e35274334d1f5e71a526efe8d235eb6d7387 23-Sep-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #7209355, #7214271." into jb-mr1-dev
8da429e80d1778d7bcfbfbd64355c70fb466b3ce 23-Sep-2012 Dianne Hackborn <hackbod@google.com> Fix issue #7209355, #7214271.

Issue #7209355: Intent on the secondary user results in an intent picker
in the Primary user.
Issue #7214271: Crash in system UI

Also fix a bug where I recently broke the removeTask() operation in the
activity manager where it would remove the wrong task.

Change-Id: I448c73a0e83a78d9d8d96b4629658c169888d275
om/android/server/am/ActivityStack.java
om/android/server/pm/PackageManagerService.java
c50f31d213d6764602aed76ed9993d45d33d76d9 23-Sep-2012 Jeff Sharkey <jsharkey@android.com> Check READ_EXTERNAL enforcement outside of lock.

Since SettingsProvider can call back into PMS, query the default
enforcement state before acquiring mPackages lock.

Bug: 7182437
Change-Id: Ie218aedfc7a943e5b221814af3e0356c7199b0e4
om/android/server/pm/PackageManagerService.java
6d51571835737c7502a2e111ee9dc2527ebad984 21-Sep-2012 Jeff Sharkey <jsharkey@android.com> Allow acquiring ContentProviders across users.

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

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

Bug: 7202982
Change-Id: I8cb7fb8a812e825bb0b5833799dba87055ff8699
om/android/server/NotificationManagerService.java
om/android/server/am/ActivityManagerService.java
88923c973e3b58593c4d0fb6724addcefc53004f 22-Sep-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #7214462: Some recent thumbnails are black." into jb-mr1-dev
6a864959e09ad700cc4815e8d751561ceb7e08e3 22-Sep-2012 Dianne Hackborn <hackbod@google.com> Fix issue #7214462: Some recent thumbnails are black.

Change-Id: I9a2704c95a8701c9fb6755662fb47d4743099bf9
om/android/server/am/ActivityStack.java
9f12373b57bcd7e7c156306aee50ac4e4fdee58a 22-Sep-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Fixing a regression in the UI test automation." into jb-mr1-dev
9371a0a0c0cdf9be0e0a32e4c3037cc2e216cfa0 22-Sep-2012 Svetoslav Ganov <svetoslavganov@google.com> Fixing a regression in the UI test automation.

bug:6967373

Change-Id: I28f01a2bfe44febcb1a519028dab82fb1da9753e
om/android/server/accessibility/AccessibilityManagerService.java
993c3d79a3f70684db5c75fb760bae9b0324f715 22-Sep-2012 Adam Cohen <adamcohen@google.com> Merge "Fixing typos" into jb-mr1-dev
77e95d3d71f10a0d936445e3f3ed90e15c019024 22-Sep-2012 Amith Yamasani <yamasani@google.com> Merge "Show lockscreen widgets for the current user." into jb-mr1-dev
db38d8a4ff28caef8f2565a8ba5dca2a7efe9d83 22-Sep-2012 Adam Cohen <adamcohen@google.com> Fixing typos

Change-Id: I3d470a18bd14a4040dffb0b0d8a11e282546057e
om/android/server/AppWidgetServiceImpl.java
8fd96ec2dc215095d12ef3e9bd7dc50ebc78625e 22-Sep-2012 Amith Yamasani <yamasani@google.com> Show lockscreen widgets for the current user.

Also shows the owner info and next alarm for the current user.
AppWidgetService now assumes that any widgets running in the system process are for the
current user, so that lockscreen shows widgets for the current user

Bug: 7211754
Bug: 7212421

Change-Id: Iaf0edc60e49af0afe42625c0b2dcf100c9ecc178
om/android/server/AppWidgetService.java
0a5c5567f2d7e203d95c80a8d3353d0acd98b5f9 22-Sep-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Multi-user support for the accessibility layer." into jb-mr1-dev
c9e94ea6451958fce107580b54c183181de6aa22 22-Sep-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #7213113: Remove old intent resolver" into jb-mr1-dev
52c62344c585662d6b441a08c2a69a5732255a6f 21-Sep-2012 Dianne Hackborn <hackbod@google.com> Fix issue #7213113: Remove old intent resolver

Also make the query package restart broadcast protected like the
documentation says it should be.

Change-Id: I445166111318a02f2f2b1ab0dff9c641a441c20b
om/android/server/IntentResolver.java
58d37b55bd228032355360ea3303e46a804e0516 18-Sep-2012 Svetoslav Ganov <svetoslavganov@google.com> Multi-user support for the accessibility layer.

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

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

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

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

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

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

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

bug:6967373

Change-Id: I2cf32ffdee1d827a8197ae4ce717dc0ff798b259
om/android/server/accessibility/AccessibilityManagerService.java
om/android/server/accessibility/TouchExplorer.java
03bdc8a8f756a951b460b01cbd4d01c2ffd05041 22-Sep-2012 Michael Jurka <mikejurka@google.com> Fix security check for private allocateAppWidgetId api

Bug: 7182054
om/android/server/AppWidgetServiceImpl.java
2f6d8829524dfca3a77e9a57c3b9c3862209877d 21-Sep-2012 Philip Milne <pmilne@google.com> Fix for bug: #7173350. elapsedRealtimeNano() -> elapsedRealtimeNanos()

Change-Id: I71c24ea10093ece07a0780e97bc641ff548c1a44
om/android/server/TwilightService.java
om/android/server/location/GpsLocationProvider.java
3ca5971339c7eba61388aa3e26a1b3d02c5ccdf6 22-Sep-2012 Jeff Brown <jeffbrown@google.com> Merge "Support HDMI hotplug." into jb-mr1-dev
e87bf030766198bf5e1fe846167dba766e27fb3f 21-Sep-2012 Jeff Brown <jeffbrown@google.com> Support HDMI hotplug.

Bug: 7206678
Change-Id: Ia5212b16658a5f5a2ccf8528eca7bebd45ca857a
om/android/server/display/DisplayManagerService.java
om/android/server/display/LocalDisplayAdapter.java
1ed9fa10de3e94678ddb2929936caa3ff4164cf8 22-Sep-2012 Jim Miller <jaggies@google.com> Merge "Make DPM API for disabling keyguard widgets more generic" into jb-mr1-dev
09016ab4dd056a16809419d612cb865a14980880 16-Sep-2012 Victoria Lease <violets@google.com> Do not use passive GPS data for COARSE only apps.

FusionEngine now attaches a secondary location that has never seen
GPS data to its result. LocationFudger uses the GPS-less location so
that COARSE apps never see data from the GPS provider.

When the previous location is updated, the previous GPS-less location
is carried over if the location update was GPS-only.

Additionally, apps without FINE permission are not notified when GPS
location changes, and any attempt to use GPS_PROVIDER without FINE
permission is met by a stern SecurityException.

Bug: 7153659
Change-Id: I12f26725782892038ce1133561e1908d91378a4a
om/android/server/LocationManagerService.java
om/android/server/location/LocationFudger.java
om/android/server/location/PassiveProvider.java
4e5753f5f6c5e0c7f53722e2bfa451ac7f0b27db 20-Sep-2012 rich cannings <richc@google.com> Add setting to skip verifying ADB installs

Create a setting "verifier_verify_adb_installs" to allow developers to control
package verification on ADB installs only. If package verification is enabled,
the setting will:

0, Do not perform package verification on apps installed through ADB/ADT/USB
and perform package verification on all other installs.

1, Use package verification on all installs. (Default)

Bug: 7183252
Change-Id: I9d3eb8abb5ba5e93f8634d3135794e92ff6273b6
om/android/server/pm/PackageManagerService.java
ac439e57a795d48e287ea51a9bd999244a9b0e65 21-Sep-2012 Craig Mautner <cmautner@google.com> Eliminate potential for NPE in WindowAnimator.

Fixes bug 7209850.

Change-Id: I8c8751ab240ea389a2a779c94c05fe786ca8762a
om/android/server/wm/WindowAnimator.java
74defbf202de713aa6ae19fbbf2ea5c318ccd11c 21-Sep-2012 Amith Yamasani <yamasani@google.com> Merge "Query users excluding any being removed" into jb-mr1-dev
920ace0bbc2d4133dbec991d2636c99a57d6245e 21-Sep-2012 Amith Yamasani <yamasani@google.com> Query users excluding any being removed

Keep track of user creation and last logged-in time.
adb shell dumpsys users
User switcher shouldn't show users about to be removed.
No need to check for singleton for activities.

Bug: 7194894
Change-Id: Ic9a59ea5bd544920479e191d1a1e8a77f8b6ddcf
om/android/server/MountService.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityStack.java
om/android/server/pm/PackageManagerService.java
om/android/server/pm/Settings.java
om/android/server/pm/UserManagerService.java
35d323a5206644029eb53ae751268feca430cc46 21-Sep-2012 Brian Muramatsu <btmura@google.com> Use global wifi_sleep_policy constants

Bug 7196148

This will get rid of the wifi_sleep_policy has moved log spamming.

Change-Id: I303c8da80289aba183eb1e51f6a006fc40cd1801
om/android/server/WifiService.java
11a6450e543d5c178c60ce2216fad1b29bf15457 21-Sep-2012 Adam Cohen <adamcohen@google.com> Merge "Fixing partiallyUpdateAppWidget to cache the new changes" into jb-mr1-dev
957fadc5001be0f0b4d004dbed8c57b6e1f5b46a 21-Sep-2012 Irfan Sheriff <isheriff@google.com> Merge "Use min group owner intent for concurrency" into jb-mr1-dev
99766cf40ed706aad36032f2107fb0c1e54fc398 21-Sep-2012 Irfan Sheriff <isheriff@google.com> Use min group owner intent for concurrency

Our device only supports STA & GC concurrency

Change-Id: I4f16c959a6f4e7ad5610dcae67be830d741f162c
om/android/server/display/WifiDisplayController.java
b4c33679cbdec9e12369fb49469ce33ed83ed25c 21-Sep-2012 Jeff Brown <jeffbrown@google.com> Merge "Disentangle input manager service startup." into jb-mr1-dev
ddfaa3f55638db2e3d7c9928b605c2e6b90facae 21-Sep-2012 Jeff Brown <jeffbrown@google.com> Merge "Provide a debugging option to force enable wifi display." into jb-mr1-dev
a9d131c30878cacdaeacb4f43a82a7cc5b872453 21-Sep-2012 Jeff Brown <jeffbrown@google.com> Disentangle input manager service startup.

We will be adding additional callbacks for other components.
This change makes it clearer how the input manager is started
and where the callbacks are initialized.

Bug: 6548391
Change-Id: I4b2a61482126a12b7cf11fafe513f846c76c11e5
om/android/server/SystemServer.java
om/android/server/input/InputManagerService.java
om/android/server/wm/InputMonitor.java
om/android/server/wm/WindowManagerService.java
bbd28a293f84baeafed469c5e223eff82c1117c0 21-Sep-2012 Jeff Brown <jeffbrown@google.com> Provide a debugging option to force enable wifi display.

Bug: 7179627
Change-Id: I84c7605a1cee5ed723341eebdcec4a824e7e4d38
om/android/server/display/DisplayManagerService.java
fbe44b7d5e2d9d06a238a54f8ed460fb8bc49585 20-Sep-2012 Adam Cohen <adamcohen@google.com> Fixing partiallyUpdateAppWidget to cache the new changes

-> This is a good change to the widget framework that I've wanted to
make for a while, but issue 7174198 triggered the immediate need.

Change-Id: I3f267e0e67f2d9f28920bb53973af365a3c9e0ba
om/android/server/AppWidgetServiceImpl.java
6de76d21ff60818f8b296fc8f645897203f475da 20-Sep-2012 Dianne Hackborn <hackbod@google.com> Merge "Implement multi-user PackageMonitor." into jb-mr1-dev
c72fc674a33b8d17585764d09d3bb6c77d7d947e 20-Sep-2012 Dianne Hackborn <hackbod@google.com> Implement multi-user PackageMonitor.

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

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

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

Change-Id: Idd952dd274abcaeab452277d9160d1ae62919aa0
om/android/server/WallpaperManagerService.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/UsageStatsService.java
om/android/server/pm/PackageManagerService.java
314488b791d36756504ee593f818f04b4cd24893 20-Sep-2012 Irfan Sheriff <isheriff@google.com> Merge "Captive check for both mobile and wifi" into jb-mr1-dev
ca2cb1841099c7206af93149d0326308e0d3f81a 20-Sep-2012 Wink Saville <wink@google.com> Merge "Suppress location information for non-active users." into jb-mr1-dev
9538bdd3c77968c7673719c580ae653ede4654d6 20-Sep-2012 Irfan Sheriff <isheriff@google.com> Captive check for both mobile and wifi

Bug: 7113195
Bug: 7102238
Bug: 7087564

Change-Id: Iac08db9de3935338ad498aa3983d2ca82057dda1
om/android/server/ConnectivityService.java
f6e24d62b6fa863700e5f72d461846f2aa506109 20-Sep-2012 Geremy Condra <gcondra@google.com> Merge "Remove pointless exception supression." into jb-mr1-dev
4dd3c3797060b35c8e6ebbbdd164c17c6db7b5ec 20-Sep-2012 Geremy Condra <gcondra@google.com> Merge "Remove logging for old version mismatches." into jb-mr1-dev
a12a7b3d3d8fc8678411295df4d001447b33a994 20-Sep-2012 Wink Saville <wink@google.com> Suppress location information for non-active users.

Specifically, don't allow call backs for LISTEN_CELL_LOCATION and
LISTEN_CELL_INFO.

Bug: 7087342
Change-Id: Ida7f60b5bde3f28264dcb454b38fcfb1f1616d11
om/android/server/SystemServer.java
om/android/server/TelephonyRegistry.java
e0de5bfff2e74ee566ac2d053052de09aa25e54b 20-Sep-2012 John Spurlock <jspurlock@google.com> Merge "Fire "dreaming started" and "dreaming stopped" broadcasts." into jb-mr1-dev
350bb15ac74e0abb68ce0e2b2b972dc3cef46aff 20-Sep-2012 Geremy Condra <gcondra@google.com> Remove pointless exception supression.

Bug: 7198235
Change-Id: I3371403a79fd3e01d46678d58129d36eb921d10a
om/android/server/updates/ConfigUpdateInstallReceiver.java
48b9b0d068844af9eb37c215484831c4d6b831b0 20-Sep-2012 Jim Miller <jaggies@google.com> Make DPM API for disabling keyguard widgets more generic

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

Fixes bug: 7021368

Change-Id: I3934cc2e7c64e0c6d511efb86980fc38a849708d
om/android/server/DevicePolicyManagerService.java
c2b9ea624148df80945afad4198fe686a0ab8dca 20-Sep-2012 Jeff Brown <jeffbrown@google.com> Make wifi display state changes more robust.

Bug: 7178216
Change-Id: Icceaeb61730b0b4916cdda44459f4c69553e303c
om/android/server/display/PersistentDataStore.java
om/android/server/display/WifiDisplayController.java
89d5546d7fd3a3bb19820c42e8b4527013dd6545 19-Sep-2012 Jeff Brown <jeffbrown@google.com> Add support for remembering Wifi display devices.

Add a setting to globally disable Wifi display.

Fixed a bug where the wifi display broadcast receiver
was running on the wrong thread.

Removed the wifi-display QuickSettings dialog, all functionality
has been moved to Settings.

Bug: 7178216
Bug: 7192799
Change-Id: I9796baac8245d664cf28fa147b9ed978d81d8ab9
om/android/server/SystemServer.java
om/android/server/display/DisplayManagerService.java
om/android/server/display/PersistentDataStore.java
om/android/server/display/WifiDisplayAdapter.java
om/android/server/display/WifiDisplayController.java
0967a9edfc29fe601c9242648b93448d710b7a97 20-Sep-2012 Geremy Condra <gcondra@google.com> Remove logging for old version mismatches.

Since this has no security consequence and triggered by a variety
of totally innocuous things it seems like log noise and so should
be removed.

Bug: 7198235
Change-Id: I80ed5acb378a4c42d5d223b633309bf9526dbf3d
om/android/server/updates/ConfigUpdateInstallReceiver.java
daa57e8d1866fe4579c280c41604f3660db7cd01 19-Sep-2012 Jeff Sharkey <jsharkey@android.com> Migrate network stats from removed users.

When a user is removed, migrate all network stats belonging to that
user into special UID_REMOVED bucket. Also removes those stats from
kernel to avoid double-counting if another user is created.

Bug: 7194784
Change-Id: I03f1d660fe3754566326b7749cae8068fc224ea9
om/android/server/net/NetworkStatsCollection.java
om/android/server/net/NetworkStatsRecorder.java
om/android/server/net/NetworkStatsService.java
f4f6b4c8b0fcf77d46567f13b409255948fe107b 25-Aug-2012 John Spurlock <jspurlock@google.com> Fire "dreaming started" and "dreaming stopped" broadcasts.

Dream manager now fires broadcast intents when entering + exiting
dreamland (except when testing).

Power manager can now listen for dreams ending, using polling only
as a backstop.

Also:
- Bullet-proof dream-manager/dream against known failure modes
- Add new read/write dream permissions
- Refactor dream-manager to delegate work + state management into
a new DreamController class, via a handler

Bug:6999949
Bug:7152024
Change-Id: I986bb7812209d8c95ae1d660a5eee5998a7b08b1
om/android/server/DreamController.java
om/android/server/DreamManagerService.java
om/android/server/SystemServer.java
om/android/server/power/PowerManagerService.java
6704a48bd06f01d2933f83e9b5eda4ed9846bab7 19-Sep-2012 Craig Mautner <cmautner@google.com> Merge "Fixes to Starting window and Wallpaper windows." into jb-mr1-dev
52716deb4008da1d566dfd711edc0a9c6de5f79f 19-Sep-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix deadlock in LockPatternUtils by using local id." into jb-mr1-dev
f1b674197577e815040cd75ef86d611965d603ad 19-Sep-2012 Craig Mautner <cmautner@google.com> Fix deadlock in LockPatternUtils by using local id.

Activity manager now updates window manager's current user id
directly and immediately rather than waiting for a broadcast
update. Window manager passes this through policy to the
KeyguardViewMediator and into LockPatternUtils. LockPatternUtils
no longer goes to Activity to get the current user id if it finds
that its local id is non-default.

Fixes bug 7193726.

Change-Id: Id5613e7a9fe9e5b49e83c26b74504f587c3998c2
om/android/server/am/ActivityManagerService.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
09ad0832e0c28fa43a2e2bf53bef87df39bd4416 19-Sep-2012 Dianne Hackborn <hackbod@google.com> Merge "Switch to showing top-most thumbnail of recent apps." into jb-mr1-dev
15491c6a728131e322c45bc440500a8a78e4a410 19-Sep-2012 Dianne Hackborn <hackbod@google.com> Switch to showing top-most thumbnail of recent apps.

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

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

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

Change-Id: I83e6ca6403eb2df5e4de3009dfe8c210e8cf8d5b
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityRecord.java
om/android/server/am/ActivityStack.java
om/android/server/am/TaskAccessInfo.java
a490bddc8bf0812973dee34ead5c04c87e7ecb15 19-Sep-2012 Jeff Sharkey <jsharkey@android.com> Merge changes I4513afbd,I20e2194c into jb-mr1-dev

* changes:
Make getMediaStorageDirectory() user-aware.
Lockdown should only augment connected networks.
8863cca57d8c901a2da0edc422b653ae68849313 19-Sep-2012 Craig Mautner <cmautner@google.com> Fixes to Starting window and Wallpaper windows.

- Checking for found wallpaper to match either mWallpaperTarget
or mLowerWallpaperTarget keeps from swapping the layers while
transitioning between two wallpaper activities.

- Fade out RecentsActivity while bringing up selected activity. This
keeps the RecentsActivity from showing through a launching wallpaper
activity.

- When moving a starting window from one activity to another clear
the startingDisplayed flag in the old activity.

- When moving a starting window from one activity to another assign
the new activity's mAppAnimator to the starting window's mWinAnimator.

- Only treat a wallpaper transition as entering if the mWallpaperTarget
is visible and not being hidden. Keeps from assigning the wrong
animation when activities are launched back to back and the
mWallpaperTarget is still animating away.

Fixes bug 7148089.

Change-Id: Idd405b1ba113f3345ca2116d141b474abe5bd4c0
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowStateAnimator.java
4adb9d34162b109db3c67e352ad50c76dc7f2d45 19-Sep-2012 Amith Yamasani <yamasani@google.com> Merge "DevicePolicyManager per user" into jb-mr1-dev
1e5aeecb64827d2b71f429d73a05c25ffe4a5be8 19-Sep-2012 Dianne Hackborn <hackbod@google.com> Merge "Don't allow more than 3 actively running users at a time." into jb-mr1-dev
bb1aeff3202a51b1db020be272178f50a2f2502d 19-Sep-2012 Dianne Hackborn <hackbod@google.com> Don't allow more than 3 actively running users at a time.

Change-Id: Ic047c62b518a0faaa7b507343909330044ec290b
om/android/server/am/ActivityManagerService.java
0b81be6f79ec3d1b9441c21a3cefc629be1450c8 19-Sep-2012 Jeff Sharkey <jsharkey@android.com> Lockdown should only augment connected networks.

Bug: 7148397
Change-Id: I20e2194c874544b272b9ec8b63391d91b0a22f49
om/android/server/net/LockdownVpnTracker.java
6281d7cf32bdc624a9d70b2b4f5abce342558c27 18-Sep-2012 Jeff Sharkey <jsharkey@android.com> Merge "Multi-user MTP." into jb-mr1-dev
599dd7ce9adf8ca067cefb0b191a5ac20ec35a79 15-Sep-2012 Amith Yamasani <yamasani@google.com> DevicePolicyManager per user

Bug: 7136483

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

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

Change-Id: I359be46c1bc3828fd13d4be3228f11495081c8f2
om/android/server/DevicePolicyManagerService.java
om/android/server/pm/PackageManagerService.java
om/android/server/wm/KeyguardDisableHandler.java
f35df5b509469fc7e71cdd70f4caec670bc5156f 18-Sep-2012 Felipe Ramos <felipe.wolff@gmail.com> Fixing services start order that impacts ICS - JB upgrade

JB has introduced LockSettingsService. When the phone is
upgrading from ICS, that used another way to store lock
settings, the LockSettingsService needs to import these
settings to store in its database. This happens when the
systemReady() method of this class is called by SystemServer.

The problem resides in the fact that the
DevicePolicyManagerService actually needs to access the
LockSettingsService during its systemReady() initialization,
causing invalid values to be read by it which propagates and
ends up causing a invalid return in the method
isActivePasswordSufficient.

If user had a Google corporate account that enforces password
related policies through Google Apps Device Policy (GADP) app
in ICS, when he upgrades to JB, the GADP will throw a
notification saying that the password doesn't meet the required
policies and needs to be changed, incorrectly, since it wasn't
touched during upgrade.

This fix initializes the LockSettingsService before the
DevicePolicyManagerService, which is the correct way since
the latter uses the first in its initialization. This prevents
this issue to happen, and probably future issues, depending
on the way that LockSettingsService evolves.

Change-Id: I3d4334a8b728f0ad9ae744cece430d15af25a0b7
om/android/server/SystemServer.java
ab3d0fd684eabecd6b290ef3cb9799739db04ca3 18-Sep-2012 Andy Stadler <stadler@google.com> Merge "Move files to make eclipse-java happy" into jb-mr1-dev
d44daaba447e42c0b75d4cf5d33cf0b6ea3076b5 18-Sep-2012 Andy Stadler <stadler@google.com> Move files to make eclipse-java happy

No changes to text at all, just moving the java files to match their
declared packages.

There was no original bug# but this cleans up the code submitted in
the original Change-Id: I42307f58074157b33b6e01216aab10022340d449

Change-Id: I233fa7f21167a42565aadb7ad109600b1a1a5721
om/android/server/updatable/CertPinInstallReceiver.java
om/android/server/updatable/ConfigUpdateInstallReceiver.java
om/android/server/updates/CertPinInstallReceiver.java
om/android/server/updates/ConfigUpdateInstallReceiver.java
27bd34d9d9fe99f11b80aa0bbdb402fb47ef4158 16-Sep-2012 Jeff Sharkey <jsharkey@android.com> Multi-user MTP.

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

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

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

Bug: 6925114
Change-Id: I02b4a1b535af95fb2142655887b6d15a8068d18a
om/android/server/MountService.java
om/android/server/am/ActivityManagerService.java
om/android/server/pm/UserManagerService.java
om/android/server/usb/UsbDeviceManager.java
24ed2769130a8f9df44e7fc22be52b6282e724c3 18-Sep-2012 Irfan Sheriff <isheriff@google.com> Merge "WFD fixes" into jb-mr1-dev
e0c28d5f1358fc2d4c464f910bd04fed4b283fef 18-Sep-2012 Irfan Sheriff <isheriff@google.com> WFD fixes

- Specificy max GO intent for WFD
- Increase GO idle time out to 20s and use it for GO and client
- Fix connection broadcast

Change-Id: Ia0e28bc9eb3e23d2830a6c814c5a537ca0bcd5db
om/android/server/display/WifiDisplayController.java
f7a6dfcafc1eaa8014b4fa796e4b31208f72fd36 18-Sep-2012 Amith Yamasani <yamasani@google.com> Merge "Pass Bitmap instead of ParcelFileDescriptor in UserManager" into jb-mr1-dev
e928d7d95dbb64627e6ff3a0572190c555b59d96 18-Sep-2012 Amith Yamasani <yamasani@google.com> Pass Bitmap instead of ParcelFileDescriptor in UserManager

Add a USER_INFO_CHANGED intent for lockscreen and quicksettings to use
to monitor changes to the user name or icon.

Bug: 7164040
Change-Id: Id6fb8b6d38ce04ccd02bbadcf0c10699783d6c03
om/android/server/pm/UserManagerService.java
049dd8e6a3815519062902cc6b6f91940c54d5ea 18-Sep-2012 Dave Burke <daveburke@google.com> Merge "Revert "Specify max go intent for wifi display"" into jb-mr1-dev
ee261a5a6cd7da6d95d5c96981e0dfc068f48a05 18-Sep-2012 Dave Burke <daveburke@google.com> Revert "Specify max go intent for wifi display"

This reverts commit 7ab7260697de617aced0b0ba594304a42e5395bd

Change-Id: I5b322f41729695465b164e1dfe6d4b1902cd8117
om/android/server/display/WifiDisplayController.java
c535d2f30efff83b93094bbc642d59d8225dcc18 18-Sep-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix dumb bug merging receivers for multiple users." into jb-mr1-dev
6cbd33fc25fa48dcb673edc150d2315bec4ade3a 18-Sep-2012 Dianne Hackborn <hackbod@google.com> Fix dumb bug merging receivers for multiple users.

Also clean up some debug output.

Change-Id: Ib19e47682e9ddfc6a234bd61d054275a362d28cc
om/android/server/am/ActivityManagerService.java
om/android/server/am/BroadcastQueue.java
c33f94e2a50c9b03cb771237e8672743da8b1314 18-Sep-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix API review bugs." into jb-mr1-dev
218e2f199b9ba568a815d64269ea0784e2d32935 18-Sep-2012 Irfan Sheriff <isheriff@google.com> Merge "Specify max go intent for wifi display" into jb-mr1-dev
7ab7260697de617aced0b0ba594304a42e5395bd 18-Sep-2012 Irfan Sheriff <isheriff@google.com> Specify max go intent for wifi display

For p2p and sta single channel concurrency, we need the device
to be a GO

Change-Id: I8c3f180b8fc450238e24dace478f03cdf4e370a7
om/android/server/display/WifiDisplayController.java
8832c18d8b63367929c2d394c9c508f56003d400 18-Sep-2012 Dianne Hackborn <hackbod@google.com> Fix API review bugs.

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

Change-Id: Iad470256d3b5ca5596487f6a699ec1871457c3b5
om/android/server/AlarmManagerService.java
4246f695f44386ce74d94f5be73cde409dc2dd12 18-Sep-2012 Dianne Hackborn <hackbod@google.com> Merge "Try again to fix issue #6912004:tap on gmail notification sends me to home screen" into jb-mr1-dev
c31f5a7efe97952ba25b35e0eb9e6e59dc0d0e8e 18-Sep-2012 Geremy Condra <gcondra@google.com> Merge "Add error information to event logs." into jb-mr1-dev
beb9d53971af42db178dfdf6bbcd28d3f823c5f8 17-Sep-2012 Geremy Condra <gcondra@google.com> Add error information to event logs.

Change-Id: Ie4bbb888f4fac4db42a60b9fdd6818af24b834bd
om/android/server/updatable/ConfigUpdateInstallReceiver.java
ad9b32115bf8c84a93ab30e6f30f8c46e86d7244 18-Sep-2012 Dianne Hackborn <hackbod@google.com> Try again to fix issue #6912004:tap on gmail notification sends me to home screen

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

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

Change-Id: Ia6dc8c34dc6d4b085a1efbe3a5d5f47721d55078
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityStack.java
4215017c12a4d522e20a6164ff33e8ca7da3a3bd 18-Sep-2012 Kenny Root <kroot@google.com> Merge "Use shared app gid for dalvik cache" into jb-mr1-dev
1d31d5ba129007fc13bd0ed49a3e3cd60e748e7c 17-Sep-2012 Amith Yamasani <yamasani@google.com> Merge "Start userId from 10, reserving 1-9 for special use in the future." into jb-mr1-dev
07a0ede729f9b2f472b659b67b4cbc3602aa289a 17-Sep-2012 Amith Yamasani <yamasani@google.com> Start userId from 10, reserving 1-9 for special use in the future.

Change-Id: I3d0c1717d8b3add75ba43ed98e53ba02e6682c34
om/android/server/pm/UserManagerService.java
6a9b2cb7feb96fe17878089cf48e0e27e3ff531d 17-Sep-2012 Kenny Root <kroot@google.com> Use shared app gid for dalvik cache

For forward-locked apps, we need to be able to read the optimized dex
file from a common place. Make it owned by the shared app GID as well.

Bug: 7178231
Change-Id: Ib36d79e8df69d58e8e1e0f167659df995dc84b84
om/android/server/pm/PackageManagerService.java
e2fb51900cb6df51b2dffc80c35ecbbaf47d3f4b 17-Sep-2012 Jeff Brown <jeffbrown@google.com> Merge "Swap remote submix initialization order." into jb-mr1-dev
e645324e6bb42075b2e3b37d776e180a51091f96 17-Sep-2012 Amith Yamasani <yamasani@google.com> Merge "Add UserManager.getUserIcon()" into jb-mr1-dev
3b49f07a452e0a77c1d22db2065255689a461d31 17-Sep-2012 Amith Yamasani <yamasani@google.com> Add UserManager.getUserIcon()

So that we don't abuse the setUserIcon() for reading. So the new method won't try
to create the file, only return it if it exists.

Change-Id: I7a81d3f1b29d14d37e71f531744ce39f21d827ac
om/android/server/pm/UserManagerService.java
c9bd4ca005768cb30aaaa44c1171e113c13cd107 17-Sep-2012 Jeff Brown <jeffbrown@google.com> Swap remote submix initialization order.

Need to turn the submix on before connecting and off
after disconnecting.

Change-Id: I53389c3b61e6d663855accd0461eed42a67d9d2b
om/android/server/display/WifiDisplayController.java
178af5948d71c841278081c712506f7a7fca34b9 17-Sep-2012 Craig Mautner <cmautner@google.com> Add debug to help with b/7135184.

Change-Id: I0d3b60b3e123d35bd557d47e3344ebea1964380b

Conflicts:

services/java/com/android/server/wm/WindowAnimator.java
om/android/server/wm/WindowAnimator.java
om/android/server/wm/WindowState.java
89c82814dbdfd807b1611a8379be0421cd2f512d 17-Sep-2012 Irfan Sheriff <isheriff@google.com> Merge "Add restoreCallingIdentity under finally" into jb-mr1-dev
443e474881e2b8d2fce0d23c54f8930742d8cdee 17-Sep-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #7175553: GRANT_URI_PERMISSION doesn't apper to work on secondary user" into jb-mr1-dev
3d33a633916be943eb294d3309701994095d80f2 17-Sep-2012 Irfan Sheriff <isheriff@google.com> Add restoreCallingIdentity under finally

Change-Id: I068b1a2fc93300aa9bd17da6933bc8c5f0a6b5e4
om/android/server/WifiService.java
db831da426602f36e4ccf2eae64e999fcc52736a 17-Sep-2012 Irfan Sheriff <isheriff@google.com> Fix permission accessing getCurrentUser

Bug: 7174737
Change-Id: I0a6a9a46f4115743d16ada401cd67e3cf30fb380
om/android/server/WifiService.java
11f0cb7d072cfd8c50d8111ebea1e78eb3c3d816 17-Sep-2012 Dianne Hackborn <hackbod@google.com> Fix issue #7175553: GRANT_URI_PERMISSION doesn't apper to work on secondary user

Change-Id: I0ab372978f8599d0fe8d5da8aeb73965ab85797f
om/android/server/am/ActivityManagerService.java
97e7c59c5f669f4af8a77aee4646933108dfff48 17-Sep-2012 rich cannings <richc@google.com> Merge "Enable package verification" into jb-mr1-dev
86e85efe9b10abb2dd60df7ab81db6fc71fdda34 17-Sep-2012 Iliyan Malchev <malchev@google.com> Merge "Set backlight brightness in correct order." into jb-mr1-dev
36c67c236ed188a034fdf13977fbc8d4fe0023e2 17-Sep-2012 rich cannings <richc@google.com> Enable package verification

Turn on package verification, if a verifier exists. Play app is a verifier.

Bug: 7064853
Change-Id: Id7d478a216d10b0a612678d6a9b0ee7f2037204a
om/android/server/pm/PackageManagerService.java
735f740fe81b7172d0b208d584eecf632533ec4a 16-Sep-2012 Jeff Brown <jeffbrown@google.com> Set backlight brightness in correct order.

Disable backlight before turning off the screen.
Enable backlight after turning on the screen.

Bug: 7016215
Change-Id: Idb763f85f7a40e852483c57e0a0d1b27eb943f08
om/android/server/power/DisplayPowerState.java
om/android/server/power/PhotonicModulator.java
3849490c6314d5887f534cc5dea0fc56499465aa 17-Sep-2012 Irfan Sheriff <isheriff@google.com> Merge "Return empty scan results for background user" into jb-mr1-dev
330b1875747561e1f4dfdc062bf15d3c345806ed 16-Sep-2012 Irfan Sheriff <isheriff@google.com> Return empty scan results for background user

Bug: 7087342
Change-Id: I62493e5004111311b7ac9b7610c85e6784e2c7e4
om/android/server/WifiService.java
a91f9e2959ee905f97977a88fe45bde6ffb874b0 15-Sep-2012 Craig Mautner <cmautner@google.com> Make more items per-Display.

Moving DimSurfaces, DimBackgrounds and Rotation surfaces into
per-display class.

Fixes bug 7167028.

Change-Id: I7408b3a27b5a7a8d0d59e9d6109c002fc627e536
om/android/server/wm/AppWindowAnimator.java
om/android/server/wm/DimAnimator.java
om/android/server/wm/DisplayContent.java
om/android/server/wm/WindowAnimator.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowStateAnimator.java
d65afc65ea5b2bf83889dd88a9c94f895da8aece 16-Sep-2012 Dianne Hackborn <hackbod@google.com> Merge "More multi-user stuff." into jb-mr1-dev
398bad04a0ced9dacda185db8af7526002631f62 16-Sep-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix debug log." into jb-mr1-dev
5dc5a00e7ebadc085ded7e29feacd17e53698486 16-Sep-2012 Dianne Hackborn <hackbod@google.com> More multi-user stuff.

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

Change-Id: I27877aef1d82126c0a1428c3d1861619ee5f8653
om/android/server/WallpaperManagerService.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityStack.java
om/android/server/pm/UserManagerService.java
om/android/server/wm/WindowManagerService.java
d0c6ccbafdebc73d03cf3cd47f02f9f6c78a69ff 15-Sep-2012 Jeff Sharkey <jsharkey@android.com> Move NetworkPolicy from apps to UID.

For multi-user devices, switch to storing policy per-user instead of
per-app. Also watch for user added/removed broadcasts to clean up
policies and apply global restrictions.

Bug: 7121279
Change-Id: Ia7326bd0ebe0586fa4ec6d3a62f6313dc8814007
om/android/server/net/NetworkPolicyManagerService.java
2892dfbeafec5315d05fb6ceabeaee73b88f5ff0 15-Sep-2012 Christopher Tate <ctate@google.com> Merge "Fix default population of wifi settings" into jb-mr1-dev
6f5a9a96523ecf97a9828a410dd1226df47ec4e6 15-Sep-2012 Christopher Tate <ctate@google.com> Fix default population of wifi settings

Various wifi settings that are explicitly defaulted did not get their
default code properly converted to refer to the correct settings
database table.

A collection of moved-to-Global settings that had not yet been
marked @deprecated in the Secure.* namespace are now so marked.

Also updated the namespace used to refer to wifi settings from the
Wifi Service. These changes are cosmetic, but they do eliminate a
number of runtime log messages.

Bug 7153671

Change-Id: I9e5b6464d025cfb480ef97373996e38e82f90593
om/android/server/WifiService.java
0b62fa234d2e3580b1f04cb9c4a6a308be99a5ae 15-Sep-2012 rich cannings <richc@google.com> Merge "Send more information to verifiers" into jb-mr1-dev
8b681cb8813454aac8a626bf3d7adaa8beca4d75 15-Sep-2012 Svetoslav Ganov <svetoslavganov@google.com> Some formatting missed in the previous patch

Change-Id: I299090ca67b1d90cf75a46dc85b13970d32511e5
om/android/server/accessibility/TouchExplorer.java
3efa8babf581b107f63e29dedb56166e5db1bfdb 15-Sep-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Adding accessibility events for touch and gesture detection states." into jb-mr1-dev
77276b60851a158ad3e142cb3b091d57ae5ceffb 14-Sep-2012 Svetoslav Ganov <svetoslavganov@google.com> Adding accessibility events for touch and gesture detection states.

1. Currently the system fires accessibility events to announce the
start and end of a touch exploration gesture. However, such a
gesture starts after we have decided that the user is not
performing a gesture which is achieved by measuring speed of
movement during a threshold distance. This allows an accessibility
service to provide some feedback to the user so he knows that
he is touch exploring.

This change adds event types for the first and last touches
of the user. Note that the first touch does not conincide with
the start of a touch exploration gesture since we need a time
or distance to pass before we know whether the user explores
or gestures. However, it is very useful for an accessibility
service to know when the user starts to interact with the
touch screen so it can turn the speech off, to name one
compelling use case.

This change also provides event types for the start and end
of gesture detection. If the user has moved over the threshold
with a speed greater than X, then the system detects gestures.
It is useful for an accessibility service to know the begin
and end of gesture detection so it can provide given feedback
type for such a gesture, say it may produce haptic feedback
or sound that differs for the one for touch exploration.

The main benefit of announcing these new events is that an
accessibility service can provide feedback for each touch
state allowing the user to always know what he is doing.

bug:7166935

Change-Id: I26270d774cc059cb921d6a4254bc0aab0530c1dd
om/android/server/accessibility/AccessibilityManagerService.java
om/android/server/accessibility/TouchExplorer.java
13d428e8306d1bb1a3017045bc5d2f76edec32df 13-Sep-2012 rich cannings <richc@google.com> Send more information to verifiers

Send package name, version code and the uid of the application requesting the
install to package verifiers.

Bug: 7164155
Change-Id: I2464dc5d4551f60b4f38f7982495a8920c83e1cd
om/android/server/pm/PackageManagerService.java
51fbaff11c195d3004f872d19f98a20fa6c44456 14-Sep-2012 Ben Gruver <bgruv@google.com> Merge "DEFAULT_VERIFY_ENABLE turns verification off" into jb-mr1-dev
04a34b375513eaeec67f54bb203ef6b763328751 14-Sep-2012 Jeff Sharkey <jsharkey@android.com> Merge "Actually move to Global settings." into jb-mr1-dev
e6e6197d7c2eb5c29224bcddb0131a302267f6de 14-Sep-2012 Jeff Sharkey <jsharkey@android.com> Actually move to Global settings.

Also add better ConnectivityService logging.

Bug: 7157464
Change-Id: Ia235a7e62ed809240913c4782920c1410c7d597d
om/android/server/ConnectivityService.java
om/android/server/net/NetworkStatsService.java
ce18d1c871f7101af58391918b7f249438c4c307 14-Sep-2012 Christopher Tate <ctate@google.com> Merge "Get correct user's package info during clip processing" into jb-mr1-dev
ad9833a77ff4deb5352c67800c2ee62ed6e51356 14-Sep-2012 Christopher Tate <ctate@google.com> Get correct user's package info during clip processing

Also clear the binder identity correctly for purposes of doing
that query.

Bug 7162477

Change-Id: Ie9e43a2d8fc964d1be649887905244dcceaa3c80
om/android/server/ClipboardService.java
e4bf0eae061c821eaaec988097a8d31332d21646 14-Sep-2012 rich cannings <richc@google.com> DEFAULT_VERIFY_ENABLE turns verification off

When DEFAULT_VERIFY_ENABLE == false, package verification must be completely
off.

Bug: 7132197
Change-Id: Icc0dbb4a3f4f5f00ddadecda6cc42976618c4332
om/android/server/pm/PackageManagerService.java
a043c2c0534afe418fc39bdb43bfaab394ba821a 14-Sep-2012 Jeff Sharkey <jsharkey@android.com> Merge "Move to Global.NETSTATS and Global.NTP constants." into jb-mr1-dev
023c05a341b87d0899c89bf355b6ae27d138bb03 14-Sep-2012 Jeff Sharkey <jsharkey@android.com> Move to Global.NETSTATS and Global.NTP constants.

Bug: 7157464
Change-Id: Ief10fd37940f62420f5684940994c9f93802e0be
om/android/server/net/NetworkStatsService.java
f229e4d3eb8f910c181f96416c6798f6f305a395 13-Sep-2012 Jim Miller <jaggies@google.com> Add support for settings for lock widgets

Change-Id: Iade094c6f32a7653bdbbd4921d345d68f2443ff4
om/android/server/AppWidgetServiceImpl.java
ad92ce85175a45e5d059f129d2e0627cae60aa82 14-Sep-2012 Michael Jurka <mikejurka@google.com> Merge "Fix bug with getting widget categories" into jb-mr1-dev
ca5e341574774379f157a4ea579a1732bd4cf7fb 14-Sep-2012 Michael Jurka <mikejurka@google.com> Fix bug with getting widget categories

Change-Id: I3b0f410707d37436732c45b572c2f588427a784f
om/android/server/AppWidgetServiceImpl.java
5b329e8501486037dd30a5068d96131185893db6 14-Sep-2012 Dianne Hackborn <hackbod@google.com> Fix debug log.

Change-Id: If65abf43ee7a455b12d49b5800657dbf4489e5b9
om/android/server/wm/DisplayContent.java
0b2fa8ca2238de575fc5cf32f28a92a7d422faef 14-Sep-2012 Kenny Root <kroot@google.com> Don't prematurely delete temporary files

When verification and encryption is used, the temporary file was deleted
prematurely.

Also, on next boot-up, scan the directory we use for temporary files to
clean them up if the user rebooted in the middle of installation.

Bug: 7132197
Change-Id: Ic9e8aab9a664ca00d9ac16f72e53fc43d78d21bc
om/android/server/pm/PackageManagerService.java
44015010acefa952b66e8405849314363a52242d 14-Sep-2012 Jeff Brown <jeffbrown@google.com> Merge "Eat copy pasta." into jb-mr1-dev
5380a064c335216e767be1497f3326ec56399a6d 14-Sep-2012 Jeff Brown <jeffbrown@google.com> Eat copy pasta.

Change-Id: I74cbad279c15f1999cc68d732fc04d6c448b5c39
om/android/server/display/DisplayDeviceInfo.java
3a1136eeeb6c2b30b0528e30c41ce36bda35c531 14-Sep-2012 Jeff Brown <jeffbrown@google.com> Merge "We don't need black frames for forced display size." into jb-mr1-dev
4796dfd92cd8abc102be2b65b9991ae264eaf672 14-Sep-2012 Craig Mautner <cmautner@google.com> Merge "Improve debug output." into jb-mr1-dev
dc5a6384e7a82ac732c483e32b7acce6dfa443a8 14-Sep-2012 Craig Mautner <cmautner@google.com> Improve debug output.

Change-Id: I94f46e1e373dc9e67bfbc1d1847399c119ec2fcb
om/android/server/wm/WindowManagerService.java
76a3cb9773d01079de447c16741f628d19108087 14-Sep-2012 Jeff Brown <jeffbrown@google.com> We don't need black frames for forced display size.

Now that surface flinger lets us set a display projection,
the window manager no longer needs to place a black frame
around the content when simulating a different display size.

Bug: 7139798
Change-Id: I6014390f47444633d434ccf918cee5ff7b502869
om/android/server/wm/WindowAnimator.java
om/android/server/wm/WindowManagerService.java
cdfc56a3872f6bae7c43aedd5c718c5fa3fbdf9d 14-Sep-2012 Jeff Brown <jeffbrown@google.com> Merge "Add preliminary API for reporting display capabilities." into jb-mr1-dev
1f1f5970f9b256c89e94ac6876f8d8204e4b2fb9 14-Sep-2012 Victoria Lease <violets@google.com> Merge "Require ACCESS_FINE_LOCATION for Geofence use." into jb-mr1-dev
45a0b90a7ed7ebd8219a7a6d7b9e64c55183523a 14-Sep-2012 Jeff Brown <jeffbrown@google.com> Merge "Enable remote submix for wifi display." into jb-mr1-dev
24271a8c4c55a60047fd3d35c8a7af98b0f4e666 13-Sep-2012 Kenny Root <kroot@google.com> Merge "Use shared app gid for forward-locked processes" into jb-mr1-dev
4fab68b5324e1f9b6765cdc33e66d1f074623dc2 13-Sep-2012 Victoria Lease <violets@google.com> Require ACCESS_FINE_LOCATION for Geofence use.

Bug: 7153226
Change-Id: I49236379e739fcda66bbc9a31cfdca9a87122aec
om/android/server/LocationManagerService.java
c5df37c285221d0fb113f55b9e78b35632241d3f 13-Sep-2012 Jeff Brown <jeffbrown@google.com> Add preliminary API for reporting display capabilities.

Change-Id: Ie18dce5b5d130f9a7cdfca08cddbf9b099312277
om/android/server/display/DisplayDeviceInfo.java
om/android/server/display/HeadlessDisplayAdapter.java
om/android/server/display/LocalDisplayAdapter.java
om/android/server/display/LogicalDisplay.java
om/android/server/display/OverlayDisplayAdapter.java
om/android/server/display/WifiDisplayAdapter.java
om/android/server/display/WifiDisplayController.java
f60921d921947d7d40285f471a09b0478044c29c 13-Sep-2012 Geremy Condra <gcondra@google.com> Merge changes I69689a73,Iaaef6d41,I7e3cb47a,I42307f58 into jb-mr1-dev

* changes:
DO NOT MERGE Push event logging down into libcore.EventLogger
DO NOT MERGE Added event logging for config installation failures.
DO NOT MERGE Create intermediate directories when installing config data.
DO NOT MERGE Add components for the Android Config Updater to system server.
aefd73d2b9f17a06f05346f302db1e393a7ece19 13-Sep-2012 Kenny Root <kroot@google.com> Merge "Try to avoid possible NPE" into jb-mr1-dev
0f001d3ee0a4db694029b1956fa5b901dcdde781 13-Sep-2012 Kenny Root <kroot@google.com> Try to avoid possible NPE

For some reason .getParent() appears to be returning null for a data
directory. We don't need to use the parent; we can just use the path.

Bug: 7151733
Change-Id: I5e17cc14fe53669882329d67d8a7b4ec35b81104
om/android/server/pm/PackageManagerService.java
1803e5e5c7bd867462c74c57c19b43422146d8f9 13-Sep-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Enforcing BIND_ACCESSIBILITY_SERVICE for connecting to an accessibility service." into jb-mr1-dev
19f4a29fa44008703738fd5217366365f14f2649 13-Sep-2012 Svetoslav Ganov <svetoslavganov@google.com> Enforcing BIND_ACCESSIBILITY_SERVICE for connecting to an accessibility service.

1. This change enforces an accessibility service to require the system
defined BIND_ACCESSIBILITY_SERVICE permission.

bug:6507771

Change-Id: If5e16bb4fa97891be0ccbb35e343773712e33b98
om/android/server/accessibility/AccessibilityManagerService.java
e2052a33f6db8db80714748e34a756320093e996 13-Sep-2012 Victoria Lease <violets@google.com> Merge "Secure setting for LocationFudger's accuracy" into jb-mr1-dev
5efc533be6ac43df56a05c84972affbd07a913a7 13-Sep-2012 Amith Yamasani <yamasani@google.com> Merge "Fix service binding for singleUser services" into jb-mr1-dev
4076bc504614ab192186ab58bc346012c53a8330 13-Sep-2012 Amith Yamasani <yamasani@google.com> Fix service binding for singleUser services

Bug: 7137147

No need to try to retrieve the service again as user 0.

Change-Id: I910aca3fae91dc709ef2265ed0fce09f46f5b769
om/android/server/am/ActiveServices.java
7c65e39964a1aa8fffbd940c5ee9e77691aa9656 12-Sep-2012 Geremy Condra <gcondra@google.com> DO NOT MERGE Added event logging for config installation failures.

This just logs the directory the data is being written to, which
will tell us whether we've pushed a bad update and are about to
start wedging devices.

Change-Id: Iaaef6d41b2ab18bcce295c583ee13f49e337ed65
om/android/server/EventLogTags.logtags
om/android/server/updatable/ConfigUpdateInstallReceiver.java
755b87742319a9ff689df08cea0137732a8f0b2d 11-Sep-2012 Geremy Condra <gcondra@google.com> DO NOT MERGE Create intermediate directories when installing config data.

This prevents an issue where a user factory data resets and
hoses the default directory layout- it will now be recreated
on first update.

Change-Id: I7e3cb47a0fa3aa941a74d46fba7e15865484b66d
om/android/server/updatable/ConfigUpdateInstallReceiver.java
b631084613e12e1c6a0ae2ad9446e1284b650ccb 24-Aug-2012 Geremy Condra <gcondra@google.com> DO NOT MERGE Add components for the Android Config Updater to system server.

This adds the necessary bits to verify and install configuration
updates using system server. It also includes the cert pinning
updater as the first user.

Change-Id: I42307f58074157b33b6e01216aab10022340d449
om/android/server/updatable/CertPinInstallReceiver.java
om/android/server/updatable/ConfigUpdateInstallReceiver.java
fd218245d236545f02d5111d8742e241ea1ffb6a 13-Sep-2012 Jeff Brown <jeffbrown@google.com> Merge "Wait for installd to finish starting before booting." into jb-mr1-dev
df9ec6171f6b7f3075d7f8174e9ae6ecf080c917 12-Sep-2012 Victoria Lease <violets@google.com> Secure setting for LocationFudger's accuracy

This replaces the ACCURACY_METERS constant and all derived values with
a secure setting. This value defaults to 2km and has a hardcoded floor
of 500m.

Bug: 6982024
Change-Id: Ibf97ab57145abf28c4a9747444f40250adddf23c
om/android/server/LocationManagerService.java
om/android/server/location/LocationFudger.java
f69c812f49cb2dea296cd319984e58af026f4c3a 13-Sep-2012 Jeff Brown <jeffbrown@google.com> Wait for installd to finish starting before booting.

Fixes a race condition where the system server might
try to access /data/user/0 before it was created. In so
doing, the system server could end up creating a directory
in that location with the wrong permissions and everything
would promptly crash.

Bug: 7151686
Change-Id: I349c12fd2b9685d2e7f6305e74f6bf7d5816b752
om/android/server/SystemServer.java
om/android/server/pm/Installer.java
om/android/server/pm/PackageManagerService.java
4be297545362e547c2168c5d031be9b335101957 13-Sep-2012 Craig Mautner <cmautner@google.com> Merge "Rename variables and methods for clarity." into jb-mr1-dev
5c0e78c445ed4b12fec295f1c7f0799d1e79bf72 13-Sep-2012 Craig Mautner <cmautner@google.com> Rename variables and methods for clarity.

Change-Id: I2a1b2f2d5605123e55f264d45b1e7292852f2a7f
om/android/server/wm/DragState.java
om/android/server/wm/WindowManagerService.java
faecd09cb72a78b6ea2dc1d1e16a8e99ab414b6f 13-Sep-2012 Craig Mautner <cmautner@google.com> Merge "Only consider hiddenRequested when deciding layout" into jb-mr1-dev
c516a5c58ff505d7c53d79a174aa118f65cac366 13-Sep-2012 Craig Mautner <cmautner@google.com> Only consider hiddenRequested when deciding layout

This change removes the test for hidden when deciding whether to
do a layout. So layout begins as soon as hiddenRequested occurs.
Since hidden is cleared when animations starts considering hidden
in the layout decision will delay layout until it is too late.

In particular we were not executing a relayout on return to an
activity even though the screen had been rotated while away.

Fixes bug 6615859.

Change-Id: I5fb0b4bf2c253b910a7a192da04419236d8f09d9
om/android/server/wm/WindowState.java
88469e56c8294a928e65398352e8444d66bdb75a 13-Sep-2012 Jeff Brown <jeffbrown@google.com> Enable remote submix for wifi display.

Change-Id: Ib6cad4ecfed91abf835555a1089a206ee9b0763c
om/android/server/display/WifiDisplayController.java
4a86019aeeed8420c809b94ac07edeff86972108 12-Sep-2012 rich cannings <richc@google.com> Temporarily turn off package verification

Bug: 7152858
Change-Id: Ic3b1900e486224dafcf3cce5db13e5f795650b51
om/android/server/pm/PackageManagerService.java
8b29d63d0857337057db707549ef1faed39792fd 12-Sep-2012 Jeff Sharkey <jsharkey@android.com> Merge "Include user identifier in external storage paths." into jb-mr1-dev
b049e212ab7fe8967893c202efcb30fecfdb82fb 08-Sep-2012 Jeff Sharkey <jsharkey@android.com> Include user identifier in external storage paths.

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

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

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

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

Bug: 7131382
Change-Id: I6f8c6971f2a8edfb415c14cb4ed05ff97e587a21
om/android/server/BackupManagerService.java
om/android/server/MountService.java
om/android/server/SystemServer.java
om/android/server/pm/PackageManagerService.java
om/android/server/usb/UsbDeviceManager.java
c7b6ec7a7c8ee33278baddb0889d67042f38daef 12-Sep-2012 Jeff Brown <jeffbrown@google.com> Merge "Improve reporting of wifi connection state." into jb-mr1-dev
5e900e3a17a87e91a0d190bc1c96efc440eb026a 12-Sep-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Adding a scaling threshold in ScreenMagnifier" into jb-mr1-dev
3e1476a697ad94e638867361a6caba0ede77cb33 12-Sep-2012 Svetoslav Ganov <svetoslavganov@google.com> Adding a scaling threshold in ScreenMagnifier

Change-Id: I1fdd7c93de571a61d88d7386c5c2a423a6b83fb9
om/android/server/accessibility/ScreenMagnifier.java
b1ee58860280e2dfad63170495393a914ab34804 12-Sep-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Refactoring the scale and pan detection in the ScreenMagnifier." into jb-mr1-dev
d420e3ac94afea65173fd0ae43e13dfa6948bff9 12-Sep-2012 Svetoslav Ganov <svetoslavganov@google.com> Refactoring the scale and pan detection in the ScreenMagnifier.

Change-Id: I8560f53f88ef0c9244e2b48d40119574cacb544f
om/android/server/accessibility/ScreenMagnifier.java
f8f0eddd07d22ab815d97dd32ae6ed52dc31a80c 12-Sep-2012 Jeff Brown <jeffbrown@google.com> Improve reporting of wifi connection state.

We should only report that the wifi display is connected
after the RTSP connection has been fully established.

Change-Id: Ifc6bc5d5cebd42d551026885b31cbc74b7ece2b1
om/android/server/display/WifiDisplayAdapter.java
om/android/server/display/WifiDisplayController.java
0bb4d078afeadf4996240d0ac41514c28e5f795a 12-Sep-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Screen magnifier should handle window rebuilds correctly." into jb-mr1-dev
9b4125e435b6bc8f8bd2f6e569d9b0b296ab16ef 12-Sep-2012 Svetoslav Ganov <svetoslavganov@google.com> Screen magnifier should handle window rebuilds correctly.

1. The way for computing the magnified region was simplistic and
incorrect. It was ignoring window layering resulting in broken
behavior. For example, if the IME is up, then the everything else
is magnifed and the IME not. Now the keyguard appears and covers
the IME but the magnified region does not expand while it would
since the keyguard completely covers the not magnified IME window.

bug:7138937

Change-Id: I21414635aefab700ce75d40f3e913c1472cba202
om/android/server/accessibility/ScreenMagnifier.java
om/android/server/wm/WindowManagerService.java
e091f22e226f7177e45e23850670c1ad9b63fd75 12-Sep-2012 Kenny Root <kroot@google.com> Use shared app gid for forward-locked processes

Use a shared app gid for each app across different users which allows
forward-locked applications to share the same APK file.

Change-Id: Ifecf51ee7865547117746f83e9733083d3dd5111
om/android/server/am/ActivityManagerService.java
om/android/server/pm/PackageManagerService.java
9ba2a188919e6e5bf8c042b26527fc090de677ef 11-Sep-2012 Jeff Brown <jeffbrown@google.com> Merge changes I4ad08873,If0562677,I5fe6ba32 into jb-mr1-dev

* changes:
Don't auto-discover peers until scan requested.
Use wfdInfo to filter available sinks.
Allow adb shell am display-size to use bigger sizes.
aec914b1301b9608053b77318c8ea86fa162f14d 11-Sep-2012 Adam Cohen <adamcohen@google.com> Merge "Adding notion of keyguard widgets" into jb-mr1-dev
59c53c6224e2f84d31a56854ebe90d22055100d2 11-Sep-2012 Jeff Brown <jeffbrown@google.com> Don't auto-discover peers until scan requested.

Change-Id: I4ad08873567a5ac86e9bd46abd2375b183e2e95b
om/android/server/display/WifiDisplayController.java
0f68d166e6ca45fe27410ea520967275e0733757 11-Sep-2012 Jeff Brown <jeffbrown@google.com> Use wfdInfo to filter available sinks.

Change-Id: If056267738f70835af645a8c6e7a91c0c5407816
om/android/server/display/WifiDisplayController.java
a36180925bdbde9308f9ae6d27dd5fbadb2fa511 11-Sep-2012 Kenny Root <kroot@google.com> Merge "Remove "unlinklib" command from installd" into jb-mr1-dev
faea76ff8bc9a350765873af81334afe4d14afbd 11-Sep-2012 Amith Yamasani <yamasani@google.com> Enforce a user limit

By default only 1 user is allowed. Some devices permit more than 1.
Set the real user limit in a device overlay for config.xml

Change-Id: I2e0bffa13393b954fcd20e55b92f20de980c58c0
om/android/server/pm/UserManagerService.java
9bbd70a96397bd5f1445ad6c21977fccfb350dfa 10-Sep-2012 Kenny Root <kroot@google.com> Remove "unlinklib" command from installd

unlinklib is no longer necessary since libraries are now either stored
in an ASEC container or in /data/app-lib

Replace lib directory with a symlink to the /data/app-lib directory even
if it's a dangling link. That way developers don't name something "lib"
in their directory which gets blown away during an update.

Change-Id: I142cf13dba9c13aafbaf0ff8d5e9872cbf1cc910
om/android/server/pm/Installer.java
om/android/server/pm/PackageManagerService.java
0aa2d42e87e4a1ed5b83f356690e465d6a3587cc 08-Sep-2012 Adam Cohen <adamcohen@google.com> Adding notion of keyguard widgets

-> Persisting certain appwidget options
-> Adding ability to specify appwidget options on bind
so as to avoid AppWidgetProvider update call with no
options.

Change-Id: I5631039f19f1822b8e123b559b6353c880c0192e
om/android/server/AppWidgetService.java
om/android/server/AppWidgetServiceImpl.java
9d9ece3c1e16001b63244459cdf4b428f4272d2e 11-Sep-2012 Dianne Hackborn <hackbod@google.com> Animations for user switching.

The window manager now has a facility to provide a full-screen
animation, which the activity manager uses every time a user
switch happens.

The current animation is just a simple dumb slide until we get
a design from UX.

Also some cleanup: moved the portrait task animations to the
default config so we always have an animation for them, and finally
got the java symbol stuff out of public.xml.

Change-Id: I726f77422b2ef5f2d98f961f8da003e045f0ebe8
om/android/server/am/ActivityManagerService.java
om/android/server/wm/ScreenRotationAnimation.java
om/android/server/wm/WindowManagerService.java
ce3ef0abaa17b12dc0626b06421d58bf06974ae2 11-Sep-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Screen magnification should disengage on screen off." into jb-mr1-dev
36e614c110dad174dea6017eb701f55339aee200 11-Sep-2012 Svetoslav Ganov <svetoslavganov@google.com> Screen magnification should disengage on screen off.

1. When the screen goes off the user will be in a completely
different context upon turning the screen on. Therefore,
if magnification auto update is enabled magnification
will be disengaged on screen off.

bug:7139088

Change-Id: I790cfa5b3cf31d34e95fc9548e6246a84096c37b
om/android/server/accessibility/ScreenMagnifier.java
43aa15912891930833edfc101615a9c881de54a1 11-Sep-2012 Jeff Brown <jeffbrown@google.com> Allow adb shell am display-size to use bigger sizes.

We now support scaling the logical display to fit the
physical display, whatever size it is. So we can allow
adb shell am display-size to use more or less arbitrary sizes
although we do enforce an upper and lower bound to
protect the user.

Change-Id: I5fe6ba32ad1f9e4fbcd6915f7d36850b987bbcc0
om/android/server/wm/WindowManagerService.java
3c396fccd52f9d06b453b655c20c2266dd984d19 11-Sep-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Reducing the click delay while screen magnification is enabled." into jb-mr1-dev
86fe9e14f1a816df32b08e0eb677989cc7444948 11-Sep-2012 Svetoslav Ganov <svetoslavganov@google.com> Reducing the click delay while screen magnification is enabled.

1. If screen magnification is enabled the user has to triple tap
and lift or triple tap and hold to engage magnification. Hence,
we delay the touch events until we are sure that it is no longer
possible for the user to perform a multi-tap to engage
magnification. While such a delay is unavoidable it feels a
bit longer than it should be. This change reduces the delay
between taps to be considered a multi-tap, essentially making
the click delay shorter.

bug:7139918

Change-Id: I2100945171fff99600766193f0effdaef1f1db8f
om/android/server/accessibility/ScreenMagnifier.java
4e2eb6581f8ee91166cbfd80b531f628dedab89a 11-Sep-2012 Christopher Tate <ctate@google.com> Merge "Update airplane-mode manipulation for the new Settings namespace" into jb-mr1-dev
53d13ecd9a5e4de183e463faba832863f6b95103 11-Sep-2012 Jeff Brown <jeffbrown@google.com> Merge "Fix adb am display-size." into jb-mr1-dev
3c5dab46a73a178dd8e12ee269aae1ac9dfa64de 11-Sep-2012 Jeff Brown <jeffbrown@google.com> Merge "Make input system aware of multiple displays." into jb-mr1-dev
2e7d0cb592381e2efd9b86d5ee38d8ec657b6a1a 11-Sep-2012 Kenny Root <kroot@google.com> Merge "Move native libraries to /data/app-lib" into jb-mr1-dev
c09cdce1b05075da808ae080b9905a14a3e1e627 11-Sep-2012 Christopher Tate <ctate@google.com> Update airplane-mode manipulation for the new Settings namespace

Quick Settings and global actions (aka longpress-Power) toggles are
included in this CL. The Settings app manipulations are updated in
a different CL because that's a different git package.

Bug 7132230

Change-Id: I50838f5e8d7b25a750d2bcae90bf384b09816dbb
om/android/server/BluetoothManagerService.java
om/android/server/WifiService.java
om/android/server/location/ComprehensiveCountryDetector.java
662538957f12a7b7c534382a6a4f306d5777375b 11-Sep-2012 Svetoslav Ganov <svetoslavganov@google.com> Scaling in viewport moving state locks into a magnified state.

1. If the user changes the magnification level while moving the
viewport the magnification is locked. The gesture handle has
to put device back into a viewport moving state if this was
the last state.

bug:7139363

Change-Id: I24992b973bb15624580114353b004efdb35c2faa
om/android/server/accessibility/ScreenMagnifier.java
e35c54eb14baee2401efd525b5594f0211971d12 11-Sep-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Allow simultaneous scale and pan in magnified state." into jb-mr1-dev
e215f26f74744535bcc0209f2a0a0e4a9f36fd82 11-Sep-2012 Jeff Brown <jeffbrown@google.com> Fix adb am display-size.

There were several problems resulting from the use of
mDefaultDisplay before displayReady() was called.
As it happens, we don't need mDefaultDisplay becase we
can get the information from the default display content.

Also modified the Configuration calculations to never
choose a SQUARE orientation. The constant is deprecated
and documented as no longer used, so we should make that
be the case.

Change-Id: I326ed7100030a81e24411e898e5243f28895ea22
om/android/server/wm/WindowManagerService.java
6d04712d15e4fe9b44b0d9accf073f5a7f1d334a 11-Sep-2012 Svetoslav Ganov <svetoslavganov@google.com> Allow simultaneous scale and pan in magnified state.

1. Before in magnified state the user was able to only scale or
pan. Based on user input this change allows performing pan
or scale or both. If the user scales more than a threshold
we are performing a scale and independently of that if the
use pans more than a threshold we are performing a pan.

bug:7138928

Change-Id: Ic1511500ba3369091dcfd070669d3e4f0286fbe5
om/android/server/accessibility/ScreenMagnifier.java
83d616a9c7b9505153d258511eb5c16b552e268d 10-Sep-2012 Jeff Brown <jeffbrown@google.com> Make input system aware of multiple displays.

The input system needs to know about the window that has
focus, even if it is on a secondary display. So now we
send it the list of all windows and indicate which display
they are on. We filter the list of windows as necessary
when delivering touch events.

To keep things simple, monitor input channels and input
filters are not supported except on the main display.
We also do not pass the display id to applications; it is
only used inside the input system for now.

Properly scale touch coordinates based on the viewport.
This will be needed to ensure that touch works on external
display as well as when the internal display is being used
to simulate a different resolution.

Change-Id: I1815579a52fcc852c519b5391fc7ab8767c2dc59
om/android/server/display/DisplayDevice.java
om/android/server/display/DisplayViewport.java
om/android/server/input/InputManagerService.java
om/android/server/wm/InputMonitor.java
om/android/server/wm/WindowManagerService.java
4573e29faf40983f9d1df99bb0f506d77a868e05 11-Sep-2012 Dianne Hackborn <hackbod@google.com> Merge "Flesh out multi-user in am commands." into jb-mr1-dev
1676c856d61b97c871dc2be0cb1f1fb1e12e24e9 10-Sep-2012 Dianne Hackborn <hackbod@google.com> Flesh out multi-user in am commands.

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

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

Improved help text.

Change-Id: I719a13b4d31b668f57ca21e51d7043ac3e0d4e1b
om/android/server/SystemServer.java
om/android/server/am/ActiveServices.java
om/android/server/am/ActivityManagerService.java
om/android/server/pm/UserManagerService.java
ddbe50df2ca70700a46e5849347989b520d1113e 06-Sep-2012 Kenny Root <kroot@google.com> Move native libraries to /data/app-lib

Instead of unpacking libraries into /data/data/<appname>/lib, unpack
them into /data/app-lib so that multi-user applications can use the same
libraries.

Change-Id: I636dafb5a9eea8cf5a41f1360698e7695455f385
om/android/server/pm/Installer.java
om/android/server/pm/PackageManagerService.java
dcc036c54457943afeadf40922a9dacfe29f30e1 10-Sep-2012 Andreas Huber <andih@google.com> Merge "Fix port logic in WifiDisplayController." into jb-mr1-dev
5e0cc0d7ab29e5fbd11316cd3147ef96d65f8de7 10-Sep-2012 Andreas Huber <andih@google.com> Fix port logic in WifiDisplayController.

It's not the port advertised in the sink's wfd IE, it's the one our
source broadcasts in its wfd IE. In addition some dongles ignore the
broadcast port and have to be special cased.

Change-Id: Id5d279652e336391ba34dfc30bba700043d49b1d
om/android/server/display/WifiDisplayController.java
7e8f6c4cef8d65c5b470fc8700214e28d8cd4d43 10-Sep-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Improve scaling vs pan in screen magnifier." into jb-mr1-dev
0c381504a8fce293b3b9ef8ad0333849c43eb6a4 10-Sep-2012 Svetoslav Ganov <svetoslavganov@google.com> Improve scaling vs pan in screen magnifier.

1. Due to frequent changes of the behavior of ScaleGestureDetector
this patch rolls in a gesture detector used for changing the
screen magnification level. It has an improved algorithm which
uses the diameter of min circle around the points as the span, the
center of this circle as the focal point, and the average slop
of the lines from each pointer to the center to determine the
angle of the diameter used when computing the span x and y.

Change-Id: I5cee8dba84032a0702016b8f9632f78139024bbe
om/android/server/accessibility/ScreenMagnifier.java
3c1a20118739fd6765e128c5d9c39c01d22a89e7 10-Sep-2012 Amith Yamasani <yamasani@google.com> Merge "Fix DevicePolicyManager crash when settings password quality (and possibly others)." into jb-mr1-dev
b7a685978f3ea8a1514166c6986c1f1bacedab4a 10-Sep-2012 Amith Yamasani <yamasani@google.com> Fix DevicePolicyManager crash when settings password quality (and possibly others).

Bug: 7130570

Clear the calling identity before broadcasting to all users.

Change-Id: Ibe84af1ee00aecfe4b2d5bb7731a952f617b4885
om/android/server/DevicePolicyManagerService.java
01a7c79dda60c572af0db5820a66680d0faf95cf 10-Sep-2012 Dianne Hackborn <hackbod@google.com> Merge "Various fixes." into jb-mr1-dev
2d1b37819112274f538d1886c379ff337eb0d9ed 10-Sep-2012 Dianne Hackborn <hackbod@google.com> Various fixes.

Bug #7132226: Can't start instrumentation due to ActivityManagerService crash
Bug #6912004: tap on gmail notification sends me to home screen

Change-Id: I824128b01f368de95dee288f8e49039b84479a7e
om/android/server/am/ActiveServices.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityRecord.java
om/android/server/am/ActivityStack.java
om/android/server/am/ProviderMap.java
69d6b534335afc883077927b9abb0f94568d298d 10-Sep-2012 Kenny Root <kroot@google.com> Merge "Update PackageSetting flags when updating" into jb-mr1-dev
5455f6826f832ed0f07d28a772f4489d7223acb3 09-Sep-2012 Kenny Root <kroot@google.com> Update PackageSetting flags when updating

Commit 5e03e2ca7d25b899b129baad2dd5eca6bf99d88a moved from
PacakgeParser.Package to PackageSetting which revealed that we weren't
updating the pkgFlags when replacing an existing application.

Add flags to PackageSetting so that deletion of the package later succeeds.

Change-Id: I2e0d4e07da31f48b68601f3f3240966b6e17dbdf
om/android/server/pm/PackageManagerService.java
om/android/server/pm/Settings.java
fdb5bd261d7836b5f7e9c20d75709ca978d6eb18 09-Sep-2012 Jeff Brown <jeffbrown@google.com> Merge "Disable wifi display API when the adapter is not registered." into jb-mr1-dev
21c7153d30071dcbeb92daa1fd48ed181e42aef3 09-Sep-2012 Jeff Brown <jeffbrown@google.com> Disable wifi display API when the adapter is not registered.

Bug: 7132341
Change-Id: I46d859082077afd2c8adc829ad285977dff80d07
om/android/server/display/DisplayManagerService.java
0c191624fba8484e811027a9db40a62a960ab7dc 09-Sep-2012 Kenny Root <kroot@google.com> Remove "protect" command from installd

No one uses the "protect" command anymore, so remove it from installd.

Change-Id: Ia990bae6f95cd6e317496f5dd173ec15164d7164
om/android/server/pm/Installer.java
add52a975aa78d9e24d3e63a8168c00a9bfb80ec 09-Sep-2012 Svetoslav Ganov <svetoslavganov@google.com> Viewport should zoom out when screen magnification is disabled.

1. If screen magnification is disabled when the screen is in a
magnified state we have to zoom out since otherwise the user
is stuck in a magnified state without ability to pan/zoom/
toggle magnification which renders the device useless.

bug:7131030

Change-Id: I8f3339f31310448ec8742f3101c1fdc61a6a5f83
om/android/server/accessibility/ScreenMagnifier.java
5b1720e11d3d5a23c4b0406e1c51e8cd8275f25f 09-Sep-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Viewport should zoom out when screen magnification is disabled." into jb-mr1-dev
6d0df874ce235872bd5fdd4d3bce0905869a099d 09-Sep-2012 Svetoslav Ganov <svetoslavganov@google.com> Viewport should zoom out when screen magnification is disabled.

1. If screen magnification is disabled when the screen is in a
magnified state we have to zoom out since otherwise the user
is stuck in a magnified state without ability to pan/zoom/
toggle magnification which renders the device useless.

bug:7131030

Change-Id: Ia620954fbd594e7cd470e43b89d9ed04c0397c3c
om/android/server/accessibility/ScreenMagnifier.java
20ec8ac58665e6e2991988c134ba3b8590911648 09-Sep-2012 Jeff Brown <jeffbrown@google.com> Merge "Improve Wifi display discovery API." into jb-mr1-dev
180bbc71810496e280e9993177bfeddb3ad1f558 09-Sep-2012 Jeff Brown <jeffbrown@google.com> Improve Wifi display discovery API.

Change-Id: I4d46503e5413f52da16f79bbc9c631cc5ae9c178
om/android/server/display/WifiDisplayAdapter.java
om/android/server/display/WifiDisplayController.java
8f008e737a84be289d07cc603f98da1bbbfcf837 09-Sep-2012 Amith Yamasani <yamasani@google.com> Merge "More multi-user methods in PM" into jb-mr1-dev
151ec4c9f8ca34625733730a4551a23eb97cda23 08-Sep-2012 Amith Yamasani <yamasani@google.com> More multi-user methods in PM

pm can list installed packages by user now.

Bug: 6926465

Change-Id: I822311bfd6e7e2d6fb315fc484739fbf953c9bb6
om/android/server/pm/PackageManagerService.java
8e810132315ba6ce2e1f3dca5e91fd34e42a44d8 09-Sep-2012 Jeff Brown <jeffbrown@google.com> Merge "Make display manager tell input system about viewports." into jb-mr1-dev
d728bf514f257670fcb9aa22c6eaf97626072c93 09-Sep-2012 Jeff Brown <jeffbrown@google.com> Make display manager tell input system about viewports.

The window manager is no longer responsible for telling the
input system about the display viewport.

Change-Id: I932882bae55decef55f25093bb2a7ebac1620bb1
om/android/server/SystemServer.java
om/android/server/display/DisplayDevice.java
om/android/server/display/DisplayDeviceInfo.java
om/android/server/display/DisplayManagerService.java
om/android/server/display/DisplayViewport.java
om/android/server/display/HeadlessDisplayAdapter.java
om/android/server/display/LocalDisplayAdapter.java
om/android/server/display/LogicalDisplay.java
om/android/server/display/OverlayDisplayAdapter.java
om/android/server/display/WifiDisplayAdapter.java
om/android/server/input/InputManagerService.java
om/android/server/wm/WindowManagerService.java
1edf63ef4c7484355a6d9371bea912d6518a7d1e 09-Sep-2012 Jeff Brown <jeffbrown@google.com> Merge "Enable auto-brightness adjustment feature with system prop." into jb-mr1-dev
631938f26dbc89e7e9530bb85d9f37706dba59f3 09-Sep-2012 Jeff Brown <jeffbrown@google.com> Enable auto-brightness adjustment feature with system prop.

This feature is experimental and disabled by default.

Change-Id: I183534370da7613557e4d1535f556873f8a763df
om/android/server/power/DisplayPowerController.java
b0d10aa9831fb74a28db63cac9d111559bed62ab 08-Sep-2012 Jeff Brown <jeffbrown@google.com> Merge "Add new wifi display discovery API." into jb-mr1-dev
0597100f9127ddc0b638eb044872f138f4d3e4a8 08-Sep-2012 Jeff Brown <jeffbrown@google.com> Merge "Retry wifi display connections." into jb-mr1-dev
e08ae388d63c4db8f9d9a7ecd634f9a51f6e91b9 08-Sep-2012 Jeff Brown <jeffbrown@google.com> Add new wifi display discovery API.

The API is quite simple. There are a few extra functions
on DisplayManager to scan, connect and disconnect from
wifi displays and get status, and a single protected
broadcast sent when the status changes.

Change-Id: Ic91dbab5ee818e790b27fa32e1a1e93788793be0
om/android/server/display/DisplayManagerService.java
om/android/server/display/WifiDisplayAdapter.java
om/android/server/display/WifiDisplayController.java
4ea283a05f3724285ed3057ff1de1a344ab3e15a 08-Sep-2012 Christopher Tate <ctate@google.com> Merge "Sanity-check existence of restore agent" into jb-mr1-dev
5d75052b2da7ed7c153faea69a28f13a4000788f 08-Sep-2012 Dianne Hackborn <hackbod@google.com> Merge "Add Binder.getCallingUserHandle()." into jb-mr1-dev
74ee8652e02fc94901177214fc9370659732c921 08-Sep-2012 Dianne Hackborn <hackbod@google.com> Add Binder.getCallingUserHandle().

Change-Id: I2a7eedfdc7baeeb4c2cd2ca0153aa95e0cf0bf45
om/android/server/am/ActivityManagerService.java
e7287a0791b7398a540c18894972908683456283 08-Sep-2012 Christopher Tate <ctate@google.com> Sanity-check existence of restore agent

When a restore dataset includes data for an app that used to have
a backup agent, but does not in the currently-installed version, we
were merrily trying to bring up the agent for restore anyway, and
crashing. Now we don't do that; we check whether there's actually
going to be an agent to handle the data before doing any of the
heavy work.

Bug 7130695

Change-Id: I0a38c2a8bb51d4a140a72d22896fa58d98ebaa02
om/android/server/BackupManagerService.java
824b959dfc830f3d0aa12afc5fb429980e35f3fd 08-Sep-2012 Dianne Hackborn <hackbod@google.com> Merge "Explicitly specify current user everywhere home is started." into jb-mr1-dev
0cfebf28b15e85a42981a8f9e6a09556bef36ea3 08-Sep-2012 Jeff Brown <jeffbrown@google.com> Retry wifi display connections.

Change-Id: I48c62c7e272c2696022ddeea1c3107d24a9431b8
om/android/server/display/WifiDisplayController.java
4d0b56255489efc3b35b9f0187f56536f07d5d66 08-Sep-2012 Jeff Brown <jeffbrown@google.com> Disable hardcoded wifi display adapter.

Change-Id: Id0f7d59b6eafa8794ff7616cf54a0b94ba78c763
om/android/server/display/WifiDisplayController.java
d888399ad4a4ec0a08e97518bf22d726a8bd4eaa 08-Sep-2012 Dianne Hackborn <hackbod@google.com> Explicitly specify current user everywhere home is started.

Change-Id: I58d86136de7f9cef1eaf72793d0e200b852d7355
om/android/server/UiModeManagerService.java
om/android/server/am/ActivityManagerService.java
0458a69d4d08a517780c2279ae1dc98ccb3fb916 08-Sep-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Fixing off by one error in the ScreenMagnifier." into jb-mr1-dev
2cee686498c6141f5a68532ecb79f598e043ec7e 08-Sep-2012 Svetoslav Ganov <svetoslavganov@google.com> Fixing off by one error in the ScreenMagnifier.

Change-Id: Ia0ccfb6b354b7a18633e7cf26647c6436ebf5c08
om/android/server/accessibility/ScreenMagnifier.java
72018294cc4e3cc5feb7affdec4bf4bb2368ac41 08-Sep-2012 Jeff Brown <jeffbrown@google.com> Merge "Make mirroring automatic based on Windows on display." into jb-mr1-dev
7017e48380ab0c1be033594bb2a9331898ad5be8 08-Sep-2012 Jeff Brown <jeffbrown@google.com> Merge "Add support for Wifi display." into jb-mr1-dev
cd620591b764cd999f18878985444fba01d5b710 08-Sep-2012 Nick Kralevich <nnk@google.com> Merge "installd: fix forward locking symlink" into jb-mr1-dev
1275abd013eee87b3fec5b704a799440cb1c71fe 08-Sep-2012 rich cannings <richc@google.com> Merge "Move verification settings to Settings.Global" into jb-mr1-dev
cd42ce5d61d7854d1add5d4d308d1f3342baeea6 08-Sep-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix crash when setting wallpaper from non-primary user." into jb-mr1-dev
11941fd651be468c8ab6c90256616418ecf3a6a8 08-Sep-2012 Dianne Hackborn <hackbod@google.com> Fix crash when setting wallpaper from non-primary user.

When accessing a content provider, there is a check for whether
the provider can run in the caller's process; if so, even if the
provider is currently published, we return to the caller that it
can run locally.

This check was broken -- it had an old condition that allowed
content providers owned by the system UID to run in any other UID's
process. This is wrong, since by definition the other
UIDs would not be able to access the data under the original UID.

We ran into this because the activity picker is part of the
android platform manifest, so runs as the system process. However
it needs to run as the user who invoked it, so when coming from the
non-primary user we spin up a "system" process running as a uid of
that user. Now when that process tries to access the settings
provider, the broken check would think that a new instance of the
settings provider should be created in the caller's process.

Change-Id: I7bf495ed8370cb271bdaec073d5b7dda9e38c546
om/android/server/am/ContentProviderRecord.java
om/android/server/pm/Settings.java
7de350a91301985b7f2d9f28edde5aade8495d9b 08-Sep-2012 Nick Kralevich <nnk@google.com> installd: fix forward locking symlink

installd was not creating a compatibility symlink when
installing a forward locked application. Fix.

Bug: 7121527
Change-Id: Ied507ab2b759d8658af563e6ac8f0dbb0d286cce
om/android/server/pm/PackageManagerService.java
df4a94e21c78b25d7e35590408efda87ab41b633 08-Sep-2012 Craig Mautner <cmautner@google.com> Merge "Fix incorrect indexing calculation." into jb-mr1-dev
efb735dbafd131cd1e8f4af40274c16443e39078 08-Sep-2012 Craig Mautner <cmautner@google.com> Fix incorrect indexing calculation.

Fixes bug 7129583.

Change-Id: Ia395a7acded05686668d5b3cee09d49025a9f339
om/android/server/wm/WindowManagerService.java
4d8fc793f044cf2c857ac72ebe51641b8e6c413d 07-Sep-2012 rich cannings <richc@google.com> Move verification settings to Settings.Global

Move Settings.Secure.PACKAGE_VERIFIER_ENABLE,
Settings.Secure.PACKAGE_VERIFIER_TIMEOUT,
Settings.Secure.PACKAGE_VERIFIER_DEFAULT_RESPONSE to
Settings.Global.PACKAGE_VERIFIER_ENABLE,
Settings.Global.PACKAGE_VERIFIER_TIMEOUT,
Settings.Global.PACKAGE_VERIFIER_DEFAULT_RESPONSE, respectively.

Bug: 7082362
Change-Id: I21fde031a330563891c0129132f3d6369ac5e7a5
om/android/server/pm/PackageManagerService.java
5fc626639aa7ff2aed224b58891149e19fb24b57 08-Sep-2012 Amith Yamasani <yamasani@google.com> Merge "Resolve the correct home intent for secondary users" into jb-mr1-dev
259d5e56a82d721ccb7e7f514c80de69acae309e 01-Sep-2012 Amith Yamasani <yamasani@google.com> Resolve the correct home intent for secondary users

Fix some searches through the Activity stack.

This allows SetupWizard to be launched for the second user.

Change-Id: Icd306319f511c902557bd9985d80dda228e32d96
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityStack.java
62df6eb5081fbb66d9245626e8c91497431040e4 08-Sep-2012 Christopher Tate <ctate@google.com> Refer to STAY_ON_WHILE_PLUGGED_IN via the Global namespace

It moved from System to Global, so writes are not automatically redirected
to the new namespace (else apps would start crashing).

Bug 7126575

Change-Id: Ief31fcb5a6107a098da04d30d146e16921dee776
om/android/server/DevicePolicyManagerService.java
722285e199a9fc74b9b3343b7505c00666848c88 07-Sep-2012 Craig Mautner <cmautner@google.com> Make mirroring automatic based on Windows on display.

Tell the display manager whenever a given logical display
contains interesting windows. If so, then the display
manager arranges to show that content on a physical display,
otherwise it ignores the logical display and makes its
associated primary physical display mirror the default
display.

Assign DisplayContents when Displays are added, remove them when
Displays are removed, and update the DisplayInfo when Displays
change.

Change-Id: I36e08ec538055acabe1e24cdd12c40de4e47a158
om/android/server/display/DisplayManagerService.java
om/android/server/display/LogicalDisplay.java
om/android/server/wm/DisplayContent.java
om/android/server/wm/WindowManagerService.java
c0be8c85b09002359adb1fb20f2bf08e6983d146 07-Sep-2012 Christopher Tate <ctate@google.com> Merge "Refer to STAY_ON_WHILE_PLUGGED_IN in the global namespace" into jb-mr1-dev
ad7353204152389e88b331991274bad04469ae58 07-Sep-2012 Christopher Tate <ctate@google.com> Refer to STAY_ON_WHILE_PLUGGED_IN in the global namespace

This is the one relevant setting that moved from System to Global,
a move that we do not automatically redirect on writes.

Change-Id: I7b26d0c364695c4a10a7cd477db3dfcfe89d7ef5
om/android/server/power/PowerManagerService.java
5e03e2ca7d25b899b129baad2dd5eca6bf99d88a 06-Sep-2012 Dianne Hackborn <hackbod@google.com> More multi-user stuff:

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

Change-Id: I3522f6fcf32603090bd6e01cc90ce70b6c5aae40
om/android/server/am/ActiveServices.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/PendingIntentRecord.java
om/android/server/am/ProviderMap.java
om/android/server/pm/PackageManagerService.java
om/android/server/pm/Settings.java
cbad976b2a36a0895ca94510d5208a86f66cf596 05-Sep-2012 Jeff Brown <jeffbrown@google.com> Add support for Wifi display.

Change-Id: I99693786cf9d07d07d3400046c55eb4933730b80
om/android/server/display/DisplayDevice.java
om/android/server/display/DisplayDeviceInfo.java
om/android/server/display/DisplayManagerService.java
om/android/server/display/LocalDisplayAdapter.java
om/android/server/display/OverlayDisplayAdapter.java
om/android/server/display/OverlayDisplayWindow.java
om/android/server/display/WifiDisplayAdapter.java
om/android/server/display/WifiDisplayController.java
240a90d2789f8813bef11b499a026b8afe43bbd8 07-Sep-2012 Matthew Xie <mattx@google.com> Merge "Fault tolerance in Bluedroid" into jb-mr1-dev
1223e5a3115e825567972da26e38c0016bdfa268 29-Aug-2012 Syed Ibrahim M <syedibra@broadcom.com> Fault tolerance in Bluedroid

When bluetooth process gets crashed/killed/stopped by Android
system, BluetoothManagerService will re-start AdapterService
to recover from the crash appropriately.

Change-Id: Iacb1a06a8245089517bbbd57de1378ca8ce4b41e
om/android/server/BluetoothManagerService.java
9545dc020ea11649d70dcbe911a8e82a3254a4ea 07-Sep-2012 Jeff Sharkey <jsharkey@android.com> Include primary flag in StorageVolume.

Bug: 7003520
Change-Id: Iaae2ae22253820c954c51e0199c31087bc825f3f
om/android/server/MountService.java
6da5827193408ec6d2a77b64448b2f1c40b9a482 07-Sep-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Screen magnification - feature - framework." into jb-mr1-dev
1cf70bbf96930662cab0e699d70b62865766ff52 06-Aug-2012 Svetoslav Ganov <svetoslavganov@google.com> Screen magnification - feature - framework.

This change is the initial check in of the screen magnification
feature. This feature enables magnification of the screen via
global gestures (assuming it has been enabled from settings)
to allow a low vision user to efficiently use an Android device.

Interaction model:

1. Triple tap toggles permanent screen magnification which is magnifying
the area around the location of the triple tap. One can think of the
location of the triple tap as the center of the magnified viewport.
For example, a triple tap when not magnified would magnify the screen
and leave it in a magnified state. A triple tapping when magnified would
clear magnification and leave the screen in a not magnified state.

2. Triple tap and hold would magnify the screen if not magnified and enable
viewport dragging mode until the finger goes up. One can think of this
mode as a way to move the magnified viewport since the area around the
moving finger will be magnified to fit the screen. For example, if the
screen was not magnified and the user triple taps and holds the screen
would magnify and the viewport will follow the user's finger. When the
finger goes up the screen will clear zoom out. If the same user interaction
is performed when the screen is magnified, the viewport movement will
be the same but when the finger goes up the screen will stay magnified.
In other words, the initial magnified state is sticky.

3. Pinching with any number of additional fingers when viewport dragging
is enabled, i.e. the user triple tapped and holds, would adjust the
magnification scale which will become the current default magnification
scale. The next time the user magnifies the same magnification scale
would be used.

4. When in a permanent magnified state the user can use two or more fingers
to pan the viewport. Note that in this mode the content is panned as
opposed to the viewport dragging mode in which the viewport is moved.

5. When in a permanent magnified state the user can use three or more
fingers to change the magnification scale which will become the current
default magnification scale. The next time the user magnifies the same
magnification scale would be used.

6. The magnification scale will be persisted in settings and in the cloud.

Note: Since two fingers are used to pan the content in a permanently magnified
state no other two finger gestures in touch exploration or applications
will work unless the uses zooms out to normal state where all gestures
works as expected. This is an intentional tradeoff to allow efficient
panning since in a permanently magnified state this would be the dominant
action to be performed.

Design:

1. The window manager exposes APIs for setting accessibility transformation
which is a scale and offsets for X and Y axis. The window manager queries
the window policy for which windows will not be magnified. For example,
the IME windows and the navigation bar are not magnified including windows
that are attached to them.

2. The accessibility features such a screen magnification and touch
exploration are now impemented as a sequence of transformations on the
event stream. The accessibility manager service may request each
of these features or both. The behavior of the features is not changed
based on the fact that another one is enabled.

3. The screen magnifier keeps a viewport of the content that is magnified
which is surrounded by a glow in a magnified state. Interactions outside
of the viewport are delegated directly to the application without
interpretation. For example, a triple tap on the letter 'a' of the IME
would type three letters instead of toggling magnified state. The viewport
is updated on screen rotation and on window transitions. For example,
when the IME pops up the viewport shrinks.

4. The glow around the viewport is implemented as a special type of window
that does not take input focus, cannot be touched, is laid out in the
screen coordiates with width and height matching these of the screen.
When the magnified region changes the root view of the window draws the
hightlight but the size of the window does not change - unless a rotation
happens. All changes in the viewport size or showing or hiding it are
animated.

5. The viewport is encapsulated in a class that knows how to show,
hide, and resize the viewport - potentially animating that.
This class uses the new animation framework for animations.

6. The magnification is handled by a magnification controller that
keeps track of the current trnasformation to be applied to the screen
content and the desired such. If these two are not the same it is
responsibility of the magnification controller to reconcile them by
potentially animating the transition from one to the other.

7. A dipslay content observer wathces for winodw transitions, screen
rotations, and when a rectange on the screen has been reqeusted. This
class is responsible for handling interesting state changes such
as changing the viewport bounds on IME pop up or screen rotation,
panning the content to make a requested rectangle visible on the
screen, etc.

8. To implement viewport updates the window manger was updated with APIs
to watch for window transitions and when a rectangle has been requested
on the screen. These APIs are protected by a signature level permission.
Also a parcelable and poolable window info class has been added with
APIs for getting the window info given the window token. This enables
getting some useful information about a window. There APIs are also
signature protected.

bug:6795382

Change-Id: Iec93da8bf6376beebbd4f5167ab7723dc7d9bd00
om/android/server/accessibility/AccessibilityInputFilter.java
om/android/server/accessibility/AccessibilityManagerService.java
om/android/server/accessibility/EventStreamTransformation.java
om/android/server/accessibility/GestureUtils.java
om/android/server/accessibility/ScreenMagnifier.java
om/android/server/accessibility/TouchExplorer.java
om/android/server/wm/DisplayContent.java
om/android/server/wm/MagnificationSpec.java
om/android/server/wm/Session.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
om/android/server/wm/WindowStateAnimator.java
2b0442f33029c6b6cf1247a1633a97f5908d6cab 07-Sep-2012 Jeff Sharkey <jsharkey@android.com> Merge "Event logging for lockdown VPN state changes." into jb-mr1-dev
91c6a64a04c2d8b27b886d96a56800ae24efb7a9 07-Sep-2012 Jeff Sharkey <jsharkey@android.com> Event logging for lockdown VPN state changes.

Bug: 7079350
Change-Id: I3670efe7f09c0fca55552b6a04a2be159b9beb3c
om/android/server/EventLogTags.logtags
om/android/server/net/LockdownVpnTracker.java
fa8d83d90444354e8eca6ca0e080bc917e5a1f32 07-Sep-2012 Jeff Sharkey <jsharkey@android.com> Merge "Restrict lockdown and firewall to AID_SYSTEM." into jb-mr1-dev
f56e2435b64f9638e029777fa9492d42f157033e 07-Sep-2012 Jeff Sharkey <jsharkey@android.com> Restrict lockdown and firewall to AID_SYSTEM.

Bug: 7076289
Change-Id: Iafa3054335e8b1c3c8c3b8db2a4191d4ed4c8c41
om/android/server/ConnectivityService.java
om/android/server/NetworkManagementService.java
9e130e70eff57d15c0888f51c4f1a7cc4cd62573 07-Sep-2012 Craig Mautner <cmautner@google.com> Merge "Limit certain actions to default Display." into jb-mr1-dev
69b0818179201fadc9d2a384d692d8ae4aecd85c 05-Sep-2012 Craig Mautner <cmautner@google.com> Limit certain actions to default Display.

Stop messing up PhoneWindowManager state when passing in windows
from non-default Display.

Change-Id: I472f7a13c5e2241fbf1f79ae1c8045fd92af016c
om/android/server/wm/DisplayContent.java
om/android/server/wm/WindowAnimator.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
om/android/server/wm/WindowStateAnimator.java
fd5494b8ef91e8a909622c3bf45dac7537254b41 05-Sep-2012 Daniel Sandler <dsandler@android.com> Merge changes I4ef284da,Ie8cc69bd into jb-mr1-dev

* changes:
Make the SystemUI stop the screen saver when a full-screen notification is posted.
Do not play sounds or vibes for background users' notifications.
ec098efcb11c4f4a12e7d3e44995536ef1eb7c1b 05-Sep-2012 Jean-Baptiste Queru <jbq@google.com> am 342c6bc8: am 54099555: am 380a8e3d: Merge "Am: Clean mLaunchingProviders of all providers started by the client"

* commit '342c6bc8e5edb5a0cfa2ad65162d559b7f2ad993':
Am: Clean mLaunchingProviders of all providers started by the client
540995555505486074e9652a9c682bdf6e3056c5 05-Sep-2012 Jean-Baptiste Queru <jbq@google.com> am 380a8e3d: Merge "Am: Clean mLaunchingProviders of all providers started by the client"

* commit '380a8e3d126374b0205e8452bf2b4b70779e2606':
Am: Clean mLaunchingProviders of all providers started by the client
380a8e3d126374b0205e8452bf2b4b70779e2606 05-Sep-2012 Jean-Baptiste Queru <jbq@google.com> Merge "Am: Clean mLaunchingProviders of all providers started by the client"
0b5a4a15132a9367b6bbff62781e9ad3441b6c1d 05-Sep-2012 Jean-Baptiste Queru <jbq@google.com> am 11626a91: am 9eb3bd88: am 42a58ecd: Merge "Revert "Watchdog: Improvement of debuggability""

* commit '11626a91b6e695e7a8fa9e9a9f1a37df11cfb4e2':
Revert "Watchdog: Improvement of debuggability"
9eb3bd88f14c386c89dd2576c3ca798f2493b0fd 05-Sep-2012 Jean-Baptiste Queru <jbq@google.com> am 42a58ecd: Merge "Revert "Watchdog: Improvement of debuggability""

* commit '42a58ecd27783d347242206bcffd4052cf1d5164':
Revert "Watchdog: Improvement of debuggability"
c9ce0abe29baecc540c48f4913255a71586bcfd3 04-Sep-2012 Daniel Sandler <dsandler@android.com> Make the SystemUI stop the screen saver when a full-screen notification is posted.

This keeps all the fullScreenIntent logic (including
multiuser implications) in one place.

Change-Id: I4ef284daf90464f105780ade1d971e9e081fbbb5
om/android/server/NotificationManagerService.java
24518e466ab36ce7c6d2ffd733ac4d57f255766e 04-Sep-2012 Daniel Sandler <dsandler@android.com> Do not play sounds or vibes for background users' notifications.

USER_ALL notifications will still play/vibe for any user.

Change-Id: Ie8cc69bd1541193ed9c4207ef38a8d4898af0a9d
om/android/server/NotificationManagerService.java
580e9f72e09efc4645aa98753ad8e9806d428950 05-Sep-2012 Brian Muramatsu <btmura@google.com> Merge "Make battery shutdown temperature configurable" into jb-mr1-dev
f87633f38c399edf5b2c358992ecbbbbbad5a648 05-Sep-2012 Mathias Agopian <mathias@google.com> Merge "update to new SurfaceComposerClient API" into jb-mr1-dev
0d727c714b75b9d9c927eca83aacba8938b08537 05-Sep-2012 Satoshi Kataoka <satok@google.com> Merge "Add subtypeId for keeping enabled "InputMethodSubtype"s even if subtype parameters are changed" into jb-mr1-dev
63f1c43fbef157397869475ef30d23e631b88bbe 05-Sep-2012 Mathias Agopian <mathias@google.com> update to new SurfaceComposerClient API

Change-Id: I8f2c96df56fe3a851b8ec03bb8734db0b6bea3d5
om/android/server/display/DisplayDevice.java
om/android/server/display/LogicalDisplay.java
bac6c12974c278a8045ed8deefb08d0348aa8496 05-Sep-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix another issue #7097984 java.lang.SecurityException: Permission Denial:" into jb-mr1-dev
fd8bf5c790749b0382c9d70424cac2367d6276e3 05-Sep-2012 Dianne Hackborn <hackbod@google.com> Fix another issue #7097984 java.lang.SecurityException: Permission Denial:

broadcast asks to run as user -1 but is calling from user 0; this requires

Dupped bug of a different problem.

Change-Id: I15f4ab08b81f5f5746ba1cd183dee4f0b1281df5
om/android/server/AppWidgetService.java
om/android/server/ConnectivityService.java
bb95cb9f997afc34d54f3d5bcb247c44f368b62b 29-Aug-2012 Brian Muramatsu <btmura@google.com> Fix GPS settings change listener in LocManager

Bug 7051185

- Register a ContentObserver to track settings changes rather than
opening up a Cursor with a ContentQueryMap.

- Move updateProvidersLocked into init to assure that the
ContentObserver does not miss any changes.

- Move blacklist and fudger creation before loadProvidersLocked to
improve code readability.

Change-Id: I4d3e19fa33401c384bc2b00658d4336ea119e0e5
om/android/server/LocationManagerService.java
7950d081ac945d97427264f2a0531607097c2c71 05-Sep-2012 Craig Mautner <cmautner@google.com> Merge "Make mLayoutNeeded per-Display." into jb-mr1-dev
19d59bc5ad877e9b1544ab13a08282b7b384fefb 04-Sep-2012 Craig Mautner <cmautner@google.com> Make mLayoutNeeded per-Display.

Switch from a global mLayoutNeeded to one for each Display so that
we don't run layout on Displays that haven't changed.

Change-Id: Ib65c5c667933cceacc46b94f4e6e6bd613d5cb35
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
om/android/server/wm/WindowStateAnimator.java
175ae55c0d62b6adbc9b3cc215ad2e65a8b40cc3 05-Sep-2012 Jim Miller <jaggies@google.com> Merge "Update DevicePolicyManager with ability to disable keyguard widgets" into jb-mr1-dev
690420831c9b60f7fb2f1100aeef67ad79bfd3bb 05-Sep-2012 rich cannings <richc@google.com> Merge "Enable package verification" into jb-mr1-dev
035ce2ca92742894f7f906c93d7d217c647aa19a 05-Sep-2012 Fabrice Di Meglio <fdimeglio@google.com> Merge "Add support for "-rtl" in resources" into jb-mr1-dev
f3c74f34999337b8eb77e1a5ed0287561b512c21 01-Sep-2012 Brian Muramatsu <btmura@google.com> Make battery shutdown temperature configurable

Bug 7079455

Change-Id: I448f21231bf0548ef975f99482576acb24a1a70e
om/android/server/BatteryService.java
b8ec470617590fa2025db869e8e80dcce8eaec23 01-Sep-2012 Jim Miller <jaggies@google.com> Update DevicePolicyManager with ability to disable keyguard widgets

Change-Id: I5876e9e180b2a995aaa355fbbb2b67cebb86104d
om/android/server/DevicePolicyManagerService.java
68ed7e448d36c2f82062add8a95dfdf995873557 04-Sep-2012 rich cannings <richc@google.com> Enable package verification

Turn on package verification, if a verifier exists. Play app is now a verifier.

Bug: 7064853
Change-Id: I11f6b108c507ea6236038b1415eb9064ca4c3c6d
om/android/server/pm/PackageManagerService.java
784827b27cf4cd82bf074b571e63cb5e660c54af 04-Sep-2012 Jean-Baptiste Queru <jbq@google.com> Revert "Watchdog: Improvement of debuggability"

This reverts commit 9211b13c3268035b0da0c51ed2d6d5a578d45ff3.
om/android/server/Watchdog.java
d2a8df9541c198d555ef6a50347acb9160509863 04-Sep-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #7097984 java.lang.SecurityException: Permission Denial:" into jb-mr1-dev
34a75df63533914bbca95a82d2c89ca374b2645d 04-Sep-2012 Craig Mautner <cmautner@google.com> Merge "Remove single pass actions from display loop." into jb-mr1-dev
ed48f9f8b253b3140607cb97d623093b3a90e897 04-Sep-2012 Craig Mautner <cmautner@google.com> Merge "Change layout inner loop order for multi display." into jb-mr1-dev
b8839dd35723235469a4e805682378c84f50a4fb 04-Sep-2012 Dianne Hackborn <hackbod@google.com> Fix issue #7097984 java.lang.SecurityException: Permission Denial:

broadcast asks to run as user -1 but is calling from user 0; this requires

Also improve part of issue #7087789: Local denial of service via
low-permissioned apps

No longer allow closeSystemDialogs() from background processes.

Change-Id: I752d5a1d51be0b69fde6999d6659835e5bde3efe
om/android/server/am/ActivityManagerService.java
7d69e8bd2168a81a5cb68da99d025c6f290bf166 04-Sep-2012 Dianne Hackborn <hackbod@google.com> Merge "Add registering for explicit users." into jb-mr1-dev
20e809870d8ac1e5b848f2daf51b2272ef89bdfc 01-Sep-2012 Dianne Hackborn <hackbod@google.com> Add registering for explicit users.

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

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

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

Change-Id: Ibbe28993bd4aa93900c79e412026c27863019eb8
om/android/server/AppWidgetService.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/BroadcastFilter.java
om/android/server/am/BroadcastQueue.java
om/android/server/am/PendingIntentRecord.java
om/android/server/am/ReceiverList.java
om/android/server/pm/PackageManagerService.java
ea3a09a5b9c8ae56b0c4975c7a7039a05d4c0b3c 04-Sep-2012 Craig Mautner <cmautner@google.com> Remove single pass actions from display loop.

The WindowAnimator loop over each Display contained actions that
only needed to be done one time but were instead done once per loop.

Change-Id: Ia916b08cdb7670686e6295dbcef6a5ff27474099
om/android/server/wm/DimAnimator.java
om/android/server/wm/WindowAnimator.java
76a7165719dc3ccce902953f6244e2c2668aa753 04-Sep-2012 Craig Mautner <cmautner@google.com> Change layout inner loop order for multi display.

The inner loop that ran over each display had a few problems:
- The Surface transaction was starting and stopping between each
display.
- The layout change bits were being applied globally so all
displays were layed out when only individual displays needed to be.
- Wallpaper and input actions were being applied each time through
the display loop rather than once only for the default display.

Change-Id: I924252bab28c426222a4bb73693accc4b21cecbe
om/android/server/wm/AppWindowAnimator.java
om/android/server/wm/DisplayContent.java
om/android/server/wm/WindowAnimator.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowStateAnimator.java
e62e6d8731ab1e02c1632ebc011792d07b902af8 02-Jul-2012 Satoshi Kataoka <satok@google.com> Add subtypeId for keeping enabled "InputMethodSubtype"s even if subtype parameters are changed

Bug: 6752230
Change-Id: I3a2d512e395fe8645edf6ab82108948b927c629a
om/android/server/InputMethodManagerService.java
4ee364982e783b4a2eac6e05f81d167c6121e110 04-Sep-2012 Vairavan Srinivasan <vairav@codeaurora.org> Am: Clean mLaunchingProviders of all providers started by the client

Launching providers is removed from mLaunchingProviders when the client
process dies and works as long as the client process had requested just
one provider and not otherwise. Fix is to make sure mLaunchingProviders
is updated to remove all providers launched by the client process.

Change-Id: Ib4b8b44b6a102762a6558f65fb2e6dbf11d725ea
om/android/server/am/ActivityManagerService.java
e94831e5ed4aa3b1ebc5444cc1b16cdab8cb92f8 02-Sep-2012 Craig Mautner <cmautner@google.com> Merge "Minor refactors." into jb-mr1-dev
398341927f3dca68d71024483aa276d10af4c080 02-Sep-2012 Craig Mautner <cmautner@google.com> Minor refactors.

- Refactor DragState to take Display instead of DisplayContent.
- Rename xxxAnimationLw methods in WindowManagerPolicy to xxxPostLayout
to reflect animation refactoring.

Change-Id: I502f2aa45a699ad395a249a12abf9843294623f0
om/android/server/wm/DisplayContent.java
om/android/server/wm/DragState.java
om/android/server/wm/Session.java
om/android/server/wm/WindowManagerService.java
2701f325a6d4acd920637d2ff6fd6972a9cf836b 01-Sep-2012 Dianne Hackborn <hackbod@google.com> Merge "Remove Binder.getOrigCallingUid()." into jb-mr1-dev
430e5b23cf702d57aa662972c43d546806147d76 01-Sep-2012 Amith Yamasani <yamasani@google.com> Merge "Centralize the creation of the user system directory" into jb-mr1-dev
f83ec838915c13158ddfda0cf4da5865b260b9c6 01-Sep-2012 Jeff Brown <jeffbrown@google.com> Merge "More improvements to the display manager." into jb-mr1-dev
4ed8fe75e1dde1a2b9576f3862aecc5a572c56b5 31-Aug-2012 Jeff Brown <jeffbrown@google.com> More improvements to the display manager.

Added more complete support for logical displays with
support for mirroring, rotation and scaling.

Improved the overlay display adapter's touch interactions.

A big change here is that the display manager no longer relies
on a single-threaded model to maintain its synchronization
invariants. Unfortunately we had to change this so as to play
nice with the fact that the window manager wants to own
the surface flinger transaction around display and surface
manipulations. As a result, the display manager has to be able
to update displays from the context of any thread.

It would be nice to make this process more cooperative.
There are already several components competing to perform
surface flinger transactions including the window manager,
display manager, electron beam, overlay display window,
and mouse pointer. They are not manipulating the same surfaces
but they can collide with one another when they make global
changes to the displays.

Change-Id: I04f448594241f2004f6f3d1a81ccd12c566bf296
om/android/server/SystemServer.java
om/android/server/display/DisplayAdapter.java
om/android/server/display/DisplayDevice.java
om/android/server/display/DisplayDeviceInfo.java
om/android/server/display/DisplayManagerService.java
om/android/server/display/HeadlessDisplayAdapter.java
om/android/server/display/LocalDisplayAdapter.java
om/android/server/display/LogicalDisplay.java
om/android/server/display/OverlayDisplayAdapter.java
om/android/server/display/OverlayDisplayWindow.java
om/android/server/input/InputManagerService.java
om/android/server/power/DisplayPowerController.java
om/android/server/wm/ScreenRotationAnimation.java
om/android/server/wm/WindowAnimator.java
om/android/server/wm/WindowManagerService.java
61f57379ca2c5b6290c8da7548fa17128f7ab24f 31-Aug-2012 Amith Yamasani <yamasani@google.com> Centralize the creation of the user system directory

Environment.getUserSystemDirectory(int userId)

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

Change-Id: I788ce9c4cf9624229e65efa7047bc0c019ccef0a
om/android/server/AppWidgetServiceImpl.java
om/android/server/SystemBackupAgent.java
om/android/server/WallpaperManagerService.java
om/android/server/pm/Settings.java
om/android/server/pm/UserManagerService.java
4120375d46091df8527bb701882e056fbb0e6b06 31-Aug-2012 Dianne Hackborn <hackbod@google.com> Remove Binder.getOrigCallingUid().

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

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

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

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

That's for another change, however.

Change-Id: I468e14dce8def0e13e0870571e7c31ed32b6310c
om/android/server/AppWidgetService.java
om/android/server/BackupManagerService.java
om/android/server/NotificationManagerService.java
om/android/server/StatusBarManagerService.java
om/android/server/UiModeManagerService.java
om/android/server/WallpaperManagerService.java
om/android/server/am/ActiveServices.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityStack.java
om/android/server/am/PendingIntentRecord.java
om/android/server/am/ProviderMap.java
om/android/server/am/ServiceRecord.java
om/android/server/net/NetworkPolicyManagerService.java
897798225d9c48bd3424757059318ed1eb3207de 31-Aug-2012 Christopher Tate <ctate@google.com> Don't set the time zone under the caller's identity

...otherwise you crash trying to send a broadcast to all users.

Change-Id: If627eeb3eadb1052242c986fe24482d87c8fc093
om/android/server/AlarmManagerService.java
00453e7a0182b50cf01e65c97650b526284fe084 31-Aug-2012 Jeff Brown <jeffbrown@google.com> Merge "Tweak overlay display adapter scaling." into jb-mr1-dev
a2875f481bc40fb5c7e5ae2d475dfb6d557294c0 31-Aug-2012 rich cannings <richc@google.com> Merge "Notify verifiers that verification is complete" into jb-mr1-dev
f203aeef993b0f4ce65c9630d06bbd50a504e89f 30-Aug-2012 Amith Yamasani <yamasani@google.com> Enforce permissions for calls with specified userId

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

Change-Id: I398c676e0488ff7e584be96e96c8b32652134238
om/android/server/AppWidgetServiceImpl.java
om/android/server/NotificationManagerService.java
om/android/server/am/ActivityManagerService.java
om/android/server/pm/PackageManagerService.java
b2dd4e87ae8ac6a0402b7a0ed37201f27bcb1b9c 31-Aug-2012 Dianne Hackborn <hackbod@android.com> am 1a907db0: am 862c3835: am 4b60a8d1: Merge "Added check of ActivityInfo launch mode when starting activity."

* commit '1a907db07ea105ea65e146713f436ed072d7084b':
Added check of ActivityInfo launch mode when starting activity.
d1b5cfc94ae940f42be352e7ed98c21c973471b2 29-Aug-2012 rich cannings <richc@google.com> Notify verifiers that verification is complete

Send the Intent.ACTION_PACKAGE_VERIFIED to all verifiers when
verification is complete (either one verifier verified the package or a
timeout occurred). Details of what occurred is in a new extra,
PackageManager.EXTRA_VERIFICATION_RESULT.

Bug: 7048930
Change-Id: I4f9855a29b0eb6d77f469891402c69e2e8922945
om/android/server/pm/PackageManagerService.java
862c383530d64e6c493fb519f567dd5778d9d48c 31-Aug-2012 Dianne Hackborn <hackbod@android.com> am 4b60a8d1: Merge "Added check of ActivityInfo launch mode when starting activity."

* commit '4b60a8d1b8b5f8fd04df5749ce225ed57e0a1a44':
Added check of ActivityInfo launch mode when starting activity.
4b60a8d1b8b5f8fd04df5749ce225ed57e0a1a44 31-Aug-2012 Dianne Hackborn <hackbod@android.com> Merge "Added check of ActivityInfo launch mode when starting activity."
73365695e4d169126c6932df8e8e932aefe6aaca 30-Aug-2012 Dianne Hackborn <hackbod@google.com> Merge "Improve multi-user broadcasts." into jb-mr1-dev
5ac72a29593ab9a20337a2225df52bdf4754be02 30-Aug-2012 Dianne Hackborn <hackbod@google.com> Improve multi-user broadcasts.

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

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

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

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

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

Change-Id: Ie29f02dd5242ef8c8fa56c54593a315cd2574e1c
om/android/server/AlarmManagerService.java
om/android/server/BatteryService.java
om/android/server/BluetoothManagerService.java
om/android/server/ConnectivityService.java
om/android/server/DevicePolicyManagerService.java
om/android/server/DeviceStorageMonitorService.java
om/android/server/DockObserver.java
om/android/server/DropBoxManagerService.java
om/android/server/LocationManagerService.java
om/android/server/MountService.java
om/android/server/NsdService.java
om/android/server/TelephonyRegistry.java
om/android/server/ThrottleService.java
om/android/server/UiModeManagerService.java
om/android/server/UpdateLockService.java
om/android/server/WallpaperManagerService.java
om/android/server/am/ActiveServices.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/BroadcastFilter.java
om/android/server/connectivity/Tethering.java
om/android/server/location/GpsLocationProvider.java
om/android/server/net/NetworkPolicyManagerService.java
om/android/server/net/NetworkStatsService.java
om/android/server/pm/UserManagerService.java
om/android/server/power/Notifier.java
om/android/server/power/ShutdownThread.java
om/android/server/usb/UsbDeviceManager.java
om/android/server/usb/UsbSettingsManager.java
4698e36db68273b556867522b1aaffabb8099518 30-Aug-2012 Jean-Baptiste Queru <jbq@google.com> am 6ab3ea5f: am 147ef944: am 60d1e1a0: Merge "Watchdog: Improvement of debuggability"

* commit '6ab3ea5f48abfd777d5bd18d92acc3bc766f78ce':
Watchdog: Improvement of debuggability
147ef9448540adaa4312e3cbc01adfc3c7902f50 30-Aug-2012 Jean-Baptiste Queru <jbq@google.com> am 60d1e1a0: Merge "Watchdog: Improvement of debuggability"

* commit '60d1e1a09e4603e24652e930597ab204855eaa77':
Watchdog: Improvement of debuggability
e217ee4d7a8223289a1af7363627c69956c46d41 29-Aug-2012 Jeff Sharkey <jsharkey@android.com> Access to all users' external storage.

System services holding this permission have external storage bound
one level higher, giving them access to all users' files.

Bug: 7003520
Change-Id: Ib2bcb8455740c713ebd01f71c9a2b89b4e642832
om/android/server/am/ActivityManagerService.java
9211b13c3268035b0da0c51ed2d6d5a578d45ff3 28-Aug-2012 rikard dahlman <rikard.dahlman@sonymobile.com> Watchdog: Improvement of debuggability

If the watchdog detects a problem the system server process
is killed, that is followed by a crash. Because the crash is
done after the system server process is killed, the crash
don't contain info about the system server.
This improvement will make sure that the system is crashed
before the system server process is killed.
Behavior is only changed for eng and userdebug builds.

Change-Id: I9f1c8fd8b03d0114032ed44fb582705ad0b49733
om/android/server/Watchdog.java
428f53937efdc362b60d01592bd01c568691f70e 30-Aug-2012 Jeff Sharkey <jsharkey@android.com> Merge "Locking when clearing VPN source rules." into jb-mr1-dev
580dd31a68c65b4af68147d52d57f60e0bd52dbe 30-Aug-2012 Jeff Sharkey <jsharkey@android.com> Locking when clearing VPN source rules.

Otherwise lockdown VPN reset is racy and can bring down system_server.

Change-Id: Ib8eecde1d0857a1669c3ca5506a46198c71b1b51
om/android/server/net/LockdownVpnTracker.java
a99e4caa94ed3261d11c650e778c7c9b26b3e590 30-Aug-2012 Jeff Sharkey <jsharkey@android.com> Merge "Bind to screenshot service for current user." into jb-mr1-dev
694121c4004e80deec71736481cfb03bd50e38f5 30-Aug-2012 Amith Yamasani <yamasani@google.com> Merge "Fix an NPE in PackageManager when getting the AppInfo for an app" into jb-mr1-dev
317046a08784f0df75165ac1eaaf3d237704618e 30-Aug-2012 Amith Yamasani <yamasani@google.com> Fix an NPE in PackageManager when getting the AppInfo for an app

Bug: 7072043
Change-Id: I37378b13820152434e7b3249e13c27001fe4ae5a
om/android/server/pm/PackageManagerService.java
d0dd63dcaed8f63009c03907f38269feb798f305 30-Aug-2012 Jeff Brown <jeffbrown@google.com> Tweak overlay display adapter scaling.

Change-Id: I330fc019c5b3f4e03369e6f1c1a839a33f6ce0e3
om/android/server/display/OverlayDisplayAdapter.java
12631ec35eafc466e0deef315daa5fdfb5066372 30-Aug-2012 Dianne Hackborn <hackbod@google.com> Merge "Start implementing concept of "running" users." into jb-mr1-dev
ffc45b7d5708e706aeb19454c5172136761d214b 30-Aug-2012 Benoit Goby <benoit@android.com> Merge "UsbDebuggingManager: Fix restart when toggling USB debugging" into jb-mr1-dev
a28c18fc618e4bf58da6417166b1ee249dc16ea9 30-Aug-2012 Irfan Sheriff <isheriff@google.com> Merge "Fix DHCP handling at disconnect/reconnect" into jb-mr1-dev
d5ea3b464795d4e6adbdd174d1bd2f78b628e280 30-Aug-2012 Jeff Brown <jeffbrown@google.com> Merge "Add initial multi-display support." into jb-mr1-dev
509bf2d2cf60201149b4e7711bbcdede8b744791 30-Aug-2012 Benoit Goby <benoit@android.com> UsbDebuggingManager: Fix restart when toggling USB debugging

Change-Id: Iaaec9162b03c4ea77735d096eec670392c61308a
om/android/server/usb/UsbDebuggingManager.java
6bfc88876ab575913299b477528225a4d7bf8232 30-Aug-2012 Irfan Sheriff <isheriff@google.com> Fix DHCP handling at disconnect/reconnect

Wifi can have a quick disconnection followed by a reconnection. We used to
create a new DHCP state machine thread for every new connection and
never really waited until it quit after disconnect. This may have lead to
situations where repeated disconnect/reconnects resulted in multiple dhcp
start calls.

We now keep the statemachine after a disconnect and only shut it at supplicant
stop.

Bug: 6417686
Change-Id: Icf66efdc654be886e3eb46c81f09f8cce536f2f6
om/android/server/WifiService.java
bd6e1500aedc5461e832f69e76341bff0e55fa2b 28-Aug-2012 Jeff Brown <jeffbrown@google.com> Add initial multi-display support.

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

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

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

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

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

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

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

Change-Id: Ic2a661d5448dde01b095ab150697cb6791d69bb5
om/android/server/SystemServer.java
om/android/server/display/DisplayAdapter.java
om/android/server/display/DisplayDevice.java
om/android/server/display/DisplayDeviceInfo.java
om/android/server/display/DisplayManagerService.java
om/android/server/display/HeadlessDisplayAdapter.java
om/android/server/display/LocalDisplayAdapter.java
om/android/server/display/OverlayDisplayAdapter.java
om/android/server/power/DisplayPowerController.java
om/android/server/wm/WindowManagerService.java
37ce5c5d5e8216f02230aeb89b147c0395e18329 29-Aug-2012 Benoit Goby <benoit@android.com> UsbDebuggingManager: add missing break in switch

Bug: 7079044
Change-Id: Icf4090e79af47db7d068981537c97f2028d8e405
om/android/server/usb/UsbDebuggingManager.java
4e2820c22b3f8b330f8c6d04562037c77845716d 29-Aug-2012 Amith Yamasani <yamasani@google.com> Fix adding live wallpaper in a second user

When the second user downloads a new wallpaper service, Wallpaper
service needs to query the correct user's package state to figure
out if it is available and bind to it.

Change-Id: Ifb95db1c859887f996f5b2e821b4b46510ee7016
om/android/server/WallpaperManagerService.java
c479b55abe059776392af54685b77a825871781e 29-Aug-2012 Craig Mautner <cmautner@google.com> Merge "Check proximity detector before powering off." into jb-mr1-dev
4ccbdd17704e8837f8a8fcc152e8de499b504ff6 29-Aug-2012 Craig Mautner <cmautner@google.com> Check proximity detector before powering off.

Do not automatically power off if the proximity detector wakelock is
active.

Fixes bug 7047455.

Change-Id: I44e30bf388292e5c476dfb5d0de9226d21853e4d
om/android/server/power/PowerManagerService.java
c3815a5679c21a6b09c2deaa6baedd124f9e717a 29-Aug-2012 Amith Yamasani <yamasani@google.com> Merge "Fix PendingIntent caching for multiuser" into jb-mr1-dev
35744c19f6b4e2fc8bbd6fe2c82cea7a76818dfd 29-Aug-2012 Jeff Sharkey <jsharkey@android.com> Bind to screenshot service for current user.

Let apps bindService() across user boundaries if they hold the
INTERACT_ACROSS_USERS_FULL permission.

Bug: 7012034
Change-Id: I2047d8318e1de47bfae7470d1dbc6fe5cfe44fdc
om/android/server/am/ActivityManagerService.java
80a4af2bbc6af42ae605e454bf89558e564f5244 28-Aug-2012 Dianne Hackborn <hackbod@google.com> Start implementing concept of "running" users.

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

Initially, only user 0 is running.

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

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

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

Change-Id: I89adbd7cbaf4a0bb72ea201385f93477f40a4119
om/android/server/AlarmManagerService.java
om/android/server/NotificationManagerService.java
om/android/server/am/ActiveServices.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityStack.java
om/android/server/am/UserStartedState.java
om/android/server/pm/UserManagerService.java
def8b0f011b5b2b02235063d5021ddfd58aa0baf 29-Aug-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix infinite loop when uninstalling apps." into jb-mr1-dev
377de7b13e6706911cca1d6826b2e4665edd60d4 29-Aug-2012 Dianne Hackborn <hackbod@google.com> Fix infinite loop when uninstalling apps.

Change-Id: Ibdf7fa832529a358d1115fc300651101c5185484
om/android/server/pm/PackageManagerService.java
2deaa3698d33d428b527329537440ab65ae8dced 29-Aug-2012 rich cannings <richc@google.com> Merge "Add permission checks for Verification API calls" into jb-mr1-dev
4ea60693236d73fa2d9b5bf25deeb6d9b602ed30 28-Aug-2012 Amith Yamasani <yamasani@google.com> Fix PendingIntent caching for multiuser

Store the userId in the PendingIntentRecord.Key, so that it doesn't match
an identical pending intent from another user.

Change-Id: Icfc39e0f717c902dc3a60bdf5283a3402bbd2eaa
om/android/server/am/ActivityManagerService.java
om/android/server/am/PendingIntentRecord.java
7e67151b912622f8a279ab1523a9bcf26ebaff3d 27-Aug-2012 rich cannings <richc@google.com> Add permission checks for Verification API calls

Ensure that only applications with
android.Manifest.permission.PACKAGE_VERIFICATION_AGENT can call application
verification APIs, like PackageManager.verifyPendingInstall and
PackageManager.extendVerificationTimeout

Bug: 7049083
Change-Id: I5fc28b37e864d67cd319a1ed9d03a90dd15ad052
om/android/server/pm/PackageManagerService.java
da6da0907b28d4704aabbdb1bbeb4300954670d1 16-Aug-2012 Irfan Sheriff <isheriff@google.com> Captive portal handling

We now notify the user of a captive portal before switching to the network as default.
This allows background applications to continue to work until the user confirms he
wants to sign in to the captive portal.

Also, moved out captive portal handling out of wifi as a seperate component.

Change-Id: I7c7507481967e33a1afad0b4961688bd192f0d31
om/android/server/ConnectivityService.java
om/android/server/WifiService.java
10a0df8459d22b29fb9163071e8cbc2bb7194393 28-Aug-2012 Amith Yamasani <yamasani@google.com> Merge "Relax permission requirement for sending broadcasts to other users" into jb-mr1-dev
8bf06edac2088ad100e67dcb00a46d3f0f95c126 28-Aug-2012 Amith Yamasani <yamasani@google.com> Relax permission requirement for sending broadcasts to other users

Also handle USER_CURRENT for broadcasts

Change-Id: I2df5616ac22b7c670a7d007b8d505d4d4d99a24e
om/android/server/am/ActivityManagerService.java
om/android/server/am/BroadcastQueue.java
om/android/server/am/BroadcastRecord.java
dc7d8008eceb08850142fcd77a97404b4fbe688d 28-Aug-2012 Jeff Brown <jeffbrown@google.com> Merge "Add plumbing for new surface flinger display API." into jb-mr1-dev
0e17e5bc43373ff9dd8d567f876a26f990ed638e 28-Aug-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix installing applications from non-primary users." into jb-mr1-dev
786b44046a79d6c4c9cd07f5989d491c7196ad80 28-Aug-2012 Dianne Hackborn <hackbod@google.com> Fix installing applications from non-primary users.

We also now send the correct broadcasts to each user.

You no longer need to be running the shell as root
to be able to create/remove users.

Also added some more man page material to the pm command, and
got rid of a bunch of showUsage() calls that now make error
messages completely buried because of how large the usage info
has become.

And the package manager now shows the user each historical broadcast
was sent to.

Change-Id: Iab42498e1352a0c023069139c80fc04d2d69ab4b
om/android/server/am/ActivityManagerService.java
om/android/server/am/BroadcastRecord.java
om/android/server/pm/PackageManagerService.java
om/android/server/pm/PackageSettingBase.java
a97ec810e0dd5fe493c1ac08545dcb7a9f93b723 27-Aug-2012 Brian Muramatsu <btmura@google.com> Merge "Remove unused IntentFilter in LocationManager" into jb-mr1-dev
64a55af0ac700baecb0877235eb42caac59a3560 26-Aug-2012 Jeff Brown <jeffbrown@google.com> Add plumbing for new surface flinger display API.

Cleaned up the implementation of Surface and SurfaceSession
to use more consistent naming and structure.

Added JNI for all of the new surface flinger display API calls.

Enforced the requirement that all Surfaces created by
the window manager be named.

Updated the display manager service to use the new methods.

Change-Id: I2a658f1bfd0437e1c6f9d22df8d4ffcce7284ca2
om/android/server/display/DisplayDevice.java
om/android/server/display/DisplayManagerService.java
om/android/server/display/HeadlessDisplayAdapter.java
om/android/server/display/LocalDisplayAdapter.java
om/android/server/display/SurfaceFlingerDisplayAdapter.java
om/android/server/power/ElectronBeam.java
om/android/server/wm/BlackFrame.java
om/android/server/wm/DimAnimator.java
om/android/server/wm/DimSurface.java
om/android/server/wm/ScreenRotationAnimation.java
om/android/server/wm/StrictModeFlash.java
om/android/server/wm/Watermark.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowStateAnimator.java
116ee10b95ffff658618be42544ce80971ce28e8 27-Aug-2012 Jeff Sharkey <jsharkey@android.com> Merge "Always-on VPN." into jb-mr1-dev
69ddab4575ff684c533c995e07ca15fe18543fc0 25-Aug-2012 Jeff Sharkey <jsharkey@android.com> Always-on VPN.

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

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

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

Bug: 5756357
Change-Id: If615f206b1634000d78a8350a17e88bfcac8e0d0
om/android/server/ConnectivityService.java
om/android/server/NetworkManagementService.java
om/android/server/connectivity/Vpn.java
om/android/server/net/LockdownVpnTracker.java
be7ddb9f293076e0c14dc72ea498aced8742b5a9 27-Aug-2012 Andy Stadler <stadler@google.com> Merge "Fix package verifier lookup" into jb-mr1-dev
a84a4af9b11946fe16689cd42741a92ca285ffe9 27-Aug-2012 Amith Yamasani <yamasani@google.com> Merge "Fix adb install" into jb-mr1-dev
2b9146523347d4458d17d99824afdac29e312176 27-Aug-2012 Amith Yamasani <yamasani@google.com> Fix adb install

Was not properly handling creating DefContainerService when the installation was
for USER_ALL. Not a problem for Market installs.

Bug: 7061571
Change-Id: I4528b4c56e38effa137da56460e78c55b242ba45
om/android/server/am/ActiveServices.java
om/android/server/pm/PackageManagerService.java
63dc027be28762232335797a30449995c555ae10 27-Aug-2012 Irfan Sheriff <isheriff@google.com> Merge "Fix permission issue on channel" into jb-mr1-dev
3486b9696d81da8873ef595daa35b2d39fc83146 27-Aug-2012 Craig Mautner <cmautner@google.com> Fix drag bug.

Previous assumption -- that the drag window was defined at time of
DragState construction -- was false. The window, and hence the
Display, is not known until performDrag. This change delays assigning
DragState.mDisplayContent until the window/Display is known.

Fixes bug 7028203.

Change-Id: I5799005652c484ff0c45ab340ce3b9e4b784883e
om/android/server/wm/DragState.java
om/android/server/wm/Session.java
af18865486df1e23e2951983fb0d1d4bf17f4f32 27-Aug-2012 Jean-Baptiste Queru <jbq@google.com> am ba37d595: am e70a32af: am eb00f951: Merge "VibratorService: Fix to ensure actual delay in a vibrate pattern"

* commit 'ba37d595f70d348987a9e60c56c071fdd319260f':
VibratorService: Fix to ensure actual delay in a vibrate pattern
ba37d595f70d348987a9e60c56c071fdd319260f 27-Aug-2012 Jean-Baptiste Queru <jbq@google.com> am e70a32af: am eb00f951: Merge "VibratorService: Fix to ensure actual delay in a vibrate pattern"

* commit 'e70a32afc5b27ddc9681efd867780a0c4c77edd3':
VibratorService: Fix to ensure actual delay in a vibrate pattern
eb00f951439cd724863d267e8e8d77414383d93f 27-Aug-2012 Jean-Baptiste Queru <jbq@google.com> Merge "VibratorService: Fix to ensure actual delay in a vibrate pattern"
d59db50ab0c3c7a232b2a564e763ca46c6f6ebfa 25-Aug-2012 Jeff Brown <jeffbrown@google.com> Merge "Initialize screen state earlier in the boot process." into jb-mr1-dev
04a286b95528e1fe7c0a18e8780a64bfadbd1eba 25-Aug-2012 Jeff Brown <jeffbrown@google.com> Merge "Fix GpsLocationProvider wake lock book keeping." into jb-mr1-dev
f85ddd6571c9084b76d874f79245d087b152cb67 25-Aug-2012 Jeff Brown <jeffbrown@google.com> Merge "Make it easier to create asynchronous Handlers." into jb-mr1-dev
f75724b3d36d84c881d4052cfd4be766d454c98f 25-Aug-2012 Jeff Brown <jeffbrown@google.com> Initialize screen state earlier in the boot process.

The system depends on receiving reliable vsync signals from
surface flinger during the boot process. If it doesn't get them
because the screen is off then a hang may occur.

This isn't a problem when surface flinger manages the screen
blanking itself but it is a problem for devices that still
rely on early-suspend. When early-suspend is involved, the
screen may be off without surface flinger knowing. This is a
problem because surface flinger will only synthesize fake
vsyncs when it knows the screen is off, otherwise relying
on the hardware to generate vsync signals itself. Unfortunately,
the hardware won't generate vsync signals if the screen was
turned off by early-suspend, so we have a problem.

Bug: 6975688
Change-Id: Iaf4527f716bf4ea72cc3e6fdaf060855697b02f2
om/android/server/power/DisplayPowerState.java
om/android/server/power/PowerManagerService.java
028872fe07f9b3468aa1506c658d6aae25f53015 25-Aug-2012 Jeff Brown <jeffbrown@google.com> Fix GpsLocationProvider wake lock book keeping.

The GpsLocationProvider typically acquires a wake lock
before sending a message to its handler then releases it
after the message has been handled.

There were two cases where messages might be removed from
the handler, resulting in the wake lock being released.

There were also two cases where background tasks were being
started while not holding a wake lock for the duration.

Fixed these issues and marked the GpsLocationProvider handler
as asynchronous too so that it doesn't accidentally get
blocked by traversals if it happens to share a thread with some UI.

Bug: 7057752
Change-Id: I8e12fc91ae943e84db068c08ec809879537503c6
om/android/server/location/GpsLocationProvider.java
a2910d0abbbe18ba1710dfd4a31af45769632255 25-Aug-2012 Jeff Brown <jeffbrown@google.com> Make it easier to create asynchronous Handlers.

There are potentially very many Handlers owned by services
that should not be blocked by barriers introduced by UI traversals
occurring on the same thread (if that ever happens).
Add some convenience constructors to make it easy to switch
these Handlers over to being async.

Bug: 7057752
Change-Id: I64d9bffe81e7c52ada4cfad4e89d4340153f4688
om/android/server/DockObserver.java
om/android/server/input/InputManagerService.java
om/android/server/power/DisplayPowerController.java
om/android/server/power/Notifier.java
om/android/server/power/PowerManagerService.java
080ca09c7f4c0033d0efece23687b71f7f8febc9 25-Aug-2012 Amith Yamasani <yamasani@google.com> Merge "Bind to the correct default container service when installing/moving/measuring pkgs" into jb-mr1-dev
6ec101288b93d7548ed9ac9169356e7939783813 23-Aug-2012 Amith Yamasani <yamasani@google.com> Bind to the correct default container service when installing/moving/measuring pkgs

Change-Id: I0acfe955b5d57b4985d1922fe3dd841a81c824ed
om/android/server/pm/PackageManagerService.java
ba94170a7a4f78d68fe228e9ee35ed82c4de09c8 25-Aug-2012 Dianne Hackborn <hackbod@google.com> Merge "Some clean up of app install and user management." into jb-mr1-dev
4428e17c5e05c0dad76da8f1c28ccba62a66cd91 25-Aug-2012 Dianne Hackborn <hackbod@google.com> Some clean up of app install and user management.

UserManagerService is now closely tied to PackageManagerService,
sharing the same locks. There is no longer direct access of
Installer by UserManagerService, instead the package manager is
back to solely owning it.

Creating a new user now correctly only installs system apps for
that user.

Fixed some misc bugs, where we were getting nulls when
querying content providers and instrumentation in uninstalled
users, incorrect locking, etc.

Change-Id: Ife69b6e373d0cf7c5cfc03fc588e36b43ad5d8b0
om/android/server/SystemServer.java
om/android/server/pm/PackageManagerService.java
om/android/server/pm/Settings.java
om/android/server/pm/UserManagerService.java
250ce285318f9f7d714805e4f859a395ac9615f6 25-Aug-2012 Andy Stadler <stadler@google.com> Fix package verifier lookup

queryIntentReceivers() needs the resolvedType string to be non-null
in order to find the receiver.

Change-Id: If473d7e08e79940c3e495bc7a9d136e4130599a1
om/android/server/pm/PackageManagerService.java
595dda6d47a4eeeffc32abbfbc55edfba588d846 24-Aug-2012 Brian Muramatsu <btmura@google.com> Remove unused IntentFilter in LocationManager

This intent filter isn't used anymore, since GpsLocationProvider handles
the CONNECTIVITY_ACTION broadcasts now..

Change-Id: I593a9916aa6f8086b4d684cc3e25286c1cb137cc
om/android/server/LocationManagerService.java
0b23b5f6039b3771708c8bc38b342be5f7fb2ee8 24-Aug-2012 Brian Muramatsu <btmura@google.com> Merge "Fix GPS provider thread blocked by NTP and XTRA" into jb-mr1-dev
40e1bafc37e2a83453535132c62aeb7ef706de25 10-Jan-2012 Kevin Tang <zhikait@codeaurora.org> Fix GPS provider thread blocked by NTP and XTRA

Currently, the NTP and XTRA downloads block on the GPS provider thread.
This could potentially block the next tasks for over a minute of time.
If the upcoming task happens to be AGPS, AGPS will time out.

Placed the NTP and XTRA downloads in separate threads.

Bug: 6980618

Change-Id: I57a6aaf5348212bc1246813f6d941da7d5b19136
om/android/server/location/GpsLocationProvider.java
7767eac3232ba2fb9828766813cdb481d6a97584 24-Aug-2012 Dianne Hackborn <hackbod@google.com> Keep track of whether an app is installed for each user.

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

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

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

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

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

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

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

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

Change-Id: I00e66452b149defc08c5e0183fa673f532465ed5
om/android/server/am/ActiveServices.java
om/android/server/am/ActivityManagerService.java
om/android/server/pm/PackageManagerService.java
om/android/server/pm/PackageSettingBase.java
om/android/server/pm/Settings.java
om/android/server/pm/UserManagerService.java
1552586283f329253edc4786a6cf40c5bb69ea36 24-Aug-2012 Jeff Sharkey <jsharkey@android.com> Merge "Clean up firewall interface method names." into jb-mr1-dev
2c0929850ae495d54efb91a68e4bbd29a2e0ec95 24-Aug-2012 Jeff Sharkey <jsharkey@android.com> Clean up firewall interface method names.

Change-Id: I653f0a01af7c90fc96b201abb31ea8354b036e74
om/android/server/NetworkManagementService.java
34f863125865664af058ab4dff44ebec570e2234 24-Aug-2012 Jeff Sharkey <jsharkey@android.com> Merge "Migrate legacy VPN arguments to system_server." into jb-mr1-dev
82f8521d386f3109147c477d04e5e90e5c715fa0 24-Aug-2012 Jeff Sharkey <jsharkey@android.com> Migrate legacy VPN arguments to system_server.

Generate the racoon and mtpd daemon arguments in system_server,
instead of accepting them from Settings.

Bug: 5756357
Change-Id: I42c1a644f6add477fe4222342640d7db15982cb8
om/android/server/ConnectivityService.java
om/android/server/connectivity/Vpn.java
96702ad6d736fd2b145968843d5d83615b104a16 24-Aug-2012 Jeff Sharkey <jsharkey@android.com> Merge "Framework interface for netd firewall." into jb-mr1-dev
c268f0b19efd0b6c6c89c21be0893787f3cc9cf7 24-Aug-2012 Jeff Sharkey <jsharkey@android.com> Framework interface for netd firewall.

Bug: 5756357
Change-Id: If8b9f738fcea2cf16bd01682220718b57346c7cc
om/android/server/NetworkManagementService.java
35bbe27d58ccf01ffd170b0f617a568bc843a49e 24-Aug-2012 Irfan Sheriff <isheriff@google.com> Fix permission issue on channel

Change-Id: I57f5d128dc2e2aa3bff93e82456f73cb96851f82
om/android/server/WifiService.java
fc6baa834913ec04ed14979341b994f790a53256 24-Aug-2012 Craig Mautner <cmautner@google.com> Merge "Fix unprotected variable access by serializing." into jb-mr1-dev
d5fc86f0677575333556fe579838353fae10ce52 24-Aug-2012 Jeff Sharkey <jsharkey@android.com> Merge "Begin moving VPN to NetworkStateTracker pattern." into jb-mr1-dev
899223b97c9b0ae56a8211a46600914c0ecfd854 05-Aug-2012 Jeff Sharkey <jsharkey@android.com> Begin moving VPN to NetworkStateTracker pattern.

Created base tracker that handles common bookkeeping, and move VPN
to become a tracker. VPN status is now reflected in NetworkInfo, and
is mapped to LegacyVpnInfo.

Legacy VPN now "babysits" any init services it starts, watching for
when they stop unexpectedly.

Bug: 5756357
Change-Id: Iba7ec79da69469f6bd9a970cc39cf6b885b4c9c4
om/android/server/ConnectivityService.java
om/android/server/connectivity/Vpn.java
7646c773fab6a12b0727c5e25b8d17d6c5263f8e 24-Aug-2012 rich cannings <richc@google.com> Merge "Allow verifiers to extend timeout" into jb-mr1-dev
d9ef3e5495db1c46bcfcc1a2d4386af8db6deb0c 22-Aug-2012 rich cannings <richc@google.com> Allow verifiers to extend timeout

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

Bug: 6901038
Change-Id: I351f7944327f863aff1d7dd1227be74652fa1511
om/android/server/pm/PackageManagerService.java
om/android/server/pm/PackageVerificationState.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
om/android/server/am/ActivityManagerService.java
om/android/server/wm/WindowManagerService.java
5642a48fbba84cc0b646aea1b9f407f046b70be9 23-Aug-2012 Craig Mautner <cmautner@google.com> Fix unprotected variable access by serializing.

The variables mKeyguardDisabled and mAllowDisableKeyguard were
being modified unprotected by mKeyguardTokenWatcher. Fix is to
serialize accesses to these variables by only referencing them
from the same Handler that mKeyguardTokenWatcher uses. Eliminates
synchronization blocks and mKeyguardDisabled variable.

Fixes bug 7045624.

Change-Id: I6355aa393507408296316bee61e178dc81e2a172
om/android/server/wm/KeyguardDisableHandler.java
om/android/server/wm/WindowManagerService.java
10fb224623eae3a99a4fc68424eb876eb20c3f90 23-Aug-2012 John Spurlock <jspurlock@google.com> Disable screensavers if below first battery warning level.

Don't activate on sleep if below the threshold, and quit any currently
running dream when the threshold is reached.

Bug:6999949
Change-Id: I961b350d24ee6f95e502228aaa57312b0ffbadc1
om/android/server/BatteryService.java
om/android/server/power/PowerManagerService.java
21b53df7c3fc7501c9c9e238eb820a6dcf992650 23-Aug-2012 John Spurlock <jspurlock@google.com> Merge "Add framework support for multiple dreams." into jb-mr1-dev
6715d1effaa70abf261112d2771d4d555cc109c2 23-Aug-2012 Craig Mautner <cmautner@google.com> Merge "Clean up displayId and layerStack usage." into jb-mr1-dev
b47bbc3d80badb94229bc4ce7a2d5006faa9ef15 23-Aug-2012 Craig Mautner <cmautner@google.com> Clean up displayId and layerStack usage.

Make better use of Display object by saving it in DisplayContent.
Only use layerStack when referring to Surfaces. Get displayId from
default Display or default DisplayContent. Remove warnings.

Fixes bug 7038151.

Change-Id: Ie493f0f5e755dc9b91ee969ff561c2a098283ead
om/android/server/wm/BlackFrame.java
om/android/server/wm/DimAnimator.java
om/android/server/wm/DimSurface.java
om/android/server/wm/DisplayContent.java
om/android/server/wm/ScreenRotationAnimation.java
om/android/server/wm/WindowAnimator.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowStateAnimator.java
2c1dfa29b40a988e3ea8f6922768465743aafddc 23-Aug-2012 Amith Yamasani <yamasani@google.com> Merge "Fix deadlock in removing a user" into jb-mr1-dev
3451dc90648b8bd176030425ce91c019460ba88c 23-Aug-2012 Jeff Sharkey <jsharkey@android.com> Merge "Iteration on multi-user external storage." into jb-mr1-dev
0cd867c83e726c88355375af4d14ee83f3339bbe 23-Aug-2012 Amith Yamasani <yamasani@google.com> Fix deadlock in removing a user

Cleanup PackageManager settings after the package directories are removed.

Change-Id: I264bc95ea21da653a234d7c81df5b25d4de7aa9e
om/android/server/pm/UserManagerService.java
9f814ac5fc0df77527d69710e8c1efa9d9d6f495 23-Aug-2012 Ying Wang <wangying@google.com> Merge "Remove obsolete variables." into jb-mr1-dev
b9b56954ec5a242f7c4945942539106539f98ffb 22-Aug-2012 Craig Mautner <cmautner@google.com> Merge "Eliminate special battery calls by WindowManager" into jb-mr1-dev
2bca868361b41ff6a8228824cbecadc4c5deb44e 22-Aug-2012 Jeff Sharkey <jsharkey@android.com> Iteration on multi-user external storage.

Remove single-user bind mounts, since they need to remain as raw
mounts to correctly propagate when remounted. This means we're back
to using sdcard_r GID to enforce READ_EXTERNAL_STORAGE.

Bug: 6925012
Change-Id: I41b5d7ddc985a5df2e288632a0a80d4724089e00
om/android/server/am/ActivityManagerService.java
1a868b7981ca5f52e893fdf9f8f538c9d5ce241d 22-Aug-2012 John Spurlock <jspurlock@google.com> Add framework support for multiple dreams.

Bug:7028665
Change-Id: I4fba6b8e39dc07af4490c621ac3bc7b3867371b2
om/android/server/DockObserver.java
om/android/server/power/PowerManagerService.java
6cf3b925ca2640c5c5e7e91ffd91749c0b5b2560 22-Aug-2012 Jeff Brown <jeffbrown@google.com> Merge "Fix auto-brightness adjustment sentinel value." into jb-mr1-dev
5d03a5368119d59e9f58b9121bc4f16391140c73 22-Aug-2012 Jeff Brown <jeffbrown@google.com> Fix auto-brightness adjustment sentinel value.

Change-Id: I1b0da4566eb350333d3c3b09a96266627260baa3
om/android/server/power/PowerManagerService.java
6da92032da255920d2e584f6ba2f8f9336ec9310 22-Aug-2012 Jeff Brown <jeffbrown@google.com> Merge "Fix NPE." into jb-mr1-dev
b5b710a4851db6c7e247429b0551a523c4d33da6 22-Aug-2012 Jeff Brown <jeffbrown@google.com> Fix NPE.

Bug: 7034583
Change-Id: Ie6b436492d12b0dd6bbe1c25d9b7ac35b74095d3
om/android/server/TwilightService.java
259328c04ce16c554b48a14f68d8af94dc54d7ec 22-Aug-2012 Craig Mautner <cmautner@google.com> Eliminate special battery calls by WindowManager

Previous to this change the WindowManager was notifying the
BatteryDtatsService about windows that keep the screen on. WM used a
custom WakeLock tag to indicate to PowerManagerService that it had
already notified the BatteryStatsService.

This change eliminates WindowManager notifying the BatteryStatsService
and lets PowerManagerService do the job.

Fixes bug 7030326.

Change-Id: I666dc6ef8f094b8d3d109fea6876be058e057b4f
om/android/server/power/Notifier.java
om/android/server/wm/WindowManagerService.java
98dddda7912428241ed61c053c7300d4a6702fa7 22-Aug-2012 Amith Yamasani <yamasani@google.com> Merge "Remove permission requirement for some UserManager calls" into jb-mr1-dev
1952637425eece18aa1ce3d80d4b49086ef3bcf7 22-Aug-2012 Amith Yamasani <yamasani@google.com> Remove permission requirement for some UserManager calls

Update javadocs to be explicit about permissions.
Minor fixes in UserManagerService

Change-Id: I0d355e0a60e5dbdb49ed06091111d480ff249f3d
om/android/server/pm/UserManagerService.java
2bd65b61ba6e98496dc574251e06709546d24500 22-Aug-2012 Jean-Baptiste Queru <jbq@google.com> am 29c6f24b: am 6ffe2594: Merge "restorecon /data/anr directory."

* commit '29c6f24b254b4ea1a7d8448980e736355e4badf6':
restorecon /data/anr directory.
29c6f24b254b4ea1a7d8448980e736355e4badf6 22-Aug-2012 Jean-Baptiste Queru <jbq@google.com> am 6ffe2594: Merge "restorecon /data/anr directory."

* commit '6ffe2594674f250c16c5e3055aa69680efaa6f69':
restorecon /data/anr directory.
6ffe2594674f250c16c5e3055aa69680efaa6f69 22-Aug-2012 Jean-Baptiste Queru <jbq@google.com> Merge "restorecon /data/anr directory."
00a8f4ff627584f4d9a8ae0cd83f87786005e16d 22-Aug-2012 Jeff Brown <jeffbrown@google.com> Make the electron beam animation shorter.

Now using about the same duration as it used to have when
it was implemented in Surface Flinger.

Change-Id: I09b28222379f4b6583f1f7b34188cc36c50509e9
om/android/server/power/DisplayPowerController.java
om/android/server/power/ElectronBeam.java
aa202a6dc33d331cbd9e34a1bb5f74db6284dda6 22-Aug-2012 Jeff Brown <jeffbrown@google.com> Add a mechanism to adjust auto-brightness at night.

Uses the twilight service to determine the hours of
sunrise and sunset. Shortly after sunset or before sunrise
gradually start to apply a gamma correction factor to the
auto-brightness calculations to make the screen a little
dimmer at night.

The effect is relatively small and is mostly noticeable
in dark rooms. This is just a first pass at the algorithm,
we can tweak the adjustment later to ensure that it has even less
impact in moderate or bright environments.

Change-Id: Idf89022a5d0bb52975e04779352d53fa63371178
om/android/server/SystemServer.java
om/android/server/power/DisplayPowerController.java
om/android/server/power/PowerManagerService.java
2416e09649eb6ab767eba458796e126196c77a34 22-Aug-2012 Jeff Brown <jeffbrown@google.com> Extract the twilight detection into its own service.

Moving the detection out of UiModeManagerService will
make it easy for other services to register for the
information.

Fixed a bugs related to updating twilight state
when the time is updated.

We're using the same algorithm as before for passively
tracking the location. Ideally we should update it
to use the new location manager features for low-power
location requests.

Change-Id: I520c53b9946ab6f8d994587d357fd6542c300c07
om/android/server/SystemServer.java
om/android/server/TwilightService.java
om/android/server/UiModeManagerService.java
ae25108a7b7181bedac11d6b31ff0a64ece729aa 22-Aug-2012 Jeff Brown <jeffbrown@google.com> Merge "Add support for auto-brightness adjust, but leave it disabled." into jb-mr1-dev
330560f53bccd06be805fee1b7988162119d1295 22-Aug-2012 Jeff Brown <jeffbrown@google.com> Add support for auto-brightness adjust, but leave it disabled.

Auto-brightness adjustment applies a gamma correction factor
between 1/3 and 3 depending on the setting. This feature
is disabled for now.

Change-Id: I2b300b5c455da545bea56b2bae5bc7903e30f30e
om/android/server/power/DisplayPowerController.java
om/android/server/power/DisplayPowerRequest.java
om/android/server/power/PowerManagerService.java
ddcca31997bc28d2305366a9fca6029288a12fa8 22-Aug-2012 Ying Wang <wangying@google.com> Remove obsolete variables.

Bug: 6987838
Now emma is only enabled for apks.

Change-Id: Id8d198467076a8dff705195a8e051f3fb00d5660
ndroid.mk
43c7aae4d0cf9e2d3527b093022ae1fa70d3920f 22-Aug-2012 Brian Muramatsu <btmura@google.com> Merge "Listen for CONNECTIVITY_ACTION in GPS Provider" into jb-mr1-dev
b94b41f516e69e137553157064f9619e1a2188e3 22-Aug-2012 Brian Muramatsu <btmura@google.com> Listen for CONNECTIVITY_ACTION in GPS Provider

Bug: 7020678

The broadcast receiver in GpsLocationProvider now listens for
CONNECTIVITY_ACTION changes. Set the intent filter so that
it catches those actions and updates the network state.

Change-Id: I7efd393dfe2aa8b172dd6701d42ff9ed687648a2
om/android/server/location/GpsLocationProvider.java
4a81ef8fd3207b06a65709338470d1e6ebed8620 22-Aug-2012 Nick Pelly <npelly@google.com> Merge "Fix some location issues exposed by CTS." into jb-mr1-dev
1332b53522e281012fefb34bfbcc68a03028f516 22-Aug-2012 Nick Pelly <npelly@google.com> Fix some location issues exposed by CTS.

Change-Id: I5859ee2c9db5745b0a3bc8abfa8f08728fb25059
om/android/server/LocationManagerService.java
7e877fa00c6b093a0fe734e5d3bf23b5b2d6411e 22-Aug-2012 Craig Mautner <cmautner@google.com> Merge "Fix to allow SYSTEM_UID to display windows." into jb-mr1-dev
a2d7b1117abc23a3ff0ccda15a2f9138aaa7f4fc 22-Aug-2012 Craig Mautner <cmautner@google.com> Fix to allow SYSTEM_UID to display windows.

Was not previously checking to make sure that the appId was not
SYSTEM_UID (1000). This caused certain system windows to fail to
appear.

Change-Id: I939dc2f8a256acb84b7c413c7e00003a89aff6d4
om/android/server/wm/WindowState.java
om/android/server/wm/WindowStateAnimator.java
de1d96c736730c2a99a225311b9211a34042f9d4 21-Aug-2012 Craig Mautner <cmautner@google.com> Merge "Hide non user app windows from other users." into jb-mr1-dev
23e282554ee0ddff80fd5bd2f47d5fb37b3b02c5 21-Aug-2012 Amith Yamasani <yamasani@google.com> Merge "Multiprocess activity should be allowed to run on current user" into jb-mr1-dev
d4ec5ae504b11aab18fc0e60e7fc142f85aee5c1 21-Aug-2012 Dianne Hackborn <hackbod@google.com> Merge "Improve multi-user app management." into jb-mr1-dev
0c3804950236fe170ebf6cc7a5f1e3e305b8f315 21-Aug-2012 Dianne Hackborn <hackbod@google.com> Improve multi-user app management.

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

Change-Id: I5d4e784e7ff3cccfed627d66a090d2f464202634
om/android/server/NotificationManagerService.java
om/android/server/am/ActiveServices.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/ConnectionRecord.java
om/android/server/am/IntentBindRecord.java
om/android/server/am/ServiceRecord.java
om/android/server/pm/Installer.java
om/android/server/pm/PackageManagerService.java
a10d1aa6c790810990a09f5dfa616075fe198eed 21-Aug-2012 Amith Yamasani <yamasani@google.com> Multiprocess activity should be allowed to run on current user

Multiprocess flag should override singleton checks.

This allows ChooserActivity to run in the process/user that launched it.
Wallpaper chooser from Launcher now works for secondary users.

Change-Id: I17a99278ed2a6d2491c3016a549134a85bc2af00
om/android/server/am/ActivityStack.java
8eaba6002615f2f89979a50e848c34503fd1e105 21-Aug-2012 Jeff Brown <jeffbrown@google.com> Merge "Disable electron beam on animation." into jb-mr1-dev
256237c99f1d7fc32e025861c3ae7bc855db3c5a 21-Aug-2012 Jeff Brown <jeffbrown@google.com> Merge "Plumb the switch code into Dalvik." into jb-mr1-dev
892f371c6b8c33268dceaeb89ac09c73ad72ad79 21-Aug-2012 Jeff Brown <jeffbrown@google.com> Merge "Encapsulate locks in UEventObservers." into jb-mr1-dev
5356c7dc72e80bbadd0ffbc69cfe3ea333280785 21-Aug-2012 Jeff Brown <jeffbrown@google.com> Disable electron beam on animation.

We want the screen to come back on as soon as possible.

Change-Id: Ifdaa2e88d19590c3da53be985dd886633e5cac59
om/android/server/power/DisplayPowerController.java
5338428ddbe662283bf88171c7ca361d51d78da8 21-Aug-2012 Jeff Brown <jeffbrown@google.com> Plumb the switch code into Dalvik.

Bug: 6548391
Change-Id: If0e918669ba27ca0e6561930d4abc427c34de42d
om/android/server/input/InputManagerService.java
008b1762a8d5c908281a832ff90817ade6c7f9f6 21-Aug-2012 Jeff Brown <jeffbrown@google.com> Encapsulate locks in UEventObservers.

Synchronized methods make me cry so fixing this first before
I introduce any new functionality that could result in a deadlock.

Bug: 6548391
Change-Id: I9c006dc491ce205bfd86acf828dcebda2a63b2ca
om/android/server/DockObserver.java
om/android/server/WiredAccessoryObserver.java
4b72463d7cb807912ca359f3b5a160f59d985c1d 21-Aug-2012 Jeff Brown <jeffbrown@google.com> Merge "Add factory test feature to shut off on long press power." into jb-mr1-dev
a5d5d608ccd885d8328879dde782a8cc93b7cf4f 21-Aug-2012 Brian Muramatsu <btmura@google.com> Merge "add wireless charger support" into jb-mr1-dev
9dc52bc44c94854fcd3384a045b4b862e30e25de 06-Aug-2012 Craig Mautner <cmautner@google.com> Hide non user app windows from other users.

When transitioning between old user and new user application windows
from the old user may not be shown because only one user's windows
can be shown at a time.

Change-Id: I4e17b36c9100c9457cc6eb3cb3b77f3a94fa2b41
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
om/android/server/wm/WindowStateAnimator.java
ca7a9ef0e52216e88d302feacf8edb766d813f5f 21-Aug-2012 Jeff Brown <jeffbrown@google.com> Merge "Adjust auto-brightness time constants." into jb-mr1-dev
3fee5c6bd8e13f8ef7e1ba1df3a8bf56ebb36221 20-Aug-2012 Jeff Brown <jeffbrown@google.com> Merge "Fix some proximity sensor bugs." into jb-mr1-dev
9a538ee7bde42ad36f43edc48594282d98e191a4 20-Aug-2012 Jeff Brown <jeffbrown@google.com> Add factory test feature to shut off on long press power.

Bug: 6847329
Change-Id: I2f4f975c3af2d13ccc06812a5a42e79032700862
om/android/server/wm/WindowManagerService.java
7b7feee80331deed883602d5861074ca66293e9c 20-Aug-2012 Benoit Goby <benoit@android.com> Merge "Add UsbDebuggingManager and UsbDebuggingActivity" into jb-mr1-dev
a811e0848dc28f73e31a3f84d8ceca3b1f504b52 20-Aug-2012 rich cannings <richc@google.com> Merge "Pass URLs to package verifiers" into jb-mr1-dev
5f47ba4db739d0db6feb8ce899764dbf87855901 20-Aug-2012 Jeff Brown <jeffbrown@google.com> Adjust auto-brightness time constants.

Specifically, dim a little more slowly.

Change-Id: I10d66a83ddc3a63f8c93d740a0cb116e6c974d10
om/android/server/power/DisplayPowerController.java
4e68bd420b6cfdbeadb5e69aa6448665b2da762b 26-Apr-2012 Benoit Goby <benoit@android.com> Add UsbDebuggingManager and UsbDebuggingActivity

The UsbDebuggingManager listens to adbd requests and displays a dialog
when the public key authentification fails, for the user to confirm if it
wants to allow USB debugging from the attached host. If the user chooses
to always allow USB debugging, the UsbDebuggingManager writes the public
key to adbd's config file so that the public key authenfication succeeds
next time.

Change-Id: I115c828331d8e326c380844ee33915d5dff22260
om/android/server/usb/UsbDebuggingManager.java
om/android/server/usb/UsbDeviceManager.java
om/android/server/usb/UsbService.java
6307a150d374cec7b20f80a68800bbf69f495839 20-Aug-2012 Jeff Brown <jeffbrown@google.com> Fix some proximity sensor bugs.

Forgot to clear waiting for proximity negative flag.
Waiting for proximity negative also shouldn't turn the screen off
if it is currently on.

Change-Id: I9885b2f54b185beb961acda44176bc5f11a9f58b
om/android/server/power/DisplayPowerController.java
706e8ba26bf0de19ad5f736516dae40c4c88c2d7 20-Aug-2012 rich cannings <richc@google.com> Pass URLs to package verifiers

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

Bug: 6544677
Change-Id: I9ebc71bc13f549bd88267e444816151a99bda000
om/android/server/pm/PackageManagerService.java
d14e17627266ff8cf804d1f8241a0a4bde7a0ab4 20-Aug-2012 Robert Greenwalt <rgreenwalt@google.com> Update TCP buffer size when switching network type

Import of non-merging change 41612 from AOSP

When PDP connects in GSM network, the TCP buffer window size is
set to max 8760. If the phone swicthes to UMTS, the TCP buffer
size is not updated to UMTS, i.e. GPRS buffer size is still
used with limited data transfer spead as a result.
This fix makes sure the TCP buffer size is updated when
switching network type.

Change-Id: Ic44a557677ffe629e83ce1f522a9f058bee6e7b2
om/android/server/ConnectivityService.java
2d78fa2d2558dc8c6d6400232c742da7936c6204 20-Aug-2012 Amith Yamasani <yamasani@google.com> am ff7735b0: am a3db5297: Merge "ProviderMap: remove hashmap when entire user specific entries are removed"

* commit 'ff7735b0ee8c3347d0f3cb1866e454be0e9534e2':
ProviderMap: remove hashmap when entire user specific entries are removed
ff7735b0ee8c3347d0f3cb1866e454be0e9534e2 20-Aug-2012 Amith Yamasani <yamasani@google.com> am a3db5297: Merge "ProviderMap: remove hashmap when entire user specific entries are removed"

* commit 'a3db5297cda370ce41db99b6839cd9528c31ef7c':
ProviderMap: remove hashmap when entire user specific entries are removed
ec42c3c35fd4c16e1823cfd0e5b589ed2d205aa7 20-Aug-2012 Craig Mautner <cmautner@google.com> Merge "Ensure that mAllAppWinAnimators is not null." into jb-mr1-dev
bea12bdc2e6d2b1158c1faa58a8197d5e971a817 20-Aug-2012 Craig Mautner <cmautner@google.com> Ensure that mAllAppWinAnimators is not null.

The method showAllWindowsLocked can be called from the layout
side of the WindowManagerService. Previously the AppWindowAnimator
member mAllAppWinAnimators was created on the animation side. If
showAllWindowsLocked was called before the first animation of the
activity an NPE would occur. This fix creates mAllAppWinAnimators
when the AppWindowAnimator is created and also updates it with
current values before calling showAllWindowsLocked.

Fixes bug 6917136.

Change-Id: If3ace22022b65c6888bbb9d0575efe9a45d86475
om/android/server/wm/AppWindowAnimator.java
om/android/server/wm/WindowAnimator.java
om/android/server/wm/WindowManagerService.java
a3db5297cda370ce41db99b6839cd9528c31ef7c 20-Aug-2012 Amith Yamasani <yamasani@google.com> Merge "ProviderMap: remove hashmap when entire user specific entries are removed"
37a37f445cbcd64376af153dd79ea2a123d9405d 15-Aug-2012 Brian Muramatsu <btmura@google.com> add wireless charger support

bug: 6879638

- add new enum value BATTERY_PLUGGED_WIRELESS
- check for sys online file with contents "Wireless"

Change-Id: I22dc3c40f50573c98643e7b5cbcb237d0216530d
om/android/server/BatteryService.java
ec7ed14c183a2ab958817694bad53bdc8b05e49e 25-Jul-2012 rpcraig <rpcraig@tycho.ncsc.mil> restorecon /data/anr directory.

Restore the security contexts of anr directory
when initially created.

Change-Id: Ia731414ccbcdc7369d24be6db0003c53abcf6ef4
Signed-off-by: rpcraig <rpcraig@tycho.ncsc.mil>
om/android/server/am/ActivityManagerService.java
om/android/server/am/DeviceMonitor.java
bf5740e75efd87ae0213486e78e029403804c6f0 20-Aug-2012 Jeff Brown <jeffbrown@google.com> Improve display manager debugging.

Change-Id: Iae794fe99a7cf9809f64eafb216091126a2f7e39
om/android/server/display/DisplayManagerService.java
98365d7663cbd82979a5700faf0050220b01084d 20-Aug-2012 Jeff Brown <jeffbrown@google.com> Refactor for multi-display support.

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

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

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

Add stubs for some new display manager API features.

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

Change-Id: I29ed909114dec86807c4d3a5059c3fa0358bea61
om/android/server/power/DisplayPowerController.java
om/android/server/power/ElectronBeam.java
om/android/server/wm/ScreenRotationAnimation.java
om/android/server/wm/StrictModeFlash.java
om/android/server/wm/Watermark.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowStateAnimator.java
848c2dc93b6795e171f3dd6f64ea0be65e2762ca 20-Aug-2012 Jeff Brown <jeffbrown@google.com> Stub out display manager service implementation.

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

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

Change-Id: I717f2f1099c7a77180ef207c371ec8329258850a
om/android/server/SystemServer.java
om/android/server/display/DisplayAdapter.java
om/android/server/display/DisplayDevice.java
om/android/server/display/DisplayDeviceInfo.java
om/android/server/display/DisplayManagerService.java
om/android/server/display/HeadlessDisplayAdapter.java
om/android/server/display/SurfaceFlingerDisplayAdapter.java
e4c56d9367ae89c705b92e44f327bd1d0132129c 31-Mar-2011 Vairavan Srinivasan <vairav@codeaurora.org> VibratorService: Fix to ensure actual delay in a vibrate pattern

delay might timeout early as value of duration isn't updated
correctly in the loop, should the wait be interrupted, to reflect
the elapsed time. Fix is to update duration in the loop.

Change-Id: I525b0e97799b288f46ae3a056cff7dcc69701bb0
om/android/server/VibratorService.java
ce777171fce4911f383e838d9019d84520426456 19-Aug-2012 Amith Yamasani <yamasani@google.com> Fixed static wallpaper for multi-user

Earlier assumption that systemui was running in the system process
does not hold true, so running static wallpaper in its own user
sandbox.

Bug: 7008230
Change-Id: I32a128e6bbd8efa7006286330e970bafcf37f05a
om/android/server/WallpaperManagerService.java
fc6e0ca07e599de5229582efe29c4f78eabaa3b8 18-Aug-2012 Amith Yamasani <yamasani@google.com> Fix build part 2

Change-Id: I3b4ed430f214468a22d3b3aaf3605e570cfd0ed1
om/android/server/pm/UserManagerService.java
7fdaa3976d6082bd7e96329240bda478c08b751e 18-Aug-2012 Amith Yamasani <yamasani@google.com> Merge "Save preferred activity info with user id." into jb-mr1-dev
029675e5ad8737a8a097c17d216afb3f11f0b12c 18-Aug-2012 Amith Yamasani <yamasani@google.com> Merge "Fix launching activity from a pending intent" into jb-mr1-dev
2b7a0d00426218523629e4e8dd2e9197d445c09b 18-Aug-2012 Nick Pelly <npelly@google.com> Fix addGeofence() and addProximityAlert().

Need to clear the callers identity before calling into geofence manager
because it in turn calls fused location API's.

Change-Id: I7993b0b8b2a947ff93c37a7c9d29ca0e7c95f9a8
om/android/server/LocationManagerService.java
4035f5a7c191a68bc9a5912ce44c43c82e9e5dbf 17-Aug-2012 Nick Pelly <npelly@google.com> Port location blacklist code to MR1.

I had to re-do this change for MR1 because LocationManagerService changed
so much. Here is the original change description:

Add package-name-prefix blacklist for location updates.

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

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

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

Bug: 6986553
Change-Id: I1e151e08bd7143e47db005bc3fe9795076398df7
om/android/server/LocationManagerService.java
om/android/server/location/GeofenceManager.java
om/android/server/location/LocationBlacklist.java
7300dbeba06a85948d63e480da36258d78840b30 17-Aug-2012 Amith Yamasani <yamasani@google.com> Fix launching activity from a pending intent

The creator of the pending intent is the user on which the activity
should be launched.

Change-Id: I733326ed8a5784985ac93a84ce91de4dda17c730
om/android/server/am/ActivityManagerService.java
81c304b99d920e8d66ac16332489d78ff7162e12 17-Aug-2012 Amith Yamasani <yamasani@google.com> Merge "Send USER_SWITCHED with the correct permission" into jb-mr1-dev
1ab36c1d83969bab7ef782af11fa1673993b76fa 17-Aug-2012 Amith Yamasani <yamasani@google.com> Send USER_SWITCHED with the correct permission

Forgot to change this from MANAGE_ACCOUNTS to MANAGE_USERS.

Change-Id: Ib07d2ac84c19cef278a0e564676b6200e0f97dd1
om/android/server/am/ActivityManagerService.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
om/android/server/pm/PackageManagerService.java
om/android/server/pm/PreferredActivity.java
om/android/server/pm/UserManagerService.java
c48ee60426a741d0a8e7df7df8af2a9ac24cee85 17-Aug-2012 Robert Greenwalt <rgreenwalt@google.com> am 6626398a: Merge "Fix for updating TCP buffer size when switching network type"

* commit '6626398a72ae592e3a9184c9b0868df0fc1f1724':
Fix for updating TCP buffer size when switching network type
d2ae85d41ec1651dd1bf4c33fe31833ba5c5cff5 17-Aug-2012 Michael Jurka <mikejurka@google.com> Merge "Adding a thumbnail scale down animation" into jb-mr1-dev
6626398a72ae592e3a9184c9b0868df0fc1f1724 17-Aug-2012 Robert Greenwalt <rgreenwalt@google.com> Merge "Fix for updating TCP buffer size when switching network type"
aeca6898041437a7e2ba68c1421b9be90669154d 17-Aug-2012 Nick Pelly <npelly@google.com> Merge "Fix regression from location changes: GPS battery tracking." into jb-mr1-dev
f2033e473aea4bfd0152feee51129fc4748e6f79 17-Aug-2012 Nick Pelly <npelly@google.com> Fix regression from location changes: GPS battery tracking.

The client UID list wasn't being saved, so we never removed
client UID's. As a result apps get blamed for GPS even when
they are no longer using it.

Bug: 7007314
Change-Id: Idff3b7c8c0ee87b99c9bdd7bd20d8391d0b1ac0f
om/android/server/location/GpsLocationProvider.java
79af1dd54c16cde063152922b42c96d72ae9eca8 17-Aug-2012 Dianne Hackborn <hackbod@google.com> Switch public APIs to use new UserHandle class for identifying users.

Gets rid of "yet another integer" confusion.

Change-Id: Id07ea7307aea7c62f0087c6663a1f1c08e2e5dee
om/android/server/AppWidgetServiceImpl.java
2a00329c6d55c6cd9166e01963d7410e95d80d21 15-Aug-2012 Amith Yamasani <yamasani@google.com> UserHandle to UserSerialNo mapping

Use AtomicFile for usermanager files.

Added a MANAGE_USERS permission that apps (signature permission) can use
to create/query/modify/remove users.

Change-Id: I5cf232232d0539e7508df8ec9b216e29c2351cd9
om/android/server/AppWidgetService.java
om/android/server/ClipboardService.java
om/android/server/WallpaperManagerService.java
om/android/server/am/ActivityManagerService.java
om/android/server/pm/UserManagerService.java
1968256926a13e8d809256f652073b0532199fd1 17-Aug-2012 Magnus Strandberg <magnus.strandberg@sonymobile.com> Fix for updating TCP buffer size when switching network type

When PDP connects in GSM network, the TCP buffer window size is
set to max 8760. If the phone swicthes to UMTS, the TCP buffer
size is not updated to UMTS, i.e. GPRS buffer size is still
used with limited data transfer spead as a result.
This fix makes sure the TCP buffer size is updated when
switching network type.

Change-Id: Iaa527c84f56cae108f4c7276bbed10552faaff6c
om/android/server/ConnectivityService.java
1f3f128ad1744dfbe4108857f322a805b1dc5eb7 17-Aug-2012 Nick Pelly <npelly@google.com> Merge "Add javadoc for new location API's." into jb-mr1-dev
4e31c4fffbc42b4c2b5dca6431cfeef9e078f5b4 14-Aug-2012 Nick Pelly <npelly@google.com> Add javadoc for new location API's.

Change-Id: If15024ee88421c07ba3a174747774fc451fd002e
om/android/server/LocationManagerService.java
9a994b5350731b8169a9b25463f57266ee2988fb 17-Aug-2012 Kenny Root <kroot@google.com> am 050c87f8: am a950daf5: Merge changes Ieb566a2a,I953057cd

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

* commit 'a950daf5c14a0009c2c62e9c3e0e8d51eb0cf7d9':
Use Libcore's stat instead of FileUtils#getFileStatus
Use Libcore.os.stat instead of FileUtils
13c589b66c47aa4d988eecce9a12c39d580939c9 17-Aug-2012 Jeff Brown <jeffbrown@google.com> Animate brightness with electron beam.

Also added an internal flag to control whether the electron beam
on animation is used. It's on for now but we might want to
turn if off if we can't get the HAL to provide the
necessary screen on synchronization on all devices.

Change-Id: Iaa3cfa0fd61de10174e68351e4db890eff2d2918
om/android/server/power/DisplayPowerController.java
om/android/server/power/DisplayPowerState.java
520ee7bcadafdc5768fa8fc8890199ebe29886da 17-Aug-2012 Kenny Root <kroot@android.com> am a2e8365c: am 9b0da58e: Merge "Introduce a restorecon JNI binding."

* commit 'a2e8365cc883de0d3e56e9f4af350ecfe1b8fc4c':
Introduce a restorecon JNI binding.
a2e8365cc883de0d3e56e9f4af350ecfe1b8fc4c 17-Aug-2012 Kenny Root <kroot@android.com> am 9b0da58e: Merge "Introduce a restorecon JNI binding."

* commit '9b0da58e3a30b760de37138cdd51d20f269c383e':
Introduce a restorecon JNI binding.
786cbcacd2efbd94476eb05a4d5b77211f20d434 16-Aug-2012 Kenny Root <kroot@google.com> Use Libcore.os.stat instead of FileUtils

PackageManagerService just needed to know the owner for this file, so
just use stat instead so we can remove the old JNI code.

This is the last user of FileUtils#getPermissions so just remove the
FileUtils method as well.

Change-Id: I953057cd6b9de4410f33b6f22e4bddff02fe2988
om/android/server/pm/PackageManagerService.java
60020e2fa3dd31280ccec91029113f88ee5338c8 17-Aug-2012 Nick Pelly <npelly@google.com> Merge "Improve coarse locations." into jb-mr1-dev
74fa7eabda3d0c1a85e0b568e3fc4230ed4fe7a4 14-Aug-2012 Nick Pelly <npelly@google.com> Improve coarse locations.

Fix a couple of bugs, and modify the behavior of the random offset.

The random offset now slowly changes over time, to mitigate against
applications averaging out the offset over time while at a
grid boundary.

Change-Id: Iecffff29145b8c2b30d1eca1662cf9d3e8cff756
om/android/server/LocationManagerService.java
om/android/server/location/LocationFudger.java
9b0da58e3a30b760de37138cdd51d20f269c383e 16-Aug-2012 Kenny Root <kroot@android.com> Merge "Introduce a restorecon JNI binding."
c584b65b2093396c9a0c9303dab6ff6cb81ac315 16-Aug-2012 Jeff Sharkey <jsharkey@android.com> Merge "Multi-user external storage support." into jb-mr1-dev
ee98610f1af9c12fcb89522cf1795470bec60938 16-Aug-2012 Iliyan Malchev <malchev@google.com> Merge "Set the brightness to zero on screen-off" into jb-mr1-dev
122415f5c813408fe2c7b81e33144f2beff9c3d5 16-Aug-2012 Iliyan Malchev <malchev@google.com> Set the brightness to zero on screen-off

Fixes b/6996990

Ideally, the HWC HAL should turn off the backlight when the display is turned
off. This patch enforces this at the PowerManager, which can guard against
errant HWC implementations.

Change-Id: Ibb826a02871c983f8a68034d010e68abe9c5c1d5
Signed-off-by: Iliyan Malchev <malchev@google.com>
om/android/server/power/DisplayPowerState.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
om/android/server/AppWidgetServiceImpl.java
om/android/server/BackupManagerService.java
om/android/server/ClipboardService.java
om/android/server/MountService.java
om/android/server/NotificationManagerService.java
om/android/server/WallpaperManagerService.java
om/android/server/am/ActiveServices.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityRecord.java
om/android/server/am/ActivityStack.java
om/android/server/am/BroadcastQueue.java
om/android/server/am/PendingIntentRecord.java
om/android/server/am/ProcessRecord.java
om/android/server/am/ProviderMap.java
om/android/server/am/ServiceRecord.java
om/android/server/am/TaskRecord.java
om/android/server/net/NetworkPolicyManagerService.java
om/android/server/pm/PackageManagerService.java
om/android/server/pm/Settings.java
om/android/server/pm/UserManagerService.java
7c964e78993ab1bc93c079e4f75b22ce1ebdec98 16-Aug-2012 Jeff Brown <jeffbrown@google.com> Merge changes I39804ee6,I6a5a7ea2 into jb-mr1-dev

* changes:
Use spline interpolation for auto-brightness.
Add FloatMath.hypot.
e663975055eb1dc0a0da5efffc3c92312b15498e 16-Aug-2012 Jeff Brown <jeffbrown@google.com> Merge "Improve auto-brightness debounce." into jb-mr1-dev
1a30b55036c2279d72ba69cb1107ec5f6f40d5e9 16-Aug-2012 Jeff Brown <jeffbrown@google.com> Use spline interpolation for auto-brightness.

Strictly speaking, this is a change in behavior for all products.
Instead of using discrete zones, they will all now use spline
interpolation. We could make this behavior configurable
but there seems to be little point to it. The range of brightness
values used will be more or less the same as before, it's just
that what used to be the brightness value for all levels within
a particular zone now becomes the brightness value for the
highest level in that zone and lower values are used for lower
levels within the zone.

Change-Id: I39804ee630ba55f018e1e53c0576b28e7bd27931
om/android/server/power/DisplayPowerController.java
832cb229cd748505c90f74ae8154fc3557d61a73 13-Apr-2012 Michael Jurka <mikejurka@google.com> Adding a thumbnail scale down animation

Recents animation will temporarily look a bit
wrong, but a subsequent change will fix this.
om/android/server/am/ActivityRecord.java
om/android/server/wm/WindowManagerService.java
8809004bc5125d48a1bbfc292509514374cc4fce 16-Aug-2012 Vairavan Srinivasan <vairav@codeaurora.org> ProviderMap: remove hashmap when entire user specific entries are removed

User specific entries in mProvidersByNamePerUser and mProvidersByClassPerUser
isn't cleared when entire user specific providers are removed. Fix is to remove
the user specific hashmap in such cases.

Change-Id: I6edf211ced873e59f3b89ffceb9eceec13ea8f3f
om/android/server/am/ProviderMap.java
06565b64de1953fc9534f789b2e8b8fd70758979 16-Aug-2012 Jeff Brown <jeffbrown@google.com> Improve auto-brightness debounce.

Change-Id: I045e2a14cb31ff987a22872733c442fc92ebadbf
om/android/server/power/DisplayPowerController.java
5b1ada2562c17921adf6a62ea62bcb445160983c 15-Aug-2012 Jeff Sharkey <jsharkey@android.com> Multi-user external storage support.

Emulated external storage always has multi-user support using paths
like "/data/media/<user_id>". Creates and destroys these paths along
with user data. Uses new ensure_dir() to create directories while
always ensuring permissions.

Add external storage mount mode to zygote, supporting both single-
and multi-user devices. For example, devices with physical SD cards
are treated as single-user. Begin migrating to mount mode instead
of relying on sdcard_r GID to enforce READ_EXTERNAL_STORAGE.

Bug: 6925012
Change-Id: I9b872ded992cd078e2c013567d59f9f0032ec02b
om/android/server/am/ActivityManagerService.java
a1a1a1d6caddc25c4e249e5b5030d6a3ed861dd9 16-Aug-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #6955586: No navigation bar in landscape on tablets" into jb-mr1-dev
5a052a4d19556700a21286029f37e1cc37f217b1 16-Aug-2012 Dianne Hackborn <hackbod@google.com> Fix issue #6955586: No navigation bar in landscape on tablets

The window manager was telling the activity manager to evaluate
the new configuration when first initializing the display, before
actually setting mDisplay, so it failed creating that first config.

Change-Id: I6e94fcf55b0587ccf15a5fd7ecbe2c9a0c201b96
om/android/server/wm/WindowManagerService.java
f6307820c88e694e102824225b9d8caa6de75a30 14-Aug-2012 Yuhao Zheng <yuhaozheng@google.com> CTS test for WiFi watchdog - framework support.

The new WiFi watchdog requires kernel/driver to export some packet loss
counters. This CTS tests whether those counters are correctly exported.

Change-Id: I41999676f8488e86f35f1f8214ce668f1a2b5638
om/android/server/WifiService.java
9630704ed3b265f008a8f64ec60a33cf9dcd3345 28-Jul-2012 Jeff Brown <jeffbrown@google.com> Power manager rewrite.

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

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

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

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

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

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

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

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

At present the following features are implemented:

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

The following features are not yet implemented:

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

Change-Id: I1d7a52e98f0449f76d70bf421f6a7f245957d1d7
om/android/server/DevicePolicyManagerService.java
om/android/server/DockObserver.java
om/android/server/SystemServer.java
om/android/server/Watchdog.java
om/android/server/power/DisplayPowerController.java
om/android/server/power/DisplayPowerRequest.java
om/android/server/power/DisplayPowerState.java
om/android/server/power/ElectronBeam.java
om/android/server/power/Notifier.java
om/android/server/power/PhotonicModulator.java
om/android/server/power/PowerManagerService.java
om/android/server/power/RampAnimator.java
om/android/server/power/SuspendBlocker.java
om/android/server/wm/WindowManagerService.java
ff7e6ef4f18ff94a9836492ff3ccd1ba7f6804f3 15-Aug-2012 Jeff Brown <jeffbrown@google.com> Apply ValueAnimator scale factor immediately in WM.

Normally the ValueAnimator scale factor is applied the first
time a ViewRootImpl window session is created but that may
be too late for animators created by system services that
start early in the boot process. So set the scale factor
immediately whenever the setting changes.

Also make ValueAnimator.getDurationScale() accessible (but @hide)
for custom animators that want to apply the same scale to
their animations.

Change-Id: I0f5a750ab5b014f63848445435d8dca86f2a7ada
om/android/server/wm/WindowManagerService.java
f363dfd26c304bca33f12065a9ed3de291193962 16-Feb-2012 Johan Viktorsson <johan.viktorsson@sonymobile.com> Added check of ActivityInfo launch mode when starting activity.

When starting a singleTop activity from a singleInstance activity,
the onNewIntent() callback was not called when expected. The
reason for this was that only the launchMode specified on the
intent was checked and not the launchMode specified in the manifest.

Fixes issue 17137.

Change-Id: I1a9bc1007d6f5145bf93a6161534732bf5214b7a
om/android/server/am/ActivityStack.java
58de1427c313e0debf2a929931e8c4065d4d46c5 14-Aug-2012 Matthew Xie <mattx@google.com> Merge "Implement enableNoAutoconnect()" into jb-mr1-dev
fffa86ba834d37684238c83c0dd081133324984d 09-Aug-2012 Ganesh Ganapathi Batta <ganeshg@broadcom.com> Implement enableNoAutoconnect()

Adding enableNoAutoconnect() API support in Bluetooth service
to let BT enable in quiet mode

Change-Id: I546f3ceb298082a9c9a698f406379470e3cc0d4f
om/android/server/BluetoothManagerService.java
510cff946874b8408664c86f9935d6a38f770e82 14-Aug-2012 Mike Lockwood <lockwood@google.com> am f02354e2: am 9064a483: Merge "Added missing USB_DEVICE_ATTACHED broadcast to running Activity"

* commit 'f02354e208ec7b7e0dee68e12c0b5cde86a0f20a':
Added missing USB_DEVICE_ATTACHED broadcast to running Activity
f02354e208ec7b7e0dee68e12c0b5cde86a0f20a 14-Aug-2012 Mike Lockwood <lockwood@google.com> am 9064a483: Merge "Added missing USB_DEVICE_ATTACHED broadcast to running Activity"

* commit '9064a48365c131ef5f64b26ab33dd40a7d1246a7':
Added missing USB_DEVICE_ATTACHED broadcast to running Activity
9064a48365c131ef5f64b26ab33dd40a7d1246a7 14-Aug-2012 Mike Lockwood <lockwood@google.com> Merge "Added missing USB_DEVICE_ATTACHED broadcast to running Activity"
bf7d222011bcb417a2d6ab0f086b25e1608445cb 14-Aug-2012 Christopher Tate <ctate@google.com> Merge "Don't back up / restore non-primary users' data" into jb-mr1-dev
aac71ff465399251fa8e830407f2917b986988d9 14-Aug-2012 Christopher Tate <ctate@google.com> Don't back up / restore non-primary users' data

For now only the device owner "user" gets cloud backups. Also, only the
device owner account has access to local backup/restore.

Bug 6956438

Change-Id: I87d7ba5969e606c23f4214469f9bf2fd47a6c61b
om/android/server/BackupManagerService.java
1866f68dfe35da46995e5f2321f33e8fee44bcf8 14-Aug-2012 Dianne Hackborn <hackbod@google.com> Merge "Modify how the background process LRU list is handled." into jb-mr1-dev
f88dd0b32ea2042eb2011170be465259a21d2563 09-Aug-2012 Dianne Hackborn <hackbod@google.com> Small service cleanup.

Get rid of duplication between find/retrieve service funcs; when
a service in a persistent process crashes, restart it immediately
since the persistent process is going to be immediately restarted
anyway; when a new process is attaching, immediately restart any
services associated with it that are waiting to restart, since
it is weird to not let them run if the process comes back for some
other reason.

Change-Id: Id087fe04ebf2b6a4bd00732796c8326364765ea7
om/android/server/am/ActiveServices.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/ProviderMap.java
ee7621c0f5de6eca2cfb9fb2b6117fb61e13cc41 14-Aug-2012 Dianne Hackborn <hackbod@google.com> Modify how the background process LRU list is handled.

A long time ago, we had a concept of an "empty" process -- this was
a process that didn't have any interesting components in it, which
would be placed below everything else in the LRU list.

Empty processes didn't work out well, because you could get into
bad situations where you have filled your LRU list with things that
have hidden activities, pushing empty processes to the bottom and
being immediately killed as soon as they go into the list. So this
was removed.

This change brings the concept back, but in a slightly different
form, to address a more specific problem: for people who are switching
between N different applications, we would like to try to keep those
activities available in RAM in a consistent manner. Currently the
previous activities would be killed often quickly and suprisingly,
even on devices with lots of RAM. This is for two reasons:

(1) As you sit in one application, other things going on in the
background will go to the top of the LRU list, pushing down the
previous apps you have visited, even though you aren't aware at all
of these other things executing.
(2) There is a hard limit on the number of background processes
(currently 16) after which they are killed regardless of the amount
of available RAM. This is desireable because if there is lots of
RAM we can end up with tons and tons of processes sitting around,
not really serving any purpose, but using up resources.

To improve the situation, we have again a concept of "empty" processes
but now it means one with no activities. Processes that aren't empty
but in the background list are called hidden. We maintain these as
two parallel lists, each getting half of the process limit: so with
a 16 process limit, you can have at most 8 empty and 8 hidden processes.

This allows us to consistently keep up to 8 recent applications around
for fast app switching; we will also keep around 8 other processes to
make it more efficient for background work to execute again if it needs
to.

Change-Id: Iee06e45efc20787da6a1e50020e5421c28204bd7
om/android/server/am/ActivityManagerService.java
om/android/server/am/ProcessRecord.java
7be1a3d67c32d73b20e30e85084f07c609617762 13-Aug-2012 John Spurlock <jspurlock@google.com> Stop screensaver on incoming phone call.

Use notification manager as an indicator of when to stop the screensaver
due to immediately-needed user interaction.

Any notification with a fullScreenIntent will now exit the screensaver.

Bug: 6976796
Change-Id: Id91cd4c32f3fad018b56f4dfe24b37110bab32d8
om/android/server/NotificationManagerService.java
38cc2a5a3ad076fbbb0824a91f49730a4297549b 13-Aug-2012 Kenny Root <kroot@google.com> am 3221bf27: am 438a0efc: Do not eject internal ASECs when storage unmounted

* commit '3221bf27ff6b8eebf360ed2496ad5c56b95fd689':
Do not eject internal ASECs when storage unmounted
3221bf27ff6b8eebf360ed2496ad5c56b95fd689 13-Aug-2012 Kenny Root <kroot@google.com> am 438a0efc: Do not eject internal ASECs when storage unmounted

* commit '438a0efcfbee5dc953e8e5bbdf4cb3dbe94b3f80':
Do not eject internal ASECs when storage unmounted
438a0efcfbee5dc953e8e5bbdf4cb3dbe94b3f80 09-Aug-2012 Kenny Root <kroot@google.com> Do not eject internal ASECs when storage unmounted

If the incoming request is to notify of storage unmounted, don't mess
with apps that are in internal ASECs.

Bug: 6948035
Change-Id: I63ffb895c4d994ee03a5a9bd6bb23f69c88e2a87
om/android/server/pm/PackageManagerService.java
258848d2ae04f447ff1c18023fa76b139fcc0862 11-Aug-2012 Amith Yamasani <yamasani@google.com> User Manager service to manage users and query user details

Moved a bunch of methods from PackageManager to UserManager.

Fix launching of activities from recents to correct user.

Guest creation APIs

Change-Id: I0733405e6eb2829675665e225c759d6baa2b708f
om/android/server/SystemServer.java
om/android/server/am/ActiveServices.java
om/android/server/am/ActivityManagerService.java
om/android/server/net/NetworkPolicyManagerService.java
om/android/server/pm/PackageManagerService.java
om/android/server/pm/Settings.java
om/android/server/pm/UserManager.java
om/android/server/pm/UserManagerService.java
75f0fac91bd7fa67fa76cfdd4e163b9f35be0432 11-Aug-2012 Nick Pelly <npelly@google.com> Merge "Fix a couple of bugs from the location overhaul." into jb-mr1-dev
08ca1046fe4f1890f91241f8d082a024ef6cfd93 11-Aug-2012 Nick Pelly <npelly@google.com> Fix a couple of bugs from the location overhaul.

Marshall LocationRequest array correctly.

Observe reportLocation from FusionEngine.

Actually deliver the setRequest message to fusion engine.

Change-Id: Iff64596fdd42f9fb06e563591dda9fbe0241533a
om/android/server/LocationManagerService.java
77b257967de44e031c313858a45fccdd6e89732f 11-Aug-2012 Ashish Sharma <ashishsharma@google.com> Merge "Setup idletimer for network interface." into jb-mr1-dev
0412423f06ec633203b96f68b51f0720c33a2473 29-Jun-2012 Haoyu Bai <bhy@google.com> Setup idletimer for network interface.

Cherry-picked from commit f71ca8a5728e425de61ba794c9653dd0b04f16e3 in
master. DO NOT MERGE

Change-Id: I6101c7ae041b4cc1237ce7a9983753dbdfa301d3
om/android/server/ConnectivityService.java
om/android/server/NetworkManagementService.java
6fa9ad4afcd762aea519ff61811386c23d18ddb2 16-Jul-2012 Nick Pelly <npelly@google.com> Location overhaul, major commit.

Themes: Fused Location, Geofencing, LocationRequest.

API changes
o Fused location is always returned when asking for location by Criteria.
o Fused location is never returned as a LocationProvider object, nor returned
as a provider String. This wouldn't make sense because the current API
design assumes that LocationProvider's have fixed properties (accuracy, power
etc).
o The fused location engine will tune itself based on the criteria passed
by applications.
o Deprecate LocationProvider. Apps should use fused location (via Criteria
class), instead of enumerating through LocationProvider objects. It is
also over-engineered: designed for a world with a plethora of location
providers that never materialized.
o The Criteria class is also over-engineered, with many methods that aren't
currently used, but for now we won't deprecate them since they may have
value in the future. It is now used to tune the fused location engine.
o Deprecate getBestProvider() and getProvider().
o Add getLastKnownLocation(Criteria), so we can return last known
fused locations.
o Apps with only ACCESS_COARSE_LOCATION _can_ now use the GPS, but the location
they receive will be fudged to a 1km radius. They can also use NETWORK
and fused locatoins, which are fudged in the same way if necessary.
o Totally deprecate Criteria, in favor of LocationRequest.
Criteria was designed to map QOS to a location provider. What we
really need is to map QOS to _locations_.
The death knell was the conflicting ACCURACY_ constants on
Criteria, with values 1, 2, 3, 1, 2. Yes not a typo.
o Totally deprecate LocationProvider.
o Deprecate test/mock provider support. They require a named provider,
which is a concept we are moving away from. We do not yet have a
replacement, but I think its ok to deprecate since you also
need to have 'allow mock locations' checked in developer settings.
They will continue to work.
o Deprecate event codes associated with provider status. The fused
provider is _always_ available.
o Introduce Geofence data object to provide an easier path fowards
for polygons etc.

Implementation changes
o Fused implementation: incoming (GPS and NLP) location fixes are given
a weight, that exponentially decays with respect to age and accuracy.
The half-life of age is ~60 seconds, and the half-life of accuracy is
~20 meters. The fixes are weighted and combined to output a fused
location.
o Move Fused Location impl into
frameworks/base/packages/FusedLocation
o Refactor Fused Location behind the IProvider AIDL interface. This allow us
to distribute newer versions of Fused Location in a new APK, at run-time.
o Introduce ServiceWatcher.java, to refactor code used for run-time upgrades of
Fused Location, and the NLP.
o Fused Location is by default run in the system server (but can be moved to
any process or pacakge, even at run-time).
o Plumb the Criteria requirements through to the Fused Location provider via
ILocation.sendExtraCommand(). I re-used this interface to avoid modifying the
ILocation interface, which would have broken run-time upgradability of the
NLP.
o Switch the geofence manager to using fused location.
o Clean up 'adb shell dumpsys location' output.
o Introduce config_locationProviderPackageNames and
config_overlay_locationProviderPackageNames to configure the default
and overlay package names for Geocoder, NLP and FLP.
o Lots of misc cleanup.
o Improve location fudging. Apply random vector then quantize.
o Hide internal POJO's from clients of com.android.location.provider.jar
(NLP and FLP). Introduce wrappers ProviderRequestUnbundled and
ProviderPropertiesUnbundled.
o Introduce ProviderProperties to collapse all the provider accuracy/
bearing/altitude/power plumbing (that is deprecated anyway).
o DELETE lots of code: DummyLocationProvider,
o Rename the (internal) LocationProvider to LocationProviderBase.
o Plumb pid, uid and packageName throughout
LocationManagerService#Receiver to support future features.

TODO: The FLP and Geofencer have a lot of room to be more intelligent
TODO: Documentation
TODO: test test test

Change-Id: Iacefd2f176ed40ce1e23b090a164792aa8819c55
om/android/server/LocationManagerService.java
om/android/server/ServiceWatcher.java
om/android/server/location/GeocoderProxy.java
om/android/server/location/Geofence.java
om/android/server/location/GeofenceManager.java
om/android/server/location/GeofenceState.java
om/android/server/location/GpsLocationProvider.java
om/android/server/location/LocationProviderInterface.java
om/android/server/location/LocationProviderProxy.java
om/android/server/location/MockProvider.java
om/android/server/location/PassiveProvider.java
14262d79c42072b01d8beccc3a0d688938da4214 10-Aug-2012 Brian Muramatsu <btmura@google.com> Merge "Control GPS logging with property" into jb-mr1-dev
1715cb36d9231f08f244ec6c0a373f1a46d66cc7 09-Aug-2012 Brian Muramatsu <btmura@google.com> Control GPS logging with property

This allows users of the PDK to debug GPS issues.

Change-Id: I4aff12e124f4264abd1a0be012df4c431044189c
om/android/server/location/GpsLocationProvider.java
c5bfe1962626ec73ce8dac67ab26bad96637e2f1 10-Aug-2012 John Spurlock <jspurlock@google.com> Merge "Fix screen timeout determination for starting dream." into jb-mr1-dev
b9ba2b6768063b4a4135143bc5b6219fb9b3b22f 09-Aug-2012 John Spurlock <jspurlock@google.com> Fix screen timeout determination for starting dream.

It turns out OFF_BECAUSE_OF_TIMEOUT is not the best indicator
of actual screen timeout.

For example, it is the reason passed down when acquiring a wake lock.
This was causing us to launch Dreams in the wrong situations, and
deadlocking on calls to WindowManager.

This fix simply adds an additional check ensuring the intention is to
turn the screen off.

Change-Id: If8adff446b5b1fcb19424b45878b75bfd0552b90
om/android/server/power/PowerManagerService.java
2c02933b13b426637808d3d4fd57aea1ff11011a 09-Aug-2012 Amith Yamasani <yamasani@google.com> Merge "Send BOOT_COMPLETED to all users." into jb-mr1-dev
015b9f45d4cfa1e9764d7fbd6142ee612b2ea628 09-Aug-2012 Daniel Sandler <dsandler@android.com> Fix the dock-insertion Dream entry codepath.

Bug: 6956040
Change-Id: I663e13f8a28db13b94d0f5aa4dbcf0cd64ef22fe
om/android/server/power/PowerManagerService.java
4860cfc68464ebdcc391324518772c79f047597f 09-Aug-2012 Amith Yamasani <yamasani@google.com> Send BOOT_COMPLETED to all users.

At least until we have a concept of logged-in users.

Change-Id: I65e3bed2aeef9692dbc64169cf02a7451cfed1cd
om/android/server/am/ActivityManagerService.java
8264408f5995534f8e3147b001664ea0df52aaa5 03-Aug-2012 Amith Yamasani <yamasani@google.com> Start the correct settings from the status bar.

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

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

Change-Id: If5b56465efdd3ead36601a3b51ed4af157bbf35c
om/android/server/am/ActivityManagerService.java
fb11ffa2a04f0a6b1291cd7ffc68032fcc322312 09-Aug-2012 Jeff Sharkey <jsharkey@android.com> Merge "Isolate NetworkStateTracker creation, test." into jb-mr1-dev
fb878b66b9456f8fee2bcb1076263852d207949d 27-Jul-2012 Jeff Sharkey <jsharkey@android.com> Isolate NetworkStateTracker creation, test.

Change ConnectivityService to use a factory when creating
NetworkStateTrackers, which gives us a good place to inject mocks
for testing. Add initial tests to verify that network routes are
added and removed as networks changed.

Change-Id: I11cbc61a84c2ed4afa2670036295b1494eab26e1
om/android/server/ConnectivityService.java
82f479d0647855148af84fe2ba5484cb188c92cc 09-Aug-2012 Jeff Sharkey <jsharkey@android.com> Merge "Cleaner controls between Vpn and init services." into jb-mr1-dev
a56d9cecee8a34e0554770ac6253dd3a76b9199c 08-Aug-2012 Rich Cannings <richc@google.com> Merge "Revert "Pass URLs to package verifiers"" into jb-mr1-dev
5017f2328407447002ab2d0cae1fe8ef87c50501 28-Jul-2012 Jason Simmons <jsimmons@google.com> Call systemReady on the lock settings before doing so on the window manager

At systemReady time, the window manager needs to obtain values from the lock
settings service (e.g. whether the lock screen is disabled). During the
initial boot of a wiped device, the window manager was getting the wrong
values because LockSettingsService.systemReady/migrateOldData had not yet been
called.

Change-Id: I60825d0e4fad53a5b4349dabf9e5e299b863d0d0

(cherry pick of 2458abaf6676d5015af733c1010ecd67a085e9e2 from jb-aah-dev)
om/android/server/SystemServer.java
e1d7c711df3e3a2d2f195457882aa4ddb5626167 08-Aug-2012 Rich Cannings <richc@google.com> Revert "Pass URLs to package verifiers"

This reverts commit 24713907fe4632d263aea82f7a35c8fb08918a09

Change-Id: Ie04ba73475b813635c4a74915c45e83250801b6b
om/android/server/pm/PackageManagerService.java
537915828b45693e846a126292e026c5b4f05152 08-Aug-2012 Dianne Hackborn <hackbod@google.com> Merge "More mult-user API work." into jb-mr1-dev
786546eaccfc7a284b90b077f505cf42206c6f5f 08-Aug-2012 John Spurlock <jspurlock@google.com> Check the ACTIVATE_ON_DOCK setting in DockObserver.

Otherwise docking the device will always launch a Dream.

Change-Id: I2e74ca62f80d7e386d11c00920a75a5a6e78926c
om/android/server/DockObserver.java
7d19e0242faac8017033dabb872cdf1542fa184c 08-Aug-2012 Dianne Hackborn <hackbod@google.com> More mult-user API work.

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

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

Change-Id: I754c713ab172494bb4251bc7a37a17324a2e235e
om/android/server/am/ActiveServices.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityStack.java
om/android/server/am/BroadcastQueue.java
om/android/server/am/ContentProviderRecord.java
om/android/server/am/ProviderMap.java
85b1041f891b4bbfe81e4f6423397fca50c14e5b 07-Aug-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Window position not reported if the window is not moved." into jb-mr1-dev
758143ecfedbe08cc6c4fed0ad8ad7a854194ca4 07-Aug-2012 Svetoslav Ganov <svetoslavganov@google.com> Window position not reported if the window is not moved.

1.If a window is shown but never moved the window window
is never notified for its current location. Therefore,
accessibility nodes do not contain correct bounds in
screen coordinates.

bug:6926295

Change-Id: I7df18b095d33ecafffced75aba9e4f4693b0c393
om/android/server/InputMethodManagerService.java
om/android/server/wm/WindowManagerService.java
3c91724e7a8850df41a00fe4829a4d69d6ba9094 07-Aug-2012 Dianne Hackborn <hackbod@google.com> Merge "Refactor Service code out of main ActivityManagerService class." into jb-mr1-dev
599db5c85faa5733af538a712b870e1f507cd380 04-Aug-2012 Dianne Hackborn <hackbod@google.com> Refactor Service code out of main ActivityManagerService class.

Change-Id: I83ade73b48e8fda1ad413634c1eb0dba2a545ca7
om/android/server/am/ActiveServices.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityStack.java
088f29f55eebc6862a4cb5dddeaefacf24f74d95 05-Aug-2012 Jeff Sharkey <jsharkey@android.com> Cleaner controls between Vpn and init services.

Change-Id: I35edf054f4a1190f7fb7b4c48ee832e899c9528b
om/android/server/connectivity/Vpn.java
4e4306ab14f1f2125035ed43fbb021db8bc99c3f 06-Aug-2012 Jeff Sharkey <jsharkey@android.com> Merge "Include network type that caused broadcast." into jb-mr1-dev
75fbb4bdfde9188081f000506845d852f31362f0 06-Aug-2012 Jeff Sharkey <jsharkey@android.com> Include network type that caused broadcast.

Network type can be obtained through EXTRA_NETWORK_INFO, but offer
it as first-class extra since the returned NetworkInfo is deprecated.

Bug: 6936247
Change-Id: Ief59577afd2bd930f0f4c5650b413feef86bfbc3
om/android/server/ConnectivityService.java
bec1d13da2ef3c8c2c4cc4f740474d095068bd8b 05-Aug-2012 Jeff Sharkey <jsharkey@android.com> Merge "Make generic BaseNetworkObserver." into jb-mr1-dev
9c5c65959790bdceda384f87cf457bc7f9c2d433 05-Aug-2012 Jeff Sharkey <jsharkey@android.com> Merge "Make LocalSocket Closeable." into jb-mr1-dev
216c181e76ee11a47a0b2a180f9af96740ab38ad 05-Aug-2012 Jeff Sharkey <jsharkey@android.com> Make generic BaseNetworkObserver.

This makes it easier to add new INetworkManagementEventObserver events
in future.

Change-Id: I432263d745558de4b878f313c1951230ed9db2b1
om/android/server/ConnectivityService.java
om/android/server/net/BaseNetworkObserver.java
om/android/server/net/NetworkAlertObserver.java
om/android/server/net/NetworkPolicyManagerService.java
om/android/server/net/NetworkStatsService.java
065b299df4159602327977dd007cb2cd6b64ab20 05-Aug-2012 Jeff Sharkey <jsharkey@android.com> Make LocalSocket Closeable.

Enables usage of IoUtils.closeQuietly().

Change-Id: I91126297c1f235ae9da09f82d8f4f22db46558eb
om/android/server/connectivity/Vpn.java
2e5746a7a807c6d9d61af48978695214ef9d6717 04-Aug-2012 Dianne Hackborn <hackbod@google.com> Merge "We can now (kind-of) change screen density on the fly." into jb-mr1-dev
dde331cebd87982faded6818ad5f9927ff994c96 03-Aug-2012 Dianne Hackborn <hackbod@google.com> We can now (kind-of) change screen density on the fly.

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

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

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

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

A new am command allows you to change the density.
om/android/server/wm/DisplayContent.java
om/android/server/wm/WindowManagerService.java
0b24b1d37a955a0674a31d4da9ee1d0357a1d7f8 03-Aug-2012 Jeff Sharkey <jsharkey@android.com> Merge "Pass changed NetworkInfo to LocationProvider." into jb-mr1-dev
821bd8081a3a02de946af7a5c2ab52cdc3e48c4e 03-Aug-2012 Jeff Sharkey <jsharkey@android.com> Pass changed NetworkInfo to LocationProvider.

LocationProviders often rely on non-default networks, so pass the
network that actually changed, instead of the default.

Bug: 6929692
Change-Id: I31d9eec792e07259282aa1bb57ec66c01962df64
om/android/server/LocationManagerService.java
3185b376b0b9b8c393fb8300b18df441a3481ad0 03-Aug-2012 John Spurlock <jspurlock@google.com> Merge "Re-enable dreams: frameworks/base" into jb-mr1-dev
7de53949bc89e1e79ed63d730beaa49f838038b6 03-Aug-2012 Craig Mautner <cmautner@google.com> Merge "Add features to DisplayManager." into jb-mr1-dev
bc632a28e4fba4a659baf39b9fd3d06d10cfda97 31-Jul-2012 John Spurlock <jspurlock@google.com> Re-enable dreams: frameworks/base

Enable feature in config. Expose Dream in public api for unbundled apps.
Unhide package. Add isDreaming() method to service.

Re-arrange the Dream api a bit. (use onStart as hook for subclasses).
Coordinate properly with power manager.

Replace old dock mode (don't fire old intent).

Change-Id: I1318d20cc1613e5d862f2913f2fcdc9719302cf7
Bug: 6921930
om/android/server/DockObserver.java
om/android/server/power/PowerManagerService.java
329465c6b2407ee086a171cac1a3581f83dbb048 03-Aug-2012 Dianne Hackborn <hackbod@google.com> Merge "Add APIs for interacting across users." into jb-mr1-dev
b4163a6e12ee7100c758c6d3d062ade1f2843fce 03-Aug-2012 Dianne Hackborn <hackbod@google.com> Add APIs for interacting across users.

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

Change-Id: I0de88f6718e9505f4de72e3f45d29c0f503b76e9
om/android/server/AppWidgetServiceImpl.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/BroadcastFilter.java
om/android/server/am/BroadcastQueue.java
om/android/server/am/BroadcastRecord.java
f95f3ebf12bf9ee23b8ed4e940ab007cbc22f3f3 02-Aug-2012 Jeff Brown <jeffbrown@google.com> Merge "Allow access to display manager service from isolated processes." into jb-mr1-dev
e7c1d88fba71122038d516d3b758d68f9f92fa64 02-Aug-2012 Jeff Brown <jeffbrown@google.com> Allow access to display manager service from isolated processes.

Bug: 6921302
Change-Id: I9eed4a24992538e18ad0540b96a8cea2c8a9ef76
om/android/server/SystemServer.java
9de4936c99b979f6010440b043edc6d6142d1980 02-Aug-2012 Craig Mautner <cmautner@google.com> Add features to DisplayManager.

Added Surface.setDisplayId().
Added callbacks to DisplayManagerService.

Change-Id: Idd3f85f8ca1f1208962f1196efd6a3ab51c8c259
om/android/server/display/DisplayManagerService.java
om/android/server/wm/WindowStateAnimator.java
2a642a450a07dfdb94d897ef06d2348855dcc431 02-Aug-2012 Craig Mautner <cmautner@google.com> Merge "Refactor DisplayManagerService to be functional." into jb-mr1-dev
24713907fe4632d263aea82f7a35c8fb08918a09 26-Jul-2012 rich cannings <richc@google.com> Pass URLs to package verifiers

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

Bug: 6544677
Change-Id: If9ff6663ad7f3426b7aea2aceb1413b689788138
om/android/server/pm/PackageManagerService.java
4f67ba6ba4e861b287a3ff0323c107aa77f66264 02-Aug-2012 Craig Mautner <cmautner@google.com> Refactor DisplayManagerService to be functional.

Change-Id: Ieac1eca172be5dc5db45302d3afa26188acd4d6d
om/android/server/display/DisplayAdapter.java
om/android/server/display/DisplayManagerService.java
om/android/server/display/HeadlessDisplayAdapter.java
om/android/server/display/SurfaceFlingerDisplayAdapter.java
om/android/server/wm/DisplayContent.java
om/android/server/wm/WindowManagerService.java
437a0fbd57662e1d9d260da6f62ff83da2769a7e 02-Aug-2012 Craig Mautner <cmautner@google.com> Merge "Introduce multiple displays with DisplayContent." into jb-mr1-dev
59c009776dae5ccbdfb93d7151ff2065ca049dc3 30-Jul-2012 Craig Mautner <cmautner@google.com> Introduce multiple displays with DisplayContent.

Fix a couple of bugs that turned up.
Remove touch/focus from display. Add iterators for access.
Respond to comments. Remove TODOs, and some deviceId parameters.

Change-Id: Idcdb4f1979aa7b14634d450fd0333d6eff26994d
om/android/server/SystemServer.java
om/android/server/am/ActivityStack.java
om/android/server/am/ProcessList.java
om/android/server/input/InputWindowHandle.java
om/android/server/wm/DisplayContent.java
om/android/server/wm/DragState.java
om/android/server/wm/FakeWindowImpl.java
om/android/server/wm/InputMonitor.java
om/android/server/wm/WindowAnimator.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
om/android/server/wm/WindowStateAnimator.java
908aecc3a63c5520d5b11da14a9383f885b7d126 01-Aug-2012 Dianne Hackborn <hackbod@google.com> Start moving away from DisplayMetrics.DENSITY_DEVICE.

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

Change-Id: Ifdbfd6b7a5c59e6aa22e63b95b78d96af3d96848
om/android/server/display/DisplayDeviceInfo.java
om/android/server/display/DisplayManagerService.java
om/android/server/display/HeadlessDisplayAdapter.java
om/android/server/wm/WindowManagerService.java
3805e8ca0a5ba05afd8e04e19e440bbbe3469b81 01-Aug-2012 Dianne Hackborn <hackbod@google.com> Merge "Optimize memory use of IntentResolver." into jb-mr1-dev
40e5df95ff9468cec0624ca7fb14e51c13e4b047 01-Aug-2012 Dianne Hackborn <hackbod@google.com> Merge "Make AtomicFile a public API. It's about time!" into jb-mr1-dev
39606a007a5b1309dd000234f2b8cf156c49fd0f 01-Aug-2012 Dianne Hackborn <hackbod@google.com> Make AtomicFile a public API. It's about time!

Change-Id: Ib34e294747405b7ab709cb0bbb2d9a0cc80ce86a
om/android/server/AppWidgetServiceImpl.java
om/android/server/InputMethodManagerService.java
om/android/server/NotificationManagerService.java
om/android/server/am/CompatModePackages.java
om/android/server/am/UsageStatsService.java
om/android/server/input/PersistentDataStore.java
om/android/server/net/NetworkPolicyManagerService.java
om/android/server/net/NetworkStatsCollection.java
24d19fb6ab94cc5fd23f1c9a1d7916948a7fd571 01-Aug-2012 Jeff Sharkey <jsharkey@android.com> Revert "API to adjust network stats."
om/android/server/net/NetworkStatsService.java
16ef57791766b92b8e34de4f752db2f522f34c82 31-Jul-2012 Jeff Sharkey <jsharkey@android.com> Merge "API to adjust network stats. DO NOT MERGE." into jb-mr1-dev
e7ed1ce4c84fe92caafc97b1f9044c6647aa3f7f 28-Jul-2012 Jeff Sharkey <jsharkey@android.com> API to adjust network stats. DO NOT MERGE.

Enables system apps to correctly account network usage performed on
behalf of another application.

Bug: 6695246
Change-Id: I39e243afd57936b6b30157a6ca511a17b6c55c39
om/android/server/net/NetworkStatsService.java
e23ae144cc1b6487a7c0e7a33d3016431c81850c 31-Jul-2012 Kenny Root <kroot@google.com> am fa74f7e0: am bba948dc: Merge "Delay AccountManagerService initialization" into jb-dev

* commit 'fa74f7e04fcad1258a1b85515547dba0466086d8':
Delay AccountManagerService initialization
fa74f7e04fcad1258a1b85515547dba0466086d8 31-Jul-2012 Kenny Root <kroot@google.com> am bba948dc: Merge "Delay AccountManagerService initialization" into jb-dev

* commit 'bba948dc9e95baab9e6fb728927aada4a00d93de':
Delay AccountManagerService initialization
bba948dc9e95baab9e6fb728927aada4a00d93de 31-Jul-2012 Kenny Root <kroot@google.com> Merge "Delay AccountManagerService initialization" into jb-dev
5dcbe638ee063201fb476ef475d2beb347f02097 31-Jul-2012 Nick Pelly <npelly@google.com> am 1af5ac1b: Merge "DO NOT MERGE. Add package-name-prefix blacklist for location updates." into jb-dev

* commit '1af5ac1b6801c4da2ef689449fd1fd2eba1ff48e':
DO NOT MERGE. Add package-name-prefix blacklist for location updates.
9ec6cdde9f8f22356dcc9f811d99ebf813194721 31-May-2012 Dianne Hackborn <hackbod@google.com> Optimize memory use of IntentResolver.

Use raw arrays instead of ArrayList for data structures.

Temporarily includes a copy of the old intent resolver for
validating the new implementation.

Change-Id: I988925669b6686ac73b779be6cd6fe3a9fd86660
om/android/server/IntentResolver.java
om/android/server/IntentResolverOld.java
om/android/server/am/ActivityManagerService.java
om/android/server/pm/PackageManagerService.java
om/android/server/pm/Settings.java
26ff6626fc4ee0ae46f01ad309b366921da589fe 30-Jul-2012 Kenny Root <kroot@google.com> Delay AccountManagerService initialization

Since applications can have Account providers, they need to be delayed
until after PackageManagerService says everything is mounted.
Otherwise the accounts associated with that provider will be removed
immediately when startup happens.

Bug: 6820670
Change-Id: Iba81765260421649f706624d0605a40ebc1347b1
om/android/server/SystemServer.java
48c5eb018b1731bd47caccd43cda2cd36ebc271f 30-Jul-2012 Nick Pelly <npelly@google.com> DO NOT MERGE. Add package-name-prefix blacklist for location updates.

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

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

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

Change-Id: I4ea2ad56fa6bd75d32151bc250ac25c26a5777c4
om/android/server/LocationManagerService.java
fa14d824d235c33b137a429c3eb6818f273407ab 28-Jul-2012 Jeff Brown <jeffbrown@google.com> Merge "Move and rename user activity event type constants." into jb-mr1-dev
b696de5c10ebcc7bf42d8487fc0e56e0e937754d 28-Jul-2012 Jeff Brown <jeffbrown@google.com> Move and rename user activity event type constants.

Change-Id: Ie565808796773b6896e71ddfac6aaaf8031de846
om/android/server/power/PowerManagerService.java
om/android/server/wm/WindowManagerService.java
ab88f9864e67aca97df8dcca8e99c17854a54510 28-Jul-2012 Jeff Sharkey <jsharkey@android.com> Merge "Split NST handler events away from CS internals." into jb-mr1-dev
6881a10557acf3b0270de54799d6f19437acf584 27-Jul-2012 Craig Mautner <cmautner@google.com> Small step towards supporting multiple displays

Change-Id: I353449c2b464394988c7e0203656b5851a0c9127
om/android/server/wm/BlackFrame.java
om/android/server/wm/DimAnimator.java
om/android/server/wm/DimSurface.java
om/android/server/wm/ScreenRotationAnimation.java
om/android/server/wm/Session.java
om/android/server/wm/StrictModeFlash.java
om/android/server/wm/Watermark.java
om/android/server/wm/WindowAnimator.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
om/android/server/wm/WindowStateAnimator.java
4c628eba480d271d5547af5d4fafc01e0e53a5eb 23-Jul-2012 Jeff Sharkey <jsharkey@android.com> Split NST handler events away from CS internals.

Instead of sharing event space, use a different handler backed by
the same looper.

Change-Id: I11f1e4701c341665770ca640f3cba0c295bb7561
om/android/server/ConnectivityService.java
10d940d99ff3814cbf4a1b1759a9377b88752f5f 26-Jul-2012 Irfan Sheriff <isheriff@google.com> Fix permission issues for apps

Add a work around and create a bug for proper fix

Bug: 6882233
Change-Id: I342ef7ecade8b9e2c7d16e82ea9031214b1b4462
om/android/server/WifiService.java
fa25bf5382467b1018bd9af7f1cb30a23d7d59f7 24-Jul-2012 Jeff Brown <jeffbrown@google.com> Add display manager skeleton.

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

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

Change-Id: I7e0761f83f033be6c06fd1041280c21500bcabc0
om/android/server/SystemServer.java
om/android/server/display/DisplayAdapter.java
om/android/server/display/DisplayDevice.java
om/android/server/display/DisplayDeviceInfo.java
om/android/server/display/DisplayManagerService.java
om/android/server/display/HeadlessDisplayAdapter.java
om/android/server/display/SurfaceFlingerDisplayAdapter.java
om/android/server/power/PowerManagerService.java
om/android/server/wm/DragState.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
om/android/server/wm/WindowStateAnimator.java
ffed02b95adc552a402c646260b9f4dbc3fcf553 26-Jul-2012 Jeff Brown <jeffbrown@google.com> Merge "Stop using raw display size except in window manager."
b208a24cf521401912cfce16fce550a995cf1250 25-Jul-2012 Wink Saville <wink@google.com> Revise and update CellInfo API's

Change-Id: I25a46076a244f50edb9da65816b3717e00820b34
om/android/server/TelephonyRegistry.java
a8b9defade5b937d4ad64f9aff4bca792298f43c 23-Jul-2012 Jeff Brown <jeffbrown@google.com> Stop using raw display size except in window manager.

We don't actually need the raw size in these places.
The logical size is good enough.

Starting to move dependencies on surface flinger
and window manager out of the Display class.

Change-Id: I2065bee8e5bf7f42c5a452dd1e8479e40ebb0d37
om/android/server/AppWidgetServiceImpl.java
554cb0c290406f5bba34908489db5382a69d0a9a 05-Jul-2012 rpcraig <rpcraig@tycho.ncsc.mil> Introduce a restorecon JNI binding.

Label the vmdl.*\.tmp files and the final .apk file differently.
Modify the WallpaperManagerService to restorecon the wallpaper file.

Signed-off-by: rpcraig <rpcraig@tycho.ncsc.mil>

Change-Id: Idfc056e9ec0508d7e11100626a7114f341f1af70
om/android/server/WallpaperManagerService.java
om/android/server/pm/PackageManagerService.java
85d28a00043e5985b11f517031d7b2317ac19e10 24-Jul-2012 Fabrice Di Meglio <fdimeglio@google.com> Merge "Replace left/right with start/end for Gravity / LayoutParams / Padding"
2eeeec248a38ff33999c83f4b8d5bab7d50e79d2 18-Jul-2012 Nick Pelly <npelly@google.com> Improve Location object.

Add getElapsedRealtimeNano():

Currently Location just has getTime() and setTime() based on UTC time.
This is entirely unreliable since it is not guaranteed monotonic.
There is a lot of code that compares fix age based on deltas -
and it is all broken in the case of a system clock change. System
clock can change when switching cellular networks (and in some
cases when switching towers).

Document the meaning of getAccuracy():
It is the horizontal, 95% confidence radius.

Make some fields mandatory if they are reported by a LocationProvider:

All Locations returned by a LocationProvider must include at the
minimum a lat, long, timestamps, and accuracy. This is necessary
to perform fused location. There are no public API's for applications
to feed locations into a location provider so this should not cause
any breakage.

If a LocationProvider does not fill in enough fields on a Location
object then it is dropped, and logged.

Bug: 4305998
Change-Id: I7df77125d8a64e174d7bc8c2708661b4f33461ea
om/android/server/LocationManagerService.java
om/android/server/UiModeManagerService.java
om/android/server/location/GpsLocationProvider.java
om/android/server/location/LocationBasedCountryDetector.java
aac0d4ed026d1cfbcf3fa81c6e4eb96f4347ca17 20-Jul-2012 Fabrice Di Meglio <fdimeglio@google.com> Replace left/right with start/end for Gravity / LayoutParams / Padding

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

Change-Id: Id9af5375fb9b0edeae5232c77e52ecd497bd2e67
om/android/server/am/ActivityManagerService.java
om/android/server/wm/WindowManagerService.java
db3c8678e5cbdfec011afaf25bde2091152c30ad 20-Jun-2012 Haoyu Bai <bhy@google.com> Network data activity change intent for network interfaces.

The activity notification is received from netd, an intent
DATA_ACTIVITY_CHANGE is then raised for other part of the system to
consume.

Change-Id: Idfcc4763c51c5b314c57f546c12557082f06bebf
om/android/server/CommonTimeManagementService.java
om/android/server/ConnectivityService.java
om/android/server/NetworkManagementService.java
om/android/server/ThrottleService.java
om/android/server/connectivity/Tethering.java
om/android/server/connectivity/Vpn.java
om/android/server/net/NetworkAlertObserver.java
6b7358d9511df7e519bb417fbed6017c06a33d45 18-Jul-2012 Haoyu Bai <bhy@google.com> Netd event code for interface class acitivity.

Change-Id: I83d5ca9ab854cb30ce6d9c06a977ca295f0cdbfd
om/android/server/NetworkManagementService.java
33034b13cae1429d526722374bd39be3f9605ae4 10-Jul-2012 Wink Saville <wink@google.com> Create telephony-common and mms-common - DO NOT MERGE

These have been created to reduce the size and complexity
of frameworks/base.

mms-common was created by moving all of
frameworks/base/core/java/com/google/android/mms
to:
frameworks/opt/mms

telephony-common was created by moving some of
frameworks/base/telephony
to:
frameworks/opt/telephony

Change-Id: If6cb3c6ff952767fc10210f923dc0e4b343cd4ad
ndroid.mk
om/android/server/ConnectivityService.java
om/android/server/TelephonyRegistry.java
om/android/server/connectivity/Tethering.java
om/android/server/location/GpsLocationProvider.java
cdce0b9897183f8aef08fe200feb4027fac56290 13-Jul-2012 Matthew Xie <mattx@google.com> Handle airplane mode messages in BroadcastReceiver, safe locking, etc

Handle airplane mode messages in BroadcastReceiver
Safe-lock the access of mBluetooth as a indication of binding state
break indent

Change-Id: Ib24ba0b1f5102c80e55e44b40a8dbf88bc2fad2e
om/android/server/BluetoothManagerService.java
fe19f1234e460a22e43a53665db1c48613844fa6 13-Jul-2012 Matthew Xie <mattx@google.com> Add TODO comments to remove start/stopReverseTethering

Change start/stopReverseTethering permission from CHANGE_NETWORK_STATE
to CONNECTIVITY_INTERNAL

Change-Id: Iac76d5af6418e6a3e2d2f77bf713466981285e1a
om/android/server/NetworkManagementService.java
6fde3098074ab2551867d1cd919958383b15725f 12-Jul-2012 Matthew Xie <mattx@google.com> Minor changes. Change some instance variables to be final.

Variable name changes, better code reability.

Change-Id: I9f0e9c8a57d4bacf0723be1f91d621c592860683
om/android/server/BluetoothManagerService.java
a8c6df0d3a6b929cac3e59abde8309e8a45ea78a 11-Jul-2012 Fred <fredc@broadcom.com> Removed startService() call from BluetoothManagerService.

BT enable()/disable() are handled by using the binder interface

Change-Id: I0bb8d4984129706e424320241ca3ea7e12caf0d3

Conflicts:

core/java/android/bluetooth/IBluetooth.aidl
om/android/server/BluetoothManagerService.java
9631314e3d28b6e96ef0b7cc777f1a7747a0ac39 30-Jun-2012 Matthew Xie <mattx@google.com> Fix merge error, put in tmp workaround for input manager.

Fix merge error, missing enableNoAutoConnect api.
Remove bluetoothF from inputManageF.systemReady call as tmp workaround.
Recover shutdownRadios(MAX_RADIO_WAIT_TIME) call in ShutdownThread

Change-Id: Ice2b5c54267755bdbf56c742feabbb8709b92570
om/android/server/SystemServer.java
om/android/server/input/InputManagerService.java
om/android/server/power/ShutdownThread.java
bf072a712f584ae1c01022835b0de21c40513d06 10-May-2012 fredc <fredc@broadcom.com> Moved BluetoothAdapter.ACTION_STATE_CHANGED broadcast from AdapterService to BluetoothManagerService

Change-Id: I88e5f3fe050cf11eae9c5cf1b7c393a178b8f9b1
om/android/server/BluetoothManagerService.java
c2f5cc50f70bbb82729659f72e1491de137f7fe2 02-May-2012 zzy <zhenye@broadcom.com> disable the sync addr flag
om/android/server/BluetoothManagerService.java
a732ffd8e07a024fb15832990546d38d1ddf384e 02-May-2012 Andre Eisenbach <andre@broadcom.com> Re-enable Bluetooth after a reboot, even if airplane mode is enabled.

This is to resolve Buganizer issue 6325950 and make the behaviour of
Blueooth and Wifi consistant.

Change-Id: Idd6cfa79136f7847e9e670d6d2aa0bf613b0381f
om/android/server/BluetoothManagerService.java
d6883533e4ac3f73d2fde1db9a1dddf06dac6709 26-Apr-2012 fredc <fredc@broadcom.com> Fixed socket not closing on BT off. Used RemoteCallbackList to monitor binder deaths in BluetoothManagerService.

Change-Id: I524964bd2836d8c5a4bae095b93ac9481337941d
om/android/server/BluetoothManagerService.java
116d1d4696ac8e300c83dd8a95e20e67717ef520 20-Apr-2012 fredc <fredc@broadcom.com> Fixed issue with getting Bluetooth adapter's name and airplane mode

Change-Id: I18b632223574aa41b09ba30de8e35417fad86cbe
om/android/server/BluetoothManagerService.java
649fe497cea2f19e937f84218d1080bdcefe47f2 19-Apr-2012 fredc <fredc@broadcom.com> Fixed BT on/off issues and added airplane mode handling

Change-Id: If39df19b99a3f45ebe82e89205d8bb0ff036e2a2
om/android/server/BluetoothManagerService.java
f24588615efa6c781ad963f1a5bbdf47359e1b53 17-Apr-2012 fredc <fredc@broadcom.com> Fixed issue with Bluetooth not turning on if enabled called twice in a row or disabled called twice in a row

Change-Id: I26cac2fa347934e0740578b811aa5a6767cf4862
om/android/server/BluetoothManagerService.java
0f42037eb7b5118015c2caca635538324ccf0ccf 12-Apr-2012 fredc <fredc@broadcom.com> Non persistent adapter service

Change-Id: Ib13d5c77416e58161df0e04d7a15ec0dddbde8b5

Conflicts:

core/java/android/bluetooth/BluetoothInputDevice.java

Conflicts:

core/java/com/android/internal/app/ShutdownThread.java
services/java/com/android/server/SystemServer.java

Conflicts:

services/java/com/android/server/SystemServer.java
services/java/com/android/server/pm/ShutdownThread.java
om/android/server/BluetoothManagerService.java
om/android/server/NetworkManagementService.java
om/android/server/SystemServer.java
om/android/server/am/ActivityManagerService.java
om/android/server/power/ShutdownThread.java
e21a4ac09d2473becaea43a73d19e9e836e7732a 07-Mar-2012 Jaikumar Ganesh <jaikumar@google.com> Add a new version of the disable API.

This allows for the setting to be persisted or not.
Also turn on Bluetooth in System Server if needed.
It won't work currently because the service wouldn't have
started.

Change-Id: I15fa2bff93aa32134c1b565fcbe90ba68614b6a1
om/android/server/SystemServer.java
om/android/server/power/ShutdownThread.java
3a6794cad739c2b6fcc9b3fc6c4461f88728af8a 17-Jul-2012 Matthew Xie <mattx@google.com> Merge "Changes to Bluetooth Service structure."
a0a69897dfa3f0ede5558326172fb676e5dbe359 17-Jul-2012 Matthew Xie <mattx@google.com> Merge "Remove BT references from System Server."
a8ae2ee371decb9504c8b449de45a253eae7d5c4 17-Jul-2012 Matthew Xie <mattx@google.com> Merge "Dock: Temporary removal of function to get BT address"
c69238ebc8d011ce225c9540bcf4e79bd3fa8eb0 17-Jul-2012 Jeff Brown <jeffbrown@google.com> Merge "Remove dithering support."
3cc321ecf505d87850740ad3c63849e6793a8ef6 17-Jul-2012 Jeff Brown <jeffbrown@google.com> Remove dithering support.

The dithering flag is no longer implemented in Surface Flinger
so this is all dead code.

Change-Id: I74c0e452923207e5b7cfe0eeca9457e5cb990947
om/android/server/wm/WindowStateAnimator.java
f422a5669457c152e36e889c820d64b37e005167 17-Jul-2012 Jeff Brown <jeffbrown@google.com> Merge "Remove freezeDisplay(), which is no-op."
a46cdc04fa2561de158d3e3beb505e4ba200b315 17-Jul-2012 Adam Cohen <adamcohen@google.com> am c80f72f7: Merge "Fixing issue where you couldn\'t set null RemoteViews for a widget" into jb-dev

* commit 'c80f72f75e8d5b5fa85b694b64510fad74ea345d':
Fixing issue where you couldn't set null RemoteViews for a widget
c80f72f75e8d5b5fa85b694b64510fad74ea345d 17-Jul-2012 Adam Cohen <adamcohen@google.com> Merge "Fixing issue where you couldn't set null RemoteViews for a widget" into jb-dev
55e395ab33f24b009d87a4d45a5566394260fff7 16-Jul-2012 Jeff Brown <jeffbrown@google.com> Remove freezeDisplay(), which is no-op.

Change-Id: I981ee49e6e2d41a09feaee4b384392e83f7faf3d
om/android/server/wm/WindowManagerService.java
7d4252171c8f58e18359e476c9768fea39778489 16-Jul-2012 Nick Pelly <npelly@google.com> Merge "Improve geofencing: throttle location updates with distance to fence."
e5827466217b0d44795b23b7c2a09bd08ddc1065 16-Jul-2012 Adam Cohen <adamcohen@google.com> Fixing issue where you couldn't set null RemoteViews for a widget

-> As noted here: http://code.google.com/p/android/issues/detail?id=35014

Change-Id: Id5d1c47b6961d4b448453d8b16700801c0137f2b
om/android/server/AppWidgetServiceImpl.java
e0fd693c6098f59004f9e96ad75c058e26c337b0 11-Jul-2012 Nick Pelly <npelly@google.com> Improve geofencing: throttle location updates with distance to fence.

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

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

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

Change-Id: Ie6e23d2cb2b931eba5d2a2fc759543bb96e2f7d0
om/android/server/LocationManagerService.java
om/android/server/location/Geofence.java
om/android/server/location/GeofenceManager.java
f08a8b78b61bc7f1a6a71c70da25ec3ef41b8cff 16-Jul-2012 Adam Cohen <adamcohen@google.com> Fixing issue where you couldn't set null RemoteViews for a widget

-> As noted here: http://code.google.com/p/android/issues/detail?id=35014

Change-Id: Id5d1c47b6961d4b448453d8b16700801c0137f2b
om/android/server/AppWidgetServiceImpl.java
c9c9a48e7bafae63cb35a9aa69255e80aba83988 16-Jul-2012 Svetoslav Ganov <svetoslavganov@google.com> Removing a workaround for incorrect window position on window move.

1. The window manager was not notifying a window when the latter
has been moved. This was causing incorrect coordinates of the
nodes reported to accessibility services. To workaround that
we have carried the correct window location when making a
call from the accessibility layer into a window. Now the
window manager notifies the window when it is moved and the
workaround is no longer needed. This change takes it out.

2. The left and right in the attach info were not updated properly
after a report that the window has moved.

3. The accessibility manager service was calling directly methods
on the window manager service without going through the interface
of the latter. This leads to unnecessary coupling and in the
long rung increases system complexity and reduces maintability.

bug:6623031

Change-Id: Iacb734b1bf337a47fad02c827ece45bb2f53a79d
om/android/server/accessibility/AccessibilityInputFilter.java
om/android/server/accessibility/AccessibilityManagerService.java
om/android/server/accessibility/TouchExplorer.java
om/android/server/input/InputFilter.java
om/android/server/input/InputManagerService.java
om/android/server/wm/WindowManagerService.java
1abb1cb3a8fe17f7866150604c2fd73751da787e 26-Jan-2012 Jaikumar Ganesh <jaikumar@google.com> Changes to Bluetooth Service structure.

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

Changes to update to the new disable API.

Change-Id: If89dba17e6e6c6daa53c37684221763a2da076e9

Conflicts:

services/java/com/android/server/pm/PackageManagerService.java
om/android/server/pm/PackageManagerService.java
om/android/server/power/ShutdownThread.java
34196187365687d3f144a6de5fef811b52545ac0 18-Jan-2012 Jaikumar Ganesh <jaikumar@google.com> Remove BT references from System Server.

Change-Id: Icfdb3e140aa35174a8b70da57472a1bf2bd0143b

Conflicts:

services/java/com/android/server/SystemServer.java
om/android/server/SystemServer.java
9773ebb7783ecd29957b43acbe5b26ba459a7458 18-Jan-2012 Jaikumar Ganesh <jaikumar@google.com> Dock: Temporary removal of function to get BT address

Change-Id: I0d1033654e2708f864649f2b2568be7c9da014ed
om/android/server/DockObserver.java
99e34591c63ef534ac8042e4978dd54f2e0b65f9 14-Jul-2012 Amith Yamasani <yamasani@google.com> Does not compile!!!

Revert "Removing a workaround for incorrect window position on window move."

This reverts commit 939f2e43a80f9a6df16b7e18eba5cfffdbf032da
om/android/server/accessibility/AccessibilityInputFilter.java
om/android/server/accessibility/AccessibilityManagerService.java
om/android/server/accessibility/TouchExplorer.java
om/android/server/input/InputFilter.java
om/android/server/input/InputManagerService.java
om/android/server/wm/WindowManagerService.java
939f2e43a80f9a6df16b7e18eba5cfffdbf032da 11-Jul-2012 Svetoslav Ganov <svetoslavganov@google.com> Removing a workaround for incorrect window position on window move.

1. The window manager was not notifying a window when the latter
has been moved. This was causing incorrect coordinates of the
nodes reported to accessibility services. To workaround that
we have carried the correct window location when making a
call from the accessibility layer into a window. Now the
window manager notifies the window when it is moved and the
workaround is no longer needed. This change takes it out.

2. The left and right in the attach info were not updated properly
after a report that the window has moved.

3. The accessibility manager service was calling directly methods
on the window manager service without going through the interface
of the latter. This leads to unnecessary coupling and in the
long rung increases system complexity and reduces maintability.

bug:6623031

Change-Id: Ibbf98afd29439783ba331a7a0cdce55d7f138922
om/android/server/accessibility/AccessibilityInputFilter.java
om/android/server/accessibility/AccessibilityManagerService.java
om/android/server/accessibility/TouchExplorer.java
om/android/server/input/InputFilter.java
om/android/server/input/InputManagerService.java
om/android/server/wm/WindowManagerService.java
052db7c25e859be174ab0976e6a31d0604df85a9 13-Jul-2012 Craig Mautner <cmautner@google.com> Merge "Further isolate layout side from animation side."
322e40315609acd5a608440bc469d873e09559ca 13-Jul-2012 Craig Mautner <cmautner@google.com> Further isolate layout side from animation side.

- Use local AppWindowAnimators in WindowAnimator rather than
using shared WindowManagerService objects.
- Use local WindowStateAnimators in AppWindowAnimator rather
than use AppToken's WindowState objects.
- Remove redundant WindowManagerService parameter passed to
AppWindowAnimator ctor.
- Keep from copying parameters from performLayout if the
parameters haven't changed since the last copy.
- Link WindowStateAnimator to AppWindowAnimator to keep
from going through WindowStateAnimator.mWin,
WindowState.mAppToken and AppWindowToken.mAppAnimator.
- Converted attached WindowState in WindowStateAnimator to
WindowStateAnimator to eliminate multiple conversions.

Change-Id: I5e35af88d8fdc1a7454984eaea91a1bc4f926978
om/android/server/wm/AppWindowAnimator.java
om/android/server/wm/AppWindowToken.java
om/android/server/wm/WindowAnimator.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
om/android/server/wm/WindowStateAnimator.java
af665efcbccc621fdeb29422bb422f04adad6972 13-Jul-2012 Dianne Hackborn <hackbod@google.com> Merge "Improve cleanup of file caches."
197a0c82a1fbf337ec0a85d36b6b89c3d6e8a0ac 12-Jul-2012 Dianne Hackborn <hackbod@google.com> Improve cleanup of file caches.

This rewrites installd's code for deleting cache files to be better:

- Isn't really stupid about just deleting directories in the order
they are found on the filesytem; now collects all cache files and
sorts them by mod time to determine which to delete.
- Also deletes cache files in /data/media and for all users.

This also tweaks DeviceStorageMonitor to be a little smarter about
deciding when to flush cache files, having upper and lower limits
that it allows memory to get down to and then flash files to reach
the higher free storage limit. This should reduce the amount that
we perform flushing when starting to reach the storage limit.

Finally add a new pm command to force a cache flush.

Change-Id: I02229038e1ad553d1168393e5cb6d5025933271d
om/android/server/DeviceStorageMonitorService.java
f1ca09b9902d007b7ba42f7630f80e18f2ca9006 12-Jul-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Gestures don't work when turning on Explore by Touch pragmatically."
a43ef3d1c553007b3fa158fe1d3ec4ddb99a71af 12-Jul-2012 Svetoslav Ganov <svetoslavganov@google.com> Gestures don't work when turning on Explore by Touch pragmatically.

1. There was a misspelled duplicate member in the accessibility service
class which was causing inconsistent behavior because one field was
updated and another checked.

2. When the set of services that can put the device in explore by touch
mode changes we were disconnecting and reconnecting all services
and this is not correct. Now only the state of explore by touch is
updated appropriately.

bug:6798860

Change-Id: Ib3c119cef8e71c3458d56e4ce6fbde2c2f750dcd
om/android/server/accessibility/AccessibilityManagerService.java
5362f17ff5e8e06601b172bd86c26027ced9780c 12-Jul-2012 Wink Saville <wink@google.com> Merge commit '1b003ef0' into mit

* commit '1b003ef0':
Create telephony-common and mms-common

Change-Id: Ie8876541dbe7f4c933cf7d69910dd204538bc975
a639b311e93ad14d9ee5c2b2c215ed2d86c32d2a 10-Jul-2012 Wink Saville <wink@google.com> Create telephony-common and mms-common

These have been created to reduce the size and complexity
of frameworks/base.

mms-common was created by moving all of
frameworks/base/core/java/com/google/android/mms
to:
frameworks/opt/mms

telephony-common was created by moving some of
frameworks/base/telephony
to:
frameworks/opt/telephony

Change-Id: If6cb3c6ff952767fc10210f923dc0e4b343cd4ad
ndroid.mk
om/android/server/ConnectivityService.java
om/android/server/TelephonyRegistry.java
om/android/server/connectivity/Tethering.java
om/android/server/location/GpsLocationProvider.java
64ab8fcd6f2011c0d185f2973b9615f155f6d239 12-Jul-2012 Craig Mautner <cmautner@google.com> am dcddea95: Merge "Handle keyguard visibility states separately. DO NOT MERGE" into jb-dev

* commit 'dcddea95301641e3dc9692ed7d70127085458a24':
Handle keyguard visibility states separately. DO NOT MERGE
f333f5f67a6e2e943123797d8752f946c9a4b399 11-Jul-2012 Craig Mautner <cmautner@google.com> Handle keyguard visibility states separately. DO NOT MERGE

Previous to this change the forceHiding variable was a boolean. This
change recognizes the different configurations of the keyguard by
defining separate states for forceHiding and testing for window
visibility differently in each state.

Fixes bug 6786114.

Change-Id: I3460c45ea6da772a4ff76bb016de7aa4b051a673
om/android/server/wm/WindowAnimator.java
fbf885b652272013f44da71e9f77923333bf62eb 10-Jul-2012 Craig Mautner <cmautner@google.com> Merge "Notify client side of window movement."
4bf18a7c97c0f312ccf12bcd952b420af0c95e5f 10-Jul-2012 Craig Mautner <cmautner@google.com> Handle keyguard visibility states separately.

Previous to this change the forceHiding variable was a boolean. This
change recognizes the different configurations of the keyguard by
defining separate states for forceHiding and testing for window
visibility differently in each state.

Fixes bug 6786114.

Change-Id: I078e0df7865ddafe498ee46e02110c3a017386d0
om/android/server/wm/WindowAnimator.java
4461f6028df664009c707b3dc1815b789171f4dc 10-Jul-2012 Winson Chung <winsonc@google.com> Merge "Fixing index-out-of-bounds in AppWidgetService. (Bug 6717459)"
918b53bc531f5bd1ea102e8b827d693bd4d0555b 09-Jul-2012 Craig Mautner <cmautner@google.com> Isolate layout and animation wallpaper objects.

Provide separate copies of mWallpaperTarget, mWallpaperTokens, and
mLower/UpperWallpaperTarget in the layout and animation sides of
Window Manager.

Simplify constructors of WindowAnimator and WindowStateAnimator.

Change-Id: I7e35794a432c25c4194c046e9e27150d1c905403
om/android/server/wm/AppWindowAnimator.java
om/android/server/wm/WindowAnimator.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
om/android/server/wm/WindowStateAnimator.java
2639da500e3d53ea3a17d888b1c0001d043c6b98 09-Jul-2012 Craig Mautner <cmautner@google.com> Fix hang on rotation.

A recent optimization to only send updates to WindowManagerService
when there is something to report backfired. One bit indicating
change had negative polarity so the update should also have been
sent when this bit was cleared. This change alters the bit to
positive polarity.

Fixes bug 6780496.

Change-Id: I3336812a60534ebffc9e94b2fb1d0df4d6969bca
om/android/server/wm/WindowAnimator.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowStateAnimator.java
12670b5fb401733d14684b8d02259462eb640dc7 04-Jul-2012 Craig Mautner <cmautner@google.com> Make setting wallpaper offset immediate.

Wallpaper offset was passing through H Handler before being set.
It isn't part of animation and wasn't going through animation anyways.
This change goes back to original implementation of setting
wallpaper offset directly from call.

Change-Id: Ied88e2dc042af814b5ba91c7efb839bd82682567
om/android/server/wm/WindowManagerService.java
a76fdb7713d900763cff090557a10d3942b9b3ca 04-Jul-2012 Craig Mautner <cmautner@google.com> Use new object to sync DimAnimator.

The controls for the DimAnimator were going through the H Handler
to sync with the Animator. We are switching to using the
LayoutToAnimator object for passing data from layout to animator.

Change-Id: Ib6d0afabba781c88bcc1c525e3ae424cf19ac1ad
om/android/server/wm/WindowAnimator.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowStateAnimator.java
711f90a7c1e99a435fa8f5335f13772f0b41270b 04-Jul-2012 Craig Mautner <cmautner@google.com> Swap source and destination transfer objects.

It will be better to have the object that moves layout parameters to
animation on the layout side, and the object that moves animation
parameters back to layout on the animation side. That way we can
do partial filling of these objects without calling across. We
may never do partial draining of these objects.

Change-Id: I88826fa97350f96e309beef386885f55a9a73305
om/android/server/wm/WindowAnimator.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
om/android/server/wm/WindowStateAnimator.java
078ea0a6444bfb5c7ab1678b1c8898e590828731 25-Jun-2012 Craig Mautner <cmautner@google.com> Step 2 in consolidating wallpaper animation.

Separate updateWindowsAndWallpaperLocked into two methods,
updateWindowsLocked and updateWallpaperLocked. Eliminates mForceHiding.

Change-Id: I3958cfae09283aaa7f1781d1b54ef224d8e80f3f
om/android/server/wm/WindowAnimator.java
6fbda63e68513ece4409dac845588711ab25c39d 03-Jul-2012 Craig Mautner <cmautner@google.com> Merge CL 202423/3 App launching has random pauses.

Change-Id: Iba5616182c02e51f4d9063d0a01b30b9f558549a
om/android/server/wm/AppWindowAnimator.java
om/android/server/wm/AppWindowToken.java
om/android/server/wm/WindowAnimator.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowStateAnimator.java
c751e37c4fea4aecb7cc8859d8ac9a6e2a8ce93f 03-Jul-2012 Craig Mautner <cmautner@google.com> am cc935071: Merge "DO NOT MERGE Set force hiding differently" into jb-dev

* commit 'cc93507124855591be40af55a94deeb33d74e719':
DO NOT MERGE Set force hiding differently
cc93507124855591be40af55a94deeb33d74e719 03-Jul-2012 Craig Mautner <cmautner@google.com> Merge "DO NOT MERGE Set force hiding differently" into jb-dev
7b04c2cc816ab53bd303ca97dcbbb8c116047872 03-Jul-2012 Craig Mautner <cmautner@google.com> am 80059d6c: am 00b9e899: Merge "Clear startingDisplayed flag when removing window." into jb-dev

* commit '80059d6c1b60e9920b7ae133808c989b4d3fa8fe':
Clear startingDisplayed flag when removing window.
80059d6c1b60e9920b7ae133808c989b4d3fa8fe 03-Jul-2012 Craig Mautner <cmautner@google.com> am 00b9e899: Merge "Clear startingDisplayed flag when removing window." into jb-dev

* commit '00b9e899320488ff5623d8c80258ed7dfefc7b53':
Clear startingDisplayed flag when removing window.
38b2478f63004c493d7f7f1ac0bf07f51d6f0757 03-Jul-2012 Craig Mautner <cmautner@google.com> Clear startingDisplayed flag when removing window.

The flag indicating that the Starting window is displayed was not
being cleared when the Starting window was removed. That caused the
goodToGo indication to falsely indicate that all windows were drawn
when in fact the destination activity had not yet been drawn. This
caused the animation to begin when it was still black behind the old
animation.

This fixes bug 6764727.

Change-Id: Iacef73b0335b9bde2cdc8d0b072034222cd728e8
om/android/server/wm/WindowManagerService.java
503d6a44a8193d8111eba393651dcb522cc1cf87 25-Jun-2012 Craig Mautner <cmautner@google.com> DO NOT MERGE Set force hiding differently

Only force hide windows when the keyguard is animating in.

Fixes bug 6721572.

Change-Id: Iad7b8b811bcf0840726cbf6c6f279dabd08a3aba

Conflicts:

services/java/com/android/server/wm/WindowAnimator.java
om/android/server/wm/WindowAnimator.java
095c58b73ac112cc7e00771430765434893d8bc5 29-May-2012 Wink Saville <wink@google.com> Enhance StateMachine Quitting and logging support. DO NOT MERGE

Make StateMachine#quit non-conditional and remove the need to
process the SM_QUIT_CMD it is now private.

Rename halting to onHalting.

Add onQuitting

Change the message specific logging to be more generic and change
the xxxProcessedMessagesYyy methods to xxxLogRecXyy names. Also add
addLogRec(String) and addLogRec(String, State) as the generic logging
methods.

bug: 5678189
Change-Id: I22f66d11828bfd70498db625fe1be728b90478b7

Conflicts:

services/java/com/android/server/NsdService.java
om/android/server/NsdService.java
5702d4dfb5b81491f873a3617f8d8fc8dc5279e6 30-Jun-2012 Craig Mautner <cmautner@google.com> Notify client side of window movement.

Add a one way method to notify Views that the window has moved
on the screen. Fixes issues arising from the IME popping up and
translating the window that uses it. Accessibility was left unaware
of these movements and was drawing the box around the wrong widgets.
Similarly PopupWindow used getLocationOnScreen to determine how
much screen real estate was above and below the anchor point to
determine where to put an anchored window.

Fixes bug 6623031.

Change-Id: I4731a94d5424c1ec77bf1729fba8fc9ea34cae46
om/android/server/wm/WindowManagerService.java
c32e190ea6da8c9acd8dc1a29a6e8794ecf7d857 30-Jun-2012 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of a9c38461 to master

Change-Id: Ie7044c4f9f15384c3edd328fa8e2932c731d9d5c
a9c3846194b69f1bfa73066be670c9d77f6dd0d7 30-Jun-2012 Dianne Hackborn <hackbod@google.com> am bfb752f8: Merge "Fix issue #6761130: Clearing app data in settings does not clear app\'s USB storage" into jb-dev

* commit 'bfb752f8f0e4d73dc251c19d2ef79649fbbe4fd1':
Fix issue #6761130: Clearing app data in settings does not clear app's USB storage
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
om/android/server/pm/PackageManagerService.java
30729fb9d7dda76e8c96fcaa6af0d5cb838538a2 29-Jun-2012 Dianne Hackborn <hackbod@google.com> am c7b2778c: am cfb0f409: Merge "Fix issue #6745498: Cannot view consecutive event details from agenda view" into jb-dev

* commit 'c7b2778c2dc7934665c56067b65d83d76fbe31e5':
Fix issue #6745498: Cannot view consecutive event details from agenda view
c7b2778c2dc7934665c56067b65d83d76fbe31e5 29-Jun-2012 Dianne Hackborn <hackbod@google.com> am cfb0f409: Merge "Fix issue #6745498: Cannot view consecutive event details from agenda view" into jb-dev

* commit 'cfb0f40903cf2180ce0947cdd965e2f5b90b48bb':
Fix issue #6745498: Cannot view consecutive event details from agenda view
cfb0f40903cf2180ce0947cdd965e2f5b90b48bb 29-Jun-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #6745498: Cannot view consecutive event details from agenda view" into jb-dev
45a25bcfc9af74bc4275cc710347304e581f3c51 28-Jun-2012 Dianne Hackborn <hackbod@google.com> Fix issue #6745498: Cannot view consecutive event details from agenda view

- There was a long-standing bug when using FLAG_ACTIVITY_REORDER_TO_FRONT
where we could find and use an activity that is currently finishing.
- There was a recently introduced bug where activities being destroyed
would not be removed from the history stack at the time they are done
being destroyed, allowing the above bug to be exposed.
- Removing a task would not kill any processes associated with the app
that had a different name from the app itself.

Change-Id: I4401ab6d348a69e1ac4fb8f719d2c69d5a78e567
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityStack.java
2c59c5b6b2ee98322a310fd380eba61be6cb4493 28-Jun-2012 Craig Mautner <cmautner@google.com> am 2dca20e1: am 4fa46485: Merge "Update dumpsys power output." into jb-dev

* commit '2dca20e194778e6ce54709a484442df77f8d11be':
Update dumpsys power output.
2dca20e194778e6ce54709a484442df77f8d11be 28-Jun-2012 Craig Mautner <cmautner@google.com> am 4fa46485: Merge "Update dumpsys power output." into jb-dev

* commit '4fa4648515c3c1f77a31da186a9fe31d6c509412':
Update dumpsys power output.
4fa4648515c3c1f77a31da186a9fe31d6c509412 28-Jun-2012 Craig Mautner <cmautner@google.com> Merge "Update dumpsys power output." into jb-dev
0e5416f661a01221a3b22a3e4764e2505af64488 27-Jun-2012 Dianne Hackborn <hackbod@google.com> Merge "Use two fingers to work some magic..."
672083b88aebc3f6fae978f2dafd15fdf4b9cd54 26-Jun-2012 Craig Mautner <cmautner@google.com> Update dumpsys power output.

A little more detail on the animation state. For aid in debugging
b/6720247.

Change-Id: Ibfabf7fc8822ccb74bb83e2fd8e53004691dcd76
om/android/server/PowerManagerService.java
5359bc38a2f1a39a059c16cb4e435be0d1100c2f 27-Jun-2012 Dianne Hackborn <hackbod@google.com> am 2e8295ce: am 3bb98aec: Merge "Fix issue #6730064: When turning off Nakasi, it very often..." into jb-dev

* commit '2e8295ce1861d8284f16e0f0f80475db0ec2983f':
Fix issue #6730064: When turning off Nakasi, it very often...
2e8295ce1861d8284f16e0f0f80475db0ec2983f 27-Jun-2012 Dianne Hackborn <hackbod@google.com> am 3bb98aec: Merge "Fix issue #6730064: When turning off Nakasi, it very often..." into jb-dev

* commit '3bb98aec9344af1299b90d1567b4443e4d50cc91':
Fix issue #6730064: When turning off Nakasi, it very often...
3bb98aec9344af1299b90d1567b4443e4d50cc91 27-Jun-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #6730064: When turning off Nakasi, it very often..." into jb-dev
ea401541c51422ba76f8319927cca0f303c57a4e 26-Jun-2012 Dianne Hackborn <hackbod@google.com> Fix issue #6730064: When turning off Nakasi, it very often...

...turns itself immediately back on.

The ON_AFTER_RELEASE flag is documented to not turn the screen on if
it is currently off.

Unfortunately, it didn't seem to actually do this -- it would just
cause a userActivity() call, which turns on the screen if it is
currently off.

Fix this by adding yet another boolean to that function to tell it
to not poke user activity if the screen is off. (Yes the number of
booleans on it is now insane, and should be cleaned up after we
get through JB.)

Bug: 6730064
Change-Id: I850dfbc777c7668d08b7d63f42a293e22b878256
om/android/server/PowerManagerService.java
25a525411b0fa6ec386b4fea9d827ff37f8146a0 26-Jun-2012 Kenny Root <kroot@google.com> am 7d33d0c3: am c17f92ce: Merge "Use removePackageLI instead of removing mPackages" into jb-dev

* commit '7d33d0c36c7e8c9de4139af383f7491823055bc7':
Use removePackageLI instead of removing mPackages
7d33d0c36c7e8c9de4139af383f7491823055bc7 26-Jun-2012 Kenny Root <kroot@google.com> am c17f92ce: Merge "Use removePackageLI instead of removing mPackages" into jb-dev

* commit 'c17f92ce047e8d62fac829d1df5dae654f7e4de8':
Use removePackageLI instead of removing mPackages
c17f92ce047e8d62fac829d1df5dae654f7e4de8 26-Jun-2012 Kenny Root <kroot@google.com> Merge "Use removePackageLI instead of removing mPackages" into jb-dev
a4b7f2f75e7803193429ec1179fb5e2eb1c6fbda 21-May-2012 Dianne Hackborn <hackbod@google.com> Use two fingers to work some magic...

Change-Id: Ibcb3dbd3d158c22da8277e544d81fb47eadccd49
om/android/server/wm/InputMonitor.java
om/android/server/wm/Session.java
om/android/server/wm/WindowAnimator.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
om/android/server/wm/WindowStateAnimator.java
6a15634f601617b815935bc7fdbe0c356d020f44 26-Jun-2012 Nick Kralevich <nnk@google.com> am 3346bc69: am ab294eeb: Merge "DevicePolicyManagerService: dump less" into jb-dev

* commit '3346bc69493e75565208f9b485bd6038e6abefe9':
DevicePolicyManagerService: dump less
3346bc69493e75565208f9b485bd6038e6abefe9 26-Jun-2012 Nick Kralevich <nnk@google.com> am ab294eeb: Merge "DevicePolicyManagerService: dump less" into jb-dev

* commit 'ab294eeb20d884855b038600f94a6e17b88b5772':
DevicePolicyManagerService: dump less
ab294eeb20d884855b038600f94a6e17b88b5772 26-Jun-2012 Nick Kralevich <nnk@google.com> Merge "DevicePolicyManagerService: dump less" into jb-dev
dfcd6653c5b142e7e2f4275e35f06eaa1a363e60 26-Jun-2012 Dianne Hackborn <hackbod@google.com> am e53fd84a: am 9e608c12: Merge "Fix issue #6381224: Initial emulator boot fails and shows a blank black screen." into jb-dev

* commit 'e53fd84a28584692d9c99712a3d36100643ba000':
Fix issue #6381224: Initial emulator boot fails and shows a blank black screen.
e6c2d62efb65fa7b4681d29ad0710df56bf9002b 26-Jun-2012 Dianne Hackborn <hackbod@google.com> am 9906e784: am 17990395: Merge "Fix issue #6717667: expanded notification actions don\'t work on the lock screen" into jb-dev

* commit '9906e784faca2cc8388a04fdc544722ea93d51be':
Fix issue #6717667: expanded notification actions don't work on the lock screen
be00b410146b35b50fc213474a8d04d463021554 26-Jun-2012 Nick Kralevich <nnk@google.com> DevicePolicyManagerService: dump less

Reduce the amount of unnecessary information emitted from
the DevicePolicyManagerService.

Bug: 6732364
Change-Id: I639f6beab8471bdbe41ce6cd3a5a378acaf678b2
om/android/server/DevicePolicyManagerService.java
e53fd84a28584692d9c99712a3d36100643ba000 26-Jun-2012 Dianne Hackborn <hackbod@google.com> am 9e608c12: Merge "Fix issue #6381224: Initial emulator boot fails and shows a blank black screen." into jb-dev

* commit '9e608c12186d308fb1711e8824901fdf931a3a96':
Fix issue #6381224: Initial emulator boot fails and shows a blank black screen.
9906e784faca2cc8388a04fdc544722ea93d51be 26-Jun-2012 Dianne Hackborn <hackbod@google.com> am 17990395: Merge "Fix issue #6717667: expanded notification actions don\'t work on the lock screen" into jb-dev

* commit '17990395bc62f8ce1bae4f1880899f231a8e613b':
Fix issue #6717667: expanded notification actions don't work on the lock screen
b4215267f342759c8bdad02ed124dae4bb6d6833 26-Jun-2012 Dianne Hackborn <hackbod@google.com> am fca66cd8: Merge "DO NOT MERGE Fix issue #6697105: App launching sometimes has random pauses" into jb-dev

* commit 'fca66cd828e214fe7494e46c7daa2879dfc3210d':
DO NOT MERGE Fix issue #6697105: App launching sometimes has random pauses
9e608c12186d308fb1711e8824901fdf931a3a96 26-Jun-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #6381224: Initial emulator boot fails and shows a blank black screen." into jb-dev
17990395bc62f8ce1bae4f1880899f231a8e613b 26-Jun-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #6717667: expanded notification actions don't work on the lock screen" into jb-dev
fca66cd828e214fe7494e46c7daa2879dfc3210d 26-Jun-2012 Dianne Hackborn <hackbod@google.com> Merge "DO NOT MERGE Fix issue #6697105: App launching sometimes has random pauses" into jb-dev
eca64b391408dfdb9ff3ae03fc39cfdb6918f3ad 26-Jun-2012 Kenny Root <kroot@google.com> Use removePackageLI instead of removing mPackages

When adding an system app via OTA, trying to remove it from mPackages
directly doesn't work. The ContentProviders and other things aren't
removed and point to the hidden system app's applicationInfo instead of
the updated app.

Bug: 6685263
Change-Id: I487cf518e0e3c60fae736e9b974617023a7dee8d
om/android/server/pm/PackageManagerService.java
om/android/server/pm/Settings.java
ad51a1e9230cdf95082b5e05690f0b72eaed3f35 26-Jun-2012 Jeff Brown <jeffbrown@google.com> am 0086ec0d: am d48cf0c0: Merge "Don\'t wait until boot timeout if there is no wallpaper." into jb-dev

* commit '0086ec0d3009bc8c80e1330cd73ba534aa45f489':
Don't wait until boot timeout if there is no wallpaper.
c585841115a859eadb2f6479cb4d09a1d3ea9cba 26-Jun-2012 Jeff Brown <jeffbrown@google.com> am db65cc52: am a3a59a2f: Merge "Don\'t enable input dispatch until display enabled." into jb-dev

* commit 'db65cc520ebb3f9cfafa4a9d5be9f07621814213':
Don't enable input dispatch until display enabled.
0086ec0d3009bc8c80e1330cd73ba534aa45f489 26-Jun-2012 Jeff Brown <jeffbrown@google.com> am d48cf0c0: Merge "Don\'t wait until boot timeout if there is no wallpaper." into jb-dev

* commit 'd48cf0c0ce5f9458802d2be8671c85fa027a74a0':
Don't wait until boot timeout if there is no wallpaper.
db65cc520ebb3f9cfafa4a9d5be9f07621814213 26-Jun-2012 Jeff Brown <jeffbrown@google.com> am a3a59a2f: Merge "Don\'t enable input dispatch until display enabled." into jb-dev

* commit 'a3a59a2fa7e3b3b044b41d2741118be37c57509a':
Don't enable input dispatch until display enabled.
1927ae8a56a010919a7535231fa0f7db70f7e152 23-Jun-2012 Dianne Hackborn <hackbod@google.com> Fix issue #6717667: expanded notification actions don't work on the lock screen

FLAG_ACTIVITY_CLOSE_SYSTEM_DIALOGS was a mistake.

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

Bug: 6717667
Change-Id: I1b22186e0cedc05f46a1a3ec78053a72afaf61b1
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityStack.java
42e620caf0407f1b5e02935ac4323742c65459fd 24-Jun-2012 Dianne Hackborn <hackbod@google.com> Fix issue #6381224: Initial emulator boot fails and shows a blank black screen.

Make sure that all cases where we remove an activity from the history
stack, we call resumeTopActivityLocked() to cause the home activity
to be launched if the stack is now empty.

Also fixed a problem where some timeouts would not be removed when destroying
an activity, and a race condition in boot that would cause the
PhoneWindowManager to initially start out with the home key not working.

Bug: 6381224
Change-Id: If046bb01aed624b0d9ee3bbaaba68ed6b98fd1d0
om/android/server/am/ActivityStack.java
f12100e0255c86d0d05dba2e7ba87a745870423d 25-Jun-2012 Craig Mautner <cmautner@google.com> Eliminate jank by setting force hiding differently

Only force hide windows when the keyguard is animating in.

Fixes bug 6721572.

Change-Id: Iad7b8b811bcf0840726cbf6c6f279dabd08a3aba
om/android/server/wm/WindowAnimator.java
a3195057fc5874d158cc8ea053aa75d5e016bdcf 25-Jun-2012 Winson Chung <winsonc@google.com> Fixing index-out-of-bounds in AppWidgetService. (Bug 6717459)

Change-Id: I9d676fbb2110f01eb1d36adc59437a6a5ec97cc2
om/android/server/AppWidgetServiceImpl.java
780c46fc9197f7ecb258e2c229824749f9e93806 24-Jun-2012 Jeff Brown <jeffbrown@google.com> Don't wait until boot timeout if there is no wallpaper.

When launching only core apps, the wallpaper service
is not started. Without this change the WM waits
up to 30 seconds for the wallpaper window to be created even
though it will never happen. This introduces a significant
delay before the boot animation is dismissed so the user can
enter a decryption password.

Bug: 6263070
Change-Id: Ia975127a0bf09cf99818f7cc4fd6c0264b740ec6
om/android/server/SystemServer.java
om/android/server/wm/WindowManagerService.java
08a746a0c60d19eb2211924ffd9fe1e452a261a6 24-Jun-2012 Jeff Brown <jeffbrown@google.com> Don't enable input dispatch until display enabled.

Bug: 6263070
Change-Id: I05d036fc1d9ec06d164d6743d45bb3f199cfab47
om/android/server/wm/WindowManagerService.java
9e809448761878b72b47c0a0e703de95a3cf9815 23-Jun-2012 Craig Mautner <cmautner@google.com> Step 1 in consolidating wallpaper animation.

- Merge testWallpaperAndBackgroundLocked into
updateWindowsAndWallpaperLocked. Eliminates mDetachedWallpaper,
mWindowAnimationBackground, and mWindowAnimationBackgroundColor.

- Merge multiple calls to perform layout into one.

- Cleaned up debug output.

Change-Id: I5dc2d8330dc092ee2b165867cddb7d16b431fa0b
om/android/server/wm/AppWindowAnimator.java
om/android/server/wm/WindowAnimator.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowStateAnimator.java
4170c3744692b1bdb57c3eb895b860cd64ead18f 23-Jun-2012 Craig Mautner <cmautner@google.com> Merge "Move animation step from layout to animator."
0f5541775c9fc24a31c50e122acfbb74e9757d83 23-Jun-2012 Hiroshi Lockheimer <hiroshi@google.com> am 3fee3eb7: am 5beeb04b: Merge "Don\'t display based on a dummy animation." into jb-dev

* commit '3fee3eb7e0a83cd7fc8df3994692232ba6953c02':
Don't display based on a dummy animation.
8411df2ffddb7f3c6fec57b3d84b65a427732922 23-Jun-2012 Jeff Brown <jeffbrown@google.com> Merge "Remove dead code in PowerManagerService."
3fee3eb7e0a83cd7fc8df3994692232ba6953c02 23-Jun-2012 Hiroshi Lockheimer <hiroshi@google.com> am 5beeb04b: Merge "Don\'t display based on a dummy animation." into jb-dev

* commit '5beeb04b528fec320d3453601b4adf4efbd8eba7':
Don't display based on a dummy animation.
5beeb04b528fec320d3453601b4adf4efbd8eba7 23-Jun-2012 Hiroshi Lockheimer <hiroshi@google.com> Merge "Don't display based on a dummy animation." into jb-dev
9c5bf3b36f3dd658320f34dbaee9d6d453606bf4 23-Jun-2012 Craig Mautner <cmautner@google.com> Don't display based on a dummy animation.

The Starting window was being made visible early because the app
token had the dummy animation set. When the real animation started
the Starting window picked it up and became transparent causing
the underlying window to become visible again => jank.

Fixes bug 6691421.

Change-Id: I95fe88d2887760e6da3adedeb6be300eb6755283
om/android/server/wm/WindowState.java
e1a1e40358c34d66152f7a252f10f9c9f103ac94 22-Jun-2012 Michael Jurka <mikejurka@google.com> am 037faad0: am ab779e0b: Merge "Increase bitmap memory cap for widgets (Bug 6597440)" into jb-dev

* commit '037faad0f437c5fdc5435c030ef03d61de75090f':
Increase bitmap memory cap for widgets (Bug 6597440)
037faad0f437c5fdc5435c030ef03d61de75090f 22-Jun-2012 Michael Jurka <mikejurka@google.com> am ab779e0b: Merge "Increase bitmap memory cap for widgets (Bug 6597440)" into jb-dev

* commit 'ab779e0bb2948bdfac461f931f9d165a5a38b84a':
Increase bitmap memory cap for widgets (Bug 6597440)
ab779e0bb2948bdfac461f931f9d165a5a38b84a 22-Jun-2012 Michael Jurka <mikejurka@google.com> Merge "Increase bitmap memory cap for widgets (Bug 6597440)" into jb-dev
e92aad432add317793a69a34eab5d271962df220 22-Jun-2012 Winson Chung <winsonc@google.com> Increase bitmap memory cap for widgets (Bug 6597440)

Change-Id: I4149b8c5f204f10ebf0ef1f8d03709c0559178d0
om/android/server/AppWidgetServiceImpl.java
88c997a5abb3b2b2df1fb17fa3af40b34fbdd590 22-Jun-2012 Jeff Brown <jeffbrown@google.com> Remove dead code in PowerManagerService.

Also update some code to match coding conventions.

Change-Id: I70be0e6575a20ad268fecdbc6d59ab83915c0f23
om/android/server/power/PowerManagerService.java
357d99c61d1c97199ca421408b3e26566e879f2a 21-Jun-2012 Dianne Hackborn <hackbod@google.com> DO NOT MERGE Fix issue #6697105: App launching sometimes has random pauses

In the course of the window manager refactoring into a separate
layout state, we introduced a bad interaction between the two
sides of the world. This resulting in multiple hops needed between
the two sides after an application has said it is finished drawing
its window, until the window/app transition is actually started.
Especially since these hops require going through the anim side
which is vsynced (so will delay its operation until the next frame),
this could introduce a notable delay until the window is first shown.

Fix this by re-arranging the code to make one straight path from
when a window reports it is shown to us starting the app transition
that is waiting for it. This change also includes various improvements
to debugging code that was done while working on it.

Change-Id: I7883674052da1a58df89cd1d9b8d754843cdd3db
om/android/server/wm/AppWindowAnimator.java
om/android/server/wm/AppWindowToken.java
om/android/server/wm/WindowAnimator.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowStateAnimator.java
ca08198f419476264362fadd22decc5d3ab89709 22-Jun-2012 Dianne Hackborn <hackbod@google.com> am 176a8a8b: am 0b9b053c: Merge "Don\'t crash in window manager if we fail getting .apk resources." into jb-dev

* commit '176a8a8b7cba2654f50617b14a841ef977b95b11':
Don't crash in window manager if we fail getting .apk resources.
176a8a8b7cba2654f50617b14a841ef977b95b11 22-Jun-2012 Dianne Hackborn <hackbod@google.com> am 0b9b053c: Merge "Don\'t crash in window manager if we fail getting .apk resources." into jb-dev

* commit '0b9b053ce6fdc48e922b6af37fe747b4ef40324a':
Don't crash in window manager if we fail getting .apk resources.
0b9b053ce6fdc48e922b6af37fe747b4ef40324a 22-Jun-2012 Dianne Hackborn <hackbod@google.com> Merge "Don't crash in window manager if we fail getting .apk resources." into jb-dev
1caa399baffe2a5dca018469761db6f77ea31ce8 22-Jun-2012 Craig Mautner <cmautner@google.com> Move animation step from layout to animator.

Set up the Choreographer call from the animator, not from the
layout side. Introduce new class for transferring information from
layout to animator.

Change-Id: I7da032990f4b5eaeefcf92185901d896f25db3d2
om/android/server/wm/WindowAnimator.java
om/android/server/wm/WindowManagerService.java
2cb7980660e046b8bf680886b0da963e3fde8fb0 22-Jun-2012 Craig Mautner <cmautner@google.com> am a6b8189f: am 9ce1ea3a: Merge "Fix starting window problems." into jb-dev

* commit 'a6b8189f8e152caafe5900cff0f068517a70088d':
Fix starting window problems.
a6b8189f8e152caafe5900cff0f068517a70088d 22-Jun-2012 Craig Mautner <cmautner@google.com> am 9ce1ea3a: Merge "Fix starting window problems." into jb-dev

* commit '9ce1ea3aa744fdd5a63ecedd07859fb2faa6f8e1':
Fix starting window problems.
f41209568617f4acfaf6dea8f8b2cbe9c2994a3e 22-Jun-2012 Craig Mautner <cmautner@google.com> Fix starting window problems.

Three problems fixed:
1. When one Activity took over for another Activity not all of the
starting window state was being copied over. Now copying over more
parameters.

2. When the visibility of an Activity was being changed the dummy
animation was overwriting the existing animation. If that animation
was the starting window animating then it started over when the
dummy animation was assigned. Now the dummy animation no longer
replaces an existing starting window animation.

3. The test for whether to animate away the starting window only
looked to see if the Activity had already drawn a window but did
not include the starting window. This caused the starting window
to immediately be hidden when the Activity was removed if no
windows were drawn, thereby exposing the fading window behind.
Now the starting window is included in the hasAppShownWindows test
and is animated away if it is exposed.

Fixes bug 6691421.

Change-Id: I4d32a1546c201652574a44d9e7f2752f1f1eb5a6
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
om/android/server/wm/WindowStateAnimator.java
adb80930a97b29b768f87789c5f167810387dadb 22-Jun-2012 Dianne Hackborn <hackbod@google.com> am eef58e85: am e06e1619: Merge "Fix issue #6700897: Activity paused by activating the..." into jb-dev

* commit 'eef58e858a24c15fff303622dfe3990799e03b51':
Fix issue #6700897: Activity paused by activating the...
287a64af979451fde58148e723ef0ff89824718e 22-Jun-2012 Kenny Root <kroot@android.com> am ae017c55: am a9543a3d: Merge "Pass additional inputs when spawning apps via the Zygote and add SELinux permission checks."

* commit 'ae017c55824ca345186b0c9fc204401153bd8a23':
Pass additional inputs when spawning apps via the Zygote and add SELinux permission checks.
eef58e858a24c15fff303622dfe3990799e03b51 22-Jun-2012 Dianne Hackborn <hackbod@google.com> am e06e1619: Merge "Fix issue #6700897: Activity paused by activating the..." into jb-dev

* commit 'e06e1619a153a902083d2a1a0c01c86d3c7e546e':
Fix issue #6700897: Activity paused by activating the...
0b800190d71bbe3459149f760f49dfa6208c0e21 22-Jun-2012 Dianne Hackborn <hackbod@google.com> Don't crash in window manager if we fail getting .apk resources.

This normally shouldn't noramlly happen, but it can in the case of
bug 6647334 (crash in LoadedApk.makeApplication) where the package
manager information becomes inconsistent, and it could also happen
if an app was uninstalled or started updating at just the right
time during a launch.

Bug: 6647334
Change-Id: Iba22efe1d646cdac46099b2135466309577dfa54
om/android/server/wm/WindowManagerService.java
f530ac323b7230ec7b198f0af3f2fa1158913a08 21-Jun-2012 Dianne Hackborn <hackbod@google.com> Fix issue #6700897: Activity paused by activating the...

...lock screen does not response to onNewIntent()

We now keep activities stopped even while the lock screen is
displayed. (We used to keep them stopped while the screen was
off, and then resume the top activity when the screen was turned
on even though they are covered by the lock screen.)

When a new intent is being delivered to an application, if it
is not resumed it is held in a pending list until the next
time the activity is resumed. Unfortunately that means for
the case where the activity is being held stopped due to the
screen off or lock screen, it will not receive any new intents,
even though it is at the top of the stack.

Fix this by adding an additional condition that allows the new
intent to be delivered immediately if the activity manager is
sleeping and the target activity is at the top of the stack.

Also some debug output improvements, since pending new intents
were not being included in the debug output, making it impossible
to see we were in that situation.

Change-Id: I5df82ac21657f1c82e05fd8bf21474e883f44e6f
om/android/server/am/ActivityRecord.java
ae017c55824ca345186b0c9fc204401153bd8a23 21-Jun-2012 Kenny Root <kroot@android.com> am a9543a3d: Merge "Pass additional inputs when spawning apps via the Zygote and add SELinux permission checks."

* commit 'a9543a3dad0da58f30580bdf99b76bc2ab97a2df':
Pass additional inputs when spawning apps via the Zygote and add SELinux permission checks.
a9543a3dad0da58f30580bdf99b76bc2ab97a2df 21-Jun-2012 Kenny Root <kroot@android.com> Merge "Pass additional inputs when spawning apps via the Zygote and add SELinux permission checks."
223d224fcb14230a27c0b7d5208ad28ff84abf52 21-Jun-2012 Jeff Brown <jeffbrown@google.com> am 071ed334: am fc32ec9a: Merge "Don\'t reset brightness to 0 on initial boot." into jb-dev

* commit '071ed3348739cb3f2bb9ef169067440c8c61b881':
Don't reset brightness to 0 on initial boot.
071ed3348739cb3f2bb9ef169067440c8c61b881 21-Jun-2012 Jeff Brown <jeffbrown@google.com> am fc32ec9a: Merge "Don\'t reset brightness to 0 on initial boot." into jb-dev

* commit 'fc32ec9a51cb78e58ae673abc327f4ef7be98fad':
Don't reset brightness to 0 on initial boot.
8e306a68e84453d6173229e8bcff32cf170eb4a1 21-Jun-2012 Jeff Brown <jeffbrown@google.com> Don't reset brightness to 0 on initial boot.

Bug: 6705012
Change-Id: I8114fda081784abbe720d5eaa637aa5234b5a947
om/android/server/PowerManagerService.java
ab72cc0f877f9f7dc6f5bdb57433ee96485343cf 20-Jun-2012 satok <satok@google.com> am 3a9ff158: am 56802678: Merge "Workaround: Never reset the default IME if the system is not ready" into jb-dev

* commit '3a9ff158fe45b3ee986dfa5f3c56fa48f781a5a9':
Workaround: Never reset the default IME if the system is not ready
3a9ff158fe45b3ee986dfa5f3c56fa48f781a5a9 20-Jun-2012 satok <satok@google.com> am 56802678: Merge "Workaround: Never reset the default IME if the system is not ready" into jb-dev

* commit '56802678a72157675382910e37857cf78e1cefcb':
Workaround: Never reset the default IME if the system is not ready
56802678a72157675382910e37857cf78e1cefcb 20-Jun-2012 satok <satok@google.com> Merge "Workaround: Never reset the default IME if the system is not ready" into jb-dev
6ea55271578f45d795f36db481a0d6f279aa9793 20-Jun-2012 Charles Chen <clchen@google.com> am 80a3c3ea: am d0d3a850: Merge "Fixing gesture recognition configuration in TouchExplorer." into jb-dev

* commit '80a3c3ea6f69df461c7e722c8e16362ce4bb60f3':
Fixing gesture recognition configuration in TouchExplorer.
80a3c3ea6f69df461c7e722c8e16362ce4bb60f3 20-Jun-2012 Charles Chen <clchen@google.com> am d0d3a850: Merge "Fixing gesture recognition configuration in TouchExplorer." into jb-dev

* commit 'd0d3a850650ade52198e7836f87a0e27ad2d6b41':
Fixing gesture recognition configuration in TouchExplorer.
d0d3a850650ade52198e7836f87a0e27ad2d6b41 20-Jun-2012 Charles Chen <clchen@google.com> Merge "Fixing gesture recognition configuration in TouchExplorer." into jb-dev
306211d7924a276b4cb9d1ff3c2fe70400e96e18 20-Jun-2012 Dianne Hackborn <hackbod@google.com> am b0222bb1: am 0fa4d30b: Merge "Fix issue #6686339: 2 taps required to launch notification..." into jb-dev

* commit 'b0222bb19e8d850ccbd74c4f0832d73ae552df8d':
Fix issue #6686339: 2 taps required to launch notification...
b0222bb19e8d850ccbd74c4f0832d73ae552df8d 20-Jun-2012 Dianne Hackborn <hackbod@google.com> am 0fa4d30b: Merge "Fix issue #6686339: 2 taps required to launch notification..." into jb-dev

* commit '0fa4d30b03c4307ca5d461aa4450b672b6850ea1':
Fix issue #6686339: 2 taps required to launch notification...
0fa4d30b03c4307ca5d461aa4450b672b6850ea1 20-Jun-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #6686339: 2 taps required to launch notification..." into jb-dev
4c0e7152e74d091eb78af8baacd38287ba95a1a1 20-Jun-2012 satok <satok@google.com> Workaround: Never reset the default IME if the system is not ready

Bug: 6685037
Change-Id: Ifb311f85154beadd4787ec73669bedfdf1f5172d
om/android/server/InputMethodManagerService.java
6e2281d44c9b71a03a50ed24d654927111cd2b72 20-Jun-2012 Dianne Hackborn <hackbod@google.com> Fix issue #6686339: 2 taps required to launch notification...

...or settings from lock screen

When a window is drawn, the code to determine whether it should now
be shown was calling WindowState.isReadyForDisplay(). Part of the
condition of this function is that it is not ready if a policy is
forcing the window to be hidden -- which is the case when the lock
screen is shown. As a result, we wouldn't show the window at that
point, so wouldn't tell the activity manager that the token's windows
are visibible, and wouldn't tell the lock screen to go away.

This adds a new variation WindowState.isReadyForDisplayIgnoringKeyguard(),
which is the same as the original method but ignores the policy visibility
for app windows. This allows windows to be go through the complete
path of handling when the window is finally drawn and telling the
activity manager about it, even if behind the lock screen. By making it
a separate function, we don't impact any other code that is calling the
old function and may be relying on its behavior.

Also cleaned up a little of the dumpsys output. Most important, the
new ANR section is now moved to the top, since we want
"adb shell dumpsys window" to still give a nice summary of what we
normally care about -- the window stack and important global state.

Change-Id: Ica3ea85ce46f3f5f5cd2cc30fbd9de13d3885a57
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
om/android/server/wm/WindowStateAnimator.java
ea6fbc0981564f7bbf4c6fbb63af0175415121ce 20-Jun-2012 Casey Burkhardt <caseyburkhardt@google.com> Fixing gesture recognition configuration in TouchExplorer.

This fix adjusts the sensitivity of the gesture recognizer by
eliminating gesture rotation in the recognition process.

Bug:6697119
Change-Id: Ic767f513c05210b27e583338c4f0adcaa1c4c625
om/android/server/accessibility/TouchExplorer.java
c91f0595d36ffdd490d8b6331abb336df6c39f2e 20-Jun-2012 Irfan Sheriff <isheriff@google.com> Remove unusued scan stats

This is now part of BatteryStats

Change-Id: I7e16207276e28eea3be8666990ae958b8ea7a17a
om/android/server/WifiService.java
90542758d4fef2e5ff8badaf3b40c2a227fbfc47 20-Jun-2012 Irfan Sheriff <isheriff@google.com> Cleanup softap interface to netd

Change-Id: I01e6c5b5a5a8ddaf05b979f9cc6d1293c86e8773
om/android/server/NetworkManagementService.java
2fa2a52838619d092e22e61e16a4ee2f35b22fdd 20-Jun-2012 Craig Mautner <cmautner@google.com> am 9a5a8aaf: am 5785e05d: Merge "Clear sendingToBottom when animation is complete." into jb-dev

* commit '9a5a8aafad89f3e05bb9c17c56ea4658413a4452':
Clear sendingToBottom when animation is complete.
9a5a8aafad89f3e05bb9c17c56ea4658413a4452 20-Jun-2012 Craig Mautner <cmautner@google.com> am 5785e05d: Merge "Clear sendingToBottom when animation is complete." into jb-dev

* commit '5785e05d44cd1f4453b887ac8de05ff3466b179e':
Clear sendingToBottom when animation is complete.
5785e05d44cd1f4453b887ac8de05ff3466b179e 20-Jun-2012 Craig Mautner <cmautner@google.com> Merge "Clear sendingToBottom when animation is complete." into jb-dev
3f99fde465e98fb6f5a3d6dd661836ba230bf03c 19-Jun-2012 Craig Mautner <cmautner@google.com> Clear sendingToBottom when animation is complete.

Was counting on moving the app to the top to clear the flag
indicating that the app was being sent to the bottom. Since this
did not always happen the sendingToBottom flag was occasionally
left set. In this case the focus was skipped for that app and
consequently input was never propagated to it.

This fix clears the sendingToBottom flag each time the app
animations are completed.

Fixes bug 6691421.

Change-Id: I6f851dc5bedca95182db8490d87c876a71ad5fde
om/android/server/wm/WindowManagerService.java
579c373bdc79ab730e307b71a4364944f4916487 19-Jun-2012 Jeff Sharkey <jsharkey@android.com> am de2dbfff: am 0abe556d: Handle SCREEN_ON/OFF broadcasts without blocking.

* commit 'de2dbfff537f457fdd8a5ef2145b41629a7b09a2':
Handle SCREEN_ON/OFF broadcasts without blocking.
de2dbfff537f457fdd8a5ef2145b41629a7b09a2 19-Jun-2012 Jeff Sharkey <jsharkey@android.com> am 0abe556d: Handle SCREEN_ON/OFF broadcasts without blocking.

* commit '0abe556d28f5f5d395559cc6567b05939d1b2640':
Handle SCREEN_ON/OFF broadcasts without blocking.
0abe556d28f5f5d395559cc6567b05939d1b2640 19-Jun-2012 Jeff Sharkey <jsharkey@android.com> Handle SCREEN_ON/OFF broadcasts without blocking.

NetworkPolicy currently uses a single background thread to process
various broadcasts. When processing other broadcasts, this thread
can block our handling of SCREEN_ON/OFF, which are sent as ordered
broadcasts.

This change moves SCREEN_ON/OFF handling to the main thread, and
dispatches a one-way message to the background thread, allowing the
ordered broadcast to always proceed.

Bug: 6677047
Change-Id: I52de2c7b75beb8059bb87e123689ba4a9c4ae349
om/android/server/net/NetworkPolicyManagerService.java
4f8ecd80296508a1dc69d3f3a23fd91e962c2784 19-Jun-2012 Jeff Brown <jeffbrown@google.com> Move power manager to a new package.

Change-Id: I5f5a6435e64354b7d6535e8e9a63934ba7a3f448
om/android/server/BatteryService.java
om/android/server/DockObserver.java
om/android/server/LightsService.java
om/android/server/PowerManagerService.java
om/android/server/ShutdownActivity.java
om/android/server/SystemServer.java
om/android/server/Watchdog.java
om/android/server/pm/ShutdownThread.java
om/android/server/power/PowerManagerService.java
om/android/server/power/ShutdownThread.java
om/android/server/wm/WindowManagerService.java
ceeec4e6a61019d49ec9b083a1a6b7757c069615 19-Jun-2012 Craig Mautner <cmautner@google.com> am ae3e5bc9: am 89f5a462: Merge "More paths for turning on screen immediately." into jb-dev

* commit 'ae3e5bc93f1077615b4ec8f6fbd06509241d25de':
More paths for turning on screen immediately.
ae3e5bc93f1077615b4ec8f6fbd06509241d25de 19-Jun-2012 Craig Mautner <cmautner@google.com> am 89f5a462: Merge "More paths for turning on screen immediately." into jb-dev

* commit '89f5a4624bfa487cb5fb192d9c3c9b30937b3f26':
More paths for turning on screen immediately.
89f5a4624bfa487cb5fb192d9c3c9b30937b3f26 19-Jun-2012 Craig Mautner <cmautner@google.com> Merge "More paths for turning on screen immediately." into jb-dev
75fc9de2587f493f79ac6719a57ce76f5b3e73df 19-Jun-2012 Craig Mautner <cmautner@google.com> More paths for turning on screen immediately.

This fix forces the path through the updateLightsLocked method to turn
the screen on immediately if mWaitingForFirstLightSensor is true. Also
do not clear mWaitingForFirstLightSensor if mPreparingForScreenOn
is true. Wait until it turns false.

Fixes bug 6612418.

Change-Id: I03407e748cce4906a73de1f15df1654649b133c4
om/android/server/PowerManagerService.java
04919812d6ceed55b4b3695cca5b911b0b95e012 19-Jun-2012 Dianne Hackborn <hackbod@google.com> am 56b3a321: am 1991850d: Merge "Implement issue #6680894: Provide a way to configure app defaults..." into jb-dev

* commit '56b3a321e7c6f03d1bc0c5c0915d56bc46b7a33e':
Implement issue #6680894: Provide a way to configure app defaults...
56b3a321e7c6f03d1bc0c5c0915d56bc46b7a33e 19-Jun-2012 Dianne Hackborn <hackbod@google.com> am 1991850d: Merge "Implement issue #6680894: Provide a way to configure app defaults..." into jb-dev

* commit '1991850de7bbcc534c2cb457f33055c533542136':
Implement issue #6680894: Provide a way to configure app defaults...
1991850de7bbcc534c2cb457f33055c533542136 19-Jun-2012 Dianne Hackborn <hackbod@google.com> Merge "Implement issue #6680894: Provide a way to configure app defaults..." into jb-dev
fc8b7fe02630f64a1d6c8ecb06f4c250e7478f1d 19-Jun-2012 Dianne Hackborn <hackbod@google.com> Implement issue #6680894: Provide a way to configure app defaults...

...for a smoother OOB experience

Way provided.

Put your defaults in system/etc/preferred-apps/*.xml.

Figure out what to put there with "adb shell dumpsys package preferred-xml".

Bug: 6680894
Change-Id: Ia06bb0061876274a5f80bf06d1ba5ad155edc323
om/android/server/pm/PackageManagerService.java
om/android/server/pm/Settings.java
40af9c04c5e1abb1f3aaf74bba2697370c60359a 18-Jun-2012 Jeff Brown <jeffbrown@google.com> am 81c61fda: am c4b0d098: Merge "Fix an NPE and possible unsynchronized call of Locked method." into jb-dev

* commit '81c61fda9a1b45db4c06d2db2cf24b42045d4f76':
Fix an NPE and possible unsynchronized call of Locked method.
81c61fda9a1b45db4c06d2db2cf24b42045d4f76 18-Jun-2012 Jeff Brown <jeffbrown@google.com> am c4b0d098: Merge "Fix an NPE and possible unsynchronized call of Locked method." into jb-dev

* commit 'c4b0d098d60ad532cebb3c043f3a1cdb39033f1f':
Fix an NPE and possible unsynchronized call of Locked method.
aa9c9efa8f82eb42c56afcc69ad287985377e1b0 18-Jun-2012 Craig Mautner <cmautner@google.com> Merge "More steps to isolate animation."
ee172414877d64ebfbcdbadf10691d04a5eee684 18-Jun-2012 Jeff Brown <jeffbrown@google.com> Fix an NPE and possible unsynchronized call of Locked method.

Bug: 6680398
Change-Id: Id5ef4fa82b2a5ef5e9c3934ca95156143f91e5e2
om/android/server/wm/InputMonitor.java
om/android/server/wm/WindowManagerService.java
91a5f4bef5720cf38e61634fd1337901bf17c694 18-Jun-2012 Jeff Brown <jeffbrown@google.com> am 79476980: am d7a04de1: Capture window manager\'s last ANR state in bug report.

* commit '7947698096d4b09bb0f662fdca89cfa5d475743e':
Capture window manager's last ANR state in bug report.
d466fe463b6c4a1a5694d5a42810af60ad782a2c 18-Jun-2012 Dianne Hackborn <hackbod@google.com> am 60860192: am d8bbf96a: Merge "Fix issue #6664140: Time to lock should work even Stay awake..." into jb-dev

* commit '608601924651531210ad3c6179d02c471f42dddf':
Fix issue #6664140: Time to lock should work even Stay awake...
468a0051ebbc5104b7a21e4a999d1bad697dadc5 18-Jun-2012 Dianne Hackborn <hackbod@google.com> am 99e33bf1: am 17b9cec1: Merge "Fix issue #6636731: Mariner animation ring gets stuck" into jb-dev

* commit '99e33bf14b2be799efe02b9a8a42b25abc0fced3':
Fix issue #6636731: Mariner animation ring gets stuck
7947698096d4b09bb0f662fdca89cfa5d475743e 18-Jun-2012 Jeff Brown <jeffbrown@google.com> am d7a04de1: Capture window manager\'s last ANR state in bug report.

* commit 'd7a04de16798acc04ec0a89a0c7d9f1cf60d1521':
Capture window manager's last ANR state in bug report.
608601924651531210ad3c6179d02c471f42dddf 18-Jun-2012 Dianne Hackborn <hackbod@google.com> am d8bbf96a: Merge "Fix issue #6664140: Time to lock should work even Stay awake..." into jb-dev

* commit 'd8bbf96a84cba7c31fa1535fe2467520f2aa0198':
Fix issue #6664140: Time to lock should work even Stay awake...
99e33bf14b2be799efe02b9a8a42b25abc0fced3 18-Jun-2012 Dianne Hackborn <hackbod@google.com> am 17b9cec1: Merge "Fix issue #6636731: Mariner animation ring gets stuck" into jb-dev

* commit '17b9cec1b6fedd0e54ff61f5a12f0e515add70ab':
Fix issue #6636731: Mariner animation ring gets stuck
01cd0e7df040659900e50f83c6b75d1d6fcc5655 18-Jun-2012 Craig Mautner <cmautner@google.com> More steps to isolate animation.

- Create class to transfer state from WindowAnimator to
WindowManagerService.

- Detached wallpaper state was shared between the two classes. This
CL isolates it.

Change-Id: I7bcee348bf9f9f8f0228f36c53d75e5c92fd84cb
om/android/server/wm/WindowAnimator.java
om/android/server/wm/WindowManagerService.java
82991054575130b2f065d9ab8d6aee270cd07239 18-Jun-2012 Robin Cutshaw <robin.cutshaw@gmail.com> Added missing USB_DEVICE_ATTACHED broadcast to running Activity

If an Activity programatically adds an ACTION_USB_DEVICE_ATTACHED intent,
it will never be delivered when the device is attached. This change adds
the missing intent broadcast to running Activities.

File changes:
modified: services/java/com/android/server/usb/UsbSettingsManager.java

Change-Id: I767ee4d0765a7901c36e4c6f4aaf6583da2ac6f4
Signed-off-by: Robin Cutshaw <robin.cutshaw@gmail.com>
om/android/server/usb/UsbSettingsManager.java
d7a04de16798acc04ec0a89a0c7d9f1cf60d1521 17-Jun-2012 Jeff Brown <jeffbrown@google.com> Capture window manager's last ANR state in bug report.

Currently just grabbing the window state but we could grab
other things as part of the last ANR report.

Bug: 6680398
Change-Id: I23aa70907b1bdcb21c8acc556fde196ca790ef6a
om/android/server/wm/InputMonitor.java
om/android/server/wm/WindowManagerService.java
2fe8fb276c28372edb60f5bb10e172c19ef2671b 16-Jun-2012 Dianne Hackborn <hackbod@google.com> Fix issue #6664140: Time to lock should work even Stay awake...

...in Developer options is on

Don't respect stay awake while on as long as a time to lock limit
is being enforced. When we start enforcing one, make sure the
setting is off (since we won't be respecting it anyway).

Bug: 6664140
Change-Id: Id07cb528afa0c64c7766341841c51771f507121d
om/android/server/DevicePolicyManagerService.java
om/android/server/PowerManagerService.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
om/android/server/WifiService.java
om/android/server/am/BatteryStatsService.java
a0ecfde69e31b347dab7a94e84f7dbff751385ea 15-Jun-2012 Amith Yamasani <yamasani@google.com> Merge "SearchManagerService made multi-user aware"
6e3d6daa3753be0ce170c1140cddd945e01e0a03 15-Jun-2012 Dianne Hackborn <hackbod@google.com> Fix issue #6636731: Mariner animation ring gets stuck

Weren't cleaning out any ActivityOptions that are still attached
to a finishing activity.

Bug: 6636731
Change-Id: If0520bbcbf1d4ce19d46ff769918893cefda9c87
om/android/server/am/ActivityRecord.java
om/android/server/am/ActivityStack.java
5bb87cd9b81506b0c25d3f9184e406762a9e9d9c 14-Jun-2012 Amith Yamasani <yamasani@google.com> SearchManagerService made multi-user aware

Cache Searchables per user and query package manager through the
private interface.

Change-Id: I1d24fdd27cce8c27be45287cbfcb4df1e2ce2cf1
om/android/server/pm/PackageManagerService.java
4ca38ff44e1300c400a65329ff1aa4e08251b827 15-Jun-2012 Dianne Hackborn <hackbod@google.com> am 4879c1e8: am 734f0214: Merge "Help out issue #6654729: CAB + screen off during playback" into jb-dev

* commit '4879c1e8b3ae01800290a3702526a601f4637692':
Help out issue #6654729: CAB + screen off during playback
4879c1e8b3ae01800290a3702526a601f4637692 15-Jun-2012 Dianne Hackborn <hackbod@google.com> am 734f0214: Merge "Help out issue #6654729: CAB + screen off during playback" into jb-dev

* commit '734f0214ec04e6c734aeec78d15f6db478cfb55c':
Help out issue #6654729: CAB + screen off during playback
734f0214ec04e6c734aeec78d15f6db478cfb55c 15-Jun-2012 Dianne Hackborn <hackbod@google.com> Merge "Help out issue #6654729: CAB + screen off during playback" into jb-dev
d71aae232972eb7e5bec1d0c3fa557a2be4e4410 15-Jun-2012 Christopher Tate <ctate@google.com> am 0d732fe6: am 0e44a6be: Merge "Don\'t finish noHistory="true" activities behind the lock screen" into jb-dev

* commit '0d732fe68c6c68e93b6ca33d75e92b55ef95a97a':
Don't finish noHistory="true" activities behind the lock screen
b80395c17de91151141411bda4252cdb10912580 15-Jun-2012 Dianne Hackborn <hackbod@google.com> Help out issue #6654729: CAB + screen off during playback

People generally expect, if they are using FLAG_KEEP_SCREEN_ON,
that the screen won't immediately dim after it is cleared, even
if it has been passed the user activity timeout since the last
user interaction. So include the flag to reset the user activity
timeout when releasing its wake lock.

Change-Id: If7a8fea8faef3edbf13dff10a2f248adc9e3ff0b
om/android/server/wm/WindowManagerService.java
0d732fe68c6c68e93b6ca33d75e92b55ef95a97a 15-Jun-2012 Christopher Tate <ctate@google.com> am 0e44a6be: Merge "Don\'t finish noHistory="true" activities behind the lock screen" into jb-dev

* commit '0e44a6beeae8a17e81145b83f2dfb8f719d41f52':
Don't finish noHistory="true" activities behind the lock screen
0e44a6beeae8a17e81145b83f2dfb8f719d41f52 15-Jun-2012 Christopher Tate <ctate@google.com> Merge "Don't finish noHistory="true" activities behind the lock screen" into jb-dev
88c06995395d20aea8e0c2dda6118bd938423cfa 15-Jun-2012 Christopher Tate <ctate@google.com> am 5eed873f: am 7661bc6c: Merge "Run the screen on/off broadcasts at foreground priority" into jb-dev

* commit '5eed873f1076b685d3a8538894a49f29f85d1189':
Run the screen on/off broadcasts at foreground priority
90e76aaac7c75652f35c33620838f632c121a0ca 15-Jun-2012 Daniel Sandler <dsandler@android.com> am 8ce090d9: am 68a808bc: Merge "Show even fewer notifications in Setup." into jb-dev

* commit '8ce090d936efc65dd68ba9fc15f99e1029cf58f2':
Show even fewer notifications in Setup.
5eed873f1076b685d3a8538894a49f29f85d1189 15-Jun-2012 Christopher Tate <ctate@google.com> am 7661bc6c: Merge "Run the screen on/off broadcasts at foreground priority" into jb-dev

* commit '7661bc6c5afef4cca8ccee2f859906f8fb64087b':
Run the screen on/off broadcasts at foreground priority
7661bc6c5afef4cca8ccee2f859906f8fb64087b 15-Jun-2012 Christopher Tate <ctate@google.com> Merge "Run the screen on/off broadcasts at foreground priority" into jb-dev
7cf23ee4782e25af0bfcb68e766aa86f8aba98ef 15-Jun-2012 Craig Mautner <cmautner@google.com> am de90d67b: am 8b9c6d51: Merge "Expose apps when keyguard animating." into jb-dev

* commit 'de90d67b2f3da4d931455df3c58d9c0f8ea3ffb5':
Expose apps when keyguard animating.
2cb1357d1b96b7719073aa651e386a73667a2bb2 15-Jun-2012 Christopher Tate <ctate@google.com> Run the screen on/off broadcasts at foreground priority

Bug 6643559

Change-Id: I392f11dabea518238d0f4336c3663bf5c7d46146
om/android/server/PowerManagerService.java
d3f175c8179e8fbb275a5ef53b5a6fc4d88c1f24 14-Jun-2012 Christopher Tate <ctate@google.com> Don't finish noHistory="true" activities behind the lock screen

The foreground activity is stopped when the device goes to sleep,
and started again when the device is unlocked. We now distinguish
this case from a "normal" stop, and do not finish() a foreground
noHistory="true" activity inappropriately when the device sleeps.
We also detect the case where an activity is started while the
device is still asleep, in which case the foreground noHistory
activity is cleaned up as part of bringing the new activity to
the foreground.

Bug 6657549

Change-Id: I9c6a0830aed0e47e4207b62803b90067c8486112
om/android/server/am/ActivityStack.java
cb4ea2f5f3bc83d3b29d6b5b3c0796304213cea0 15-Jun-2012 Robert Greenwalt <rgreenwalt@google.com> Merge "Make tethering ignore bad inputs"
8ce090d936efc65dd68ba9fc15f99e1029cf58f2 15-Jun-2012 Daniel Sandler <dsandler@android.com> am 68a808bc: Merge "Show even fewer notifications in Setup." into jb-dev

* commit '68a808bc702f03536bd0cf3e2556127e364119d6':
Show even fewer notifications in Setup.
68a808bc702f03536bd0cf3e2556127e364119d6 15-Jun-2012 Daniel Sandler <dsandler@android.com> Merge "Show even fewer notifications in Setup." into jb-dev
adfb0d0cf1fed4b42e65fb35cdc342ab99e9c6a5 15-Jun-2012 Robert Greenwalt <rgreenwalt@google.com> Make tethering ignore bad inputs

Tethering was re-evaluating everything on any connectivity change.
This was causing problems when mobile data was not available as each
re-eval was again requesting a connection which would fail and loop.
Ignore FAILED states to break this cycle in a minimal change.

bug:6668233
Change-Id: Ia1dfc6abff1fe464e9501b50185cdb8d0fbb7ff6
om/android/server/connectivity/Tethering.java
de90d67b2f3da4d931455df3c58d9c0f8ea3ffb5 14-Jun-2012 Craig Mautner <cmautner@google.com> am 8b9c6d51: Merge "Expose apps when keyguard animating." into jb-dev

* commit '8b9c6d51d59898375089e9708325604c227812e0':
Expose apps when keyguard animating.
8b9c6d51d59898375089e9708325604c227812e0 14-Jun-2012 Craig Mautner <cmautner@google.com> Merge "Expose apps when keyguard animating." into jb-dev
69be9f7dee44b4312741d31834181d4cf049b041 14-Jun-2012 Michael Jurka <mikejurka@google.com> am 2e820417: am a676cdab: Merge "Tweak recents launch app animation" into jb-dev

* commit '2e820417d6f06272b6408d8c015ac45f18677a06':
Tweak recents launch app animation
2e820417d6f06272b6408d8c015ac45f18677a06 14-Jun-2012 Michael Jurka <mikejurka@google.com> am a676cdab: Merge "Tweak recents launch app animation" into jb-dev

* commit 'a676cdab11ace948a054b5ca342727a3d0eb29b2':
Tweak recents launch app animation
a676cdab11ace948a054b5ca342727a3d0eb29b2 14-Jun-2012 Michael Jurka <mikejurka@google.com> Merge "Tweak recents launch app animation" into jb-dev
f03e4c55fc5f8c50c58da03b7e8cfe29b4b0c644 14-Jun-2012 Craig Mautner <cmautner@google.com> Expose apps when keyguard animating.

Continuing in the trend of not hiding apps while the keyguard is
animating.

Fixes bug 6653600.

Change-Id: I151315084a13dcec061d2d6edccd31e1133610f4
om/android/server/wm/WindowAnimator.java
590d515d912396a0c293d78529ac0dbc224400bf 14-Jun-2012 Daniel Sandler <dsandler@android.com> Show even fewer notifications in Setup.

Restricting to pkg="android" didn't filter out things like
open wifi networks, etc. So now we have a whitelist:
notifications must be sent the "android" pseudo-package,
*and* they must have one of these "kind" tags:

- android.system.imeswitcher (IME switcher, needed by SUW)
- android.system.update (OTAs)

Note that OTAs currently use a fullScreenIntent, so they
bypass this logic anyway, but for consistency's sake we now
allow OTA icons in the status bar explicitly.

Bug: 6645469
Change-Id: Ib2e2f22d7a0817a1acaf8137ed4f3c7d3ddf8af5
om/android/server/InputMethodManagerService.java
b9a38c57fc47858eb16f4a8b7aa3d3dc9b98166c 14-Jun-2012 Michael Jurka <mikejurka@google.com> Tweak recents launch app animation

- Sometimes the black background would flash; changing
animation durations to make this much less likely
- Fixing issue in Recents where we sometimes forgot
to disable drawing caches on views after enabling them
om/android/server/wm/WindowManagerService.java
03afbe33237542e424acd3ca1d4bafdc6e8f2ad3 14-Jun-2012 Svetoslav Ganov <svetoslavganov@google.com> am 0b0ca3c5: am 9b1767bb: Merge "Active window not updated window not updated properly." into jb-dev

* commit '0b0ca3c551378f99f2423032db89778c34dbd146':
Active window not updated window not updated properly.
0b0ca3c551378f99f2423032db89778c34dbd146 14-Jun-2012 Svetoslav Ganov <svetoslavganov@google.com> am 9b1767bb: Merge "Active window not updated window not updated properly." into jb-dev

* commit '9b1767bbb451e96ae6b2216a7ea26aa4a937ad55':
Active window not updated window not updated properly.
9b1767bbb451e96ae6b2216a7ea26aa4a937ad55 14-Jun-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Active window not updated window not updated properly." into jb-dev
5d043ce8cc2f588fdfb336cc843fb3b07b196f83 14-Jun-2012 Svetoslav Ganov <svetoslavganov@google.com> Active window not updated window not updated properly.

1. Accessibility allows querying only of the active window.
The active window is the one that has input focus or the
one the user is touching. Hence, if the user is touching
a window that does not have input focus this window is
the active one and as soon as the user stops touching
it the active window becomes the one that has input
focus. Currently the active window is not updated properly
when the user lifts his finger. This leads to a scenario
of traversal actions sent to the wrong window and the user
being stuck.

The reason is that the last touch explored event that is
used to determine where to click is cleared when accessibility
focus moves but this event is also used to determine when to
send the hover exit and touch exploration gesture end events.
The problem is that the last hover event is cleared before
it is used for sending the right exit events, thus the event
stream is inconsistent and the accessibility manager service
relies on this stream to update the active window. Now we
are keeping separate copies of the last touch event - one
for clicking and one for determining the which events to
inject to ensure consistent stream.

bug:6666041

Change-Id: Ie9961e562a42ef8a9463afacfff2246adcb66303
om/android/server/accessibility/TouchExplorer.java
e8a0623de853f230b01934934fa61e95086dbcd4 14-Jun-2012 Svetoslav Ganov <svetoslavganov@google.com> am c4d3a0d8: am 52d3465d: Merge "If a gesture cannot be detected the device should transition to touch exploration state." into jb-dev

* commit 'c4d3a0d8df87ecb946e9824ed651f026f7a35555':
If a gesture cannot be detected the device should transition to touch exploration state.
2ebd25368a2211ae0a2b9c1a254465c8fd7045c2 14-Jun-2012 Nick Pelly <npelly@google.com> am da58f393: am bfd125a0: Merge "Fix NPE when public API removeProximityAlert() used before addProximityAlert()." into jb-dev

* commit 'da58f39374a716dedc7c4050755b711a9a6bfcf5':
Fix NPE when public API removeProximityAlert() used before addProximityAlert().
9d909d31b37e6e6933060f450e296dbde373df05 14-Jun-2012 Craig Mautner <cmautner@google.com> am 129167cf: am 4323d6ea: Merge "Do not hide animating window behind keyguard." into jb-dev

* commit '129167cfe641c505fcea6c37a1ed086bbeadf8c1':
Do not hide animating window behind keyguard.
0b73f8fbc66914d1b6267fa4723c54f1e52f374f 14-Jun-2012 Craig Mautner <cmautner@google.com> am 719c139d: am f8d05b4e: Merge "Update wallpaper visibility at time of hide/show." into jb-dev

* commit '719c139d03c6af0deda004095c6ef9131c4e6be0':
Update wallpaper visibility at time of hide/show.
58c35bbe347e9814bb3356866828f4cf5f56936f 14-Jun-2012 Winson Chung <winsonc@google.com> Merge "Updating AppWidgetHost to receive a callback when any appWidget has changed. (Bug 6602951)"
c4d3a0d8df87ecb946e9824ed651f026f7a35555 14-Jun-2012 Svetoslav Ganov <svetoslavganov@google.com> am 52d3465d: Merge "If a gesture cannot be detected the device should transition to touch exploration state." into jb-dev

* commit '52d3465d0503a3362ec9335ae3de8e23b2ae75a3':
If a gesture cannot be detected the device should transition to touch exploration state.
52d3465d0503a3362ec9335ae3de8e23b2ae75a3 14-Jun-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "If a gesture cannot be detected the device should transition to touch exploration state." into jb-dev
da58f39374a716dedc7c4050755b711a9a6bfcf5 14-Jun-2012 Nick Pelly <npelly@google.com> am bfd125a0: Merge "Fix NPE when public API removeProximityAlert() used before addProximityAlert()." into jb-dev

* commit 'bfd125a0bf51ce0931d981d7694432868b9f511f':
Fix NPE when public API removeProximityAlert() used before addProximityAlert().
bfd125a0bf51ce0931d981d7694432868b9f511f 14-Jun-2012 Nick Pelly <npelly@google.com> Merge "Fix NPE when public API removeProximityAlert() used before addProximityAlert()." into jb-dev
95068e5d1bea47091e97955f271c789264994550 14-Jun-2012 Svetoslav Ganov <svetoslavganov@google.com> If a gesture cannot be detected the device should transition to touch exploration state.

1. We are deciding whether the user is performing a gesture or an exploration based
on the gesture velocity. If we are detecting gesture we do the recognition at the
gesture end which is when the finger goes up. This is better than having a mode
toggle gesture for exploring and gestures detection. However, it is possible that
the user really wanted to perform an exploration but was moving too fast and
unless he lifts his finger the device is in gesture detection mode. This is
frustrating since the user has no feedback and assumes exploration does not
work.

We want to perform gesture detection only for a maximal time frame and if the
user did not lift his finger we transition into touch exploration state.

bug:6663173

Change-Id: I954ff937cca902e31b51325d1e1dfce84d239624
om/android/server/accessibility/TouchExplorer.java
01ed75c82f29b883144d498b4a6a1414d4227a31 14-Jun-2012 Nick Pelly <npelly@google.com> Fix NPE when public API removeProximityAlert() used before addProximityAlert().

Bug: 6313992
Change-Id: I905ad9ea771286727ce4a3a2334f2a0dac967c3d
om/android/server/LocationManagerService.java
129167cfe641c505fcea6c37a1ed086bbeadf8c1 14-Jun-2012 Craig Mautner <cmautner@google.com> am 4323d6ea: Merge "Do not hide animating window behind keyguard." into jb-dev

* commit '4323d6ea5143a3f2c419b3db28f956755652d78a':
Do not hide animating window behind keyguard.
7fbd28438c2322973c77f31f0721a24fe1c35039 13-Jun-2012 Winson Chung <winsonc@google.com> Updating AppWidgetHost to receive a callback when any appWidget has changed. (Bug 6602951)

Change-Id: I76d688b10ee7775b4ebe81259713f2aaf0009d05
om/android/server/AppWidgetServiceImpl.java
4323d6ea5143a3f2c419b3db28f956755652d78a 14-Jun-2012 Craig Mautner <cmautner@google.com> Merge "Do not hide animating window behind keyguard." into jb-dev
719c139d03c6af0deda004095c6ef9131c4e6be0 13-Jun-2012 Craig Mautner <cmautner@google.com> am f8d05b4e: Merge "Update wallpaper visibility at time of hide/show." into jb-dev

* commit 'f8d05b4ea61bb0db32c1a7f93f27a13f67c9ef0c':
Update wallpaper visibility at time of hide/show.
f8d05b4ea61bb0db32c1a7f93f27a13f67c9ef0c 13-Jun-2012 Craig Mautner <cmautner@google.com> Merge "Update wallpaper visibility at time of hide/show." into jb-dev
4ab3cd8c31e4be57c9d07ac08a07468069426fc8 13-Jun-2012 Jeff Sharkey <jsharkey@android.com> am ba55c5c5: am 96321890: Merge "Clear identity when snoozing limit." into jb-dev

* commit 'ba55c5c57964b1ba126496e8d903d26ab4be1f15':
Clear identity when snoozing limit.
ba55c5c57964b1ba126496e8d903d26ab4be1f15 13-Jun-2012 Jeff Sharkey <jsharkey@android.com> am 96321890: Merge "Clear identity when snoozing limit." into jb-dev

* commit '963218905ab31ccd2cf7ff57d372b185624543a4':
Clear identity when snoozing limit.
963218905ab31ccd2cf7ff57d372b185624543a4 13-Jun-2012 Jeff Sharkey <jsharkey@android.com> Merge "Clear identity when snoozing limit." into jb-dev
507a2ee12b6d1d683e4a5806804c472b3fe32e61 13-Jun-2012 Craig Mautner <cmautner@google.com> Update wallpaper visibility at time of hide/show.

Call the Window client method dispatchAppVisibility when hiding or
showing wallpaper rather than wait until the next call to
performLayoutAndPlaceSurfaces.

Fixes bug 6645473.

Change-Id: I363f69f8db0affff92308e11ce52546401959d8f
om/android/server/wm/WindowAnimator.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowStateAnimator.java
6c0b4f393ae8e728c7a7943bfbdcdd27d6642192 13-Jun-2012 Jeff Sharkey <jsharkey@android.com> Clear identity when snoozing limit.

Continues to check MANAGE_NETWORK_POLICY permission. This allows
SystemUI to invoke snoozeLimit() without CONNECTIVITY_INTERNAL.

Bug: 6653091
Change-Id: I464bf62b79f2647c6b6db151251a0036897d0cc0
om/android/server/net/NetworkPolicyManagerService.java
2ec541fa4b19bee3e5a60245dcb504a6033cd0ac 13-Jun-2012 Craig Mautner <cmautner@google.com> Do not hide animating window behind keyguard.

The transition from clock to keyguard when restarting the device
was janky. The cause was that the clock app was animating away
which kept the adjustWallpaperWindowsLocked() method from setting
the keyguard as the new mWallpaperTarget. At the same time the
WindowAnimator saw that the keyguard was readyToDisplay() which
set mForceHiding true causing the clock to become hidden. Since
the clock was mWallpaperTarget the wallpaper was hidden at the
same time.

This fix does not allow mForceHiding to hide an animating
window.

Fixes bug 6649988.

Change-Id: Ie5cb0dfcc987d5ee1ad2351cf520629b8e301a2b
om/android/server/wm/WindowAnimator.java
om/android/server/wm/WindowManagerService.java
9132c25d22b698bdd117c016a84353a8490ee252 13-Jun-2012 Craig Mautner <cmautner@google.com> am 1d48ca51: am 1c958102: Merge "Set detached wallpaper on the scale up animation." into jb-dev

* commit '1d48ca51de63c43f57ece57aed43a4aa7ce31756':
Set detached wallpaper on the scale up animation.
1d48ca51de63c43f57ece57aed43a4aa7ce31756 13-Jun-2012 Craig Mautner <cmautner@google.com> am 1c958102: Merge "Set detached wallpaper on the scale up animation." into jb-dev

* commit '1c9581023ced89a209fca9c4e40305f8e0859732':
Set detached wallpaper on the scale up animation.
1c9581023ced89a209fca9c4e40305f8e0859732 13-Jun-2012 Craig Mautner <cmautner@google.com> Merge "Set detached wallpaper on the scale up animation." into jb-dev
554259fe02afba852c9999e827b3c086e92637bd 13-Jun-2012 Jeff Sharkey <jsharkey@android.com> am 9eabf916: am f6f7f1d2: Low disk space string change, surface state.

* commit '9eabf916dc5d53bc6c765d39cca0847993e73dcf':
Low disk space string change, surface state.
9eabf916dc5d53bc6c765d39cca0847993e73dcf 13-Jun-2012 Jeff Sharkey <jsharkey@android.com> am f6f7f1d2: Low disk space string change, surface state.

* commit 'f6f7f1d2dc6e8fad5d6ff9a56af9929488873b4f':
Low disk space string change, surface state.
b8151ecd6ef4faa5c16d0a4c3abb45ec84d1f97a 19-Apr-2012 Amith Yamasani <yamasani@google.com> Add an icon to the user information.

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

Change-Id: Id8ccb55b9e2ba7b4c557505a7f69f04eca1518cf
om/android/server/pm/PackageManagerService.java
om/android/server/pm/UserManager.java
f6f7f1d2dc6e8fad5d6ff9a56af9929488873b4f 13-Jun-2012 Jeff Sharkey <jsharkey@android.com> Low disk space string change, surface state.

Surface current low disk state through IPackageManager for use in
Settings app.

Bug: 6576409
Change-Id: I9ae9ce99a2faa3015a237036c03567d1ae11628f
om/android/server/pm/PackageManagerService.java
7dc4c08495e261b8b5c5afb4569c8ba8e05adc2f 13-Jun-2012 Craig Mautner <cmautner@google.com> am 12f0104e: am 4d6a0df3: Merge "Do not cancel animations when switching." into jb-dev

* commit '12f0104ec729346d078a0afc9a79ab9fc023cce0':
Do not cancel animations when switching.
a803371535e98e522c1044f0963ec8229e437b4f 13-Jun-2012 Craig Mautner <cmautner@google.com> Set detached wallpaper on the scale up animation.

This keeps the background wallpaper from disappearing when expanding an
app that has a wallpaper background (e.g. clock).

Fixes bug 6649988. The second half of the bug, the first half will be
reissued as a new bug.

Change-Id: I209c9038469e4133586a927c92ef64ae43fb937f
om/android/server/wm/WindowManagerService.java
12f0104ec729346d078a0afc9a79ab9fc023cce0 13-Jun-2012 Craig Mautner <cmautner@google.com> am 4d6a0df3: Merge "Do not cancel animations when switching." into jb-dev

* commit '4d6a0df37930309f8e138499785483d9dcadf7d9':
Do not cancel animations when switching.
4d6a0df37930309f8e138499785483d9dcadf7d9 13-Jun-2012 Craig Mautner <cmautner@google.com> Merge "Do not cancel animations when switching." into jb-dev
e9f6b86d1c4702206781c176533b5954c2c6655b 12-Jun-2012 Christopher Tate <ctate@google.com> am 4d3448db: am 4cabbef8: Merge "Make sure to stop noHistory="true" activities properly" into jb-dev

* commit '4d3448db54e274b8c5f10ddef204882320e631ec':
Make sure to stop noHistory="true" activities properly
4d3448db54e274b8c5f10ddef204882320e631ec 12-Jun-2012 Christopher Tate <ctate@google.com> am 4cabbef8: Merge "Make sure to stop noHistory="true" activities properly" into jb-dev

* commit '4cabbef8266c909997cf608d008920f5a2f49937':
Make sure to stop noHistory="true" activities properly
4cabbef8266c909997cf608d008920f5a2f49937 12-Jun-2012 Christopher Tate <ctate@google.com> Merge "Make sure to stop noHistory="true" activities properly" into jb-dev
5007ddded6ec4b47c253d3c039806eb5dd77b40e 12-Jun-2012 Christopher Tate <ctate@google.com> Make sure to stop noHistory="true" activities properly

The code was correctly inducing a 'finish' when such an activity was
being stopped, but then was not continuing with the rest of the stop
bookkeeping at that point. In some circumstances this could result
in an inconsistent state, with the activity marked as finishing but
neither in the foreground nor stopped.

Bug 6585403

Change-Id: Ib5c5be885bc6534e099e040d87a8589f7b7454ce
om/android/server/am/ActivityStack.java
adda220b185d337a83ca8b5ace703b742ecfadf7 12-Jun-2012 Craig Mautner <cmautner@google.com> am 42db9369: am 78a9b676: Merge "Remove over aggressive optimization." into jb-dev

* commit '42db93691896740e47918e212bed7668464a3b9d':
Remove over aggressive optimization.
30dd205a6ba862193b823701c6254b3bc1b963a6 12-Jun-2012 Craig Mautner <cmautner@google.com> am 1c92459a: am 16a61a51: Merge "Revert "Merge errors."" into jb-dev

* commit '1c92459a50c6b60550ffd4fceaa2fabeb5418ada':
Revert "Merge errors."
fbec92ca1a408bb53dd2b4be7eeac4776a1a5c1b 12-Jun-2012 Craig Mautner <cmautner@google.com> am d5759f1c: am 73220fa0: Merge "Merge errors." into jb-dev

* commit 'd5759f1c2c8038d6c8275b1ba7dc93a40763088c':
Merge errors.
c528b7199a87d8a5a69dffec3856160fbacec080 12-Jun-2012 Michael Jurka <mikejurka@google.com> am 823e2028: am 64dbcd64: Merge "Tweak recents out animation a bit more" into jb-dev

* commit '823e20284588f785b96764ba24efb7b8f63895d7':
Tweak recents out animation a bit more
69d00187c1f789caa27eccb2a60db2fd6e8e3169 12-Jun-2012 Craig Mautner <cmautner@google.com> am 0721bde2: am 47adf865: Merge "Fix exposing wallpaper on rotations and other." into jb-dev

* commit '0721bde26c73861bb40a5732cb63741d13776e36':
Fix exposing wallpaper on rotations and other.
7c727e50f1a73d6fab100af9cac3e16985aa18a2 12-Jun-2012 Chia-chi Yeh <chiachi@android.com> am a2becffc: am d667aebf: Merge "VPN: move VpnDialogs away from system uid." into jb-dev

* commit 'a2becffcf2a19889b90256a8479e276081ce6108':
VPN: move VpnDialogs away from system uid.
42db93691896740e47918e212bed7668464a3b9d 12-Jun-2012 Craig Mautner <cmautner@google.com> am 78a9b676: Merge "Remove over aggressive optimization." into jb-dev

* commit '78a9b67691d08e7347ab7bed7708fa09680ee71f':
Remove over aggressive optimization.
1c92459a50c6b60550ffd4fceaa2fabeb5418ada 12-Jun-2012 Craig Mautner <cmautner@google.com> am 16a61a51: Merge "Revert "Merge errors."" into jb-dev

* commit '16a61a51ffdf0490d3fd201c8679a990723f7d8e':
Revert "Merge errors."
d5759f1c2c8038d6c8275b1ba7dc93a40763088c 12-Jun-2012 Craig Mautner <cmautner@google.com> am 73220fa0: Merge "Merge errors." into jb-dev

* commit '73220fa083f6b2b302434ad081dd062505744ed8':
Merge errors.
823e20284588f785b96764ba24efb7b8f63895d7 12-Jun-2012 Michael Jurka <mikejurka@google.com> am 64dbcd64: Merge "Tweak recents out animation a bit more" into jb-dev

* commit '64dbcd64be34f83e51229891da865ca047b4f5f4':
Tweak recents out animation a bit more
0721bde26c73861bb40a5732cb63741d13776e36 12-Jun-2012 Craig Mautner <cmautner@google.com> am 47adf865: Merge "Fix exposing wallpaper on rotations and other." into jb-dev

* commit '47adf865bddf6c81051d457e04785408d2710f60':
Fix exposing wallpaper on rotations and other.
a2becffcf2a19889b90256a8479e276081ce6108 12-Jun-2012 Chia-chi Yeh <chiachi@android.com> am d667aebf: Merge "VPN: move VpnDialogs away from system uid." into jb-dev

* commit 'd667aebfb34085960e2b41a2f52d10ae749ec44c':
VPN: move VpnDialogs away from system uid.
9fec779587a425450bff021cdd8c83c3d3d3a869 12-Jun-2012 Craig Mautner <cmautner@google.com> Do not cancel animations when switching.

Was canceling ongoing animations when starting a new animation which
caused the window of the first animation to restart. This looked
janky. The original cancellation was put in to stop the incorrect
animation being selected when quickly switching between an incoming
app and the homescreen. Reversing the cancellation no longer exposes
the original problem it was put in to fix.

One way to duplicate what this is fixing.
1. Slow down animations to 10x.
2. Run ApiDemos/App/Alert Dialogs/List dialog
3. Tap outside the list dialog and then tap the home button.
Tapping outside the list dialog causes the list dialog to animate
away. Tapping the home button then causes the app to animate away.
Before this fix the list dialog would revert to full size before
the app animates away. With this fix the list dialog continues its
original animation as the app animates away.

Fixes bug 6600726.

Change-Id: I29c940254808a321c3b6c2e4f4b7c78a72b47899
om/android/server/wm/WindowManagerService.java
0ed6f9a01f8bc6f6e7575aa068fe7a8556e79613 12-Jun-2012 Dianne Hackborn <hackbod@android.com> am 3430959c: am 569f5bdd: am 37d8ac1b: Merge "SystemServer: Looper\'s getMainLooper to return ServerThread"

* commit '3430959c4dce7ff5e4a8bac2f9e1c3f3a8307079':
SystemServer: Looper's getMainLooper to return ServerThread
3430959c4dce7ff5e4a8bac2f9e1c3f3a8307079 12-Jun-2012 Dianne Hackborn <hackbod@android.com> am 569f5bdd: am 37d8ac1b: Merge "SystemServer: Looper\'s getMainLooper to return ServerThread"

* commit '569f5bddd2494bdeae07a6b278f6df6cc8579981':
SystemServer: Looper's getMainLooper to return ServerThread
0fa77c1e0fc218040efc570936e988dbeece399c 12-Jun-2012 Craig Mautner <cmautner@google.com> Remove over aggressive optimization.

It turns out that sometimes the wallpaper target is migrated to the
bottom of the window stack and then mWallpaperTarget is set to null.
In particular this happens when the launcher all-apps screen is
brought up. When this happens the layer of the wallpaper is
correctly set below the previous wallpaper target.

An optimization in WindowAnimator was keeping the layer update from
propagating to the Surface object. This fix removes that optimization.

Fixes bug 6631717.

Change-Id: I800dd043ce8df83b4e5edbf710503135396bc01e
om/android/server/wm/WindowAnimator.java
om/android/server/wm/WindowStateAnimator.java
c38869abe5d89b7f9e66f23599889e17b93b5eec 12-Jun-2012 Craig Mautner <cmautner@google.com> Revert "Merge errors."

This reverts commit b0419a52008e57475ee254def1da20451da22d4c.
om/android/server/wm/WindowAnimator.java
om/android/server/wm/WindowStateAnimator.java
a5bbb8987b98fdbef45549103f70979f4e1e9e4d 12-Jun-2012 Craig Mautner <cmautner@google.com> Merge errors.

Change-Id: I33d0b1aa5dc5018cc879d2e9878e4825adaa4074
om/android/server/wm/WindowAnimator.java
om/android/server/wm/WindowStateAnimator.java
64dbcd64be34f83e51229891da865ca047b4f5f4 12-Jun-2012 Michael Jurka <mikejurka@google.com> Merge "Tweak recents out animation a bit more" into jb-dev
37d8ac1b5629e3159c662a0d77503cfe85660d86 12-Jun-2012 Dianne Hackborn <hackbod@android.com> Merge "SystemServer: Looper's getMainLooper to return ServerThread"
c016aaaa42f2d7f758bb6d973f035285e3d3dd87 06-Jun-2012 Michael Jurka <mikejurka@google.com> Tweak recents out animation a bit more

Bug: 6490204

-Fading to black in the recents layer
-Tweaking duration and interpolators
-Removing some unnecessary debug exceptions (Bug: 6642072)

Change-Id: Iba18fade7f874078111fc1d79a81830ee07617d4
om/android/server/wm/WindowManagerService.java
409d563b51853fc9dce6b4c02df84f58ec887afd 11-Jun-2012 Dianne Hackborn <hackbod@google.com> Merge "DO NOT MERGE: Cherry-pick 2ed524966d3c4bd04ea5f54026ed59558d73cd44 to JB." into jb-dev
47adf865bddf6c81051d457e04785408d2710f60 11-Jun-2012 Craig Mautner <cmautner@google.com> Merge "Fix exposing wallpaper on rotations and other." into jb-dev
ac5f998396d6a3f1fa5bab131eb170e0fbcb375c 22-May-2012 Vairavan Srinivasan <vairav@codeaurora.org> DO NOT MERGE: Cherry-pick 2ed524966d3c4bd04ea5f54026ed59558d73cd44 to JB.

This was contributed from AOSP, a fix to the management of URI write
permissions. This is a very blatant bug, and with the new Intent ClipData
and other stuff we are making much more use of write permissions in JB,
so it is well worth taking.

Change-Id: I58c86119b4d5c13fefd090944bea139803df1a48
om/android/server/am/UriPermission.java
ca3148edf156f326f598687d1e02362119ac2bec 11-Jun-2012 Jean-Baptiste Queru <jbq@google.com> am 6e85ad7d: resolved conflicts for merge of 80d21f2f to jb-dev-plus-aosp

* commit '6e85ad7d267f47ba3a367651a70d147725dc26ae':
Avoid memory leak in the Shutdown confirmation dialog.
6e85ad7d267f47ba3a367651a70d147725dc26ae 11-Jun-2012 Jean-Baptiste Queru <jbq@google.com> resolved conflicts for merge of 80d21f2f to jb-dev-plus-aosp

Change-Id: I44b2ba647fb3b208119d10aed3fa6fc85dddfb0d
d667aebfb34085960e2b41a2f52d10ae749ec44c 11-Jun-2012 Chia-chi Yeh <chiachi@android.com> Merge "VPN: move VpnDialogs away from system uid." into jb-dev
b9836b9185132974f6cfa9296bb3c28d1c9b668a 11-Jun-2012 Craig Mautner <cmautner@google.com> Fix exposing wallpaper on rotations and other.

1. Rotations do not go through standard closing of animations so the
wallpaper was not being hidden when the wallpaper target surface was
destroyed. This fix adds hiding the wallpaper when the wallpaper
target is destroyed.

2. The wallpaper target is nulled when switching from launcher home
screen to launcher all apps. In this case the wallpaper remains
visible but below visible layers. It should be hidden so that when
those layers adjust it is not exposed. (Separate fix for adjusting
wallpaper in this case will come).

Fixes bug 6629464.

Change-Id: I522f97dafc0cdcc0f933a825ec9a29d8f63590b5
om/android/server/wm/WindowAnimator.java
om/android/server/wm/WindowStateAnimator.java
1d5d7375aba5fd55d5ad46e62c8362ebcf4bc01a 11-Jun-2012 Dianne Hackborn <hackbod@android.com> am 5134d711: am 574352a7: am aa8cac86: Merge "frameworks/base: release references of UriPermissionOwner"

* commit '5134d711d1ff0f0d0ba2df10d22742fb769835e0':
frameworks/base: release references of UriPermissionOwner
f978979d1565ef8aa8b98298cfca09044cb22ba6 11-Jun-2012 Jean-Baptiste Queru <jbq@google.com> am b8c6405f: resolved conflicts for merge of cddaf4d5 to jb-dev-plus-aosp

* commit 'b8c6405fda9c41541868773f40ddd29bb1fc7ed8':
Performance: Activity manager perf unnecessary recalc of oom_adj
5134d711d1ff0f0d0ba2df10d22742fb769835e0 11-Jun-2012 Dianne Hackborn <hackbod@android.com> am 574352a7: am aa8cac86: Merge "frameworks/base: release references of UriPermissionOwner"

* commit '574352a796e6398ff4f2b7fb1e14ada035e9a47a':
frameworks/base: release references of UriPermissionOwner
b8c6405fda9c41541868773f40ddd29bb1fc7ed8 11-Jun-2012 Jean-Baptiste Queru <jbq@google.com> resolved conflicts for merge of cddaf4d5 to jb-dev-plus-aosp

Change-Id: I973d361a9599b32f9eaced0748d984900590ea3d
be782a6aa0f7c656ed0dce468b9722c3acde8358 11-Jun-2012 Dianne Hackborn <hackbod@google.com> am 3857681e: am a7e3a1e0: Merge "Include important native processes in watchdog stacks." into jb-dev

* commit '3857681e5885b64e593dcc3e28492b156d860ed3':
Include important native processes in watchdog stacks.
3857681e5885b64e593dcc3e28492b156d860ed3 11-Jun-2012 Dianne Hackborn <hackbod@google.com> am a7e3a1e0: Merge "Include important native processes in watchdog stacks." into jb-dev

* commit 'a7e3a1e0e7d308e7e78a1992038a34485d04ab29':
Include important native processes in watchdog stacks.
a7e3a1e0e7d308e7e78a1992038a34485d04ab29 11-Jun-2012 Dianne Hackborn <hackbod@google.com> Merge "Include important native processes in watchdog stacks." into jb-dev
cce365a505a0f03149017196c417718c95f1708e 10-Jun-2012 Svetoslav Ganov <svetoslavganov@google.com> am 2622a7cd: am b7726159: Merge "Crash in the touch explorer." into jb-dev

* commit '2622a7cd6e923a88ffbdd1925a9112a7b141fb04':
Crash in the touch explorer.
2622a7cd6e923a88ffbdd1925a9112a7b141fb04 10-Jun-2012 Svetoslav Ganov <svetoslavganov@google.com> am b7726159: Merge "Crash in the touch explorer." into jb-dev

* commit 'b7726159e3ee29b45381ede8446c1e87fbbaa23a':
Crash in the touch explorer.
b7726159e3ee29b45381ede8446c1e87fbbaa23a 10-Jun-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Crash in the touch explorer." into jb-dev
a656414e948231177e41a74c2ab5e4015d09ba9d 10-Jun-2012 Svetoslav Ganov <svetoslavganov@google.com> am 3dbb70ec: am 86bbf705: Merge "Settings crash after enabling TalkBack accessibility." into jb-dev

* commit '3dbb70ec9c593e11dd19efa528a99e9ec21d63e0':
Settings crash after enabling TalkBack accessibility.
3dbb70ec9c593e11dd19efa528a99e9ec21d63e0 10-Jun-2012 Svetoslav Ganov <svetoslavganov@google.com> am 86bbf705: Merge "Settings crash after enabling TalkBack accessibility." into jb-dev

* commit '86bbf70587602c1fd86fce1a2a4be78da45aaedc':
Settings crash after enabling TalkBack accessibility.
8e4e7959362ebd6bf021b8cfc3839e4c0d522fde 09-Jun-2012 Dianne Hackborn <hackbod@android.com> am a8e46828: am c99e6ee2: am c9aa32e9: Merge "Fix dumpPowerState method"

* commit 'a8e46828bf463cf542885d7726310abeac915e0a':
Fix dumpPowerState method
a8e46828bf463cf542885d7726310abeac915e0a 09-Jun-2012 Dianne Hackborn <hackbod@android.com> am c99e6ee2: am c9aa32e9: Merge "Fix dumpPowerState method"

* commit 'c99e6ee202ba9d895c96f034643fd39a035ea7f2':
Fix dumpPowerState method
aa8cac86d8f41eaf89f9e78492db2dc5c3052e0c 09-Jun-2012 Dianne Hackborn <hackbod@android.com> Merge "frameworks/base: release references of UriPermissionOwner"
2d18c60a0b16c4abac54d373731f4b4afc74e283 09-Jun-2012 Dianne Hackborn <hackbod@android.com> Merge "Performance: Activity manager perf unnecessary recalc of oom_adj"
f72467ad9843bf5d4b75fb308386e77ebb5c3447 09-Jun-2012 Dianne Hackborn <hackbod@google.com> Include important native processes in watchdog stacks.

Helps us track down deadlocks involving native service processes.

Bug: 6615693
Change-Id: I580047550772e29586195a8cf440141574e3f40c
om/android/server/Watchdog.java
om/android/server/am/ActivityManagerService.java
c9aa32e93f39f84033e4ac812efec662a1f824ac 09-Jun-2012 Dianne Hackborn <hackbod@android.com> Merge "Fix dumpPowerState method"
e45c0b230ba92d7daf8bf625a59bd87d5948101b 09-Jun-2012 Svetoslav Ganov <svetoslavganov@google.com> Crash in the touch explorer.

1. The touch explorer was notified for accessibility events from
a binder thread which was poking the internal state of the
latter which by design is not tread safe. Since the touch
explorer is expected to be running only on the main thread
the accessibility manager service delivers the accessibility
events to the explorer on that thread.

bug:6635496

Change-Id: Ifdc5329e4be8e485d7f77f0fb472184494fa0d15
om/android/server/accessibility/AccessibilityManagerService.java
ee33ad24cdc31ed0d7f99e110e041b0a63c9b0f1 09-Jun-2012 Svetoslav Ganov <svetoslavganov@google.com> Settings crash after enabling TalkBack accessibility.

1. AccessibilityInput filter was not checking whether the touch
explorer instance is not null before passing it an accessibility
event. If the accessibility event is dispatched before the input
filter is installed but after it is created we runt into this
case.

2. Added a missing null check in accessibility node info.

bug:6635089

Change-Id: Ia389dc1f427427eb73794f6331ccb870e0b44c55
om/android/server/accessibility/AccessibilityInputFilter.java
d208c1b8c96c9db5764d29d4e7b61443de40470c 09-Jun-2012 Jean-Baptiste Queru <jbq@google.com> am 3e751f1b: am 60c77212: am 2a393a99: Merge "MountService: unlink death notification when unregistering listeners"

* commit '3e751f1b7bc9ae4c477b75290e59d7c3904f94dc':
MountService: unlink death notification when unregistering listeners
3e751f1b7bc9ae4c477b75290e59d7c3904f94dc 09-Jun-2012 Jean-Baptiste Queru <jbq@google.com> am 60c77212: am 2a393a99: Merge "MountService: unlink death notification when unregistering listeners"

* commit '60c7721210d327a464fdc95dbbe504e8eb10525c':
MountService: unlink death notification when unregistering listeners
2a393a99dc9612516dd9efbf74b6b5924d7d608a 08-Jun-2012 Jean-Baptiste Queru <jbq@google.com> Merge "MountService: unlink death notification when unregistering listeners"
cbb987e151ee5619be83c4995d18b2d196c31b5c 08-Jun-2012 Craig Mautner <cmautner@google.com> am af2ab39a: am 78fc35bd: Merge "Hide wallpaper when wallpaper target gets hidden." into jb-dev

* commit 'af2ab39abad1c0481af471e60a299fb2839d608d':
Hide wallpaper when wallpaper target gets hidden.
c62c7ee75b41052f0b270ffbb5afff65b2232aad 08-Jun-2012 Craig Mautner <cmautner@google.com> am 1189f855: am 7f786b8f: Merge "Do not animate keyboard and button brightness." into jb-dev

* commit '1189f855e680eb05f60d849372a7049cbf9a305e':
Do not animate keyboard and button brightness.
af2ab39abad1c0481af471e60a299fb2839d608d 08-Jun-2012 Craig Mautner <cmautner@google.com> am 78fc35bd: Merge "Hide wallpaper when wallpaper target gets hidden." into jb-dev

* commit '78fc35bde452c2fea18ecf9d8aeedee6d82ba1eb':
Hide wallpaper when wallpaper target gets hidden.
78fc35bde452c2fea18ecf9d8aeedee6d82ba1eb 08-Jun-2012 Craig Mautner <cmautner@google.com> Merge "Hide wallpaper when wallpaper target gets hidden." into jb-dev
dadc857d9de364fded10d4f69eb82bc9cd35d4b7 08-Jun-2012 Chia-chi Yeh <chiachi@android.com> VPN: move VpnDialogs away from system uid.

Bug: 6632536
Change-Id: Iece647c077caf5298ccfe7d7aba5f0911a4ed0d1
om/android/server/connectivity/Vpn.java
ff92f04e76cb141caba6bf767618b1c5153242c1 08-Jun-2012 Craig Mautner <cmautner@google.com> Hide wallpaper when wallpaper target gets hidden.

Another location that potentially hides the wallpaper target while
leaving the wallpaper itself still visible. Causes the wallpaper to
show up when upper surfaces are transparent all the way down.

Fixes bug b6621986.

Change-Id: If75053160f041eb78868eda36b7820fb2110d069
om/android/server/wm/WindowStateAnimator.java
1189f855e680eb05f60d849372a7049cbf9a305e 08-Jun-2012 Craig Mautner <cmautner@google.com> am 7f786b8f: Merge "Do not animate keyboard and button brightness." into jb-dev

* commit '7f786b8fa20619dcd69324c521cb59242a8f2944':
Do not animate keyboard and button brightness.
7f786b8fa20619dcd69324c521cb59242a8f2944 08-Jun-2012 Craig Mautner <cmautner@google.com> Merge "Do not animate keyboard and button brightness." into jb-dev
8dd1e4ce42be15593d767d09e912740405240eec 08-Jun-2012 Craig Mautner <cmautner@google.com> am 6aabf8d7: am fab75dc8: Merge "Turn off dimming immediately for removed windows." into jb-dev

* commit '6aabf8d7c7e19c424deeb7295cd13240a31dbfe4':
Turn off dimming immediately for removed windows.
6aabf8d7c7e19c424deeb7295cd13240a31dbfe4 08-Jun-2012 Craig Mautner <cmautner@google.com> am fab75dc8: Merge "Turn off dimming immediately for removed windows." into jb-dev

* commit 'fab75dc830039b5aa1463aea55ceee2de279ec52':
Turn off dimming immediately for removed windows.
fab75dc830039b5aa1463aea55ceee2de279ec52 08-Jun-2012 Craig Mautner <cmautner@google.com> Merge "Turn off dimming immediately for removed windows." into jb-dev
c7e2d4a57bca3c9b2fe005041314c9cbc6f843b2 08-Jun-2012 Dianne Hackborn <hackbod@google.com> am 33e39aef: am 0876ab0a: Merge "Fix issue #6295373: "Package com.google.android.apps.authenticator2 has..." into jb-dev

* commit '33e39aefdf9266dc4858f7a6171f46f43ffa3ec3':
Fix issue #6295373: "Package com.google.android.apps.authenticator2 has...
33e39aefdf9266dc4858f7a6171f46f43ffa3ec3 08-Jun-2012 Dianne Hackborn <hackbod@google.com> am 0876ab0a: Merge "Fix issue #6295373: "Package com.google.android.apps.authenticator2 has..." into jb-dev

* commit '0876ab0ac17518c479e9dffe025884870a586d9c':
Fix issue #6295373: "Package com.google.android.apps.authenticator2 has...
0876ab0ac17518c479e9dffe025884870a586d9c 08-Jun-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #6295373: "Package com.google.android.apps.authenticator2 has..." into jb-dev
236a35b77a1b48b11e7ad5ce9774e41ef6500a29 08-Jun-2012 Craig Mautner <cmautner@google.com> Turn off dimming immediately for removed windows.

Dimming was only turning off immediately for app-animated windows.
For removed windows dimming wouldn't turn off until the window was
completely gone.

Fixes bug 6628057.

Change-Id: I3ba6501b10a31b6f8c91012e17ad8734a84050c4
om/android/server/wm/WindowManagerService.java
f8dc339a527efbb1a3f41b7883f599476412e8a6 08-Jun-2012 Kenny Root <kroot@google.com> am 625b92fc: am f27f2f8f: Merge "Delete old forward-locked apps on upgrade" into jb-dev

* commit '625b92fcf7ce3237eb4894e3c41846a65022831d':
Delete old forward-locked apps on upgrade
291576ec6f0b55084caa330db4b9fdaf83dae367 08-Jun-2012 Craig Mautner <cmautner@google.com> Do not animate keyboard and button brightness.

Keyboard and button brightness are always set to assign values
immediately but were being passed through the animation process
anyways. This interfered with the state of the screen brightness
animation. Intercept keyboard and button brightness directives and
implement them immediately.

Also use actual screen brightness and value to determine when we
are dimming or brightening. Previously we were using the sensor
values to determine whether the action called for was to brighten or
dim. This looks at the actual screen brightness level to make that
determination. If the two values get out of sync it is better to rely
on the screen value than the sensor value.

Fixes bug 6626681.

Change-Id: I82158f5188ffb739e01f818ba88e79f03a405c58
om/android/server/PowerManagerService.java
625b92fcf7ce3237eb4894e3c41846a65022831d 08-Jun-2012 Kenny Root <kroot@google.com> am f27f2f8f: Merge "Delete old forward-locked apps on upgrade" into jb-dev

* commit 'f27f2f8f71f584471fe558845c24121e957b2cf2':
Delete old forward-locked apps on upgrade
f27f2f8f71f584471fe558845c24121e957b2cf2 08-Jun-2012 Kenny Root <kroot@google.com> Merge "Delete old forward-locked apps on upgrade" into jb-dev
90f9e313438fbc7e634af0679cf94e97760e90c8 18-Nov-2010 Björn Davidsson <björn.davidsson@sonyericsson.com> Performance: Activity manager perf unnecessary recalc of oom_adj

If an activity has bound servicesor content providers,
updateLruProcessInternalLocked will be called recursively with
the oomAdj flag set, resulting in several recalculations of oomAdj
with unchanged data. Doing it at the end of the top level call to
updateLruProcessInternalLocked should be sufficient.

Change-Id: I95e27011e1d3519f256a9bd756cbb18d43e8db29
om/android/server/am/ActivityManagerService.java
a2cac523bfc9b519e1b799c0d41cb1c2b1f79dd3 08-Jun-2012 Svetoslav Ganov <svetoslavganov@google.com> am 7a91def9: am 75fb3e7a: Merge "Cannot click on the last touch explored auto-completion item." into jb-dev

* commit '7a91def99ad20491ee739b7a5edf0d3ed3099e2e':
Cannot click on the last touch explored auto-completion item.
7a91def99ad20491ee739b7a5edf0d3ed3099e2e 08-Jun-2012 Svetoslav Ganov <svetoslavganov@google.com> am 75fb3e7a: Merge "Cannot click on the last touch explored auto-completion item." into jb-dev

* commit '75fb3e7ac25099d9f6f0a4c34ee0aa7db2dd5d65':
Cannot click on the last touch explored auto-completion item.
75fb3e7ac25099d9f6f0a4c34ee0aa7db2dd5d65 08-Jun-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Cannot click on the last touch explored auto-completion item." into jb-dev
987ad958210d8e5b25682a77fed01497d5762576 08-Jun-2012 Kenny Root <kroot@google.com> am 6dd3a0d6: am 87353093: Merge "Measure ASECs for forward-locked apps" into jb-dev

* commit '6dd3a0d61f707e7f5a9338113217eadac1849e48':
Measure ASECs for forward-locked apps
d0c5f515c05d05c9d24971695337daf9d6ce409c 08-Jun-2012 Dianne Hackborn <hackbod@google.com> Fix issue #6295373: "Package com.google.android.apps.authenticator2 has...

...mismatched uid: X on disk, Y in settings" errors on Froyo and Gingerbread

Deal more gracefully with the uid changing in three ways:

1. If the uid on disk has become root, then have installd change it to
the application's uid. This is to correct a potential case where
installd was interrupted while linking or unlinking the libs dir,
during which it temporarily changes the owner of the dir to root
so that a malicious app can not get in its way. So if the uid on
disk has become root, we assume we can safely just change it back
to the correct uid.

2. When scaning packages at boot, use the same "delete and rebuild data
directory" code for third party applications as we have for system
applications. This allows us to at least end up in a state where the
app will run, even if its data is lost.

3. But we really don't want to get in to case 2, so if an application
update is being installed and we find that the uid we now have for
the app is different than the one on disk, fail the update. This will
protect against for example a developer changing the sharedUserId of
their app and getting into this bad state.

Bug: 6295373
Change-Id: Ic802fdd818ac62449ff3c61d1fff1aa4d4942f39
om/android/server/pm/Installer.java
om/android/server/pm/PackageManagerService.java
385d9f24b5ce2acb86c0dc192ce702718ab01c39 08-Jun-2012 Svetoslav Ganov <svetoslavganov@google.com> Cannot click on the last touch explored auto-completion item.

1. When typing into an auto completion edit field a list of completions pops up and if
the user touch explores the list and tries to double tap to select the touched
completion the latter is not selected.

The auto completion is a popup that does not take input focus and is overlaid on
top of the window that has input focus. The touch explorer was clicking on the
location of the accessibility focus if the last touch explored location is within
the bounds of the active window. In this case this was the window with the edit
text into which the user is typing. The check performed by the touch explorer
was missing the case when the last touch explored location was within the bounds
of the active window but it actually was deloverd to another overlaid window.
Now we are poking on the accessibility focus location if the last explored
location is within the active window and was delivered to it.

bug:6629535

Change-Id: Ie66d5bb81ab021f2bb0414339b7de26d96826191
om/android/server/accessibility/AccessibilityManagerService.java
om/android/server/accessibility/TouchExplorer.java
6dd3a0d61f707e7f5a9338113217eadac1849e48 08-Jun-2012 Kenny Root <kroot@google.com> am 87353093: Merge "Measure ASECs for forward-locked apps" into jb-dev

* commit '87353093ef98f13c45c418884734460a1b09c149':
Measure ASECs for forward-locked apps
87353093ef98f13c45c418884734460a1b09c149 08-Jun-2012 Kenny Root <kroot@google.com> Merge "Measure ASECs for forward-locked apps" into jb-dev
8a97c0905a2658c1e656c237124cb207d7ff148f 07-Jun-2012 Kenny Root <kroot@google.com> am 41668981: am 906272b9: Merge "Only call fixSdPermissions when appropriate" into jb-dev

* commit '41668981aeef6f56d7528d91efa0372b9f6224b2':
Only call fixSdPermissions when appropriate
41668981aeef6f56d7528d91efa0372b9f6224b2 07-Jun-2012 Kenny Root <kroot@google.com> am 906272b9: Merge "Only call fixSdPermissions when appropriate" into jb-dev

* commit '906272b977f5bfd977ca69d0826bb95ba3fcda63':
Only call fixSdPermissions when appropriate
906272b977f5bfd977ca69d0826bb95ba3fcda63 07-Jun-2012 Kenny Root <kroot@google.com> Merge "Only call fixSdPermissions when appropriate" into jb-dev
4210a6f08b18604b94df5a8983628650645112b5 07-Jun-2012 Svetoslav Ganov <svetoslavganov@google.com> am 8114f439: am ddbcce81: Merge "Cannot interact with dialogs when IME is up and on not touch explored popups." into jb-dev

* commit '8114f439fe8b409a00ac704b37128922690e2186':
Cannot interact with dialogs when IME is up and on not touch explored popups.
8114f439fe8b409a00ac704b37128922690e2186 07-Jun-2012 Svetoslav Ganov <svetoslavganov@google.com> am ddbcce81: Merge "Cannot interact with dialogs when IME is up and on not touch explored popups." into jb-dev

* commit 'ddbcce81acaa744d35c727d9a530b04255fab5af':
Cannot interact with dialogs when IME is up and on not touch explored popups.
2afded11aad8e3228a0f71585ecfb89c6c54b066 05-Jun-2012 Kenny Root <kroot@google.com> Measure ASECs for forward-locked apps

Forward-locked apps are mostly in ASEC containers now, so the
containers need to be measured as well.

Bug: 6606390
Change-Id: I69e9fe47aabe1e130568779a45fe8000b3ce9d4c
om/android/server/pm/PackageManagerService.java
c7a8999a52351c0c49dbbb25d6d1ccb1a3c12883 06-Jun-2012 Kenny Root <kroot@google.com> Only call fixSdPermissions when appropriate

When media packages were loaded, they would lose their forward-locked
status since the flags covering it was not available when the
doPostInstall step was called.

Bug: 6611980
Change-Id: I807fcec6b61cedf7654808b704fba7de9c7c1922
om/android/server/pm/PackageManagerService.java
86783474fdec98a22bc22e224462767eab13e273 07-Jun-2012 Svetoslav Ganov <svetoslavganov@google.com> Cannot interact with dialogs when IME is up and on not touch explored popups.

1. If the last touch explored location is within the active window we
used to click on exact location if it is within the accessibility
focus otherwise in the accessibility focus center. If the last touch
explored location is not within the active window we used to just
click there. This breaks in the case were one has touch explored
at a given place in the current window and now a dialog opens *not*
covering the touch explored location. If one uses swipes to move
accessibility focus i.e. to traverse the dialog without touching
it one cannot activate anything because the touch explorer is using
the last touch explored location that is outside of the active
window e.g the dialog.

The solution is to clear the last touch explored location when a
window opens or accessibility focus moves. If the last touch
explored location is null we are clicking in the accessibility
focus location.

bug:6620911

2. There is a bug in the window manager that does not notify a
window that its location has changed (bug:6623031). This breaks
accessibility interaction with dialogs that have input because
when the IME is up the dialog is moved but not notified. Now
the accessibility layer gets incorrect location for the
accessibility focus and the window bounds.

The soluion is when the accessibility manager service calls
into the remove thress to obtain some accessibility node infos
it passes the window left and top which it gets from the
window manager. These values are used to update the attach info
window left and top so all accessibility node infos emitted
from that window had correct bounds in screen coordinates.

bug:6620796

Change-Id: I18914f2095c55cfc826acf5277bd94b776bda0c8
om/android/server/accessibility/AccessibilityInputFilter.java
om/android/server/accessibility/AccessibilityManagerService.java
om/android/server/accessibility/TouchExplorer.java
om/android/server/wm/WindowManagerService.java
3cab89e6911e9ed52b153d7cfb3fde2c9819c30e 07-Jun-2012 Robert Greenwalt <rgreenwalt@google.com> Merge "Fix a sync problem in NativeDaemonConnector."
ef21599b17bc081321bc49f1fb315c9e7ad31e3a 05-Jun-2012 Robert Greenwalt <rgreenwalt@google.com> Fix a sync problem in NativeDaemonConnector.

We had a gap in sync coverage between doing a check and waiting and a
matching gap between setting a condition and notifying. It was possible
to get context switched just so and have the notify hit before the waiter
had started waiting.

bug:6492166
Change-Id: Idc876cf85b35902a79fae932547957ed5ef00e4f
om/android/server/NativeDaemonConnector.java
84e35eadfba001bf3b99877ce28bfbd4a32a2e08 07-Jun-2012 Kenny Root <kroot@google.com> Delete old forward-locked apps on upgrade

The old style forward-locked apps were in a directory called
/data/app-private but the new style forward-locked apps are in ASEC
containers. This made the upgrade path confused and it wouldn't
correctly generate the InstallArgs to delete the old file.

Bug: 6619438
Change-Id: If4323fa8701d9fc653998f5db58670b4124b9e87
om/android/server/pm/PackageManagerService.java
409a1a5402a6ce2c7bacee07943ee207c6a1aa8d 07-Jun-2012 Craig Mautner <cmautner@google.com> am fd62576f: am a9144ffd: Merge "Disable automatic screen dimming." into jb-dev

* commit 'fd62576f06c05d6aab687892b9fcccfed3899021':
Disable automatic screen dimming.
fd62576f06c05d6aab687892b9fcccfed3899021 07-Jun-2012 Craig Mautner <cmautner@google.com> am a9144ffd: Merge "Disable automatic screen dimming." into jb-dev

* commit 'a9144ffd6466a914a9138dabab8bc331fdc70e2f':
Disable automatic screen dimming.
a9144ffd6466a914a9138dabab8bc331fdc70e2f 07-Jun-2012 Craig Mautner <cmautner@google.com> Merge "Disable automatic screen dimming." into jb-dev
a4e96d5a6e07f342f1a4b972c1620340cb289de8 06-Jun-2012 Craig Mautner <cmautner@google.com> Disable automatic screen dimming.

Done by setting the dimming period to Integer.MAX_VALUE. While it
doesn't technically disable dimming it will take 248 days to get to
any target value.

Fixes bug 6616423.

Change-Id: I5b753286b9d93664fbff79021be38adf4d8a007d
om/android/server/PowerManagerService.java
dd749e05c17200542aca1ecd45951d0c98af8ab4 06-Jun-2012 Craig Mautner <cmautner@google.com> am 55ab60cd: am 8c4b40ec: Merge "Set screen brightness to match sensor at power on." into jb-dev

* commit '55ab60cd7fe97d95f997d5f0761a5e571a88aa14':
Set screen brightness to match sensor at power on.
55ab60cd7fe97d95f997d5f0761a5e571a88aa14 06-Jun-2012 Craig Mautner <cmautner@google.com> am 8c4b40ec: Merge "Set screen brightness to match sensor at power on." into jb-dev

* commit '8c4b40eceba39a493a1d01ed83decc8b43fbfb5d':
Set screen brightness to match sensor at power on.
3793368f72b284950aa917273193e30739c8cdf7 06-Jun-2012 Craig Mautner <cmautner@google.com> Set screen brightness to match sensor at power on.

Use the first sensor value received after screen on to set the screen
brightness. Do this setting immediately rather than animate to the
target brightness.

Fixes bug 6612418.

Change-Id: I6c24c55e0bd35ef58a6494d3b5e449954241fd00
om/android/server/PowerManagerService.java
fb6c039bfb349d3971a8cbb6bdac2b149c767175 06-Jun-2012 Dianne Hackborn <hackbod@google.com> am 4835c17b: am 1e122850: Merge "Fix issue #6609383: java.lang.SecurityException: Requires..." into jb-dev

* commit '4835c17b13c08693cf9a370df86d660818f8d391':
Fix issue #6609383: java.lang.SecurityException: Requires...
4835c17b13c08693cf9a370df86d660818f8d391 06-Jun-2012 Dianne Hackborn <hackbod@google.com> am 1e122850: Merge "Fix issue #6609383: java.lang.SecurityException: Requires..." into jb-dev

* commit '1e1228505d1704eab2dabb446c14518c6ae4ddc0':
Fix issue #6609383: java.lang.SecurityException: Requires...
1e1228505d1704eab2dabb446c14518c6ae4ddc0 06-Jun-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #6609383: java.lang.SecurityException: Requires..." into jb-dev
bd145dbfd720d0e2ddd879492837da0f47ac11a8 06-Jun-2012 Dianne Hackborn <hackbod@google.com> Fix issue #6609383: java.lang.SecurityException: Requires...

...MANAGE_APP_TOKENS permission

Bug: 6609383
Change-Id: I5ce8ac1ec496af50477111b46e6daea81181e3ca
om/android/server/am/ActivityManagerService.java
7510230583e5ef5a94392e8ccdb1416b8d9f37cc 06-Jun-2012 Svetoslav Ganov <svetoslavganov@google.com> am f1abc425: am cab5b8a9: Merge "Nodes with contentDescription should always be important for accessibility." into jb-dev

* commit 'f1abc4253111907ffb8e5ba19dffa8d00d92fc45':
Nodes with contentDescription should always be important for accessibility.
f1abc4253111907ffb8e5ba19dffa8d00d92fc45 06-Jun-2012 Svetoslav Ganov <svetoslavganov@google.com> am cab5b8a9: Merge "Nodes with contentDescription should always be important for accessibility." into jb-dev

* commit 'cab5b8a91d6fbcbb694284038f5529ff02f10f78':
Nodes with contentDescription should always be important for accessibility.
cab5b8a91d6fbcbb694284038f5529ff02f10f78 06-Jun-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Nodes with contentDescription should always be important for accessibility." into jb-dev
e47957a0bbe2164467ff6e7a566b0c9e4689cdc9 05-Jun-2012 Svetoslav Ganov <svetoslavganov@google.com> Nodes with contentDescription should always be important for accessibility.

1. Now after setting the content description on a view we mark is as
important for accessibility of the current important for accessibility
mode of that view is auto.

2. Minor tweak to a touch explorer coefficient to make performing double
tapping easier.

bug:6615353

Change-Id: I3b477f533a3ebde85d425caf32ace5e851240f88
om/android/server/accessibility/TouchExplorer.java
f943b834b6670c1b7b4e93ab70a327f8e509561a 05-Jun-2012 Craig Mautner <cmautner@google.com> am 221354f8: am 35b691f0: Merge "Eliminate wallpaper exposure during transition." into jb-dev

* commit '221354f8e7190fd1a54b37612713440a83a3f835':
Eliminate wallpaper exposure during transition.
221354f8e7190fd1a54b37612713440a83a3f835 05-Jun-2012 Craig Mautner <cmautner@google.com> am 35b691f0: Merge "Eliminate wallpaper exposure during transition." into jb-dev

* commit '35b691f056159e938a256420f6d3dec1ebf8bfd9':
Eliminate wallpaper exposure during transition.
35b691f056159e938a256420f6d3dec1ebf8bfd9 05-Jun-2012 Craig Mautner <cmautner@google.com> Merge "Eliminate wallpaper exposure during transition." into jb-dev
ad5725d7985a784056b02b97ab76357a667a6ad4 05-Jun-2012 Craig Mautner <cmautner@google.com> Eliminate wallpaper exposure during transition.

Make sure that the wallpaper target exists and is visible before
exposing the wallpaper.

Fixes bug 6570335.

Change-Id: I1dddfe26683e84fd813e7bee884ba2bd4bb85272
om/android/server/wm/WindowAnimator.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowStateAnimator.java
4dfab12abf7a281cd8daafb6c1f59fa0631f75c0 05-Jun-2012 Svetoslav Ganov <svetoslavganov@google.com> am e56f9633: am ccf97dc1: Merge "Global accessibility action to open recent apps shows the old dialog style." into jb-dev

* commit 'e56f9633d82def361bc1ffbc13d4bfd094286d56':
Global accessibility action to open recent apps shows the old dialog style.
a7590f32e06c901b30815f8ca7b719e74b4cd8bc 05-Jun-2012 Irfan Sheriff <isheriff@google.com> resolved conflicts for merge of e7884dbb to master

Change-Id: Icb13c37491d3e9f0252198f98d8110740fa1f997
e56f9633d82def361bc1ffbc13d4bfd094286d56 05-Jun-2012 Svetoslav Ganov <svetoslavganov@google.com> am ccf97dc1: Merge "Global accessibility action to open recent apps shows the old dialog style." into jb-dev

* commit 'ccf97dc1afc1b0f99ced0b5324e383edd5ee8246':
Global accessibility action to open recent apps shows the old dialog style.
ccf97dc1afc1b0f99ced0b5324e383edd5ee8246 05-Jun-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Global accessibility action to open recent apps shows the old dialog style." into jb-dev
e7884dbb553b955cdd2e9db423a2f73675aef1c7 05-Jun-2012 Irfan Sheriff <isheriff@google.com> am 5751f816: Merge "Add contentobserver for nsd_on setting" into jb-dev

* commit '5751f816f06454ea48bc25f56051878e0ce82dc1':
Add contentobserver for nsd_on setting
5751f816f06454ea48bc25f56051878e0ce82dc1 05-Jun-2012 Irfan Sheriff <isheriff@google.com> Merge "Add contentobserver for nsd_on setting" into jb-dev
919aca5663be997eb238a9635e742858d29b8592 02-Jun-2012 Irfan Sheriff <isheriff@google.com> Add contentobserver for nsd_on setting

Bug: 6606274
Change-Id: I863b9e2a2446d697f3c9c49f24dcdc2b599f091e
om/android/server/NsdService.java
8a9e5b2dd0162e2c7b65db29979fe80282da9cf2 04-Jun-2012 Daniel Sandler <dsandler@android.com> am 04b2a978: am ab886f58: Don\'t do closing animation on an opening app.

* commit '04b2a978a5c13e7e70298a6cf514ab4dee5a814d':
Don't do closing animation on an opening app.
04b2a978a5c13e7e70298a6cf514ab4dee5a814d 04-Jun-2012 Daniel Sandler <dsandler@android.com> am ab886f58: Don\'t do closing animation on an opening app.

* commit 'ab886f588d4086214e66eed548ea3edd77f8d2ba':
Don't do closing animation on an opening app.
c682fc965df2518a95d23e39ec51d788100d20ec 04-Jun-2012 Svetoslav Ganov <svetoslavganov@google.com> Global accessibility action to open recent apps shows the old dialog style.

1. The global action to open recent apps shows the old dialog style rent apps
panel. Apparently the key code to open recent apps is not opening the new
UI so the AccessibilityManagerService is calling directly the method on
the IStatusBarSerivce to do so.

bug:6607664

Change-Id: I94c1963b07947776bf1c2448903b26f3603f9a59
om/android/server/accessibility/AccessibilityManagerService.java
ab886f588d4086214e66eed548ea3edd77f8d2ba 04-Jun-2012 Daniel Sandler <dsandler@android.com> Don't do closing animation on an opening app.

Check to make sure that the closing wallpaper animation isn't used on
an opening app token. This can happen when a previous animation hasn't
completed when the next animation is starting.

Fixes bug 6557751.

Change-Id: Ib8bd4dd7de1e361f6fc0cab11d0997e70f9ddd0b
om/android/server/wm/WindowManagerService.java
92bc9393e6aaa46ffc1d9aa1fde05bf4f25d6dff 04-Jun-2012 Dianne Hackborn <hackbod@google.com> am 5a70063f: am 6593be0c: Merge "Work on issue #6579997: Mariner entrance animation" into jb-dev

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

* commit '6593be0c200f69d932e40e05e9df54b89c157c48':
Work on issue #6579997: Mariner entrance animation
6593be0c200f69d932e40e05e9df54b89c157c48 04-Jun-2012 Dianne Hackborn <hackbod@google.com> Merge "Work on issue #6579997: Mariner entrance animation" into jb-dev
c0a0c7160ac79b968a99bd1b38b7fba5d168329c 04-Jun-2012 Svetoslav Ganov <svetoslavganov@google.com> am 66a10964: am cc822a76: Merge "Touch exploration gesture end not delivered to clients." into jb-dev

* commit '66a10964b0aa56e07263005e6a41a87ecd2dd2d7':
Touch exploration gesture end not delivered to clients.
42684c567a4033331b2b3add09b9f570c5ad59e3 04-Jun-2012 Jeff Brown <jeffbrown@google.com> Merge "Clamp the minimum screen brightness."
66a10964b0aa56e07263005e6a41a87ecd2dd2d7 04-Jun-2012 Svetoslav Ganov <svetoslavganov@google.com> am cc822a76: Merge "Touch exploration gesture end not delivered to clients." into jb-dev

* commit 'cc822a769e752c2845dc795f05b7b35b5b3f6614':
Touch exploration gesture end not delivered to clients.
cc822a769e752c2845dc795f05b7b35b5b3f6614 04-Jun-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Touch exploration gesture end not delivered to clients." into jb-dev
cd94caf2bb94f07522ea5bbf0e37dea960b38220 04-Jun-2012 Svetoslav Ganov <svetoslavganov@google.com> Touch exploration gesture end not delivered to clients.

1. Touch exploration gestures are demarcated by start and end
events. Due to a bug in the AccessibilityManagerService
the gesture end event was not dispatched. This caused the
AccessibilityNodeInfoCache to be off sync since it relies
on getting such events not to mention that the clients were
not getting the end but only the start event. The issue
was that the notified service types variable was not reset
after every event so when the manager sends the last hover
exit it flags that the service type is already notified
resulting in dropping on the floor the following gesture
end event.

bug:6539306

Change-Id: I2b96bcecea3b2240199d67f01afa6a033afce1de
om/android/server/accessibility/AccessibilityManagerService.java
15415f57a317c7332327102fdbfbca50f1cb5724 01-Jun-2012 jaiyoung.park <jaiyoung.park@lge.com> Fix dumpPowerState method

dumpPowerState method shows the current power manger service state but,
BUTTON_BRIGHT_BIT is omitted.

Add a routine of checking BUTTON_BRIGHT_BIT
Signed-off-by: jaiyoung.park <jaiyoung.park@lge.com>

Change-Id: I00484fb384963bafdc58ce89b3251a1f5585d992
om/android/server/PowerManagerService.java
e5b0bc2649aafc25083198aa9e0e2df54a4f4569 03-Jun-2012 Svetoslav Ganov <svetoslavganov@google.com> am dafffc35: am 778fa81f: Merge "Fixing a crash in the TouchExplorer." into jb-dev

* commit 'dafffc35023df8b22a1a7c294f79da89199dc4c2':
Fixing a crash in the TouchExplorer.
dafffc35023df8b22a1a7c294f79da89199dc4c2 03-Jun-2012 Svetoslav Ganov <svetoslavganov@google.com> am 778fa81f: Merge "Fixing a crash in the TouchExplorer." into jb-dev

* commit '778fa81f5da05dcc45260caa70c97971bdccf8bb':
Fixing a crash in the TouchExplorer.
778fa81f5da05dcc45260caa70c97971bdccf8bb 03-Jun-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Fixing a crash in the TouchExplorer." into jb-dev
4d9d59ab45a80623590d78f7ba5eacadf90320d8 03-Jun-2012 Craig Mautner <cmautner@google.com> am 547be2fc: am da652f6e: Merge "Revert change to correct animations." into jb-dev

* commit '547be2fc329c5d8e3fca38cbf17ee32d0e788ac9':
Revert change to correct animations.
547be2fc329c5d8e3fca38cbf17ee32d0e788ac9 03-Jun-2012 Craig Mautner <cmautner@google.com> am da652f6e: Merge "Revert change to correct animations." into jb-dev

* commit 'da652f6e51e5b255019ac020d56e262e477c2a46':
Revert change to correct animations.
da652f6e51e5b255019ac020d56e262e477c2a46 03-Jun-2012 Craig Mautner <cmautner@google.com> Merge "Revert change to correct animations." into jb-dev
ebac1b79c4a355d8cd73b49df059deb00d7aa256 03-Jun-2012 Svetoslav Ganov <svetoslavganov@google.com> Fixing a crash in the TouchExplorer.

1. If the runnable for performing a long press is not
removed when all pointers are up and it is executed
the explorer gets into delegating mode with no pointer
down and the next down crashes the explorer. Added
code to remove the long press runnable in a few places
it was missing and also added a safety in the runnable
to avoid executing it in case there are no active pointers.

bug:6557183

Change-Id: I9dab3de88fd08d8e2b38af18249ac551837c0736
om/android/server/accessibility/TouchExplorer.java
3aa7fcac1c46353c2f147d978d9eb2f2748def4a 03-Jun-2012 Craig Mautner <cmautner@google.com> Revert change to correct animations.

Incorrect animation was introduced with CL 196207 (perhaps in
combination with a later CL). Reverting part of that CL fixes
the incorrect animation and so far has not reintroduced the jank
that was fixed by that CL. If the jank reappears it should be
fixed in a different fashion than in CL 196207.

Fixes bug 6597505.

Change-Id: Ie8012237a8d49810ede51bd8d78ef8c2fd91ddd4
om/android/server/wm/WindowManagerService.java
a99b4a1d8dc2f25cebd0da83aed35214a44391b7 02-Jun-2012 Craig Mautner <cmautner@google.com> am e184c05b: am d672b241: Merge "Fix power manager issues." into jb-dev

* commit 'e184c05b55335b733662f60acc85706f3fb6b419':
Fix power manager issues.
e184c05b55335b733662f60acc85706f3fb6b419 02-Jun-2012 Craig Mautner <cmautner@google.com> am d672b241: Merge "Fix power manager issues." into jb-dev

* commit 'd672b241f6720201e3b8f613363d71e4291b8597':
Fix power manager issues.
d672b241f6720201e3b8f613363d71e4291b8597 02-Jun-2012 Craig Mautner <cmautner@google.com> Merge "Fix power manager issues." into jb-dev
0d3619860b8bf2eea98ef8acbe7c9f6146c26438 02-Jun-2012 Daniel Sandler <dsandler@android.com> am 90c31f8b: am 01827ce9: Merge "Be more discriminating when canceling notifications on changing packages." into jb-dev

* commit '90c31f8b769b3e2f24441754c403cc07ca9e936d':
Be more discriminating when canceling notifications on changing packages.
97018140fe2fec51a59f7ea6fa2e1f82097b27f4 02-Jun-2012 Svetoslav Ganov <svetoslavganov@google.com> am b6001195: am 6acca244: Merge "Cannot double tap and hold outside of the input focused window." into jb-dev

* commit 'b6001195f38725cf151933a69633ac404949881d':
Cannot double tap and hold outside of the input focused window.
271bc78a2c17dfe78cfe2b48966291a7a5727e9b 02-Jun-2012 Jeff Brown <jeffbrown@google.com> am 8363fb73: am 40ba4dad: Merge "Add a thread to handle the radio shutdown." into jb-dev

* commit '8363fb73b568d506645602c6489ce955cddde10d':
Add a thread to handle the radio shutdown.
84375876fcef73c5fa9c3de205c7db908ee14e15 02-Jun-2012 Dianne Hackborn <hackbod@google.com> Work on issue #6579997: Mariner entrance animation

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

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

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

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

Change-Id: Iee9a404ba530908d73cdbd4a9d0d2907ac03428f
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityRecord.java
om/android/server/am/ActivityStack.java
om/android/server/wm/WindowManagerService.java
90c31f8b769b3e2f24441754c403cc07ca9e936d 02-Jun-2012 Daniel Sandler <dsandler@android.com> am 01827ce9: Merge "Be more discriminating when canceling notifications on changing packages." into jb-dev

* commit '01827ce9f2d5f4441c7f7b0211d2739824320daf':
Be more discriminating when canceling notifications on changing packages.
b6001195f38725cf151933a69633ac404949881d 02-Jun-2012 Svetoslav Ganov <svetoslavganov@google.com> am 6acca244: Merge "Cannot double tap and hold outside of the input focused window." into jb-dev

* commit '6acca2442572a28b7d9428e5e2fc2aa4271e29f9':
Cannot double tap and hold outside of the input focused window.
8363fb73b568d506645602c6489ce955cddde10d 02-Jun-2012 Jeff Brown <jeffbrown@google.com> am 40ba4dad: Merge "Add a thread to handle the radio shutdown." into jb-dev

* commit '40ba4dad4c56b8a7fbae4a93a6e5385993301ad4':
Add a thread to handle the radio shutdown.
d29568cf5f1d2ce22c0c3c5f32812b64bf958f63 02-Jun-2012 Craig Mautner <cmautner@google.com> Fix power manager issues.

1. If a new brightness animation is started while an unrelated one is
ongoing complete the old animation immediately. Unrelated means that
the old and new animations apply to different devices (button,
keyboard, or screen).

2. Do not interpret turning off the keyboard or button lights as
turning off the screen in isScreenTurningOffLocked().

Fixes bug 6519847.

Change-Id: I53a20951036bcdb793daeff84a9ebeed44be01fc
om/android/server/PowerManagerService.java
01827ce9f2d5f4441c7f7b0211d2739824320daf 01-Jun-2012 Daniel Sandler <dsandler@android.com> Merge "Be more discriminating when canceling notifications on changing packages." into jb-dev
6acca2442572a28b7d9428e5e2fc2aa4271e29f9 01-Jun-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Cannot double tap and hold outside of the input focused window." into jb-dev
238099c0dbbdc66b8443552126680ad1c7cab17d 01-Jun-2012 Svetoslav Ganov <svetoslavganov@google.com> Cannot double tap and hold outside of the input focused window.

1. The long press routine was using the coordintates of the
accessibility focused item in the input focused window.
As a result double tap and hold did not work in a window
that does not take input focus such as the system bar.
Now the routine is using the last touch explored location
if it cannot find accessibility focus in the last touched
window.

bug:6584438

Change-Id: Ifd43adb20a066f389a9d4bd5716dd7ad834dd574
om/android/server/accessibility/TouchExplorer.java
26ece57dadb5e59e619bcd5d906935837d55d5db 01-Jun-2012 Daniel Sandler <dsandler@android.com> Be more discriminating when canceling notifications on changing packages.

Specifically: don't do it if the package is enabled at the
time the PACKAGE_CHANGED broadcast is sent. (We only want to
cancel notifications when packages enter the disabled
state.)

Bug: 6589355
Change-Id: Iba754cef27e2bdff35a13e403a867933c996f562
om/android/server/NotificationManagerService.java
40ba4dad4c56b8a7fbae4a93a6e5385993301ad4 01-Jun-2012 Jeff Brown <jeffbrown@google.com> Merge "Add a thread to handle the radio shutdown." into jb-dev
c3d808b3c04be56a650cf20449d088fe29e7b9b2 01-Jun-2012 Dianne Hackborn <hackbod@google.com> am c3895253: am d53710ce: Merge "Extend process observer to be usable for media routing." into jb-dev

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

* commit 'd53710ce644e7f1df417a8fe42ec26233a751b2e':
Extend process observer to be usable for media routing.
f2ba13210e4daac34e0e762263392c59e5fcd391 01-Jun-2012 Jeff Brown <jeffbrown@google.com> Clamp the minimum screen brightness.

Change-Id: Ief16f2b429f67cfb50877d24281401d7d4fcc4db
om/android/server/PowerManagerService.java
a93c2c117d502ee57dd27705a0b5efca4bf65011 01-Jun-2012 Dianne Hackborn <hackbod@google.com> Extend process observer to be usable for media routing.

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

Change-Id: Ie865cfd286455819f04e8c14e9b6fd54d028f8f2
om/android/server/am/ActivityManagerService.java
om/android/server/am/ProcessRecord.java
om/android/server/net/NetworkPolicyManagerService.java
b8203719bd037b39d12413f54d546e9ecc9e4872 01-Jun-2012 Jeff Brown <jeffbrown@google.com> Add a thread to handle the radio shutdown.

Protect the ShutdownThread from possible hangs in the telephony,
Bluetooth or NFC stack while turning off the radios.

Bug: 6585958
Change-Id: I6b448c854c5a0efb0eedd90437853ef2571e785b
om/android/server/pm/ShutdownThread.java
d2cf399e5d980a2e531e902ac98b3307964aacde 01-Jun-2012 Dianne Hackborn <hackbod@google.com> am ce2907b1: am f0e96de8: Merge "Maybe fix #6584979: Unable to launch share chooser activity from a Notification action" into jb-dev

* commit 'ce2907b1b6bf58cae681f1f009e4b308174c9a1e':
Maybe fix #6584979: Unable to launch share chooser activity from a Notification action
ce2907b1b6bf58cae681f1f009e4b308174c9a1e 01-Jun-2012 Dianne Hackborn <hackbod@google.com> am f0e96de8: Merge "Maybe fix #6584979: Unable to launch share chooser activity from a Notification action" into jb-dev

* commit 'f0e96de863a06bbee2aaf2aeb0f586e2a434aa62':
Maybe fix #6584979: Unable to launch share chooser activity from a Notification action
f0e96de863a06bbee2aaf2aeb0f586e2a434aa62 01-Jun-2012 Dianne Hackborn <hackbod@google.com> Merge "Maybe fix #6584979: Unable to launch share chooser activity from a Notification action" into jb-dev
a3a041d55b2039d52da386647c235e50198e36a3 01-Jun-2012 Dianne Hackborn <hackbod@google.com> Maybe fix #6584979: Unable to launch share chooser activity from a Notification action

Don't count an activity as a system dialog to be closed, if it is the
one that asked to have system dialogs closed.

Change-Id: I60bb194adde78dc3ac0a4d9b0c1dfbabd105e594
om/android/server/am/ActivityManagerService.java
b138995f6c0aa3ef7170df9f7d90eff4351e25fd 01-Jun-2012 Craig Mautner <cmautner@google.com> am 41efed0e: am 35c60c94: Merge "Use Surface layer for Surface operation." into jb-dev

* commit '41efed0ecc07e1d79ee9112c8f64325fbceab44c':
Use Surface layer for Surface operation.
41efed0ecc07e1d79ee9112c8f64325fbceab44c 01-Jun-2012 Craig Mautner <cmautner@google.com> am 35c60c94: Merge "Use Surface layer for Surface operation." into jb-dev

* commit '35c60c944a9350d6240673e157fe06a97fb24180':
Use Surface layer for Surface operation.
35c60c944a9350d6240673e157fe06a97fb24180 01-Jun-2012 Craig Mautner <cmautner@google.com> Merge "Use Surface layer for Surface operation." into jb-dev
881656831c9734bfa4a42c56574bbd871c967a3e 31-May-2012 Craig Mautner <cmautner@google.com> Use Surface layer for Surface operation.

Previous fix exposed an existing bug where we were using mAnimLayer to
determine the highest Surface layer. This fix uses mSurfaceLayer to set
the layer limits for making the screenshot.

Fixes bug 6586168.

Change-Id: Iaa3b43867aef795ca617ff4b8076428dfc91eaf2
om/android/server/wm/WindowManagerService.java
225fef5e3e9c4a6c41ca685bf101139edcd5ddcb 31-May-2012 Craig Mautner <cmautner@google.com> am c3dfaf8d: am a13b4da6: Merge "Fix initial brightness state after startup." into jb-dev

* commit 'c3dfaf8d587d3ea4ffd62377ec6041ad70fc152a':
Fix initial brightness state after startup.
c3dfaf8d587d3ea4ffd62377ec6041ad70fc152a 31-May-2012 Craig Mautner <cmautner@google.com> am a13b4da6: Merge "Fix initial brightness state after startup." into jb-dev

* commit 'a13b4da68d8df0977c8dec5001de7c9ecea71d9e':
Fix initial brightness state after startup.
a13b4da68d8df0977c8dec5001de7c9ecea71d9e 31-May-2012 Craig Mautner <cmautner@google.com> Merge "Fix initial brightness state after startup." into jb-dev
af01fe02150bbcfec12f280029b3d71778f8b956 31-May-2012 Craig Mautner <cmautner@google.com> Fix initial brightness state after startup.

Setting of mInitialAnimation member was assuming that currentValue
member would only be 0 at boot. It also gets set to 0 when the
sensor goes dark. This fix removes mInitialValue reliance on
currentValue.

Fixes bug 6444319.

Change-Id: I27069f1b44f1f727533d34bbecad2e5aeaa7aab8
om/android/server/PowerManagerService.java
b84814b27956930411356a1bae13744f6c327e69 31-May-2012 John Spurlock <jspurlock@google.com> am 60dbc3c0: am e857632a: Merge "Dock: Renable desk-dock apps" into jb-dev

* commit '60dbc3c05c644ae057c4946f1229387e60be8cb3':
Dock: Renable desk-dock apps
60dbc3c05c644ae057c4946f1229387e60be8cb3 31-May-2012 John Spurlock <jspurlock@google.com> am e857632a: Merge "Dock: Renable desk-dock apps" into jb-dev

* commit 'e857632abd994bd1e4a649afb4231f3a97763828':
Dock: Renable desk-dock apps
e857632abd994bd1e4a649afb4231f3a97763828 31-May-2012 John Spurlock <jspurlock@google.com> Merge "Dock: Renable desk-dock apps" into jb-dev
846890957deb38463acdc98112ed90b44290aa0c 31-May-2012 Eric Laurent <elaurent@google.com> am c383b407: am cee7203f: Merge "Send device connection intents from AudioService" into jb-dev

* commit 'c383b407ad24474b87de68f93ea95de495f6d2c1':
Send device connection intents from AudioService
c383b407ad24474b87de68f93ea95de495f6d2c1 31-May-2012 Eric Laurent <elaurent@google.com> am cee7203f: Merge "Send device connection intents from AudioService" into jb-dev

* commit 'cee7203f9ac3e54f39b5f528e014f2d3583f60dc':
Send device connection intents from AudioService
cee7203f9ac3e54f39b5f528e014f2d3583f60dc 31-May-2012 Eric Laurent <elaurent@google.com> Merge "Send device connection intents from AudioService" into jb-dev
2d9f96bf4584fb99f1e8f06a28a859c53ff50ea4 31-May-2012 Svetoslav Ganov <svetoslavganov@google.com> am 191e7c5a: am 758534ed: Merge "Ask to enable touch exploration only the first time it enables the feature." into jb-dev

* commit '191e7c5a4959e4c16154ade5d1ceb277ef31021e':
Ask to enable touch exploration only the first time it enables the feature.
191e7c5a4959e4c16154ade5d1ceb277ef31021e 31-May-2012 Svetoslav Ganov <svetoslavganov@google.com> am 758534ed: Merge "Ask to enable touch exploration only the first time it enables the feature." into jb-dev

* commit '758534ed50d1d2c643999bd7eb3f909b0834e393':
Ask to enable touch exploration only the first time it enables the feature.
758534ed50d1d2c643999bd7eb3f909b0834e393 31-May-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Ask to enable touch exploration only the first time it enables the feature." into jb-dev
9a4c5cd19106c3021eeead27fbc2aa05ad7d0d18 30-May-2012 Svetoslav Ganov <svetoslavganov@google.com> Ask to enable touch exploration only the first time it enables the feature.

1. Now we are asking the user to grant permission to the service to enable
touch exploration only the first time this service is enabled. If the
service was uninstalled and then later installed we ask the user again.
This avoids the scenario in which rebooting the device or upgrading an
accessibility service leaves the device in a state in which the user
cannot interact with.

bug:6582088

Change-Id: I51d24e4892b3b48c9fb11dfb09ec1118502ba526
om/android/server/accessibility/AccessibilityManagerService.java
om/android/server/accessibility/TouchExplorer.java
8b3b8fc4aaeaaab12afe216b49b78071151fba1d 31-May-2012 Dianne Hackborn <hackbod@google.com> am d89e3b77: am efc620a8: Merge "Add time stamp to content provider connection." into jb-dev

* commit 'd89e3b77fe3192caae079d295e954517fe1843de':
Add time stamp to content provider connection.
d89e3b77fe3192caae079d295e954517fe1843de 31-May-2012 Dianne Hackborn <hackbod@google.com> am efc620a8: Merge "Add time stamp to content provider connection." into jb-dev

* commit 'efc620a8b905fbe0903b8bac6ecfe91fda6f03be':
Add time stamp to content provider connection.
efc620a8b905fbe0903b8bac6ecfe91fda6f03be 31-May-2012 Dianne Hackborn <hackbod@google.com> Merge "Add time stamp to content provider connection." into jb-dev
d9137ca87eba9fb1d6a49440691374c48bac0d50 31-May-2012 Dianne Hackborn <hackbod@google.com> Add time stamp to content provider connection.

For help in tracking down memory use issues, seeing how long
a connection has been held that is keeping other processes around.

Let's call this for issue #6577613: Unbelievably sluggish nexus-S

Change-Id: Ia3d016c5ed9d2155eea18ec884047e1e1d8a0ad5
om/android/server/am/ContentProviderConnection.java
8f2a0da78f641d6aac9dfc7dfec56088f6f89fcb 31-May-2012 Jeff Brown <jeffbrown@google.com> am bbffc261: am 9154b877: Merge "Fix comparison of device source bits." into jb-dev

* commit 'bbffc261cc3607d03c12227cdd3f78a4f4e28e1a':
Fix comparison of device source bits.
bbffc261cc3607d03c12227cdd3f78a4f4e28e1a 31-May-2012 Jeff Brown <jeffbrown@google.com> am 9154b877: Merge "Fix comparison of device source bits." into jb-dev

* commit '9154b877807a1222abf46608cdff66428e906328':
Fix comparison of device source bits.
9154b877807a1222abf46608cdff66428e906328 31-May-2012 Jeff Brown <jeffbrown@google.com> Merge "Fix comparison of device source bits." into jb-dev
b1fbaaccb656ef09a8770c28df15e3e91a452e64 29-May-2012 Eric Laurent <elaurent@google.com> Send device connection intents from AudioService

AudioService is currently notified of wired headset and A2DP
sink connection states via broadcast intents from WiredAccessoryObserver
and BluetoothA2dpService. This is a problem as there is no guaranty that
AudioService can take actions upon the change before other apps are notified.
For instance, the Play On feature requires the UI to be refreshed when a device
is inserted/removed and we must guaranty that the UI component can read
new A2DP enable state from AudioManager after it receives a device connection state
change intent.

- Added hidden methods to AudioManager so that WiredAccessoryObserver
and BluetoothA2dpService can notify AudioService of device connection directly.
- The wired accessories connection intents are now sent by AudioService.
- The A2DP state change intent is delayed by BluetoothA2DPService when
ACTION_AUDIO_BECOMING_NOISY is sent by AudioService
- ACTION_AUDIO_BECOMING_NOISY intent is not sent when disconnecting A2DP
while a wired headset is present and vice versa.

Bug 6485897.

Change-Id: Ie160b3ee5f451132065530772b868593c90afd94
om/android/server/WiredAccessoryObserver.java
7e4ff4b986d626493afb676dd4824d2b3663260a 30-May-2012 Jeff Brown <jeffbrown@google.com> Fix comparison of device source bits.

Bug: 6576743
Change-Id: I6952b052e2ab9e62ddd46ab76f4df37ecc656757
om/android/server/input/InputManagerService.java
om/android/server/wm/WindowManagerService.java
62d7d6f9efd44f25109a2130dd1238adab74014c 30-May-2012 Dianne Hackborn <hackbod@google.com> am defc3019: am 26627ccc: Merge "A little debug code from issue #6516197: Places app not getting removed..." into jb-dev

* commit 'defc301908da067fca080d298d42d045e00071cb':
A little debug code from issue #6516197: Places app not getting removed...
defc301908da067fca080d298d42d045e00071cb 30-May-2012 Dianne Hackborn <hackbod@google.com> am 26627ccc: Merge "A little debug code from issue #6516197: Places app not getting removed..." into jb-dev

* commit '26627ccc3f20ad353cf7c48c0488699c26e69a0b':
A little debug code from issue #6516197: Places app not getting removed...
26627ccc3f20ad353cf7c48c0488699c26e69a0b 30-May-2012 Dianne Hackborn <hackbod@google.com> Merge "A little debug code from issue #6516197: Places app not getting removed..." into jb-dev
028d0aacdd22df8fe51fb05544d11fff321f49fb 30-May-2012 Satoshi Kataoka <satok@google.com> am 3022b6b9: am 17150cf9: Fix locale in TextServicesManagerService

* commit '3022b6b9cdc581647747cfefa2ff365af05b02e8':
Fix locale in TextServicesManagerService
3022b6b9cdc581647747cfefa2ff365af05b02e8 30-May-2012 Satoshi Kataoka <satok@google.com> am 17150cf9: Fix locale in TextServicesManagerService

* commit '17150cf91be1478e367c2ef5e4f5baaa66b487d0':
Fix locale in TextServicesManagerService
17150cf91be1478e367c2ef5e4f5baaa66b487d0 30-May-2012 Satoshi Kataoka <satok@google.com> Fix locale in TextServicesManagerService

Bug: 6542210
Change-Id: I1670fac014beb834ec7c065ebf040d0ff3cf4161
om/android/server/TextServicesManagerService.java
7f96b7961b173f1b78f32de1332fee7f7ddd0a5b 30-May-2012 Dianne Hackborn <hackbod@google.com> A little debug code from issue #6516197: Places app not getting removed...

...from recent apps drawer after launching Places app

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

* commit 'f3b4c93e0da9af2db9e16864faa734cf70fecfe3':
Fix (mostly) issue #5109947: Race condition between retrieving a...
f3b4c93e0da9af2db9e16864faa734cf70fecfe3 30-May-2012 Dianne Hackborn <hackbod@google.com> am ae5811c7: Merge "Fix (mostly) issue #5109947: Race condition between retrieving a..." into jb-dev

* commit 'ae5811c71405878b09eace395ec2b28e54eeb427':
Fix (mostly) issue #5109947: Race condition between retrieving a...
ae5811c71405878b09eace395ec2b28e54eeb427 30-May-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix (mostly) issue #5109947: Race condition between retrieving a..." into jb-dev
42cc63d1384c071b4f52aaac3c55ecccbb581595 30-May-2012 Nick Pelly <npelly@google.com> am 96e4ae6c: am 82b3b1bc: Merge "Make location providers upgradeable." into jb-dev

* commit '96e4ae6c9fba40f96425f0db510d80a10bed9719':
Make location providers upgradeable.
96e4ae6c9fba40f96425f0db510d80a10bed9719 30-May-2012 Nick Pelly <npelly@google.com> am 82b3b1bc: Merge "Make location providers upgradeable." into jb-dev

* commit '82b3b1bce9665a68b32ab0d7393ea63425677f70':
Make location providers upgradeable.
82b3b1bce9665a68b32ab0d7393ea63425677f70 30-May-2012 Nick Pelly <npelly@google.com> Merge "Make location providers upgradeable." into jb-dev
960779d3bbc6f2c767432ce48aca1e12cb0093b7 29-May-2012 John Spurlock <jspurlock@google.com> Dock: Renable desk-dock apps

Revert to pre-dreams behavior. DeskClock once again launches the correct
activity (instead of Screensaver) when desk-dock is attached.

Bug: 6559590
Change-Id: I32a03a25469f17b5e87e16831839ec757d56c90b
om/android/server/UiModeManagerService.java
4b5d3a26394dc5f2aca787fd8acfd6e7e9c27460 29-May-2012 Wink Saville <wink@google.com> Merge "Enhance StateMachine Quitting and logging support."
92f4ebe3b4e6e08e8e551a9443077bfa6dd2ca44 29-May-2012 Craig Mautner <cmautner@google.com> am d1b1bef4: am de1ddd0f: Merge "Better handle changing app transitions." into jb-dev

* commit 'd1b1bef46329875318fff087fefb21d7d65906b1':
Better handle changing app transitions.
d1b1bef46329875318fff087fefb21d7d65906b1 29-May-2012 Craig Mautner <cmautner@google.com> am de1ddd0f: Merge "Better handle changing app transitions." into jb-dev

* commit 'de1ddd0f93fae6ba517d516993e7fb495424f574':
Better handle changing app transitions.
de1ddd0f93fae6ba517d516993e7fb495424f574 29-May-2012 Craig Mautner <cmautner@google.com> Merge "Better handle changing app transitions." into jb-dev
6ae8d1821822296df0606c9cd1c46708cc21cb58 23-May-2012 Dianne Hackborn <hackbod@google.com> Fix (mostly) issue #5109947: Race condition between retrieving a...

...content provider and updating its oom adj

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

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

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

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

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

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

Change-Id: I87b10d1b67573ab899e09ca428f1b556fd669c8c
om/android/server/am/ActivityManagerService.java
om/android/server/am/ContentProviderConnection.java
om/android/server/am/ContentProviderRecord.java
om/android/server/am/ProcessRecord.java
om/android/server/am/ProviderMap.java
1d961d46d68eb3134e4bd6c3751f9730e9d32f17 27-May-2012 Craig Mautner <cmautner@google.com> Better handle changing app transitions.

When we are in the middle of an app transition and need to change to a
new one we were not ending the old one in a clean state. Also,
wallpapers were defaulting to the wrong animation in certain
situations.

Remove ':' style iterators.

Fixes bug 6486708.

Change-Id: Ied17e8410486020295db380ff68df5dad08bc5cc
om/android/server/wm/AppWindowAnimator.java
om/android/server/wm/WindowManagerService.java
bbf30dfd767f823f5f40d14b498e2a593454c5c9 29-May-2012 Wink Saville <wink@google.com> Enhance StateMachine Quitting and logging support.

Make StateMachine#quit non-conditional and remove the need to
process the SM_QUIT_CMD it is now private.

Rename halting to onHalting.

Add onQuitting

Change the message specific logging to be more generic and change
the xxxProcessedMessagesYyy methods to xxxLogRecXyy names. Also add
addLogRec(String) and addLogRec(String, State) as the generic logging
methods.


bug: 5678189
Change-Id: I22f66d11828bfd70498db625fe1be728b90478b7
om/android/server/NsdService.java
c5c3a41f08d38043e0a4251c5d0f0a740a963fe3 29-May-2012 Craig Mautner <cmautner@google.com> am dfcdde79: am 1dee8974: Merge "Track animating apps up until animation starts." into jb-dev

* commit 'dfcdde790299ade3417a89cf8ff1aa9f3c46e5a3':
Track animating apps up until animation starts.
dfcdde790299ade3417a89cf8ff1aa9f3c46e5a3 29-May-2012 Craig Mautner <cmautner@google.com> am 1dee8974: Merge "Track animating apps up until animation starts." into jb-dev

* commit '1dee8974693fff55e276e0aed1202e43904bb944':
Track animating apps up until animation starts.
1dee8974693fff55e276e0aed1202e43904bb944 29-May-2012 Craig Mautner <cmautner@google.com> Merge "Track animating apps up until animation starts." into jb-dev
06a94f710d4ee6366ebfbd6666c5a58916511eef 29-May-2012 Craig Mautner <cmautner@google.com> Track animating apps up until animation starts.

ActivityStack sets the mNextAppTransition value before moving the apps
to their proper position. This makes the test for mNextAppTransition
being TRANSITION_UNSET incorrect. Better to just look for animating.

Fixes bug 6565418.

Change-Id: I4651b7d3678e46fc712a8e901992fb01b94c415e
om/android/server/wm/WindowManagerService.java
00355d5a592533a3ecb0a5a74aef8e69dd16902a 28-May-2012 Nick Pelly <npelly@google.com> Make location providers upgradeable.

Use config_netowrkLocationProviderPackageName and
config_geocodeProviderPackageName as intial packages. If another
package exists (or is later installed) that also implements a
provider, and has the same signatures as the original providers,
and has a hgiher version number, then use that instead.

The old code used a funky fix of package name substring checks
and service checks that was broken and not upgradeable.

Bug: 6499445
Change-Id: Ic58f09cf85d31d9abf47707093e22f31dda25cf0
om/android/server/LocationManagerService.java
om/android/server/location/GeocoderProxy.java
om/android/server/location/LocationProviderProxy.java
4b33266935d5b2a7ec9bce64104e05dbc3feef22 25-May-2012 Jean-Baptiste Queru <jbq@google.com> am c6df8417: am 541803cc: am fd63c857: Merge "Wipe the user data out in any case."

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

* commit '541803ccc530b8cc1d8d95aa5a82ebc191fc218c':
Wipe the user data out in any case.
fd63c85742f4b12065418d48ae10be4bb12468f5 25-May-2012 Jean-Baptiste Queru <jbq@google.com> Merge "Wipe the user data out in any case."
609c6e331b50a71518fd4799deffccb0a2929ee1 25-May-2012 Craig Mautner <cmautner@google.com> am 013772f2: am 2af7b915: Merge "Redraw all windows earlier in power on sequence." into jb-dev

* commit '013772f2d6f0a0aec96b90a768ff198a27289eac':
Redraw all windows earlier in power on sequence.
013772f2d6f0a0aec96b90a768ff198a27289eac 25-May-2012 Craig Mautner <cmautner@google.com> am 2af7b915: Merge "Redraw all windows earlier in power on sequence." into jb-dev

* commit '2af7b9151f8df3581e38847ac711185426df5dea':
Redraw all windows earlier in power on sequence.
2af7b9151f8df3581e38847ac711185426df5dea 25-May-2012 Craig Mautner <cmautner@google.com> Merge "Redraw all windows earlier in power on sequence." into jb-dev
3d7b7d59c82fdeac039382ed1724af9c9cb70107 24-May-2012 Craig Mautner <cmautner@google.com> Redraw all windows earlier in power on sequence.

Send a message to all windows to redraw before notifying
PhoneWindowManager of screen on. This minimizes the delay in
screen update that causes the keyguard clock to display the old time
before displaying the current time.

Fixes bug 6381021.

Change-Id: Ida7071e7dac2284540f101c5d004511b52133b91
om/android/server/wm/WindowManagerService.java
4dfc783bebe3c54285befbcdd811d8c36ab2a833 24-May-2012 Robert Greenwalt <rgreenwalt@google.com> am 8a9d8f06: am 1ed1de7a: Merge "Modify logging to debug this issue" into jb-dev

* commit '8a9d8f068c29b8d195ffdcc250dccf7bcecd5f53':
Modify logging to debug this issue
8a9d8f068c29b8d195ffdcc250dccf7bcecd5f53 24-May-2012 Robert Greenwalt <rgreenwalt@google.com> am 1ed1de7a: Merge "Modify logging to debug this issue" into jb-dev

* commit '1ed1de7ab2ae03f82500dbf6272bf036d89bd0c9':
Modify logging to debug this issue
1ed1de7ab2ae03f82500dbf6272bf036d89bd0c9 24-May-2012 Robert Greenwalt <rgreenwalt@google.com> Merge "Modify logging to debug this issue" into jb-dev
fe3297dd34485947097edee5b15e73d89ef0be66 24-May-2012 Jeff Sharkey <jsharkey@android.com> am a3a7bcbd: am 6385ff51: Merge "Advise persist threshold outside NPMS lock." into jb-dev

* commit 'a3a7bcbda43ebddbf7bdd70c12258d1f1066c931':
Advise persist threshold outside NPMS lock.
a3a7bcbda43ebddbf7bdd70c12258d1f1066c931 24-May-2012 Jeff Sharkey <jsharkey@android.com> am 6385ff51: Merge "Advise persist threshold outside NPMS lock." into jb-dev

* commit '6385ff511dd998f1fbb189621270e2c19577f66e':
Advise persist threshold outside NPMS lock.
6385ff511dd998f1fbb189621270e2c19577f66e 24-May-2012 Jeff Sharkey <jsharkey@android.com> Merge "Advise persist threshold outside NPMS lock." into jb-dev
c30d1ad8f3f6343c6071a32f08ea21251e82194c 24-May-2012 Fabrice Di Meglio <fdimeglio@google.com> am 07e28d1e: am 0100625b: Merge "Fix bug #6522190 MountService should respond to configuration changes ("INTERNAL STORAGE" string should be translated dynamically)" into jb-dev

* commit '07e28d1e9bd7373c83cb66d5d9e93ae9af1f090d':
Fix bug #6522190 MountService should respond to configuration changes ("INTERNAL STORAGE" string should be translated dynamically)
5a0c320a820a0ccaafaa87ad858a29bf5d88a8b9 23-May-2012 Robert Greenwalt <rgreenwalt@google.com> Modify logging to debug this issue

Logging exec time on startUsingNetworkFeature as we've had some reports suggesting it's
causing ANRs.
Remove some logging from NDC so it's local log is more useful.

bug:6492166
Change-Id: I258ff6c59bff2c65935242d50496d84720c5d493
om/android/server/ConnectivityService.java
om/android/server/NativeDaemonConnector.java
om/android/server/NetworkManagementService.java
07e28d1e9bd7373c83cb66d5d9e93ae9af1f090d 24-May-2012 Fabrice Di Meglio <fdimeglio@google.com> am 0100625b: Merge "Fix bug #6522190 MountService should respond to configuration changes ("INTERNAL STORAGE" string should be translated dynamically)" into jb-dev

* commit '0100625bb316ecbd99873b72756ffba8613c3456':
Fix bug #6522190 MountService should respond to configuration changes ("INTERNAL STORAGE" string should be translated dynamically)
0100625bb316ecbd99873b72756ffba8613c3456 24-May-2012 Fabrice Di Meglio <fdimeglio@google.com> Merge "Fix bug #6522190 MountService should respond to configuration changes ("INTERNAL STORAGE" string should be translated dynamically)" into jb-dev
e19f39b79c831aea4d51a3309025acdf69d1e609 24-May-2012 Jeff Sharkey <jsharkey@android.com> Advise persist threshold outside NPMS lock.

Bug: 6492166
Change-Id: Ibebdc7e9b8cae27c12fd7b61b53ab60287a0364d
om/android/server/net/NetworkPolicyManagerService.java
d4cb08df751e29338f4df1a76b303aa720f2bc00 24-May-2012 Amith Yamasani <yamasani@google.com> Merge "FileInputStream is not closed in "UserManager.java : readUserList()""
c0fbe54f0bc2feacd98424a582909d737aa83e65 24-May-2012 satok <satok@google.com> am 13236440: am 7018a90c: Fix the issue on matching the locale in TextServicesManagerService

* commit '13236440148d7ab2f56f7c2df03ff41baeb16c7f':
Fix the issue on matching the locale in TextServicesManagerService
13236440148d7ab2f56f7c2df03ff41baeb16c7f 24-May-2012 satok <satok@google.com> am 7018a90c: Fix the issue on matching the locale in TextServicesManagerService

* commit '7018a90c323a7f0deb37939d5505ff112ac637f5':
Fix the issue on matching the locale in TextServicesManagerService
7018a90c323a7f0deb37939d5505ff112ac637f5 24-May-2012 satok <satok@google.com> Fix the issue on matching the locale in TextServicesManagerService

Bug: 6542210

Change-Id: I42d84b684d5689e8fceecb705bb51d19d847477a
om/android/server/TextServicesManagerService.java
74f41ae14ddbf50dff8f434d5e114a93142e4787 24-May-2012 Craig Mautner <cmautner@google.com> am ca414550: am 67e6070f: Merge "Change method of tracking moving AppWindowTokens." into jb-dev

* commit 'ca414550d3d431345f4efbee762ea87fe55295af':
Change method of tracking moving AppWindowTokens.
1fb5b3d4e6ae71dcf9466e53e002f590d35a7bbf 24-May-2012 Craig Mautner <cmautner@google.com> am 270db713: am 9cf5831f: Merge "Fix jank when launching apps that show wallpaper." into jb-dev

* commit '270db71381e107e3b3bc81890b3f34424403ef9b':
Fix jank when launching apps that show wallpaper.
ca414550d3d431345f4efbee762ea87fe55295af 24-May-2012 Craig Mautner <cmautner@google.com> am 67e6070f: Merge "Change method of tracking moving AppWindowTokens." into jb-dev

* commit '67e6070fa10bbd313c8ebe0de4e0440b688c569e':
Change method of tracking moving AppWindowTokens.
270db71381e107e3b3bc81890b3f34424403ef9b 24-May-2012 Craig Mautner <cmautner@google.com> am 9cf5831f: Merge "Fix jank when launching apps that show wallpaper." into jb-dev

* commit '9cf5831f2b94f5e2edd7fd87abef4e9fac8aa82d':
Fix jank when launching apps that show wallpaper.
67e6070fa10bbd313c8ebe0de4e0440b688c569e 24-May-2012 Craig Mautner <cmautner@google.com> Merge "Change method of tracking moving AppWindowTokens." into jb-dev
9cf5831f2b94f5e2edd7fd87abef4e9fac8aa82d 24-May-2012 Craig Mautner <cmautner@google.com> Merge "Fix jank when launching apps that show wallpaper." into jb-dev
ef25d7a01910d5547b60c9cc52d4fa4a9e40b6fa 16-May-2012 Craig Mautner <cmautner@google.com> Change method of tracking moving AppWindowTokens.

Stop trying to keep track of the AppTokens that have been moved
to the top and bottom and then try and match the WindowStates when
transitions are goodToGo. Instead rebuild the WindowState order based
on the AppToken order when we are goodToGo.

When moving AppWindowTokens lower in mAppTokens create a new ArrayList
of AppWindowTokens to keep track of the apps in Z order while
animating.

Fixes bug 6481078.

Change-Id: I29b33a507b45752f15feb10a9f4b47a3f5eb9f0e
om/android/server/wm/WindowAnimator.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
om/android/server/wm/WindowStateAnimator.java
om/android/server/wm/WindowToken.java
8e4df6c1e261a5b41193b00b1c0ce0badaa84f1c 24-May-2012 Craig Mautner <cmautner@google.com> Fix jank when launching apps that show wallpaper.

Do not create a StartingWindow for apps that show wallpaper.
Fix handling of obscure case where found wallpaper is hidden.

Fixes bug 6484034.

Change-Id: I07181c4aea56fa9e530df0c95d886fe8ad61ec9d
om/android/server/wm/WindowManagerService.java
13fe2a5330a5df662d7b1b136e7b08fe34c94a42 19-May-2012 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #6522190 MountService should respond to configuration changes ("INTERNAL STORAGE" string should be translated dynamically)

- use an ID instead of a String for StorageVolume description
- use this ID for getting the correct localized version of the description string

Change-Id: I30f3080fce2c889be38bfdf9f5121dffcf8a99e8
om/android/server/MountService.java
762932396aecab31a89f64399df9d44cc177e3df 24-May-2012 Svetoslav Ganov <svetoslavganov@google.com> am 97490bc6: am 2205d204: Merge "System accessibility state update postponed if UI test autmation is running." into jb-dev

* commit '97490bc65a1307e276b341601cb5894568ac350a':
System accessibility state update postponed if UI test autmation is running.
97490bc65a1307e276b341601cb5894568ac350a 24-May-2012 Svetoslav Ganov <svetoslavganov@google.com> am 2205d204: Merge "System accessibility state update postponed if UI test autmation is running." into jb-dev

* commit '2205d20421994d4e31994c298a22cb8fd9232fb6':
System accessibility state update postponed if UI test autmation is running.
9a69c5fce7cb359a780dc02a9a829d75d47edded 23-May-2012 Rich Cannings <richc@google.com> Merge "Added code to log the current value of the "allow unknown sources" setting after successful package installation."
4074e8a3f429f62aff3312083d1d925d794ffacc 23-May-2012 Svetoslav Ganov <svetoslavganov@google.com> System accessibility state update postponed if UI test autmation is running.

1. If a UI test automation accessibility service is connected to the
system we pospone state updates in the AccessibilityManagerService
for the moment the UI automations service dies or is disconnected.

bug:6540522

Change-Id: I48ddf603b53d2158a00edcf8ad05cfe2575d4d75
om/android/server/accessibility/AccessibilityManagerService.java
43b091133aa8106849463eee324ef1a130490890 23-May-2012 Craig Mautner <cmautner@google.com> am b53437c5: am 53d003f0: Merge "Modify auto brightness to return to dim level." into jb-dev

* commit 'b53437c51b441dc0ccdfb743e0f4e0b2ea44eae1':
Modify auto brightness to return to dim level.
b53437c51b441dc0ccdfb743e0f4e0b2ea44eae1 23-May-2012 Craig Mautner <cmautner@google.com> am 53d003f0: Merge "Modify auto brightness to return to dim level." into jb-dev

* commit '53d003f0e77291e7382c4871e0828014b470ab9f':
Modify auto brightness to return to dim level.
53d003f0e77291e7382c4871e0828014b470ab9f 23-May-2012 Craig Mautner <cmautner@google.com> Merge "Modify auto brightness to return to dim level." into jb-dev
a22c77ee6a33d8467ee033a58239cd19b73b4072 23-May-2012 Svetoslav Ganov <svetoslavganov@google.com> am d52a4f68: am 64a03875: Merge "Perform an action in AccessibilityManagerSerivce using wrong process id." into jb-dev

* commit 'd52a4f68eaa2a16f5b1352a8e591997f9067abe9':
Perform an action in AccessibilityManagerSerivce using wrong process id.
d52a4f68eaa2a16f5b1352a8e591997f9067abe9 23-May-2012 Svetoslav Ganov <svetoslavganov@google.com> am 64a03875: Merge "Perform an action in AccessibilityManagerSerivce using wrong process id." into jb-dev

* commit '64a03875897afe07b731eaf66969e87362a1a740':
Perform an action in AccessibilityManagerSerivce using wrong process id.
64a03875897afe07b731eaf66969e87362a1a740 23-May-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Perform an action in AccessibilityManagerSerivce using wrong process id." into jb-dev
9bf21873c900e7bf82d864172ab40527a48dae3e 23-May-2012 Svetoslav Ganov <svetoslavganov@google.com> Perform an action in AccessibilityManagerSerivce using wrong process id.

1. We are passing the interrogating process id in the remote
accessibility requests to catch the query from the same
thread. While all other methods were doing this correctly
somehow the perform action is using the incorrect process id.

bug:6534935

Change-Id: Icef50833903c562758d51ef316b60c53c7a336c0
om/android/server/accessibility/AccessibilityManagerService.java
f323763dd93e75c1c2a723a54d9ff171e35e2ae1 23-May-2012 Dianne Hackborn <hackbod@google.com> am ddf573d6: am 2d243bc6: Merge "Fix issue #5680541: onStartInputView called upon focus loss" into jb-dev

* commit 'ddf573d6091b99199bfde93a58ef51db796c7b0f':
Fix issue #5680541: onStartInputView called upon focus loss
ddf573d6091b99199bfde93a58ef51db796c7b0f 23-May-2012 Dianne Hackborn <hackbod@google.com> am 2d243bc6: Merge "Fix issue #5680541: onStartInputView called upon focus loss" into jb-dev

* commit '2d243bc62a899f7af77886a2a2a82872d63226bb':
Fix issue #5680541: onStartInputView called upon focus loss
2d243bc62a899f7af77886a2a2a82872d63226bb 23-May-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #5680541: onStartInputView called upon focus loss" into jb-dev
e2d5b980f3889174c50f48719bdc7068cf1d9680 23-May-2012 Craig Mautner <cmautner@google.com> am 9441a930: am 208236dd: Merge "Pull showStrictModeViolation off of local threads." into jb-dev

* commit '9441a930ffa93529dcd0375e30ac2cfda312706f':
Pull showStrictModeViolation off of local threads.
9441a930ffa93529dcd0375e30ac2cfda312706f 23-May-2012 Craig Mautner <cmautner@google.com> am 208236dd: Merge "Pull showStrictModeViolation off of local threads." into jb-dev

* commit '208236dd9600efb125639bf7ca5715fb341ee8d8':
Pull showStrictModeViolation off of local threads.
208236dd9600efb125639bf7ca5715fb341ee8d8 23-May-2012 Craig Mautner <cmautner@google.com> Merge "Pull showStrictModeViolation off of local threads." into jb-dev
196943fb51789e7c3a39ae7d56aceba5e1304137 15-May-2012 Craig Mautner <cmautner@google.com> Modify auto brightness to return to dim level.

Previous auto brightness policy was to only ratchet screen brightness
up and never return to dim levels until the device was turned off. This
caused the screen to be very bright in dim areas and reduced battery
life. This change allows the screen to dim down over the course of
a minute to the desired brightness level.

Fixes bug 6422464.

Change-Id: I5592c06a495650c6496ec2fc9846d7a10fac4b16
om/android/server/PowerManagerService.java
a6e41342e2159402e33866e7145be357065d9c9a 23-May-2012 Dianne Hackborn <hackbod@google.com> Fix issue #5680541: onStartInputView called upon focus loss

We should tell the app that it is inactive, before unbinding.
Otherwise when it is told to unbind it will see that it is still
supposed to be active and immediately re-bind.

Also change the calls to set the active state to go through the
message dispatch path, to ensure ordering is correct.

Change-Id: I246241eac8f7521f42c4c1eee7f46097337e7303
om/android/server/InputMethodManagerService.java
f8a98ed4e127c7775d121177afeb5fa2b5ae5153 15-May-2012 Matt Finifter <finifter@google.com> Added code to log the current value of the "allow unknown sources" setting after
successful package installation.

Change-Id: Id8de7ae94e3b3b68e033c24649ca67324d894ce8
om/android/server/EventLogTags.logtags
om/android/server/pm/PackageManagerService.java
0447a81e6dd9671ab1290deba682423e2aac5a07 23-May-2012 Craig Mautner <cmautner@google.com> Pull showStrictModeViolation off of local threads.

By moving the StrictModeViolation display onto the WindowManager
Handler we avoid potential deadlocks as found in the bug below.

Fixes bug 6537798.

Change-Id: Ia46a43d1f7f6e55256f770b9e196602092669b49
om/android/server/wm/WindowManagerService.java
26743444c6ade01f97c4b9ac5c7f248ca27c6d5c 22-May-2012 Dianne Hackborn <hackbod@google.com> am d7b376f2: am 2bccea24: Merge "Fix issue #6499411: Characters not displayed (but suggestion bar is working)" into jb-dev

* commit 'd7b376f22346da4704ea4ca667331fc94eec9195':
Fix issue #6499411: Characters not displayed (but suggestion bar is working)
b2009b4d02d50e8b1b48af2dea4c07eccce77548 22-May-2012 Svetoslav Ganov <svetoslavganov@google.com> am 08d6c72d: am ec2bf4ca: Merge "UI test automation not working." into jb-dev

* commit '08d6c72dcae686daa7302aaf0be6ebae7a611ded':
UI test automation not working.
d7b376f22346da4704ea4ca667331fc94eec9195 22-May-2012 Dianne Hackborn <hackbod@google.com> am 2bccea24: Merge "Fix issue #6499411: Characters not displayed (but suggestion bar is working)" into jb-dev

* commit '2bccea2461556a525c5c65be0364b5b9404c8651':
Fix issue #6499411: Characters not displayed (but suggestion bar is working)
ac92087a9a1c464d4b0a58c82dae01cbaa088e89 22-May-2012 Dianne Hackborn <hackbod@google.com> Fix issue #6499411: Characters not displayed (but suggestion bar is working)

The problem was that when dismissing the lock screen, the window manager
would briefly turn off force hiding when it started animating the transition
and then turn it back on until the transition was done.

This would cause it to briefly switch focus to the app behind and then
take focus off it. The app would find out it got focus, and re-start
input on itself, asking the input method service to do so. At this
point the input method service would ask the window manager if the
caller really had focus, and it may or may not be told no depending
on the timing. If it is told no, then it doesn't allow the focus
switch to happen at that point, ignoring the new input connection,
and ultimately when focus does really switch the IME is left talking
with an old dead input connection.

I added some code to the input connection to make sure when we are
no longer using one that we mark it inactive and can't use it. This
bug was especially difficult to track down because it would only
visibly break when a GC happened during this time, causing the weak
reference on the input connection to become null. With this change
it will now always break (though in the scenario here only if you
hit the race condition correctly).

Change-Id: I81a6164dc140c548da1a9736e42cd253e8238a80
om/android/server/InputMethodManagerService.java
om/android/server/wm/WindowAnimator.java
om/android/server/wm/WindowManagerService.java
08d6c72dcae686daa7302aaf0be6ebae7a611ded 22-May-2012 Svetoslav Ganov <svetoslavganov@google.com> am ec2bf4ca: Merge "UI test automation not working." into jb-dev

* commit 'ec2bf4ca30f511d71a49d6ac1572d1feffdcc803':
UI test automation not working.
ec2c1717780fa4f61ed11dced16a87b8ae5d7fb0 22-May-2012 Svetoslav Ganov <svetoslavganov@google.com> UI test automation not working.

1. The internal service instance created by AccessibilityManagerService
was getting the looper of the current thread when created. This works
for real accessibility services but since UI automation service is
registered via an IPC the binder thread has no looper. Now we explicitly
get the correct looper.

bug:6535435

Change-Id: I63a2ada1b65c4b3c71c3d1e6deb3dfdeb7a3d6d6
om/android/server/accessibility/AccessibilityManagerService.java
a6cfe52eb83995b124efec5f73bcb179caadf888 22-May-2012 rich cannings <richc@google.com> Allow APKs to install when verifier times out.

When app verfication is enabled and the verifier times out, allow
PackageManagerService to continue with the installation.

Bug: 6531120
Change-Id: Ic6aef755af92588e8887c918b70fb195c683b24c
om/android/server/pm/PackageManagerService.java
3004fe8d3d12808525b726f617e30d8ba4c2aef6 22-May-2012 rich cannings <richc@google.com> Merge "Set DEFAULT_VERIFICATION_TIMEOUT to 10 seconds"
e45875ec3df251a7cb460a0e31b5be4d22e43cdb 22-May-2012 Kenny Root <kroot@google.com> am 88ab8c8d: am 0eaeb69d: Merge "Do not bother to remove pending installs" into jb-dev

* commit '88ab8c8de4d8d2e2c1f3237024ecdefd77300916':
Do not bother to remove pending installs
88ab8c8de4d8d2e2c1f3237024ecdefd77300916 22-May-2012 Kenny Root <kroot@google.com> am 0eaeb69d: Merge "Do not bother to remove pending installs" into jb-dev

* commit '0eaeb69d1c4849da8ab1df70b84e90837193df67':
Do not bother to remove pending installs
0eaeb69d1c4849da8ab1df70b84e90837193df67 22-May-2012 Kenny Root <kroot@google.com> Merge "Do not bother to remove pending installs" into jb-dev
2ed524966d3c4bd04ea5f54026ed59558d73cd44 22-May-2012 Vairavan Srinivasan <vairav@codeaurora.org> frameworks/base: release references of UriPermissionOwner

Change-Id: I72e2310458de15f18e6f2c67f383bbb5c8f60ae2
om/android/server/am/UriPermission.java
8e61c58cf75f78e37b110cb4f38567c1b2133723 22-May-2012 Svetoslav Ganov <svetoslavganov@google.com> am 6ea0fd0f: am 9faa9374: Merge "Changing the interaction model of the touch explorer." into jb-dev

* commit '6ea0fd0f3f54a36a92b4decd746f06497cf825e8':
Changing the interaction model of the touch explorer.
6ea0fd0f3f54a36a92b4decd746f06497cf825e8 22-May-2012 Svetoslav Ganov <svetoslavganov@google.com> am 9faa9374: Merge "Changing the interaction model of the touch explorer." into jb-dev

* commit '9faa9374c1398ca4a0f3fbfc4feaa5cddeb073b0':
Changing the interaction model of the touch explorer.
9faa9374c1398ca4a0f3fbfc4feaa5cddeb073b0 22-May-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Changing the interaction model of the touch explorer." into jb-dev
14ae367caef3111c5c1f7a0fa42b22b1afe6073a 22-May-2012 Kenny Root <kroot@google.com> Do not bother to remove pending installs

Pending install list is cleared if there is an error connecting to DCS,
so don't try to remove each pending install in the loop.

Change-Id: I736114878ad92136c3b8a3ca27a1f058adaba395
om/android/server/pm/PackageManagerService.java
aa8513e171e4714809235e08a75aff3814d9a02b 22-May-2012 rich cannings <richc@google.com> Set DEFAULT_VERIFICATION_TIMEOUT to 10 seconds

Bug: 6531174
Change-Id: I330a765e7f03cce3633046ef989f066c2aca5562
om/android/server/pm/PackageManagerService.java
7754e537de1860dfffd4dc84f07f4e8b83072a53 21-May-2012 Jeff Brown <jeffbrown@google.com> am 7bc6d801: am ee3bb649: Merge "Disable debug logs." into jb-dev

* commit '7bc6d801d384c7593ba5f2f3293024083a822995':
Disable debug logs.
1fe6daba780e83c7c119f7169cc53b00cf613acb 21-May-2012 satok <satok@google.com> am 5978c628: am d7ba8143: Merge "Fix the issue on the inconsistent condition of InputMethodSubtype" into jb-dev

* commit '5978c628cddffb232a5c17a64a8baf76af8b344f':
Fix the issue on the inconsistent condition of InputMethodSubtype
fce614a305bf7f72f5269983e9f0e8d2ac1efb5e 21-May-2012 satok <satok@google.com> am ee8ddd52: am 5d4d23eb: Merge "Consolidate the initialization of InputMethodManagerService not to use resource values until system ready" into jb-dev

* commit 'ee8ddd52ff4c5db698c81beacbcbdb709a119b8d':
Consolidate the initialization of InputMethodManagerService not to use resource values until system ready
534e6488bc8bf27bcf1c1a74b6a6472bc73ba4db 21-May-2012 Jeff Brown <jeffbrown@google.com> am dd8e50f4: am cf39bdf3: Add support for switching between multiple keyboard layouts.

* commit 'dd8e50f4b96578acd402ff4b199ca1649adf25fd':
Add support for switching between multiple keyboard layouts.
4f248d0d5c5f80a11c05ca81d73e644b09f9ae7a 21-May-2012 Craig Mautner <cmautner@google.com> am 8fcfdd39: am 255632d1: Merge "Prevent dim surface from flashing." into jb-dev

* commit '8fcfdd39dd571dfdfb4b4fd267566761e76207fc':
Prevent dim surface from flashing.
5d9bb8636719be2ca0236799b098bb122784a88f 21-May-2012 Dianne Hackborn <hackbod@google.com> am 9beee6ad: am d51ac09f: Merge "Fix activity resolver, issues #6519130 and #6507239" into jb-dev

* commit '9beee6ad206541f351faad5cf30b9d0216f07d22':
Fix activity resolver, issues #6519130 and #6507239
577a2e055c0ef8853602a766ea79adacbfeb55e6 21-May-2012 Jeff Sharkey <jsharkey@android.com> am 17bee29b: am 787c9ec5: Merge "Transition from DEV network stats to XT." into jb-dev

* commit '17bee29b1fb0c8caa90860d8b98a69e616530b44':
Transition from DEV network stats to XT.
e15ccb93add99ebb9cd7aec03a04faa37f45b39d 17-May-2012 Svetoslav Ganov <svetoslavganov@google.com> Changing the interaction model of the touch explorer.

1. Now the user have to double tap to activate the last
item. If the last touched window is not active because
it does not take input focus the click on the last
touch explored location. Othewise the click is on the
accessibility focus location.

bug:5932640

Change-Id: Ibb7b97262a7c5f2f94abef429e02790fdc91a8dd
om/android/server/accessibility/AccessibilityInputFilter.java
om/android/server/accessibility/AccessibilityManagerService.java
om/android/server/accessibility/TouchExplorer.java
om/android/server/wm/WindowManagerService.java
7bc6d801d384c7593ba5f2f3293024083a822995 21-May-2012 Jeff Brown <jeffbrown@google.com> am ee3bb649: Merge "Disable debug logs." into jb-dev

* commit 'ee3bb6498adc801023798b4fc48b5dcd77e059f5':
Disable debug logs.
ee3bb6498adc801023798b4fc48b5dcd77e059f5 21-May-2012 Jeff Brown <jeffbrown@google.com> Merge "Disable debug logs." into jb-dev
2943f2aa7d1c5f5e3d373e0d6bece9213f204dde 21-May-2012 Nick Pelly <npelly@google.com> am 9481259f: am 1ca43997: Merge "Enforce the minTime parameter in LocationManager#requestLocationUpdates" into jb-dev

* commit '9481259fcb09337db00b8b39bf4709a610d77c6c':
Enforce the minTime parameter in LocationManager#requestLocationUpdates
bad4c4bf71c4d5c3077ff8f5020b09a736a86d9b 21-May-2012 Dianne Hackborn <hackbod@google.com> am ccf4e2f7: am abe39277: Merge "Fix issue #6515427: Add android.hardware.television and fix..." into jb-dev

* commit 'ccf4e2f71b65ace6d55c1e8513dd60b1123805da':
Fix issue #6515427: Add android.hardware.television and fix...
32b513850ef14c7651aa735017db2e66694264cc 21-May-2012 Kenny Root <kroot@google.com> am 8101eb7a: am ae9d040f: Merge "Wait for ASECs to be scanned before proceeding" into jb-dev

* commit '8101eb7a74d1a65aebd33c58742fc461dcb4518f':
Wait for ASECs to be scanned before proceeding
df8532ad26b70f915b1a84a144ce0e9637c7f02c 21-May-2012 Christopher Tate <ctate@google.com> am 1f4dda28: am 27cb3f8c: Merge "Eliminate "backup enabled but not provisioned" failure modes" into jb-dev

* commit '1f4dda280b4891c1a8aea8751f10943abdca3761':
Eliminate "backup enabled but not provisioned" failure modes
5f36ba718a0d649fbe4fb4fc68fc7648a229833e 21-May-2012 Jeff Brown <jeffbrown@google.com> am 90ab4341: am dc9445ba: Merge "Add support for grouping keyboard layouts by collection." into jb-dev

* commit '90ab4341cf492bf80bbb90dfd6c614c65dc3c591':
Add support for grouping keyboard layouts by collection.
5ba27f4efec122edecfd50cccbb9861db3af2662 21-May-2012 Irfan Sheriff <isheriff@google.com> am 46579dc8: am f82e7693: Merge "handleAirplaneModeToggled cleanup" into jb-dev

* commit '46579dc8aff0106ccf311a5679282836852f2fd9':
handleAirplaneModeToggled cleanup
9582f90eebe0091682c1397a68864f31a5ef56a0 21-May-2012 Irfan Sheriff <isheriff@google.com> am 16cf17ce: am ce66556a: Merge "Fix persisting wifi state on setWifiEnabled() call" into jb-dev

* commit '16cf17ce60171690526b08494482cbef4154bd96':
Fix persisting wifi state on setWifiEnabled() call
92302af1ee436076dc35d5a97835169ad440147c 21-May-2012 Craig Mautner <cmautner@google.com> am a978d9bf: am d51a68b3: Merge "Eliminate deferred surface destruction." into jb-dev

* commit 'a978d9bfefa8f7cb1591a1789effa955d902a9cf':
Eliminate deferred surface destruction.
1b9ba578f1d2acf86c75110e89ae3d2e0434483a 21-May-2012 Jeff Brown <jeffbrown@google.com> Disable debug logs.

Change-Id: Icc7d389789885185f2ca9b609bad6096fe290106
om/android/server/input/InputManagerService.java
5978c628cddffb232a5c17a64a8baf76af8b344f 21-May-2012 satok <satok@google.com> am d7ba8143: Merge "Fix the issue on the inconsistent condition of InputMethodSubtype" into jb-dev

* commit 'd7ba81437020b45f8f33fef729820078b1cd2547':
Fix the issue on the inconsistent condition of InputMethodSubtype
d81e950265356c81276b73da68a535ffa48d72f0 20-May-2012 satok <satok@google.com> Fix the issue on the inconsistent condition of InputMethodSubtype

Bug: 6510104
Change-Id: I67790e5f59d0d05340b74eca1029c60f381061b8
om/android/server/InputMethodManagerService.java
ee8ddd52ff4c5db698c81beacbcbdb709a119b8d 21-May-2012 satok <satok@google.com> am 5d4d23eb: Merge "Consolidate the initialization of InputMethodManagerService not to use resource values until system ready" into jb-dev

* commit '5d4d23ebdf42a90207a86fc258a44e9540f356ab':
Consolidate the initialization of InputMethodManagerService not to use resource values until system ready
dd8e50f4b96578acd402ff4b199ca1649adf25fd 21-May-2012 Jeff Brown <jeffbrown@google.com> am cf39bdf3: Add support for switching between multiple keyboard layouts.

* commit 'cf39bdf3dff5e29447f6ce734b76dc3490385e58':
Add support for switching between multiple keyboard layouts.
5d4d23ebdf42a90207a86fc258a44e9540f356ab 21-May-2012 satok <satok@google.com> Merge "Consolidate the initialization of InputMethodManagerService not to use resource values until system ready" into jb-dev
cf39bdf3dff5e29447f6ce734b76dc3490385e58 18-May-2012 Jeff Brown <jeffbrown@google.com> Add support for switching between multiple keyboard layouts.

Also show a notification when an external keyboard is connected
and does not have a keyboard layout selected yet.

Bug: 6405203
Change-Id: Id0ac6d83b3b381f8a236b2244a04c9acb203db3c
om/android/server/input/InputManagerService.java
om/android/server/input/PersistentDataStore.java
om/android/server/wm/WindowManagerService.java
8fcfdd39dd571dfdfb4b4fd267566761e76207fc 19-May-2012 Craig Mautner <cmautner@google.com> am 255632d1: Merge "Prevent dim surface from flashing." into jb-dev

* commit '255632d16064bf8e65b1773c4f0884267b9ec93f':
Prevent dim surface from flashing.
255632d16064bf8e65b1773c4f0884267b9ec93f 19-May-2012 Craig Mautner <cmautner@google.com> Merge "Prevent dim surface from flashing." into jb-dev
067ca32a526113bdae8756cda0369883f8227199 19-May-2012 Craig Mautner <cmautner@google.com> Prevent dim surface from flashing.

This fix keeps the dim surface below the highest shown layer. If
two shown layers were both dim it was ambiguous where the dim surface
would appear causing dialogs to first be dimmed and then flash when
the dim was put behind them.

Fixes bug 6497476.

Change-Id: I360cf2d23d58fc4c03edbbed16d79c08c29e48b9
om/android/server/wm/WindowAnimator.java
9beee6ad206541f351faad5cf30b9d0216f07d22 19-May-2012 Dianne Hackborn <hackbod@google.com> am d51ac09f: Merge "Fix activity resolver, issues #6519130 and #6507239" into jb-dev

* commit 'd51ac09fd7db5d810452138749f9291617c0dbf7':
Fix activity resolver, issues #6519130 and #6507239
17bee29b1fb0c8caa90860d8b98a69e616530b44 19-May-2012 Jeff Sharkey <jsharkey@android.com> am 787c9ec5: Merge "Transition from DEV network stats to XT." into jb-dev

* commit '787c9ec558a06bb8ebcb5a77f5268cedd218fd1b':
Transition from DEV network stats to XT.
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
om/android/server/am/ActivityManagerService.java
787c9ec558a06bb8ebcb5a77f5268cedd218fd1b 18-May-2012 Jeff Sharkey <jsharkey@android.com> Merge "Transition from DEV network stats to XT." into jb-dev
0a1bcf4e0d0c26af3f6ad3e57726082c92549bd3 16-May-2012 satok <satok@google.com> Consolidate the initialization of InputMethodManagerService not to use resource values until system ready

Bug: 6477193
InputMethodManagerService have used the resource value of "isDefault" in the constructor. We should wait to use that value until system ready.
Change-Id: I682fc109c303d8c7fd33d494c59e8e28d6dc6fa5
om/android/server/InputMethodManagerService.java
9481259fcb09337db00b8b39bf4709a610d77c6c 18-May-2012 Nick Pelly <npelly@google.com> am 1ca43997: Merge "Enforce the minTime parameter in LocationManager#requestLocationUpdates" into jb-dev

* commit '1ca4399706103fd9df50661866caaeed95221621':
Enforce the minTime parameter in LocationManager#requestLocationUpdates
1ca4399706103fd9df50661866caaeed95221621 18-May-2012 Nick Pelly <npelly@google.com> Merge "Enforce the minTime parameter in LocationManager#requestLocationUpdates" into jb-dev
a3b12020bad0c1bf0a0b405744e6c6352b373cf3 18-May-2012 Kenny Root <kroot@google.com> am e262d4bd: am 11e123f7: Merge "Check system app before removal" into jb-dev

* commit 'e262d4bdbd1b76a5a41123bcde4f1ad04e3f91a6':
Check system app before removal
ccf4e2f71b65ace6d55c1e8513dd60b1123805da 18-May-2012 Dianne Hackborn <hackbod@google.com> am abe39277: Merge "Fix issue #6515427: Add android.hardware.television and fix..." into jb-dev

* commit 'abe3927701c0aff839498272565aeee714aa6e9d':
Fix issue #6515427: Add android.hardware.television and fix...
abe3927701c0aff839498272565aeee714aa6e9d 18-May-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #6515427: Add android.hardware.television and fix..." into jb-dev
0cf2c8a53350a800055e76c1c9bf0a6d44480768 18-May-2012 Dianne Hackborn <hackbod@google.com> Fix issue #6515427: Add android.hardware.television and fix...

...logic for notouch in Configuration

Added new TELEVISION feature.

We now force the configuration to "television" if the TELEVISION
feature is set, and "notouch" if the TOUCHSCREEN feature is not set.

Also cleaned up documentation, deprecated some configurations that
are not used.

Change-Id: If1c7a284b580a8a66bda2a75f0c7fa841b3dc9b7
om/android/server/UiModeManagerService.java
om/android/server/wm/WindowManagerService.java
f1a97a851d18c538409d69b02ca8ed7c97aa7a89 18-May-2012 Svetoslav Ganov <svetoslavganov@google.com> am 044d40ad: am 824aa860: Merge "Accessibility service needs to request permission to be bound to." into jb-dev

* commit '044d40ad87f5f6a321aa48f74e05b8355c40f422':
Accessibility service needs to request permission to be bound to.
8101eb7a74d1a65aebd33c58742fc461dcb4518f 18-May-2012 Kenny Root <kroot@google.com> am ae9d040f: Merge "Wait for ASECs to be scanned before proceeding" into jb-dev

* commit 'ae9d040f715130389de3dbc3bf52e24e5f29425a':
Wait for ASECs to be scanned before proceeding
1f4dda280b4891c1a8aea8751f10943abdca3761 18-May-2012 Christopher Tate <ctate@google.com> am 27cb3f8c: Merge "Eliminate "backup enabled but not provisioned" failure modes" into jb-dev

* commit '27cb3f8c44be79f78a0c47b5631472705acb3e96':
Eliminate "backup enabled but not provisioned" failure modes
90ab4341cf492bf80bbb90dfd6c614c65dc3c591 18-May-2012 Jeff Brown <jeffbrown@google.com> am dc9445ba: Merge "Add support for grouping keyboard layouts by collection." into jb-dev

* commit 'dc9445ba4cb2e261719d3c38956d9cbe1fddcd64':
Add support for grouping keyboard layouts by collection.
ae9d040f715130389de3dbc3bf52e24e5f29425a 18-May-2012 Kenny Root <kroot@google.com> Merge "Wait for ASECs to be scanned before proceeding" into jb-dev
27cb3f8c44be79f78a0c47b5631472705acb3e96 18-May-2012 Christopher Tate <ctate@google.com> Merge "Eliminate "backup enabled but not provisioned" failure modes" into jb-dev
dc9445ba4cb2e261719d3c38956d9cbe1fddcd64 18-May-2012 Jeff Brown <jeffbrown@google.com> Merge "Add support for grouping keyboard layouts by collection." into jb-dev
51a573c76737733638c475f52e441c814e6645cc 17-May-2012 Kenny Root <kroot@google.com> Wait for ASECs to be scanned before proceeding

Move MountService up the list, then pause waiting for MountService to
finish scanning ASECs before the services that require those packages to
be ready.

Additionally, don't automatically mark all ASEC apps as FLAG_EXTERNAL on
reboot. This prevents AppWidgets and other things from being used with
ASECs which are on internal storage.

Bug: 6445613
Change-Id: I3e0b3e244fec966814d7a5ea93de5d337aea79bd
om/android/server/MountService.java
om/android/server/SystemServer.java
om/android/server/pm/PackageManagerService.java
97ea122c6526125e64213e9c10d9c20f9bc70d9c 17-May-2012 Christopher Tate <ctate@google.com> Eliminate "backup enabled but not provisioned" failure modes

Previously, the setup app was responsible for telling the backup
manager through a side band that the user had passed through the
backup/restore-related portion of the setup flow. Now that the
flow has been streamlined and certain mandatory portions of it
are no longer relevant, we can ditch the whole idea of the backup
manager's internal "provisioned" state. This makes setup and the
setup "wizard" applications less fragile as well as eliminating
the possibility of unrecoverable "backup was never provisioned"
failure modes.

Now, the only check the backup manager has to do is against the
full "device is provisioned" flag, just like all of the other
components on the phone that only become usable after the setup
process has exited [such as phone calls].

Bug 6493520

Change-Id: I13ec8dd8baa1e74ed8569b0326219a98a7f632a9
om/android/server/BackupManagerService.java
d9fec5d317c09da6bcc7a54df4e0190a76d21eae 18-May-2012 Jeff Brown <jeffbrown@google.com> Add support for grouping keyboard layouts by collection.

Bug: 6405203
Change-Id: Id818b27ec09928150795d594a96df186a6e39168
om/android/server/input/InputManagerService.java
a8fec13f54b4c8ae10b232ba94cc54c90a102ffa 18-May-2012 Irfan Sheriff <isheriff@google.com> am 829a82c6: am 4441a369: Merge "Add logging to capture wifi enable" into jb-dev

* commit '829a82c68fd64be4f997f6933d222ad604ae93d9':
Add logging to capture wifi enable
693cf16f857a1ff8d13cc61de2ffd7c86098f929 18-May-2012 Adam Cohen <adamcohen@google.com> am 6340b3f0: am e0bb6fe3: Merge "Cap widget bitmap usage by screen size (issue 6464700)" into jb-dev

* commit '6340b3f028edec783ac51970421f7816195408fd':
Cap widget bitmap usage by screen size (issue 6464700)
f1be6861daea57ba0a1595739a899d05229d6d15 15-May-2012 Nick Pelly <npelly@google.com> Enforce the minTime parameter in LocationManager#requestLocationUpdates

There is a long history in Android, on both GED and non GED devices
of GPS providers ignoring the minTime parameter making location updates
every second. The problem is usually poor GPS drivers that claim to
do scheduling but then do not.

By making the minTime parameter strict (instead of a hint) we can add
a CTS test to ensure that udpates to not occur too frequently. I believe
this is the desired behavior from apps. If apps want to take advantage
of more frequent updates when another application asks for those updates
then it can use the passive provider.

The CTS test for GPS has already been submitted (as part of CTS Verifier).

Bug: 6424983
Change-Id: I163b9e44ea7ab71530b86fc2282614e0150e90f1
om/android/server/LocationManagerService.java
46579dc8aff0106ccf311a5679282836852f2fd9 17-May-2012 Irfan Sheriff <isheriff@google.com> am f82e7693: Merge "handleAirplaneModeToggled cleanup" into jb-dev

* commit 'f82e7693ca4396435ef91c7be5348731d9e863c0':
handleAirplaneModeToggled cleanup
f82e7693ca4396435ef91c7be5348731d9e863c0 17-May-2012 Irfan Sheriff <isheriff@google.com> Merge "handleAirplaneModeToggled cleanup" into jb-dev
42d73bba668aea978259e574675f37ede80dd34e 17-May-2012 Irfan Sheriff <isheriff@google.com> handleAirplaneModeToggled cleanup

Addressing a cosmetic comment from the previous CL

Bug: 6504534
Change-Id: I04981f8b541611cb93110e8b88cd7751027060cc
om/android/server/WifiService.java
16cf17ce60171690526b08494482cbef4154bd96 17-May-2012 Irfan Sheriff <isheriff@google.com> am ce66556a: Merge "Fix persisting wifi state on setWifiEnabled() call" into jb-dev

* commit 'ce66556a345aacad517f8eb72ddec20160ce9d61':
Fix persisting wifi state on setWifiEnabled() call
ce66556a345aacad517f8eb72ddec20160ce9d61 17-May-2012 Irfan Sheriff <isheriff@google.com> Merge "Fix persisting wifi state on setWifiEnabled() call" into jb-dev
f03d62007c252271aa30360de90a50b3a974ee8f 17-May-2012 Irfan Sheriff <isheriff@google.com> Fix persisting wifi state on setWifiEnabled() call

When somebody makes a quick setWifiEnabled calls in back to back succession,
we were missing setting the last state because we were only doing that
when wifi was in a particular state from a state machine's perspective.

This was done to handle the interaction b/w airplane and wifi and was
done in the wrong way. That part is now moved to the code which detects
airplane mode changes.

In the longer term, I want to move the whole persisting code as part of
wifi state machine which is more aware of the exact states wifi is in.

Bug: 6504534
Change-Id: I452f3f4efdeb84458dcfd280269e09ffa3844f05
om/android/server/WifiService.java
a978d9bfefa8f7cb1591a1789effa955d902a9cf 17-May-2012 Craig Mautner <cmautner@google.com> am d51a68b3: Merge "Eliminate deferred surface destruction." into jb-dev

* commit 'd51a68b3d2d347be989b53af1777454f97ad9b46':
Eliminate deferred surface destruction.
d51a68b3d2d347be989b53af1777454f97ad9b46 17-May-2012 Craig Mautner <cmautner@google.com> Merge "Eliminate deferred surface destruction." into jb-dev
70c70530bd6793869736ec894498e4ebf5dc9b20 16-May-2012 Jeff Sharkey <jsharkey@android.com> Transition from DEV network stats to XT.

When XT stats are available, transition to prefer them over DEV,
since they aren't subject to hardware driver bugs. Only switches at
the first atomic XT bucket, and adds a Settings.Secure flag to force
back to DEV if needed. Includes tests to cover transition.

Fix tests where device overlay would change which network types
reflected data usage. Test both history and summary APIs. Fixed
collection timestamps to reflect full buckets.

Bug: 6504744
Change-Id: Idd7f3b2fdb064c36547c85c51c214fd938c59b7e
om/android/server/net/NetworkStatsCollection.java
om/android/server/net/NetworkStatsService.java
bf08af3323117e15a65b74e66b7499d31537f9e1 17-May-2012 Craig Mautner <cmautner@google.com> Eliminate deferred surface destruction.

Removing the code that delays a surface destruction when
WindowManager.FLAG_KEEP_SURFACE_WHILE_ANIMATING is set. The lock
screen that continued to animate after destroySurfaceLocked is no
longer used and this code was causing problems.

Also mDrawState was being set to NO_SURFACE in destroySurfaceLocked
even if the surface ended up not being destroyed. Later when it was
reused the false value of mDrawState was messing things up.

The screen lock bug referenced below no longer levaes the user stuck
with a black lockscreen. However it occasionally powers back up in the
launcher screen rather than the lock screen.

Fixes bug 6485955.

Change-Id: I684104c7e7c39c161a5118aa890889fbae92e635
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
om/android/server/wm/WindowStateAnimator.java
e262d4bdbd1b76a5a41123bcde4f1ad04e3f91a6 17-May-2012 Kenny Root <kroot@google.com> am 11e123f7: Merge "Check system app before removal" into jb-dev

* commit '11e123f7684378578242f5824e14ddba2f68d9ca':
Check system app before removal
11e123f7684378578242f5824e14ddba2f68d9ca 17-May-2012 Kenny Root <kroot@google.com> Merge "Check system app before removal" into jb-dev
044d40ad87f5f6a321aa48f74e05b8355c40f422 17-May-2012 Svetoslav Ganov <svetoslavganov@google.com> am 824aa860: Merge "Accessibility service needs to request permission to be bound to." into jb-dev

* commit '824aa860cd0b38b09779aab417612b115fd495a3':
Accessibility service needs to request permission to be bound to.
824aa860cd0b38b09779aab417612b115fd495a3 17-May-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Accessibility service needs to request permission to be bound to." into jb-dev
53e184d34e7c5b1a65c74fac55f9a635d8131dda 17-May-2012 Svetoslav Ganov <svetoslavganov@google.com> Accessibility service needs to request permission to be bound to.

1. Every accessibility services targeting JellyBean or higher has
to request a special permission for the system to bind to it.

Change-Id: I6e579326bdf3597f148d6c67317455701ec8af68
om/android/server/accessibility/AccessibilityManagerService.java
87b5d7b26e279be7c7a1b4333babcb2ee895ca01 16-May-2012 Kenny Root <kroot@google.com> Check system app before removal

Mae sure we check to see whether an app is really deleted or just
skipped.

Bug: 6494869
Change-Id: I918f16e4ccda87f7f6f67855c7a7aef435c64e20
om/android/server/pm/PackageManagerService.java
829a82c68fd64be4f997f6933d222ad604ae93d9 16-May-2012 Irfan Sheriff <isheriff@google.com> am 4441a369: Merge "Add logging to capture wifi enable" into jb-dev

* commit '4441a369abfaca15a6c4b258d36405890c93deec':
Add logging to capture wifi enable
4441a369abfaca15a6c4b258d36405890c93deec 16-May-2012 Irfan Sheriff <isheriff@google.com> Merge "Add logging to capture wifi enable" into jb-dev
6340b3f028edec783ac51970421f7816195408fd 16-May-2012 Adam Cohen <adamcohen@google.com> am e0bb6fe3: Merge "Cap widget bitmap usage by screen size (issue 6464700)" into jb-dev

* commit 'e0bb6fe33355f9eeed1273a3614624286a0911ce':
Cap widget bitmap usage by screen size (issue 6464700)
e0bb6fe33355f9eeed1273a3614624286a0911ce 16-May-2012 Adam Cohen <adamcohen@google.com> Merge "Cap widget bitmap usage by screen size (issue 6464700)" into jb-dev
bd21b78f0f018f1ea2fc750232ffc20263baa2e0 16-May-2012 Irfan Sheriff <isheriff@google.com> Add logging to capture wifi enable

Bug: 6504534
Change-Id: I3c3a803ce5bc53f1bdae697a23b95d63db82717c
om/android/server/WifiService.java
dd0b2e55afe38833c12764cf90fffbd02af553cd 16-May-2012 Robert Greenwalt <rgreenwalt@google.com> am 9eb23661: am 8b18354f: Merge "Add some logging to NDC." into jb-dev

* commit '9eb23661c43c00fc7409811c125421aababa31cf':
Add some logging to NDC.
9eb23661c43c00fc7409811c125421aababa31cf 16-May-2012 Robert Greenwalt <rgreenwalt@google.com> am 8b18354f: Merge "Add some logging to NDC." into jb-dev

* commit '8b18354fd43ac3d76546eca6e27c6f7b7e818247':
Add some logging to NDC.
8b18354fd43ac3d76546eca6e27c6f7b7e818247 16-May-2012 Robert Greenwalt <rgreenwalt@google.com> Merge "Add some logging to NDC." into jb-dev
50d82584f581fa334da457027812463ac99299d3 16-May-2012 Daniel Sandler <dsandler@android.com> am e00913eb: am a0e0d580: Merge "Removing a notification that isn\'t there isn\'t a big deal." into jb-dev

* commit 'e00913ebe4b44022bb4db144034c890b7ae40fb6':
Removing a notification that isn't there isn't a big deal.
e00913ebe4b44022bb4db144034c890b7ae40fb6 16-May-2012 Daniel Sandler <dsandler@android.com> am a0e0d580: Merge "Removing a notification that isn\'t there isn\'t a big deal." into jb-dev

* commit 'a0e0d5806c9aa12e291d9ceb60a35eb9b7fde5b0':
Removing a notification that isn't there isn't a big deal.
fe0806a3b60ff54c7444a51b91353e2299ed1bca 16-May-2012 Daniel Sandler <dsandler@android.com> Removing a notification that isn't there isn't a big deal.

You shouldn't do it, but there's no need to fault your
process.

Bug: 6396830
Change-Id: I47c20b9829e4e8bb98862f33c3c52be1b5987f37
om/android/server/StatusBarManagerService.java
f7d47015e15e679a52a5ea146571cb16e5b29c30 16-May-2012 Dianne Hackborn <hackbod@google.com> am 4f9842ca: am 80fea051: Merge "Fix some issues with updating the offsets of a window." into jb-dev

* commit '4f9842ca45ac7367aa409bac6b443093998d3d1d':
Fix some issues with updating the offsets of a window.
7ba90544d97a9735d295f2133138174b1acdfb73 16-May-2012 Dianne Hackborn <hackbod@google.com> am a15ebaa2: am 79f5777d: Merge "A few odds and ends." into jb-dev

* commit 'a15ebaa25c93c750c22e80498c2415b2af0f2f3e':
A few odds and ends.
4f9842ca45ac7367aa409bac6b443093998d3d1d 16-May-2012 Dianne Hackborn <hackbod@google.com> am 80fea051: Merge "Fix some issues with updating the offsets of a window." into jb-dev

* commit '80fea051ba7e8e3ad82eca3d907aaa4a528658d1':
Fix some issues with updating the offsets of a window.
a15ebaa25c93c750c22e80498c2415b2af0f2f3e 16-May-2012 Dianne Hackborn <hackbod@google.com> am 79f5777d: Merge "A few odds and ends." into jb-dev

* commit '79f5777d7c1652badeba4be92a5271d2c2276d22':
A few odds and ends.
80fea051ba7e8e3ad82eca3d907aaa4a528658d1 16-May-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix some issues with updating the offsets of a window." into jb-dev
3e52fc25154540faf3c0cb927ff45532cdebdddf 16-May-2012 Dianne Hackborn <hackbod@google.com> Fix some issues with updating the offsets of a window.

- Apply the correct crop rect at this point.
- Apply the correct position by taking into account the frame left/top.
- Don't directly apply the new values if the window is currently
animating, since we need to go through the whole animation step
to determine what the correct position is (taking into account
any transformations).

Change-Id: I15d79354d9779867c49c7c0880faccdead7b021d
om/android/server/wm/WindowStateAnimator.java
b5aff3fde346225fab0f2751d4fb51b92bb73b32 16-May-2012 Robert Greenwalt <rgreenwalt@google.com> Add some logging to NDC.

bug:6492166
Change-Id: Ib7c7a0927d3e920f6c041f7252f3f24c8e597bc7
om/android/server/NativeDaemonConnector.java
om/android/server/NetworkManagementService.java
e302a162359e191633e966520a6bab4ad569390c 15-May-2012 Dianne Hackborn <hackbod@google.com> A few odds and ends.

- Add documentation on "television" UI mode.
- Tweak new documentation and implementation around propagating
URI grants through choosers.
- Add new activity launch flag for closing system dialogs.

Change-Id: I978c05f0dc3d16e1c55d43631828b9efa6335b19
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityStack.java
b4131ccba37169df236cebd7e5dca8c0984888cd 15-May-2012 Dianne Hackborn <hackbod@google.com> am b4652172: am bea7afc5: Merge "Fix issue #6284404: ArrayIndexOutOfBoundsException in..." into jb-dev

* commit 'b4652172404643d0a8fffbcc315cddcc733ec5ba':
Fix issue #6284404: ArrayIndexOutOfBoundsException in...
b4652172404643d0a8fffbcc315cddcc733ec5ba 15-May-2012 Dianne Hackborn <hackbod@google.com> am bea7afc5: Merge "Fix issue #6284404: ArrayIndexOutOfBoundsException in..." into jb-dev

* commit 'bea7afc52cc85e35b7fc200912246c62d3791198':
Fix issue #6284404: ArrayIndexOutOfBoundsException in...
bea7afc52cc85e35b7fc200912246c62d3791198 15-May-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #6284404: ArrayIndexOutOfBoundsException in..." into jb-dev
1a1318d9a061981469735d9164585f75830164fe 15-May-2012 Svetoslav Ganov <svetoslavganov@google.com> am fdf567e4: am 0bef7245: Merge "Implement the global accessibility action to expand notifications." into jb-dev

* commit 'fdf567e44ded6f2e073ffa38997aaab7259d2576':
Implement the global accessibility action to expand notifications.
fdf567e44ded6f2e073ffa38997aaab7259d2576 15-May-2012 Svetoslav Ganov <svetoslavganov@google.com> am 0bef7245: Merge "Implement the global accessibility action to expand notifications." into jb-dev

* commit '0bef72450b954ab0254ab948f75a89d65af3808c':
Implement the global accessibility action to expand notifications.
0bef72450b954ab0254ab948f75a89d65af3808c 15-May-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Implement the global accessibility action to expand notifications." into jb-dev
5c89f44ea16667bf18297ccb9fb10aad639dab1f 15-May-2012 Svetoslav Ganov <svetoslavganov@google.com> Implement the global accessibility action to expand notifications.

bug:6468852

Change-Id: Id4494a07b1ed96773e22dcfdd5991afe3ee98004
om/android/server/accessibility/AccessibilityManagerService.java
9b3e7d1871903f3e52211fafc7091b5dc3e30649 15-May-2012 Svetoslav Ganov <svetoslavganov@google.com> am ef2f0dfb: am dff62196: Merge "Keeping the screen on during gesture detection." into jb-dev

* commit 'ef2f0dfb48f9c1e88fd6067c65786971bb9b5a65':
Keeping the screen on during gesture detection.
ef2f0dfb48f9c1e88fd6067c65786971bb9b5a65 15-May-2012 Svetoslav Ganov <svetoslavganov@google.com> am dff62196: Merge "Keeping the screen on during gesture detection." into jb-dev

* commit 'dff621968da21d747c462c64cc80c1b27bd17dcc':
Keeping the screen on during gesture detection.
03fcc333cf0fbbc4df1215649746d6360801efd8 15-May-2012 Dianne Hackborn <hackbod@google.com> Fix issue #6284404: ArrayIndexOutOfBoundsException in...

...FragmentManagerImpl.restoreAllState

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

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

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

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

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

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

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

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

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

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

Change-Id: Ic3900b12940de25cdd7c5fb9a2a28fb1f4c6cd1a
om/android/server/am/ActivityStack.java
d1ff736d01cebaee70b76f012b660ae549c252b9 15-May-2012 Svetoslav Ganov <svetoslavganov@google.com> Keeping the screen on during gesture detection.

1. During gesture detection we are not injecting the events we receive
since we do not want the accessibility focus to move as a result of
the hover event of the gesture. Because of that it was possible that
we consume all events since the user performs only gesture to navigate
resulting in the screen being off while the user is actively interacting
with the device. Now we are poking the user activity in the power
manager to keep the screen on.

bug:6485171

Change-Id: I06a09c5297f01bef5e20d471cee76fa7aae0c4fe
om/android/server/accessibility/AccessibilityInputFilter.java
99bf850093091ad9262c5f90c6ad90060fc7b84b 15-May-2012 Amith Yamasani <yamasani@google.com> am a5695eee: am 0aeb05e6: Merge "Fix a problem in finish affinity in Activity Manager." into jb-dev

* commit 'a5695eeeafcd31bcf000eae320cf6025200cbb8c':
Fix a problem in finish affinity in Activity Manager.
a5695eeeafcd31bcf000eae320cf6025200cbb8c 15-May-2012 Amith Yamasani <yamasani@google.com> am 0aeb05e6: Merge "Fix a problem in finish affinity in Activity Manager." into jb-dev

* commit '0aeb05e6ded37dcf3d02ee1e8021ed61d4fec52a':
Fix a problem in finish affinity in Activity Manager.
f2d3c418c43dcbfbc9c22ca4f1c6d86297f67ee0 15-May-2012 Dianne Hackborn <hackbod@google.com> am 1bcd6b8c: am a827843f: Merge "Fix issue #6020164: Settings crashed on orientation change..." into jb-dev

* commit '1bcd6b8ce8f7769e0b61dd630c98d56116d43595':
Fix issue #6020164: Settings crashed on orientation change...
2cbb95e12b67489fb620bfc6ab5dfd14a7225108 15-May-2012 Geremy Condra <gcondra@google.com> am c9e7aede: am b696c054: Merge "Adds support for the CertBlacklister." into jb-dev

* commit 'c9e7aede3e8c9b4b515e5be8b80b91043ee984e7':
Adds support for the CertBlacklister.
c4ad4e33b40f54ff1c3064a75d2883ca9c078be7 15-May-2012 Kenny Root <kroot@google.com> am 017c5f78: am 4ebaf0f1: Merge "Change thread priority for disk measurement to bg" into jb-dev

* commit '017c5f78d9e56d07e77d707565f376a7ac6b56a4':
Change thread priority for disk measurement to bg
1bcd6b8ce8f7769e0b61dd630c98d56116d43595 15-May-2012 Dianne Hackborn <hackbod@google.com> am a827843f: Merge "Fix issue #6020164: Settings crashed on orientation change..." into jb-dev

* commit 'a827843f9b46700a187bd3a506498a0f36f474fa':
Fix issue #6020164: Settings crashed on orientation change...
c9e7aede3e8c9b4b515e5be8b80b91043ee984e7 15-May-2012 Geremy Condra <gcondra@google.com> am b696c054: Merge "Adds support for the CertBlacklister." into jb-dev

* commit 'b696c0542cae70d7f66b9011be2f9d1812885159':
Adds support for the CertBlacklister.
017c5f78d9e56d07e77d707565f376a7ac6b56a4 15-May-2012 Kenny Root <kroot@google.com> am 4ebaf0f1: Merge "Change thread priority for disk measurement to bg" into jb-dev

* commit '4ebaf0f1d4be34f475bb663784b40cf79b9d2184':
Change thread priority for disk measurement to bg
bfc1be1101b87f193b043b62edd1722b8c4eb23c 15-May-2012 Amith Yamasani <yamasani@google.com> Fix a problem in finish affinity in Activity Manager.

Finishing tasks with an activity affinity was failing if the
activity was found at index 0. This fixes the loop condition.

Change-Id: If2e0d294e3e4493bca8b7efd40f24adaf2eb0b6f
om/android/server/am/ActivityStack.java
e4a5b4a5bc9773ce116896934e4372db44122ff0 15-May-2012 Jamie Gennis <jgennis@google.com> am 06220076: am 04d35218: Merge "WindowManager: unset the wallpaper window crop" into jb-dev

* commit '06220076ab63e1f0e72938febfdf26bdd030696d':
WindowManager: unset the wallpaper window crop
93a0d2f2a13259f0cd4289d1b0f60a3e7f260e08 15-May-2012 Svetoslav Ganov <svetoslavganov@google.com> am 1ec37a9b: am 11fd02f6: Merge "Update the API version checks." into jb-dev

* commit '1ec37a9b173d0357c22cb489a55c532e4f9a7c0c':
Update the API version checks.
06b0e27b90884bb39248e5cf392010cc18a67d02 15-May-2012 Svetoslav Ganov <svetoslavganov@google.com> am 21ba7c96: am 8f761760: Merge "Removing default accessibility gesture handling." into jb-dev

* commit '21ba7c9603c60911efacf62eb74dd666ea75e6e8':
Removing default accessibility gesture handling.
6917b2a10d9b701282fbfb85be48eeb7e7877882 15-May-2012 Dianne Hackborn <hackbod@google.com> am 2da87ec3: am 2a7a6ca0: Merge "Implement new window cropping." into jb-dev

* commit '2da87ec32e72c2c25998e2444155c00074cfbd40':
Implement new window cropping.
06220076ab63e1f0e72938febfdf26bdd030696d 15-May-2012 Jamie Gennis <jgennis@google.com> am 04d35218: Merge "WindowManager: unset the wallpaper window crop" into jb-dev

* commit '04d3521839c90d1cccf3ee428963a0aef0088ef9':
WindowManager: unset the wallpaper window crop
1ec37a9b173d0357c22cb489a55c532e4f9a7c0c 15-May-2012 Svetoslav Ganov <svetoslavganov@google.com> am 11fd02f6: Merge "Update the API version checks." into jb-dev

* commit '11fd02f63acba18a1b03351b595490597136fc6a':
Update the API version checks.
21ba7c9603c60911efacf62eb74dd666ea75e6e8 15-May-2012 Svetoslav Ganov <svetoslavganov@google.com> am 8f761760: Merge "Removing default accessibility gesture handling." into jb-dev

* commit '8f76176016a63026168f5886604d4378f170fc6c':
Removing default accessibility gesture handling.
2da87ec32e72c2c25998e2444155c00074cfbd40 15-May-2012 Dianne Hackborn <hackbod@google.com> am 2a7a6ca0: Merge "Implement new window cropping." into jb-dev

* commit '2a7a6ca00ab176105b5bbfa6b17bb0dcd058d517':
Implement new window cropping.
a827843f9b46700a187bd3a506498a0f36f474fa 15-May-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #6020164: Settings crashed on orientation change..." into jb-dev
b61a02657b9e577179c934bbb5e199ce919c4642 15-May-2012 Dianne Hackborn <hackbod@google.com> Fix issue #6020164: Settings crashed on orientation change...

...while listening to TTS example

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

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

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

Change-Id: I38b680746f4c61ae30e7ce831e1de187adf60902
om/android/server/am/ActivityStack.java
b696c0542cae70d7f66b9011be2f9d1812885159 15-May-2012 Geremy Condra <gcondra@google.com> Merge "Adds support for the CertBlacklister." into jb-dev
a69b7eb1fc6ab6f47411493a17463fe7a43b8b3f 14-May-2012 Kenny Root <kroot@google.com> Change thread priority for disk measurement to bg

Change the thread priority for all disk measurement and statfs calls to
background priority.

Also move the measurement fully into the measurement task since it makes
more sense.

Bug: 6332097
Change-Id: Iafc2151313ad9b14117daf67e933dccd32f68d54
om/android/server/pm/PackageManagerService.java
577ad3f14d710c12b34c736e89925555bda70c80 14-May-2012 Michael Jurka <mikejurka@google.com> am e4046724: am c8179e78: Merge "Improve transition out of recents" into jb-dev

* commit 'e4046724f6de620d0660dec32c70808fb94abc99':
Improve transition out of recents
ac592fb3b6daf7d155438c7a1727932d88201dce 14-May-2012 Jeff Brown <jeffbrown@google.com> am a4881637: am 58770232: Merge "Move power HAL interactions to PowerManagerService." into jb-dev

* commit 'a48816375f68a8b4a945efcb68e405308a50adc9':
Move power HAL interactions to PowerManagerService.
cf462d65d2e7c8f74763c02312f71cfbebdf9b2f 14-May-2012 Craig Mautner <cmautner@google.com> am ba523324: am ab1c5456: Merge "Keep launcher screen from flashing over lockscreen" into jb-dev

* commit 'ba523324f32ca55221e07e31b2d0699826daa2fe':
Keep launcher screen from flashing over lockscreen
d640d0641ac87035c608e85d3ab7e499a8b27d2f 14-May-2012 Jeff Sharkey <jsharkey@android.com> am f2fe4cb1: am cd586258: Merge "Enforce READ_EXTERNAL through Settings.Secure." into jb-dev

* commit 'f2fe4cb11b2b93acf1a983e856efe26b6bb79683':
Enforce READ_EXTERNAL through Settings.Secure.
179817387b9d03e27009b44693587a33c53b17df 14-May-2012 Jeff Brown <jeffbrown@google.com> am f4df93ce: am 2f095760: Rename kcm attribute to keyboardLayout.

* commit 'f4df93cec62861e3f185979612360c27dd80e043':
Rename kcm attribute to keyboardLayout.
521e0d794d298201716d30c66164f0c60d6a74c0 14-May-2012 Jamie Gennis <jgennis@google.com> WindowManager: unset the wallpaper window crop

This change removes the window crop of the wallpaper when setting its position.

Change-Id: I0f4dc10ea9a724b210f75286580ef391145286df
om/android/server/wm/WindowStateAnimator.java
11fd02f63acba18a1b03351b595490597136fc6a 14-May-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Update the API version checks." into jb-dev
8f76176016a63026168f5886604d4378f170fc6c 14-May-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Removing default accessibility gesture handling." into jb-dev
2a7a6ca00ab176105b5bbfa6b17bb0dcd058d517 14-May-2012 Dianne Hackborn <hackbod@google.com> Merge "Implement new window cropping." into jb-dev
5a48f9758b990fe6c46359927a40aecb6a02b64c 13-May-2012 Svetoslav Ganov <svetoslavganov@google.com> Update the API version checks.

1. Since the API version has been finalized this change
updates the SDk version checks to use the JellyBean
verson number.

bug:5947249

Change-Id: Ie22fa7e18a7ea7b0c7077d80246a26c17f327ceb
om/android/server/accessibility/AccessibilityManagerService.java
85afd1b6f871d471fdff1980134676a5f1690525 13-May-2012 Dianne Hackborn <hackbod@google.com> Implement new window cropping.

The window manager now performs the crop internally, evaluating
it every animation from, to be able to update it along with
the surface position.

Change-Id: I960a2161b9defb6fba4840fa35aee4e411c39b32
om/android/server/wm/Session.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
om/android/server/wm/WindowStateAnimator.java
7b1e0c7046abefc0b40884b36197c8a803d9cf6d 13-May-2012 Svetoslav Ganov <svetoslavganov@google.com> Removing default accessibility gesture handling.

1. The initial design was to have some accessibility gestures
being handled by the system if the gesture handling access
service does not consume the gesture. However, we are not
sure what a good default is and once we add a default handler
we cannot remove it since people may rely on it. Thus, we
take the simples approach and let the accessibility service
handle the gestures. If no gestures are handled the system
will work in explore by touch as before.

bug:5932640

Change-Id: I865a83549fa03b0141d27ce9713e9b7bb45a57b4
om/android/server/accessibility/AccessibilityManagerService.java
e4046724f6de620d0660dec32c70808fb94abc99 12-May-2012 Michael Jurka <mikejurka@google.com> am c8179e78: Merge "Improve transition out of recents" into jb-dev

* commit 'c8179e78052af3d68725e1160214a736f143f8a2':
Improve transition out of recents
c8179e78052af3d68725e1160214a736f143f8a2 12-May-2012 Michael Jurka <mikejurka@google.com> Merge "Improve transition out of recents" into jb-dev
d5895a7e8a94e58451af640fe796d1822cbd793f 12-May-2012 Michael Jurka <mikejurka@google.com> Improve transition out of recents

- During the transition, fade the bg to black
- Exiting activity fades to black
- Recents background no longer fades away, because
then it would fight against the fade to black
happening behind it
om/android/server/wm/WindowManagerService.java
3d33c268cc7f08ec3d2ec1aa535fa86dec458b2e 07-May-2012 Geremy Condra <gcondra@google.com> Adds support for the CertBlacklister.

The CertBlacklister is a mechanism for allowing is to use gservices
to blacklist certs by serial number or public key.

Change-Id: Ie4b0c966a8a43c9823fb550c0b1691204f133ae7
om/android/server/CertBlacklister.java
om/android/server/SystemServer.java
a48816375f68a8b4a945efcb68e405308a50adc9 12-May-2012 Jeff Brown <jeffbrown@google.com> am 58770232: Merge "Move power HAL interactions to PowerManagerService." into jb-dev

* commit '58770232216cd735afdfd3dd53151070e06de5ce':
Move power HAL interactions to PowerManagerService.
58770232216cd735afdfd3dd53151070e06de5ce 12-May-2012 Jeff Brown <jeffbrown@google.com> Merge "Move power HAL interactions to PowerManagerService." into jb-dev
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
om/android/server/PowerManagerService.java
om/android/server/ShutdownActivity.java
om/android/server/SystemServer.java
om/android/server/pm/ShutdownThread.java
om/android/server/wm/WindowManagerService.java
ba523324f32ca55221e07e31b2d0699826daa2fe 12-May-2012 Craig Mautner <cmautner@google.com> am ab1c5456: Merge "Keep launcher screen from flashing over lockscreen" into jb-dev

* commit 'ab1c5456b789205ef305b19e5a7682b6561aacac':
Keep launcher screen from flashing over lockscreen
ab1c5456b789205ef305b19e5a7682b6561aacac 12-May-2012 Craig Mautner <cmautner@google.com> Merge "Keep launcher screen from flashing over lockscreen" into jb-dev
f2fe4cb11b2b93acf1a983e856efe26b6bb79683 12-May-2012 Jeff Sharkey <jsharkey@android.com> am cd586258: Merge "Enforce READ_EXTERNAL through Settings.Secure." into jb-dev

* commit 'cd5862586ab555b53ffd0a62488843838d1aa94d':
Enforce READ_EXTERNAL through Settings.Secure.
cd5862586ab555b53ffd0a62488843838d1aa94d 12-May-2012 Jeff Sharkey <jsharkey@android.com> Merge "Enforce READ_EXTERNAL through Settings.Secure." into jb-dev
f53857716a0db805c51c0cae93550d90e32e4749 11-May-2012 Jeff Sharkey <jsharkey@android.com> Enforce READ_EXTERNAL through Settings.Secure.

Always defers to user-defined setting, when present.

Bug: 6389556
Change-Id: I079d2a41b772facfdac74eefc4c8072fc9284f97
om/android/server/pm/PackageManagerService.java
om/android/server/pm/Settings.java
68ea9b08ef2d909a063dd78a866926cbb842e9d4 11-May-2012 Robert Greenwalt <rgreenwalt@google.com> Add logging for Tethering.

Hard to repro bug doesn't have enough info in the logs to understand.

bug:6469121
Change-Id: I31734f4e891e9b23197f2d5adb931e3891393cdd
om/android/server/connectivity/Tethering.java
f4df93cec62861e3f185979612360c27dd80e043 11-May-2012 Jeff Brown <jeffbrown@google.com> am 2f095760: Rename kcm attribute to keyboardLayout.

* commit '2f0957607411b99810226ad38d59cf18718b86d0':
Rename kcm attribute to keyboardLayout.
2f0957607411b99810226ad38d59cf18718b86d0 11-May-2012 Jeff Brown <jeffbrown@google.com> Rename kcm attribute to keyboardLayout.

Bug: 6478076
Change-Id: I7fc0d8eb36d03a628d070f8fd6ea1e1464b1a163
om/android/server/input/InputManagerService.java
35d0e1d11c046b5e5ddf6d12c1a09becb8561af0 11-May-2012 Craig Mautner <cmautner@google.com> Keep launcher screen from flashing over lockscreen

Extend the force hide period to include the animation.

Fixes bug b6471929.

Change-Id: I91daf9dc678723be4c69913aa5a3aa0e265d103e
om/android/server/wm/WindowAnimator.java
311c79c3e93589c6fc720fe6c58ed522af591376 10-May-2012 Adam Cohen <adamcohen@google.com> Cap widget bitmap usage by screen size (issue 6464700)

Change-Id: I04e16223861a88d40ad757afa086a0f92e84493b
om/android/server/AppWidgetServiceImpl.java
3ec2e1b94ab502bfa8d5e8750716108f69aa18d2 09-May-2012 Svetoslav Ganov <svetoslavganov@google.com> Remove activation gestures form reported and add a touch explore requesting flag.

1. Delegating activation gestures has several issues that we should
decide how to handle if possible before allowing an accessibility
service to take over them:

A) It is needed that every view than can be clicked or long pressed on
reacts to such as a response to calling performClick and performLongPress
which is not necessary true since the view may watch the touch
events and do its own click long click detection. As a result it may
be possible that there are view a user cannot interact with in
touch exploration mode but can if not in that mode.

B) Clicking or long pressing on a different location in a view may yield
different results, for example NumberPicker. Ideally such views have
to implement AccessibilityNodeProvide which provider handles correctly
the request for click long press on virtual nodes. Some apps however
just fire different hover accessibility events when the user is over
a specific semantic portion of the view but do not provide virtual
nodes. Hence, a user will not be able to interact with such semantic
regions but the system can achieve that by sending the click/long click
at the precise location in the view that was last touch explored.

2. Adding a flag on accessibility service info to request explore by touch
mode. There is no need to put the device in this mode if node of the currently
enabled accessibility services supports it. Now the problem is inverted and
the service has to explicitly state its capability.

3. Fixing a bug where includeImportantViews was ignored for automation
services.

Change-Id: I3b29a19f24ab5e26ee29f974bbac2197614c9e2a

Conflicts:

api/current.txt
om/android/server/accessibility/AccessibilityManagerService.java
86ba4aaa712f68282273e632ef72981da165e9a3 10-May-2012 Svetoslav Ganov <svetoslavganov@google.com> am 37fd7976: am a1dc761c: Adding scroll actions to accessibility node info.

* commit '37fd797699eb8e481d69f7f5a19cd05b8a5b7170':
Adding scroll actions to accessibility node info.
37fd797699eb8e481d69f7f5a19cd05b8a5b7170 10-May-2012 Svetoslav Ganov <svetoslavganov@google.com> am a1dc761c: Adding scroll actions to accessibility node info.

* commit 'a1dc761c8322355eb1bb71d3d6c9c603c1d1fc0f':
Adding scroll actions to accessibility node info.
a1dc761c8322355eb1bb71d3d6c9c603c1d1fc0f 10-May-2012 Svetoslav Ganov <svetoslavganov@google.com> Adding scroll actions to accessibility node info.

1. Scrolling actions are crucial for enabling a gesture based
traversal of the UI and specifically scrollable containers
especially lists and anything backed by an adapter. Since
accessibility focus can land only attached views, it cannot
visit views for adapter items not shown on the screen.
Auto scrolling the list as a result of putting access focus
ot a list item does not work well since the user may get
trapped in a long list. Adding an accessibility node provider
to emit virtual views for one view before the first and one
after the last is complex and suffers the limitation of trapping
the user. Accessibility service need an explicit scroll actions
which may be performed upon an explicit user action. Hence,
the user is informed for the start/end of the visible part of
the list and he makes a deliberate choice to scroll. This will
benefit also people developing Braille devices since they can
scroll the content without telling the user to stop using the
Braille controller and take the device out of his pocket to scroll
and go back to the Braille controller.

NOTE: Without these action large portions of the screen will be
hard to access since users will have to touch and explore to
find and scroll the list.

Change-Id: Iafcf54d4967893205872b3649025a4e347a299ed
om/android/server/accessibility/AccessibilityManagerService.java
a515097d2c6829919e7a13173e4a44d23c4452ed 10-May-2012 Craig Mautner <cmautner@google.com> am 3c52b43f: am 4fe5ebcc: Merge "Update DimAnimator layer when its window changes." into jb-dev

* commit '3c52b43f4f3b3ed0302a1a194e9d3e8b07a78e1a':
Update DimAnimator layer when its window changes.
402cc125a2dcfdb92e4856be8e864fc9ceecc1cf 10-May-2012 Mike Lockwood <lockwood@google.com> am 378d05a9: am b86bc105: Merge "UsbService: Fix problem detecting audio accessory mode when connected at boot" into jb-dev

* commit '378d05a9182a2011f1d387b5597d83c415383757':
UsbService: Fix problem detecting audio accessory mode when connected at boot
cc52dc688fb773b6d3788e8baa1a1dda3fd43d41 10-May-2012 Chet Haase <chet@google.com> am b43c85fe: am 6b16286f: Merge "Notify windows when window animations complete" into jb-dev

* commit 'b43c85fef1d03e4237fd67b3de7ae83ca9328e02':
Notify windows when window animations complete
6474dc987a517ab9cb4b734f51fa1c524c13f1f1 10-May-2012 Jeff Sharkey <jsharkey@android.com> am 0af3e957: am ca90d6da: Merge "Avoid updating thresholds during shutdown." into jb-dev

* commit '0af3e95717a659c578a89570ae3225ff49ddfce5':
Avoid updating thresholds during shutdown.
e5c511a1cceffd17b8edb355f2c19a7498a5e229 10-May-2012 Michael Jurka <mikejurka@google.com> am bf1b5fa9: am 421dceb0: Merge "Making transition out of recents look better" into jb-dev

* commit 'bf1b5fa944158044a595706924b935b5577ec0f0':
Making transition out of recents look better
cb1830cf96adc1c1a90af0621dddc26dcc65ffca 10-May-2012 Daniel Sandler <dsandler@android.com> am 5a062e61: am a25079e6: Show the ADB icon in the status bar again.

* commit '5a062e6107973dad91a2747c8782b7aa893ce6ac':
Show the ADB icon in the status bar again.
84a8f2bc664acbe3c3406b3982fb5022ffd793ed 10-May-2012 Kenny Root <kroot@google.com> am c4cbbb13: am 8c3906d9: Merge "Use the right flag types when creating InstallArgs" into jb-dev

* commit 'c4cbbb131ff419100a4901a856edf3469efef74b':
Use the right flag types when creating InstallArgs
169c3d4dd7300893eb177ac15682f2caf045a862 10-May-2012 Dianne Hackborn <hackbod@google.com> am 7ab16751: am 2c2864f6: Merge "Add new API to find total RAM." into jb-dev

* commit '7ab1675111954814ebaa32dd82084929df1b390e':
Add new API to find total RAM.
13a0dfefdce7356ebc814bfd57f7040b107351ec 10-May-2012 Craig Mautner <cmautner@google.com> am e6499097: am b4ffa66d: Merge "Fix wallpaper glitch and moving window animation." into jb-dev

* commit 'e64990972713c7df02e20c167985b02d1a845cbd':
Fix wallpaper glitch and moving window animation.
ba83ac0093b8067466446ebd39fef6cedf017284 10-May-2012 Dianne Hackborn <hackbod@google.com> am e6f6cd69: am 78fd4a14: Merge "Remove auto-brightness adjustment knob." into jb-dev

* commit 'e6f6cd69ff683ec6663bf004a08edcaa456c7ea5':
Remove auto-brightness adjustment knob.
3c52b43f4f3b3ed0302a1a194e9d3e8b07a78e1a 10-May-2012 Craig Mautner <cmautner@google.com> am 4fe5ebcc: Merge "Update DimAnimator layer when its window changes." into jb-dev

* commit '4fe5ebcc962ad7edb205bf988dd463854dea1044':
Update DimAnimator layer when its window changes.
4fe5ebcc962ad7edb205bf988dd463854dea1044 10-May-2012 Craig Mautner <cmautner@google.com> Merge "Update DimAnimator layer when its window changes." into jb-dev
378d05a9182a2011f1d387b5597d83c415383757 10-May-2012 Mike Lockwood <lockwood@google.com> am b86bc105: Merge "UsbService: Fix problem detecting audio accessory mode when connected at boot" into jb-dev

* commit 'b86bc1058b8b9bce045ae94f7cd703d4bfecccb3':
UsbService: Fix problem detecting audio accessory mode when connected at boot
b86bc1058b8b9bce045ae94f7cd703d4bfecccb3 10-May-2012 Mike Lockwood <lockwood@google.com> Merge "UsbService: Fix problem detecting audio accessory mode when connected at boot" into jb-dev
b43c85fef1d03e4237fd67b3de7ae83ca9328e02 10-May-2012 Chet Haase <chet@google.com> am 6b16286f: Merge "Notify windows when window animations complete" into jb-dev

* commit '6b16286f653f9f8a1c17a8dffebbe6cee4e5afca':
Notify windows when window animations complete
6b16286f653f9f8a1c17a8dffebbe6cee4e5afca 10-May-2012 Chet Haase <chet@google.com> Merge "Notify windows when window animations complete" into jb-dev
0af3e95717a659c578a89570ae3225ff49ddfce5 10-May-2012 Jeff Sharkey <jsharkey@android.com> am ca90d6da: Merge "Avoid updating thresholds during shutdown." into jb-dev

* commit 'ca90d6dad572c6aaad3b0a314df200d1762c23af':
Avoid updating thresholds during shutdown.
bf1b5fa944158044a595706924b935b5577ec0f0 10-May-2012 Michael Jurka <mikejurka@google.com> am 421dceb0: Merge "Making transition out of recents look better" into jb-dev

* commit '421dceb0a4fd8f20349a0de277f82b56e71cb90b':
Making transition out of recents look better
acafd19c5ea05a8d465f97204f8d63468bdaa2a4 10-May-2012 Craig Mautner <cmautner@google.com> Update DimAnimator layer when its window changes.

Prior to this fix once dimming had been turned on it stayed at the
same layer and associated with the same window until it was turned
off. Now the DimAnimator layer is updated if either the window layer
changes or the dimming window changes.

Fixes bug 6467865.

Change-Id: I3e1765b92b51be26e3718c8a87e2583041a36af9
om/android/server/wm/WindowAnimator.java
om/android/server/wm/WindowManagerService.java
ca90d6dad572c6aaad3b0a314df200d1762c23af 10-May-2012 Jeff Sharkey <jsharkey@android.com> Merge "Avoid updating thresholds during shutdown." into jb-dev
421dceb0a4fd8f20349a0de277f82b56e71cb90b 10-May-2012 Michael Jurka <mikejurka@google.com> Merge "Making transition out of recents look better" into jb-dev
bf91046872dd711019e8dec543441601576cc950 10-May-2012 Mike Lockwood <lockwood@google.com> UsbService: Fix problem detecting audio accessory mode when connected at boot

Change-Id: Ie0e23b8ec88f1dd29bb956bc1d21c241f3545059
Signed-off-by: Mike Lockwood <lockwood@google.com>
om/android/server/usb/UsbDeviceManager.java
198e564c9a66010cfe93e0b1a75f84d696bda494 10-May-2012 Chet Haase <chet@google.com> Notify windows when window animations complete

Drawing in windows is suppressed during window animations, to make window
animations smoother. This means that drawing activities that the activity
requested are dropped on the floor. There is no call at the end of window
animations to tell the windows that they may now draw, which leaves the windows
and activities in an uncertain state, especially with respect to some of the
dirty flags that we use internally to know when we have requested (and satisfied)
invalidations on views.

The fix is to notice, on the WindowManager side, when we've finished window
animations and to schedule a traversal on the WindowManager, which will then send
out appropriate messages to the affected windows.

Issue #6461113 EventInfo is stuck in day view

Change-Id: I364c9c472531c467d44801698cfb453970173bb3
om/android/server/wm/WindowAnimator.java
5a062e6107973dad91a2747c8782b7aa893ce6ac 10-May-2012 Daniel Sandler <dsandler@android.com> am a25079e6: Show the ADB icon in the status bar again.

* commit 'a25079e6bafcfd77135a852f0e838738d80606ef':
Show the ADB icon in the status bar again.
c4cbbb131ff419100a4901a856edf3469efef74b 10-May-2012 Kenny Root <kroot@google.com> am 8c3906d9: Merge "Use the right flag types when creating InstallArgs" into jb-dev

* commit '8c3906d920f55ec0d42252ef8f460e6066b1d4b6':
Use the right flag types when creating InstallArgs
7ab1675111954814ebaa32dd82084929df1b390e 10-May-2012 Dianne Hackborn <hackbod@google.com> am 2c2864f6: Merge "Add new API to find total RAM." into jb-dev

* commit '2c2864f65c5cec6aebcb1b5612331f3946893042':
Add new API to find total RAM.
e64990972713c7df02e20c167985b02d1a845cbd 10-May-2012 Craig Mautner <cmautner@google.com> am b4ffa66d: Merge "Fix wallpaper glitch and moving window animation." into jb-dev

* commit 'b4ffa66d6e696bdc773b64802b1cf6d20097c6a3':
Fix wallpaper glitch and moving window animation.
e6f6cd69ff683ec6663bf004a08edcaa456c7ea5 10-May-2012 Dianne Hackborn <hackbod@google.com> am 78fd4a14: Merge "Remove auto-brightness adjustment knob." into jb-dev

* commit '78fd4a14dd2a1e2d9ab4be024861c0d9119cce7f':
Remove auto-brightness adjustment knob.
0d556011915d54c1a5cfbffbc2fb25aeced538ec 10-May-2012 Svetoslav Ganov <svetoslavganov@google.com> am e4abc512: Remove activation gestures form reported and add a touch explore requesting flag.

* commit 'e4abc512aa6474f0106f407f7b399832da34483f':
Remove activation gestures form reported and add a touch explore requesting flag.
cc441aba8a7d7366e256675bea27207284fff74e 10-May-2012 Guang Zhu <guangzhu@google.com> am 0fa15291: Merge "Make UiTestAutomationBridge see non-important views again" into jb-dev

* commit '0fa152912e55f2d08f0a8d1260332a81e5706694':
Make UiTestAutomationBridge see non-important views again
67cc7f2e60bc6532d00bb3c473b9a1d32cdafce2 10-May-2012 Dianne Hackborn <hackbod@google.com> am a53de062: Add callback hack to find out when to load system properties.

* commit 'a53de0629f3b94472c0f160f5bbe1090b020feab':
Add callback hack to find out when to load system properties.
fe9e28cba7dabb452fdbadcf421f7f758a859447 10-May-2012 Jeff Sharkey <jsharkey@android.com> am 6367b166: Merge "Recover from Throwable in FileRotator, dump." into jb-dev

* commit '6367b1669d41f9fe7cd7abe5e05296edecd50f8e':
Recover from Throwable in FileRotator, dump.
a25079e6bafcfd77135a852f0e838738d80606ef 10-May-2012 Daniel Sandler <dsandler@android.com> Show the ADB icon in the status bar again.

Bug: 6440323
Change-Id: I3b1972d18be4ad77a87c4b71673b6cfb7735c59e
om/android/server/usb/UsbDeviceManager.java
8c3906d920f55ec0d42252ef8f460e6066b1d4b6 10-May-2012 Kenny Root <kroot@google.com> Merge "Use the right flag types when creating InstallArgs" into jb-dev
2c2864f65c5cec6aebcb1b5612331f3946893042 10-May-2012 Dianne Hackborn <hackbod@google.com> Merge "Add new API to find total RAM." into jb-dev
21385cd83d7d7938b57a4acbaa236dd4c7804ed4 03-May-2012 Michael Jurka <mikejurka@google.com> Making transition out of recents look better

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

Bug: 6390075

Change-Id: Ia8c753bf7ee03d2acef6eb2772b28d88fe10a682
om/android/server/am/ActivityRecord.java
om/android/server/wm/WindowManagerService.java
20f5c3d4135809ca0b72c23e0c8daf2a8e4e84b2 10-May-2012 Jeff Sharkey <jsharkey@android.com> Avoid updating thresholds during shutdown.

Bug: 6472388
Change-Id: I70e1ed5dc75056840f2f0b130ce0dfecb06f385e
om/android/server/net/NetworkStatsService.java
59325eb31f25704bb88c348160bb69e7c1aa3b48 10-May-2012 Dianne Hackborn <hackbod@google.com> Add new API to find total RAM.

Change-Id: Iad2dff3c44f471515f093e7f0d0d959528881ab9
om/android/server/am/ActivityManagerService.java
b4ffa66d6e696bdc773b64802b1cf6d20097c6a3 10-May-2012 Craig Mautner <cmautner@google.com> Merge "Fix wallpaper glitch and moving window animation." into jb-dev
78fd4a14dd2a1e2d9ab4be024861c0d9119cce7f 10-May-2012 Dianne Hackborn <hackbod@google.com> Merge "Remove auto-brightness adjustment knob." into jb-dev
9aa695871c9d5a0a4784dd60f77a44922cfd2498 10-May-2012 Craig Mautner <cmautner@google.com> Fix wallpaper glitch and moving window animation.

1. Previous fix to hide wallpaper at the same time the wallpaper target
was hidden was too aggressive. In the case where one wallpaper target
was replacing another we would lose the wallpaper for an instant.

2. Previous fix to keep from overwriting the moving window boundaries
was incomplete. The default values for the parent window were 0,0
which caused the lock window animation to translate down and to the
right. Defaulting the parent window boundaries to the full screen
and restoring it to the full screen after each animation fixes this.

Fixes bug 6472070.

Change-Id: I0b13c642c1aaab666cdd0f4a1e7fb4b716e6b17f
om/android/server/wm/WindowStateAnimator.java
518a3d82f78e5089d0f99e61e46e1e915aea91ab 10-May-2012 Dianne Hackborn <hackbod@google.com> Remove auto-brightness adjustment knob.

Not yet ready for release.

Change-Id: I75bc87f35af47c6baac1f26953d8bf3e38062c92
om/android/server/PowerManagerService.java
e4abc512aa6474f0106f407f7b399832da34483f 09-May-2012 Svetoslav Ganov <svetoslavganov@google.com> Remove activation gestures form reported and add a touch explore requesting flag.

1. Delegating activation gestures has several issues that we should
decide how to handle if possible before allowing an accessibility
service to take over them:

A) It is needed that every view than can be clicked or long pressed on
reacts to such as a response to calling performClick and performLongPress
which is not necessary true since the view may watch the touch
events and do its own click long click detection. As a result it may
be possible that there are view a user cannot interact with in
touch exploration mode but can if not in that mode.

B) Clicking or long pressing on a different location in a view may yield
different results, for example NumberPicker. Ideally such views have
to implement AccessibilityNodeProvide which provider handles correctly
the request for click long press on virtual nodes. Some apps however
just fire different hover accessibility events when the user is over
a specific semantic portion of the view but do not provide virtual
nodes. Hence, a user will not be able to interact with such semantic
regions but the system can achieve that by sending the click/long click
at the precise location in the view that was last touch explored.

2. Adding a flag on accessibility service info to request explore by touch
mode. There is no need to put the device in this mode if node of the currently
enabled accessibility services supports it. Now the problem is inverted and
the service has to explicitly state its capability.

3. Fixing a bug where includeImportantViews was ignored for automation
services.

Change-Id: I3b29a19f24ab5e26ee29f974bbac2197614c9e2a
om/android/server/accessibility/AccessibilityManagerService.java
88670d816ba48076bf89afe57b78b09d1e4288bb 10-May-2012 Kenny Root <kroot@google.com> Use the right flag types when creating InstallArgs

Need to use PackageManager.INSTALL_{EXTERNAL,FORWARD_LOCKED} for
createInstallArgs instead of ApplicationInfo.FLAG_etc for the install
args to be created correctly. If certain flags conflict, there will be a
failure to delete the package.

Change-Id: Ibd8705943371596b2f2d6c24bd071b737ca74ef4
om/android/server/pm/PackageManagerService.java
0fa152912e55f2d08f0a8d1260332a81e5706694 10-May-2012 Guang Zhu <guangzhu@google.com> Merge "Make UiTestAutomationBridge see non-important views again" into jb-dev
a53de0629f3b94472c0f160f5bbe1090b020feab 09-May-2012 Dianne Hackborn <hackbod@google.com> Add callback hack to find out when to load system properties.

Use this to reload the trace and layout bounds properties.

This is ONLY for debugging.

Change-Id: I1c4bdb52c823520c352c5bac45fa9ee31160793c
om/android/server/am/ActivityManagerService.java
6367b1669d41f9fe7cd7abe5e05296edecd50f8e 09-May-2012 Jeff Sharkey <jsharkey@android.com> Merge "Recover from Throwable in FileRotator, dump." into jb-dev
df549f83810c6fa76be1845363ef69809a30e569 09-May-2012 Guang Zhu <guangzhu@google.com> Make UiTestAutomationBridge see non-important views again

This problem was introduced in I74df9c24. The intention of the
change was still let UiTestAutomationBridge see the
non-important views, but there were bugs in the implementation:

1. AccessibilityManagerService was not really updating
mIncludeNotImportantViews when mIsAutomation is true

2. Wrong constant is used to set the flag

Change-Id: Ia0a2e9ed9720bd0ea3a563e0b492e870a6ec1586
om/android/server/accessibility/AccessibilityManagerService.java
1a11e33b91daeed22eef42936233e0751e56f4b8 09-May-2012 Irfan Sheriff <isheriff@google.com> am 9669a0ce: Merge "API review fixes" into jb-dev

* commit '9669a0ce574745ba0b0ebd32e8337811973fb7dc':
API review fixes
9669a0ce574745ba0b0ebd32e8337811973fb7dc 09-May-2012 Irfan Sheriff <isheriff@google.com> Merge "API review fixes" into jb-dev
bdf3dc1c95c203224a9a464fad6612e413a3597c 09-May-2012 Craig Mautner <cmautner@google.com> am 08c04000: Merge "Remove incorrect CLEAR_WHEN_TASK_RESET behavior." into jb-dev

* commit '08c04000c6355a735dab237e1994dc17c7e5d44f':
Remove incorrect CLEAR_WHEN_TASK_RESET behavior.
08c04000c6355a735dab237e1994dc17c7e5d44f 09-May-2012 Craig Mautner <cmautner@google.com> Merge "Remove incorrect CLEAR_WHEN_TASK_RESET behavior." into jb-dev
6de357e4d10fa5977ab9a6c665dc858765e95d34 09-May-2012 Jeff Sharkey <jsharkey@android.com> Recover from Throwable in FileRotator, dump.

In rewriteSingle(), catch Throwable to rollback to backup file,
instead of just IOException. Also add dumpAll() to pack up contents
for later debugging, and use it when encountering bad stats.

Bug: 6467868
Change-Id: Ic8e287cf5a235706811a304a88d71d11d3a79cd4
om/android/server/net/NetworkStatsRecorder.java
om/android/server/net/NetworkStatsService.java
22af38c5261d2c03796b496e6edb125327cace16 04-May-2012 Irfan Sheriff <isheriff@google.com> API review fixes

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

Bug:6434844
Change-Id: Id15521d571aac9c4053d81184ad66dfc54f636de
om/android/server/NsdService.java
9158cbcbc9895e476606c5191168ee4a6c67c9c7 09-May-2012 Craig Mautner <cmautner@google.com> Remove incorrect CLEAR_WHEN_TASK_RESET behavior.

Fixes bug 6447950.

Change-Id: I6b512d5dd44c54e7b51f85c51783e8c942238c1d
om/android/server/am/ActivityStack.java
fb52eccb6506374b46089cff9a40c043d6dfa1e5 09-May-2012 Craig Mautner <cmautner@google.com> am 393295fa: Merge "Keep layout from overwriting translate dimensions" into jb-dev

* commit '393295fabff828d3bc974a617d152ff0895a4071':
Keep layout from overwriting translate dimensions
393295fabff828d3bc974a617d152ff0895a4071 09-May-2012 Craig Mautner <cmautner@google.com> Merge "Keep layout from overwriting translate dimensions" into jb-dev
2e5c0d47cff96cfd0406180856c4dcd908689f58 09-May-2012 satok <satok@google.com> am 14124c69: Merge "Fix the issue that the insets linger after closing the voice input" into jb-dev

* commit '14124c696d82e68f93baed905ca01fc498ae1fc6':
Fix the issue that the insets linger after closing the voice input
e0a99414bd3737ad976bf4a040c184bebd8e2e3d 09-May-2012 satok <satok@google.com> Fix the issue that the insets linger after closing the voice input

Bug: 6456954
Change-Id: Idf7700271cf882dfbf35c9d16f0f173a791221bc
om/android/server/InputMethodManagerService.java
om/android/server/wm/WindowManagerService.java
a83580614f4f75f7d474e81c7c10c2c784df1380 09-May-2012 Craig Mautner <cmautner@google.com> Keep layout from overwriting translate dimensions

If the layout goes through more than one pass after detecting a window
movement but before animation begins then the later pass overwrites
the animation offsets. The incorrect values are large leading to an
animation starting location in the bottom right corner.

Fixes bug 6450310.

Change-Id: I0f74e67b3e9a15a9246151abf6d47384509340e9
om/android/server/wm/WindowManagerService.java
c38ff8df0c271b6a6666c371c572f2c18d4ac9f5 09-May-2012 satok <satok@google.com> am 93d744de: Fix sort order of the input method switcher in IMMS

* commit '93d744deb167d5c681b5bb5627fd36a92f1ea79a':
Fix sort order of the input method switcher in IMMS
93a5cfb30b60b11230d11301ff4245b52dc6e194 09-May-2012 satok <satok@google.com> am a71293f3: Merge "Do not return stale subtypes" into jb-dev

* commit 'a71293f36cb6f6b906301a426c6c5f388e118552':
Do not return stale subtypes
dde27194ef0b3e88663554c878219c2784893919 09-May-2012 Dianne Hackborn <hackbod@google.com> am a4e2ec64: Merge "Fix Issue 26574: Service\'s onStartCommand receiving incorrect flag..." into jb-dev

* commit 'a4e2ec64db896366592b3b2347eb2ac6d2ca060a':
Fix Issue 26574: Service's onStartCommand receiving incorrect flag...
e47330b06fa109a1f6a65cca4cd2048867eae31d 09-May-2012 Craig Mautner <cmautner@google.com> am 79b7742c: Merge "Fix wallpaper exposure bugs." into jb-dev

* commit '79b7742cf17c79c529bbcbd1acc2d871a90e8fbc':
Fix wallpaper exposure bugs.
bb1028de0f6a60866f0610a9a4c36c410a043c7b 09-May-2012 Kenny Root <kroot@google.com> am c29b49fa: Merge "Handle addition of system apps during OTA" into jb-dev

* commit 'c29b49faf3e193a8c72c25c6e362ac26ea0e2464':
Handle addition of system apps during OTA
3d42f8f8cab56ab33cb587a7aa857051d92ada90 09-May-2012 Jeff Brown <jeffbrown@google.com> am 9ac663ef: Merge "Disable input dispatch until boot finished." into jb-dev

* commit '9ac663ef9ab6ec455403d1e71bf897c34d3b311e':
Disable input dispatch until boot finished.
776339fe4c6254fd8e344496a793ce4a11b6f450 09-May-2012 Eric Laurent <elaurent@google.com> am c8ade15d: Merge "Silent and Vibrate mode clean up" into jb-dev

* commit 'c8ade15dadd680c5e4b201f3b7b0823a13dedb3e':
Silent and Vibrate mode clean up
d71f6e9a81336f468454a0f9aa76f3860544fea9 09-May-2012 Svetoslav Ganov <svetoslavganov@google.com> am 14326fd4: Merge "DefaultGestureHandlingHelperService should not include non-important views." into jb-dev

* commit '14326fd456f8b457e4ab7b53393b9b1e0d1726aa':
DefaultGestureHandlingHelperService should not include non-important views.
71244f0b6c6908ce13fef6fedf7e0e69cd983527 09-May-2012 Kenny Root <kroot@google.com> am 8a2fe268: Merge "Prune hidden system apps when removed via OTA" into jb-dev

* commit '8a2fe26873f73a7a422cadf9e5ccfd7c68bbd9ca':
Prune hidden system apps when removed via OTA
75b6793208657da17fd7281f1aa108647268803c 09-May-2012 Nick Pelly <npelly@google.com> am c4eb11db: Merge "Increase interval threshold below which we just leave the GPS on." into jb-dev

* commit 'c4eb11db04be07000e996d09b477a7a833435db8':
Increase interval threshold below which we just leave the GPS on.
2521bfdc01939967a25c74f0cf195a7ad81319e6 09-May-2012 Adam Powell <adamp@google.com> am 69de7e1a: Fix a bug in ActivityManagerService#navigateUpTo

* commit '69de7e1a4ee9455ecd5a4aedfb6e5c395364dbbe':
Fix a bug in ActivityManagerService#navigateUpTo
83ea86091bf94571912694c7caf8be1c21727f91 09-May-2012 Kenny Root <kroot@google.com> am 29bb27ef: Merge "Add encryption parameters to package installation" into jb-dev

* commit '29bb27ef90564a294d506c2ffd546ba21788aeac':
Add encryption parameters to package installation
93d744deb167d5c681b5bb5627fd36a92f1ea79a 09-May-2012 satok <satok@google.com> Fix sort order of the input method switcher in IMMS

Bug: 6333988
Change-Id: Ief392c9157f2a37600e517ec9caf586ffb9d5f0d
om/android/server/InputMethodManagerService.java
a71293f36cb6f6b906301a426c6c5f388e118552 09-May-2012 satok <satok@google.com> Merge "Do not return stale subtypes" into jb-dev
a4e2ec64db896366592b3b2347eb2ac6d2ca060a 09-May-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix Issue 26574: Service's onStartCommand receiving incorrect flag..." into jb-dev
d8f10240c0eef18b71a488d34b27d05bdc3216ae 09-May-2012 Dianne Hackborn <hackbod@google.com> Fix Issue 26574: Service's onStartCommand receiving incorrect flag...

...parameter for Intents

Change-Id: I2e2332c87e008c7ad6a89e17ae3f732c78e376ef
om/android/server/am/ActivityManagerService.java
79b7742cf17c79c529bbcbd1acc2d871a90e8fbc 09-May-2012 Craig Mautner <cmautner@google.com> Merge "Fix wallpaper exposure bugs." into jb-dev
0afddcb7f11ddfcaa5d1f5a5db75fce1b5d40253 09-May-2012 Craig Mautner <cmautner@google.com> Fix wallpaper exposure bugs.

Qualify the test for wallpaper animation to exclude the dummy
animation. This keeps us from treating a dummy-animating wallpaper
as an exiting wallpaper and providing the wrong animation.

Hide wallpapers when the wallpaper target window is hidden. This
fixes a timing issue where the wallpaper was exposed for one pass
through performLayout after the launcher was hidden.

Fixes bug 6454992.

Change-Id: Ib4f9205c01a37e6f48f1f93ddcf2476e40ff942f
om/android/server/wm/WindowAnimator.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowStateAnimator.java
c29b49faf3e193a8c72c25c6e362ac26ea0e2464 09-May-2012 Kenny Root <kroot@google.com> Merge "Handle addition of system apps during OTA" into jb-dev
208d341bbd61bf818ec0acddb6cad4e616239d50 08-May-2012 Kenny Root <kroot@google.com> Handle addition of system apps during OTA

If there were apps already installed that were added in a later system
OTA, bad things would happen.

If the previously installed application is an older version, simply
delete the installed application. If the system app is older than the
previously installed one, mark it as a disabled system app and use the
previoulsy installed application.

Additionally, the application will now have the correct granted
permissions.

Bug: 6251602
Change-Id: Iea444b6acac460fca1e08d4e2cbf68a258214ca6
om/android/server/pm/PackageManagerService.java
9ac663ef9ab6ec455403d1e71bf897c34d3b311e 09-May-2012 Jeff Brown <jeffbrown@google.com> Merge "Disable input dispatch until boot finished." into jb-dev
c8ade15dadd680c5e4b201f3b7b0823a13dedb3e 09-May-2012 Eric Laurent <elaurent@google.com> Merge "Silent and Vibrate mode clean up" into jb-dev
bffc3d1bd33eb2d8e00a9f8b6261d815db503311 08-May-2012 Eric Laurent <elaurent@google.com> Silent and Vibrate mode clean up

Clean up related to new Vibration policy.
The vibrate behavior is now only derived from:
- presence of a vibrator on the device
- current ringer mode selected: NORMAL, VIBRATE or SILENT
If no vibrator is present the ringer mode can only be NORMAL or SILENT.

The control of ringer mode via volume keys when volume keys control the "master"
stream type (RING on phones, MUSIC on tablets) is as follows:
If a vibrator is present:
VOL- and volume equals 1: NORMAL => VIBRATE
VOL- and volume equals 0 and not continuous press: VIBRATE => SILENT
VOL+ and in SILENT mode: SILENT => VIBRATE
VOL+ and in VIBRATE mode: VIBRATE => NORMAL, volume = 1
If no vibrator is present:
VOL- and volume equals 0 and not continuous press: NORMAL => SILENT
VOL+ and in SILENT mode: SILENT => NORMAL, volume = 0

VIBRATE_ON and VIBRATE_IN_SILENT settings are not stored/retreived any more.

AudioService checks and corrects ringer mode and stream volumes if necessary when reading from
DB at boot time.

Also:
Added dump for stream volumes in AudioService.
Added device names missing in AudioSystem for USB accessory and USB device.

Issue: 6036529
Issue: 6414950
Issue: 6448163

Change-Id: I77fb821ec63e4e566320cac2701b4ac466e86aef
om/android/server/NotificationManagerService.java
14326fd456f8b457e4ab7b53393b9b1e0d1726aa 08-May-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "DefaultGestureHandlingHelperService should not include non-important views." into jb-dev
c042ee2acd8529b95c5dc99240d626e61d2500cd 08-May-2012 Jeff Brown <jeffbrown@google.com> Disable input dispatch until boot finished.

Bug: 6263070
Change-Id: I25e15e3d8af8eb3343c7b684fec345337d9f6aab
om/android/server/am/ActivityManagerService.java
om/android/server/wm/InputMonitor.java
om/android/server/wm/WindowManagerService.java
8a2fe26873f73a7a422cadf9e5ccfd7c68bbd9ca 08-May-2012 Kenny Root <kroot@google.com> Merge "Prune hidden system apps when removed via OTA" into jb-dev
c4eb11db04be07000e996d09b477a7a833435db8 08-May-2012 Nick Pelly <npelly@google.com> Merge "Increase interval threshold below which we just leave the GPS on." into jb-dev
fdf419e81d795593e3792c9e78f33ed899ff098e 08-May-2012 satok <satok@google.com> Do not return stale subtypes

Bug: 6294329
Change-Id: I3f0713f94c291298dfd447d1b65bd7c6d2858492
om/android/server/InputMethodManagerService.java
c52d6fd04316483f4a88f3a087b93bb197cd97f4 08-May-2012 Kenny Root <kroot@google.com> Prune hidden system apps when removed via OTA

System applications which had an update applied to them at some point
were in a semi-broken state when removed via an OTA. The
"updated-package" setting would stay around forever and permissions
wouldn't be revoked.

Change-Id: I908e813b5de59c0f777d9b051253b28255a1c694
om/android/server/pm/PackageManagerService.java
om/android/server/pm/Settings.java
69de7e1a4ee9455ecd5a4aedfb6e5c395364dbbe 08-May-2012 Adam Powell <adamp@google.com> Fix a bug in ActivityManagerService#navigateUpTo

Deliver new intents to an existing parent from the calling uid obtained from
the applicationInfo instead of the process record, since the process record
might be dead.

Stoopid monkeys.

Bug 6328725

Change-Id: I4371a5705ccd7004f0dfe11da7c48d1563fb8dac
om/android/server/am/ActivityManagerService.java
29bb27ef90564a294d506c2ffd546ba21788aeac 08-May-2012 Kenny Root <kroot@google.com> Merge "Add encryption parameters to package installation" into jb-dev
ef5889810c32eca9d874503fdc7df6e2a1575993 08-May-2012 Svetoslav Ganov <svetoslavganov@google.com> DefaultGestureHandlingHelperService should not include non-important views.

1. Since we are using a stateless proxy accessibility service to
perform default accessibility gesture handling it shuld not
operate against not important views.

bug:6422069

Change-Id: I74df9c2415ab3b164d9ac5873f7004c0459e2bfa
om/android/server/accessibility/AccessibilityManagerService.java
b041f23026536dd287c1a9a962642c84ebd10004 08-May-2012 Nick Pelly <npelly@google.com> Increase interval threshold below which we just leave the GPS on.

Hot TTTF is about 5 seconds, so don't cycle the GPS hardware until
the interval is 10 seconds.

Also add some more dumpsys logging.

Bug: 6367964
Change-Id: I39402fc61f34458a1639c8814610a02606a8eb79
om/android/server/location/GpsLocationProvider.java
ceb1b0bfaea56251796b08c07b963de7403d84eb 24-Apr-2012 Anonymous Coward <nobody@android.com> Add encryption parameters to package installation

Change-Id: Ic9f8ab9f8110f08bb3c00725cfce5b8ee7b766f3
om/android/server/pm/PackageManagerService.java
eef61216183b77842d06533fcc661020c0032d2d 08-May-2012 Dianne Hackborn <hackbod@google.com> am 8e11051a: Merge "Tweak anim API to automatically call Intent.setSourceBounds()." into jb-dev

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

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

Change-Id: Ia90c04ee98a888a7f725b038abe23d71e2b12800
om/android/server/am/ActivityRecord.java
om/android/server/am/TaskRecord.java
009e6e6b5e83f18cd691d69dc5f08e04bfccf059 08-May-2012 Dianne Hackborn <hackbod@google.com> am bae365c1: Merge "Fix issue #6319312: Consecutive call to Activity\'s onCreate()/onResume()..." into jb-dev

* commit 'bae365c166538d5c2319bf42aaf1715a1fb749e7':
Fix issue #6319312: Consecutive call to Activity's onCreate()/onResume()...
bae365c166538d5c2319bf42aaf1715a1fb749e7 08-May-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #6319312: Consecutive call to Activity's onCreate()/onResume()..." into jb-dev
755c8bfbffe5134232217ef4c3998194b344ae17 08-May-2012 Dianne Hackborn <hackbod@google.com> Fix issue #6319312: Consecutive call to Activity's onCreate()/onResume()...

...without onPause() in between

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

Change-Id: Idaa89089f7b1af7eb747d7b8f9f394beeb2d23fa
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityStack.java
22135e46b167ed45337ba41bd306d93e5fa67841 07-May-2012 Craig Mautner <cmautner@google.com> am d8efe424: Merge "Change DimAnimator to reflect rotations." into jb-dev

* commit 'd8efe42496806b483bbacea28d2456e8b2eac4fb':
Change DimAnimator to reflect rotations.
d8efe42496806b483bbacea28d2456e8b2eac4fb 07-May-2012 Craig Mautner <cmautner@google.com> Merge "Change DimAnimator to reflect rotations." into jb-dev
3a67f35f5e912b9c1ec44adbdc5531427318b12d 07-May-2012 Craig Mautner <cmautner@google.com> Change DimAnimator to reflect rotations.

Enlarge DimAnimator to cover corners when frozen surface rotates.
Update DimAnimator size following rotation to reflect new dimensions.

Fixes bug 6449788.
Fixes bug 6449035.

Change-Id: I217d7c96af940e6affc395b79dc665d00318b18c
om/android/server/wm/DimAnimator.java
om/android/server/wm/WindowStateAnimator.java
e4b703b7ea15ec9af2caec65a62ba6091bb61f0c 07-May-2012 Jeff Sharkey <jsharkey@android.com> am fb0caad4: Merge "Ack, wrap advisePersistThreshold() in lock." into jb-dev

* commit 'fb0caad42353687e63cd560dc7fb028b8439edde':
Ack, wrap advisePersistThreshold() in lock.
fb0caad42353687e63cd560dc7fb028b8439edde 07-May-2012 Jeff Sharkey <jsharkey@android.com> Merge "Ack, wrap advisePersistThreshold() in lock." into jb-dev
5801597a90949240e99c3980c0bb889deeec2e5c 07-May-2012 Jeff Sharkey <jsharkey@android.com> Ack, wrap advisePersistThreshold() in lock.

Bug: 6449725
Change-Id: I702dc2ff9d4b237c46d89bcae41289bc3e9ef2f8
om/android/server/net/NetworkStatsService.java
43d2cf04fad9ccb1d0908d25e2cb7229f0f0f911 07-May-2012 Craig Mautner <cmautner@google.com> am 051ecfaf: Merge "Force BlackSurface to be a black surface." into jb-dev

* commit '051ecfaf46ac0b0c68ec6950bfec76a7dfff2720':
Force BlackSurface to be a black surface.
051ecfaf46ac0b0c68ec6950bfec76a7dfff2720 07-May-2012 Craig Mautner <cmautner@google.com> Merge "Force BlackSurface to be a black surface." into jb-dev
9879659a1cbfe404c725df1e57ff92f151bf65bc 06-May-2012 Svetoslav Ganov <svetoslavganov@google.com> am 2551e5a1: Merge "API REVIEW: android.view.accessibility" into jb-dev

* commit '2551e5a1d9990514d8116e352b8e5c2f10a9d303':
API REVIEW: android.view.accessibility
2551e5a1d9990514d8116e352b8e5c2f10a9d303 06-May-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "API REVIEW: android.view.accessibility" into jb-dev
924d9b75d6ec4597264a7af3f8be5b5a7d3a3dd2 06-May-2012 Craig Mautner <cmautner@google.com> Force BlackSurface to be a black surface.

BlackSurface transparency was tracking animation transparency causing
background images to peek around the corners.

Fixes bug 4998851.

Change-Id: I48ac7bf5d0cc560b655c9f12faccda411985cbad
om/android/server/wm/BlackFrame.java
om/android/server/wm/ScreenRotationAnimation.java
98a4d3ef924e7d4b5a2c9a83b56b723bd7a47e1f 05-May-2012 Nick Pelly <npelly@google.com> am 1dd00544: Merge "Log PID of apps requesting location updates." into jb-dev

* commit '1dd005441301ab91c2df3d7dd6b1458c2006135e':
Log PID of apps requesting location updates.
1dd005441301ab91c2df3d7dd6b1458c2006135e 05-May-2012 Nick Pelly <npelly@google.com> Merge "Log PID of apps requesting location updates." into jb-dev
2b435aada3d274a9c08d334946fff1ab9ba15b48 05-May-2012 Svetoslav Ganov <svetoslavganov@google.com> API REVIEW: android.view.accessibility

1. Changed all references to granularity to movement
granularity. BTW, to be more precise it should be
text movement granularity.

bug:6435232

Change-Id: If6366b002ca3390f74918995b342baff2cbcfd01
om/android/server/accessibility/AccessibilityManagerService.java
6e4cb6a93b1a1b6970862d21769d14c9e583dd59 04-May-2012 Nick Pelly <npelly@google.com> Log PID of apps requesting location updates.

BUG=6444765

Change-Id: Ib948b8fddb99f95f63486fbc096a26609c1a6c21
om/android/server/LocationManagerService.java
eb279868cea2b6aa1dcc4f30779ba62fb7dfc75e 04-May-2012 Jeff Sharkey <jsharkey@android.com> am b7095284: Merge "Disable policy when bandwidth module missing." into jb-dev

* commit 'b709528407614642b2384063426d60ea12490607':
Disable policy when bandwidth module missing.
8c1dc72b1402d55dae388a294476565b2473a87a 04-May-2012 Jeff Sharkey <jsharkey@android.com> Disable policy when bandwidth module missing.

Bug: 6447017
Change-Id: I705a223dac15fc41e231bb9c81a96a287caaf094
om/android/server/net/NetworkPolicyManagerService.java
74f64d78e5536a3b47d68636bad438d94426e275 04-May-2012 Jeff Sharkey <jsharkey@android.com> am bb1492f7: Merge "Reduce persist threshold for lower warning/limit." into jb-dev

* commit 'bb1492f7fae9fbcdfcb02b6f8475fd98a236c244':
Reduce persist threshold for lower warning/limit.
3ddb4f80e5cb47173b78430399076c4c3d1bb178 04-May-2012 Jeff Sharkey <jsharkey@android.com> am c065a8af: Merge "Begin collecting xtables iface counters." into jb-dev

* commit 'c065a8af1561544f1557e3f5036e45a4be4a6d7e':
Begin collecting xtables iface counters.
8e84ae36537ce9c89e85c75ac084b25423e863c4 04-May-2012 Jeff Sharkey <jsharkey@android.com> am 15a5a87e: Merge "Block metered APNs when app is restricted." into jb-dev

* commit '15a5a87e374c26c2502c8b38ca00f80a34f3675f':
Block metered APNs when app is restricted.
bb1492f7fae9fbcdfcb02b6f8475fd98a236c244 04-May-2012 Jeff Sharkey <jsharkey@android.com> Merge "Reduce persist threshold for lower warning/limit." into jb-dev
c065a8af1561544f1557e3f5036e45a4be4a6d7e 04-May-2012 Jeff Sharkey <jsharkey@android.com> Merge "Begin collecting xtables iface counters." into jb-dev
15a5a87e374c26c2502c8b38ca00f80a34f3675f 04-May-2012 Jeff Sharkey <jsharkey@android.com> Merge "Block metered APNs when app is restricted." into jb-dev
4b27125d8881924f003dfc70f46b21ab5d57f2a8 04-May-2012 Jean-Baptiste Queru <jbq@google.com> Merge changes Ib28636e6,I93ebc433

* changes:
WallpaperManagerService does not properly propagate setDimensionHints()
ImageWallpaper : get bitmap width before calc screen offset
d036ef8aa9cb14d8dddd41de74b48fb5025971f9 04-May-2012 satok <satok@google.com> am be836ee8: Merge "Reset the default system ime to the proper one when the system locale is changed" into jb-dev

* commit 'be836ee85806d022021eb0bebb8a9136da4a0f5b':
Reset the default system ime to the proper one when the system locale is changed
be836ee85806d022021eb0bebb8a9136da4a0f5b 04-May-2012 satok <satok@google.com> Merge "Reset the default system ime to the proper one when the system locale is changed" into jb-dev
ac3fcb1590e1da21324c13ce237ec48f2bf488bf 03-May-2012 Jeff Sharkey <jsharkey@android.com> Reduce persist threshold for lower warning/limit.

Default is 2MB persist threshold, but even that can be substantial
for devices on 100MB/month plans. This change gradually reduces the
persist threshold up to 8x lower (256kb outstanding) based on lowest
active policy.

Bug: 5382676
Change-Id: Ief4e8cdb169bfb151a3d1b45722a8eaa01926508
om/android/server/net/NetworkPolicyManagerService.java
om/android/server/net/NetworkStatsCollection.java
om/android/server/net/NetworkStatsRecorder.java
om/android/server/net/NetworkStatsService.java
d8c573de1855f84950c754792d5a2232d52f2fff 03-May-2012 Jeff Brown <jeffbrown@google.com> am 2c6200da: Merge "hasVibrator() should only report presence of built-in vibrator." into jb-dev

* commit '2c6200dac2cae3a378e7d0f309e1770f9f158b48':
hasVibrator() should only report presence of built-in vibrator.
d4daf5212ebee0886ad02ceb6301a829cb1674a1 03-May-2012 Jeff Brown <jeffbrown@google.com> am e19dbd9f: Merge "Separate the internal and external display rotations." into jb-dev

* commit 'e19dbd9f9d0fea5959d8384d5d9d577d25cc8963':
Separate the internal and external display rotations.
2c6200dac2cae3a378e7d0f309e1770f9f158b48 03-May-2012 Jeff Brown <jeffbrown@google.com> Merge "hasVibrator() should only report presence of built-in vibrator." into jb-dev
e19dbd9f9d0fea5959d8384d5d9d577d25cc8963 03-May-2012 Jeff Brown <jeffbrown@google.com> Merge "Separate the internal and external display rotations." into jb-dev
48306353ef315db72e1d3cf898b67dae5d990210 03-May-2012 Amith Yamasani <yamasani@google.com> am c793d626: Merge "On first boot and NTP lookup, set the time even if it\'s not off by 5+ secs." into jb-dev

* commit 'c793d62613b8cee340ce6c20856f6db81575f034':
On first boot and NTP lookup, set the time even if it's not off by 5+ secs.
c793d62613b8cee340ce6c20856f6db81575f034 03-May-2012 Amith Yamasani <yamasani@google.com> Merge "On first boot and NTP lookup, set the time even if it's not off by 5+ secs." into jb-dev
f154df1a31e73c8b4342f54ea7d5508295d30936 03-May-2012 Kenny Root <kroot@google.com> am 03f22533: Merge "Fix some problems with ASECs" into jb-dev

* commit '03f22533a7ed398351f7c98af4a91d91354a2095':
Fix some problems with ASECs
03f22533a7ed398351f7c98af4a91d91354a2095 03-May-2012 Kenny Root <kroot@google.com> Merge "Fix some problems with ASECs" into jb-dev
5b927c431f54ea47c3333afb7940d79e2e863f1a 01-May-2012 satok <satok@google.com> Reset the default system ime to the proper one when the system locale is changed

The framework automatically enables only valid system default IMEs and IMEs that have at least one English subtype at the initial boot and system locale changes.

Settings: I9af4065e4b9f933

Bug: 6422666
Bug: 6422390
Change-Id: I0b86ddba692144521f30e0b9086ddd67bfb9a793
om/android/server/InputMethodManagerService.java
84cf8e9ceea097f2f613151f49b6a5e908e5bb47 03-May-2012 Craig Mautner <cmautner@google.com> am 232301b0: Merge "Fix flashy transition in QuickContacts" into jb-dev

* commit '232301b027e54c270adad30541d248e6b7b62f4a':
Fix flashy transition in QuickContacts
232301b027e54c270adad30541d248e6b7b62f4a 03-May-2012 Craig Mautner <cmautner@google.com> Merge "Fix flashy transition in QuickContacts" into jb-dev
bf023589b3d9994f43823c7cb0450d278b084f9b 03-May-2012 Kenny Root <kroot@google.com> Fix some problems with ASECs

On devices that had external storage, permissions weren't set correctly
on non-forward-locked applications. Also, moving forward locked
applications didn't work since DefaultContainerService wasn't able to
read it.

Fixed some faulty unit tests as well.

Bug: 6427212
Change-Id: I5c1f0bf5278549069c78939f0708c4c43a7d4006
om/android/server/pm/PackageManagerService.java
94ef9df22c5960b74359e1a98e5c210787d382f2 03-May-2012 Craig Mautner <cmautner@google.com> Fix flashy transition in QuickContacts

Calls to relayout were forcing outgoing app reported visibility to
false. Because there was a DummyAnimation in the outgoing app the
stepAnimation was forcing the app Transformation alpha value to 0
based on the most recent reportedVisibile value. This was causing the
outgoing app to disappear for an instant. Moving the visibility test
to the time at which the DummyAnimation is set fixes this problem.

Fixes bug 5908102.

Change-Id: Ib574728a007a0af759990816db42e23ba315b468
om/android/server/wm/AppWindowAnimator.java
5f4dafb48e065d07f01ee83a6b54aa4bd4b25fc4 01-May-2012 Jeff Sharkey <jsharkey@android.com> Block metered APNs when app is restricted.

When an app is restricted in the background, don't allow them to
start using metered network features. With this change they can
still use network features when in foreground. This avoids situation
where apps can bring up APNs which they are unable to use.

Bug: 5838267
Change-Id: I3ac96f2a545f67cba1ef12b8536cfd0da769d955
om/android/server/ConnectivityService.java
1064a50dc86c2aea54bc6830c6cae464feb27feb 03-May-2012 Jeff Brown <jeffbrown@google.com> hasVibrator() should only report presence of built-in vibrator.

Bug: 6430585
Change-Id: Ia8d8656a2f0467b83f22a1dd747fbd17575573b3
om/android/server/VibratorService.java
93de746e5554bc9397ca8109f57875d92e64eabc 03-May-2012 Jeff Brown <jeffbrown@google.com> Separate the internal and external display rotations.

When attached to an HDMI touch screen, the input system needs
to know the size and rotation of the external display independent
of the internal display. The size was already being reported
separately but not the rotation. The inconsistency can cause problems
if the internal display's natural rotation is portrait but
the external display's natural rotation is landscape.

Change-Id: Id344f04c1ba032625f6265766be66f9ddaa2cc0b
om/android/server/input/InputManagerService.java
om/android/server/wm/WindowManagerService.java
df363bee7dd0c3933e1c0f3c66ae07a660d40758 03-May-2012 Craig Mautner <cmautner@google.com> am be4f5bb7: Merge "Fix Home key causes wrong animation" into jb-dev

* commit 'be4f5bb7fc08ca25d67525fdd97d15f73d150891':
Fix Home key causes wrong animation
be4f5bb7fc08ca25d67525fdd97d15f73d150891 03-May-2012 Craig Mautner <cmautner@google.com> Merge "Fix Home key causes wrong animation" into jb-dev
708d5d444bd47db96a47cf5153bdfb8b0f3b975b 02-May-2012 Amith Yamasani <yamasani@google.com> On first boot and NTP lookup, set the time even if it's not off by 5+ secs.

This enables SetupWizard to get an ACTION_TIME_CHANGED event.

Bug: 6432127

Change-Id: I42b8d6672372dc1aa4aa43128b5d801875ccf057
om/android/server/NetworkTimeUpdateService.java
cff5d25da87c97e927d382c6eead2672c72cc9ed 02-May-2012 Jeff Sharkey <jsharkey@android.com> am 6f28f9ef: Merge "Push existing rules when netd reconnects." into jb-dev

* commit '6f28f9ef315e3b5190259a943be91ecfafc69103':
Push existing rules when netd reconnects.
6f28f9ef315e3b5190259a943be91ecfafc69103 02-May-2012 Jeff Sharkey <jsharkey@android.com> Merge "Push existing rules when netd reconnects." into jb-dev
9edbb235779d16e768143f47c241c56a422df580 02-May-2012 Adam Cohen <adamcohen@google.com> am dfed49a2: Merge "Changing app widget "extras" to "options" and another small API Review issue" into jb-dev

* commit 'dfed49a2852e9336e212f6934dcddec7dd743c26':
Changing app widget "extras" to "options" and another small API Review issue
b24a78589b2bee4a86d5c864dd69169e134a339b 02-May-2012 Jeff Sharkey <jsharkey@android.com> Push existing rules when netd reconnects.

When netd drops its socket connection to framework, assume that it
has restarted, and push any existing rules to keep netd and iptables
consistent.

Bug: 6376246
Change-Id: Id93138938321bcf885eb0e4fecaff8b150cfdfcf
om/android/server/NetworkManagementService.java
dfed49a2852e9336e212f6934dcddec7dd743c26 02-May-2012 Adam Cohen <adamcohen@google.com> Merge "Changing app widget "extras" to "options" and another small API Review issue" into jb-dev
d2097ebacf3a3658624cad10669a4d98e8d7d846 02-May-2012 Adam Cohen <adamcohen@google.com> Changing app widget "extras" to "options" and another small API Review issue

-> (issue 6427146), (issue 6427861)

Change-Id: Ib69a9b3717a5b62317ec227936bc3b2fd5954043
om/android/server/AppWidgetService.java
om/android/server/AppWidgetServiceImpl.java
c6b939789a8fd3efcac2b71fc2baeb4442fbe1e8 02-May-2012 satok <satok@google.com> am e849230f: Merge "DO NOT MERGE : Backport I5723f627ce323b0d12b Reduce window resizing during IME transition" into jb-dev

* commit 'e849230f444653e692024b4321044cb9f6188919':
DO NOT MERGE : Backport I5723f627ce323b0d12b Reduce window resizing during IME transition
e849230f444653e692024b4321044cb9f6188919 02-May-2012 satok <satok@google.com> Merge "DO NOT MERGE : Backport I5723f627ce323b0d12b Reduce window resizing during IME transition" into jb-dev
1bc0a49e3cade697201e454bb6e46ee789cef6e4 25-Apr-2012 satok <satok@google.com> DO NOT MERGE : Backport I5723f627ce323b0d12b Reduce window resizing during IME transition

Bug: 5137498
Change-Id: Ieb8fd700d193eddaa31b0c5ebd8c7f7885586372
om/android/server/wm/WindowManagerService.java
83339b465c3299abc47ced7dffdf470c5b0c0750 02-May-2012 Craig Mautner <cmautner@google.com> Fix Home key causes wrong animation

Wallpaper logic assumed that if mWallpaperTarget was non-null then
any wallpaper animation should be exiting. However, if the existing
wallpaper target was already animating away then mWallpaperTarget
remains non-null until it is completely gone. Pressing Home during
this time was causing the next animation to exit rather than reverse
and enter.

This fix looks to see if the wallpaper target is animating and if it
is to treat it as null for the purpose of determining which direction
the animation should go.

Fixes bug 6407941.

Change-Id: I731267328db0f9972a5aed6f214962f96737dd07
om/android/server/wm/WindowAnimator.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowStateAnimator.java
e8914c36276710de50b347c1e6aecfa45d6a56cd 02-May-2012 Jeff Sharkey <jsharkey@android.com> Begin collecting xtables iface counters.

Add method to parse new iface_stat_fmt proc stats, or return null
when kernel support is unavailable. Add test and remove older, unused
parsing code. Create new "xt" recorder to persist the new xtables
counters when available.

Add SSID support to NetworkIdentity to fix policy tests.

Bug: 6422414
Change-Id: I77f70e9acb79a559ab626f3af5c4f3599801ed43
om/android/server/NetworkManagementService.java
om/android/server/ThrottleService.java
om/android/server/net/NetworkStatsRecorder.java
om/android/server/net/NetworkStatsService.java
8802ef02cb2ccb96ef46c9b2d76fa496b484ccfc 02-May-2012 Jeff Brown <jeffbrown@google.com> am 69387f43: Merge "Use EVIOCSCLOCKID correctly." into jb-dev

* commit '69387f432d54f117ea7effa691925a3b918246e4':
Use EVIOCSCLOCKID correctly.
69387f432d54f117ea7effa691925a3b918246e4 02-May-2012 Jeff Brown <jeffbrown@google.com> Merge "Use EVIOCSCLOCKID correctly." into jb-dev
a75fe05b6e0728ada82cd18dc3ac1ae3a61a10fb 02-May-2012 Jeff Brown <jeffbrown@google.com> Use EVIOCSCLOCKID correctly.

Bug: 6382031
Change-Id: I87b0887ce867a79758bcd24e2202280270faaf8c
om/android/server/PowerManagerService.java
c3cca66404571454ee13b341925fe45efd5036e6 02-May-2012 Jeff Brown <jeffbrown@google.com> am 0632b35b: Merge "Improve handling of built-in keyboard." into jb-dev

* commit '0632b35b6828cd4324b3d218c2e38f895e819aad':
Improve handling of built-in keyboard.
0632b35b6828cd4324b3d218c2e38f895e819aad 02-May-2012 Jeff Brown <jeffbrown@google.com> Merge "Improve handling of built-in keyboard." into jb-dev
48661a65a945367cfc65cbb4b7b39dd0cec92627 02-May-2012 Svetoslav Ganov <svetoslavganov@google.com> am 5a00661b: Accessibility focus should not affect the currently active window.

* commit '5a00661bd6a1bfe82656c51d23a3ac6be99602a2':
Accessibility focus should not affect the currently active window.
5a00661bd6a1bfe82656c51d23a3ac6be99602a2 02-May-2012 Svetoslav Ganov <svetoslavganov@google.com> Accessibility focus should not affect the currently active window.

1. The event of setting an accessibility focus on a view should not
make the host window the currently active one.

bug:6400648

Change-Id: Ib45c255f441c38489ee9d4ab5f284550ac5f6b01
om/android/server/accessibility/AccessibilityManagerService.java
daa3753a04699724d2cfe824ac1f5a266d643a05 02-May-2012 Jeff Brown <jeffbrown@google.com> Improve handling of built-in keyboard.

The window manager policy made some incorrect assumptions about the
meaning of the Configuration.keyboard field. We need to be more
careful about distinguishing between built-in and external keyboards.

Most of this change is to move the determination of the parts of
the Configuration related to input devices into the WindowManagerService
leveraging new features of the InputManagerService to good effect.

Then we plumb through the flag that indicates whether a device
is internal or external so that we can be more particular about
how the lid switch effects changes to the Configuration.

Bug: 6424373
Change-Id: I36a1c22ade35e578955465a25940a33f227b9763
om/android/server/PowerManagerService.java
om/android/server/input/InputManagerService.java
om/android/server/wm/WindowManagerService.java
159e62427e0d72184f944890d54c908241fef3de 01-May-2012 Amith Yamasani <yamasani@google.com> am d72ad2ac: Merge "Fix a bug in appwidget migration to multiuser directory." into jb-dev

* commit 'd72ad2ac88ae8477a95e18a800062446a58c524d':
Fix a bug in appwidget migration to multiuser directory.
d72ad2ac88ae8477a95e18a800062446a58c524d 01-May-2012 Amith Yamasani <yamasani@google.com> Merge "Fix a bug in appwidget migration to multiuser directory." into jb-dev
e0eb39b54812b9403496f0d300395eee73ffa57a 01-May-2012 Amith Yamasani <yamasani@google.com> Fix a bug in appwidget migration to multiuser directory.

Bug: 6393606

Migrate the old appwidgets.xml if the file doesn't exist,
not if the directory doesn't exist. It worked earlier because
this was the first service that I migrated to multi-user :(

Change-Id: I59bcbc31ff9d101e44dff5e5f44b3cab8f08dc06
om/android/server/AppWidgetServiceImpl.java
bf65cc3bb6f17e4e11418b1ae17f7b7a0f29fd57 01-May-2012 Jean-Baptiste Queru <jbq@google.com> am 8f2e753b: am cbc71bd7: Merge "Fix off-by-one error when filtering application UIDs"

* commit '8f2e753be2343b41f7233e9e0eb79077c8f9a732':
Fix off-by-one error when filtering application UIDs
cbc71bd73fb5eb674e0213b8713d330501d4cec7 01-May-2012 Jean-Baptiste Queru <jbq@google.com> Merge "Fix off-by-one error when filtering application UIDs"
2fea92e6d93b02de67534a9e397a73654d74ce94 01-May-2012 Jeff Sharkey <jsharkey@android.com> Merge "Clear ident in dismissKeyguardOnNextActivity()." into jb-dev
c5c33c363ec9609b83dfe87d58f0bdcf99ff57a0 01-May-2012 Jeff Brown <jeffbrown@google.com> Merge "Add support for using the lid switch to turn off the screen." into jb-dev
4c3de54daa4ba0dadefc6eae9beb84c15da8d867 01-May-2012 Jeff Sharkey <jsharkey@android.com> Merge "Roaming always metered, relax DHCP metered check." into jb-dev
7ffaa98539fc05feacc14a730a19857984cba668 01-May-2012 Jeff Sharkey <jsharkey@android.com> Clear ident in dismissKeyguardOnNextActivity().

BaseStatusBar uses this to launch activities over the insecure
lockscreen, so clear identity.

Bug: 6414983
Change-Id: Idf578923285ee1344e6e13e7f51e17a5f2005c75
om/android/server/am/ActivityManagerService.java
9b2a0f167e8445d14e933176ba67b01862809577 01-May-2012 Adam Powell <adamp@google.com> Merge "Fix a bug with updating extras in a PendingIntent with an intent stack" into jb-dev
f166f480f0f29b310a27fe001ee26d7dfac84fdd 01-May-2012 Jeff Sharkey <jsharkey@android.com> Roaming always metered, relax DHCP metered check.

Always treat roaming connections as metered, and relax DHCP test to
match any substring for forward compatibility.

Bug: 6382737, 6375399
Change-Id: I9781a60f55fbe35da6f8bfc7a1d609608e8f0951
om/android/server/net/NetworkPolicyManagerService.java
2218f6c2340f2cf240af4bfce883a3b80371a0b6 01-May-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #6111771: Run-time Restart observed when signing in with an existing account" into jb-dev
c458ce98ce42c00b98afe00670f822814f3da572 30-Apr-2012 Jeff Brown <jeffbrown@google.com> Add support for using the lid switch to turn off the screen.

Added a config option to allow the lid switch to turn off the
screen. This is a closer match to what a lid switch should be
doing.

Removed an old feature to bypass keyguard when keyboard is visible
because the way it was plumbed in made bad assumptions about
the meaning of the lid switch. Also, the last product we shipped
that had a physical keyboard turned this config option off.
So away it goes. We can bring it back someday if we really want it.
It's questionable how useful the feature is anyhow, since it only
works when the keyguard is unsecure and when the lid switch is
unlikely to be jostled in the user's pocket.

Fixed a bug where we would tell the power manager that the keyboard
was visible even if the lid switch did not control the keyboard.
This used to cause the power manager to try to set the keyboard
brightness, which doesn't work.

Bug: 6377115
Bug: 6406726
Change-Id: Ic84b71d09563d51c92cd1cf132fa8bdee6509103
om/android/server/PowerManagerService.java
om/android/server/input/InputManagerService.java
om/android/server/wm/WindowManagerService.java
56385cc452dfac6c2a87574337a677c894183ec6 01-May-2012 Dianne Hackborn <hackbod@google.com> Fix issue #6111771: Run-time Restart observed when signing in with an existing account

Change-Id: Ic6defb598cb08f2728d99eed7d0b209c88dd1a49
om/android/server/am/ActivityManagerService.java
501d4a510f645c0b88ffa0b59fcc27c4b16a9893 01-May-2012 Adam Powell <adamp@google.com> Fix a bug with updating extras in a PendingIntent with an intent stack

Change-Id: I52e2677635b588b7301dd938e1dd32f94241cf5a
om/android/server/am/ActivityManagerService.java
1e945c4fda0242e8ae02ccb7a2262556f41b42cc 30-Apr-2012 Dianne Hackborn <hackbod@google.com> Merge "Add system insets to windows." into jb-dev
5c58de3a523a384c47b0b1e0f5dd9728a74cd9f7 29-Apr-2012 Dianne Hackborn <hackbod@google.com> Add system insets to windows.

This will be used to determine which parts of a window a completely
hidden by system UI elements (status bar, nav bar, system bar) so
that they can be clipped out from rendering.

Change-Id: I2c6c6ac67dbdfeed82d2c089ef806fb483165bd9
om/android/server/wm/Session.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
afe8cf2623f6e28e2c2bf350173e66718b5aa4c0 28-Apr-2012 Svetoslav Ganov <svetoslavganov@google.com> Removing action arguments checks.

1. The checks for action arguments are not needed since they
may cause trouble for developers if we add more args to
an action.

bug:6414006

Change-Id: Ia4212b52be183b1ef1cfd2561ce618cef2b015e4
om/android/server/accessibility/AccessibilityManagerService.java
427db9b3d10d5c203d0351e683c3cddfd270250c 28-Apr-2012 Mike Lockwood <lockwood@google.com> Merge "UsbService: Add support for accessory initiating USB audio support" into jb-dev
83a708e6ad1f12eb792662aeb635453dd58b0361 28-Apr-2012 Irfan Sheriff <isheriff@google.com> Merge "Handle null SSID cleanly" into jb-dev
00a10a1494954d124e1b11bc1ba3128e47b8ffbd 28-Apr-2012 Irfan Sheriff <isheriff@google.com> Handle null SSID cleanly

Bug: 6411912
Change-Id: I12f9df403c9633d928d898ae675ce36303dda1a8
om/android/server/net/NetworkPolicyManagerService.java
79c6346100b555a8a3d51b3b1c34dbbe99305b9a 28-Apr-2012 Dianne Hackborn <hackbod@google.com> Merge "When a window is first shown only draw once while animating." into jb-dev
6ee3fe884987d9d9915a8fce3d149719a35e9acb 28-Apr-2012 Jeff Sharkey <jsharkey@android.com> Merge "Migrate ringtone playback to SystemUI." into jb-dev
de7ff082c403682d6091888617111dcc1494088d 28-Apr-2012 Craig Mautner <cmautner@google.com> Merge "Call deferred windowFocusChange when draw complete" into jb-dev
12d3a94397c33fdb773a1eaaaa13cab80bf0c571 27-Apr-2012 Dianne Hackborn <hackbod@google.com> When a window is first shown only draw once while animating.

On some hardware allocating a new graphics buffer is quite
expensive, which blocks updates to the UI. This can cause
glitches when performing window animations.

To reduce these glitches, the view hierarchy will now only
allow itself to be drawn once if its window is being shown
while the window manager is animating, not resuming draws
until it is told that the animation is done.

Change-Id: Ie15192f6fddbd0931b022a72c76ddd55ca266d84
om/android/server/wm/WindowManagerService.java
c8e372031cccfbd5cc7ae626255442423240338f 27-Apr-2012 Craig Mautner <cmautner@google.com> Merge "Don't resize WindowStates without a Surface." into jb-dev
51bb12b3e5c51f1aeccd20d4a226ebc4c25eac50 27-Apr-2012 Craig Mautner <cmautner@google.com> Call deferred windowFocusChange when draw complete

Move the test for deferred window change notification after the drawing
update. Previously there was never a second check after the drawing
completed so we never sent the notification to the departing window.

Fixes bug 6335849.

Change-Id: I8a7eafdb184567a47ae04f1e597bae4cccf6cf62
om/android/server/wm/WindowManagerService.java
098d580cc2bb6c0891c756a4e5230c6c6b0d2376 27-Apr-2012 Jeff Sharkey <jsharkey@android.com> Migrate ringtone playback to SystemUI.

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

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

Bug: 6376128, 6350773
Change-Id: I1dcb86d16ee3c4f07cdb2248d33dcff4ead3609a
om/android/server/NotificationManagerService.java
om/android/server/NotificationPlayer.java
1efacf7fcab53f0096550edc2282afc3df408223 27-Apr-2012 Craig Mautner <cmautner@google.com> Don't resize WindowStates without a Surface.

Check to make sure that a WindowState has a Surface before adding it to
mResizingWindows.

Fixes bug 6300793.

Change-Id: Ieb39422523360dcdd5f5bf8109f061ae1ced62b2
om/android/server/wm/WindowManagerService.java
f5d70fd2add31cdb2e4ca1e931b47db95fa4b3e0 27-Apr-2012 Jeff Sharkey <jsharkey@android.com> Merge "Protect system services with DUMP permission." into jb-dev
ecc5a9cca000b62d2a649b795460fd791a206a89 27-Apr-2012 Dianne Hackborn <hackbod@google.com> Add new Activity.finishAffinity() method.

It's cool!

Change-Id: I9fdcd9535b7f1ca2b311d3a1b23e5d058977b095
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityStack.java
eb4cc492c93ab9635dde78b958a834120412e72a 27-Apr-2012 Jeff Sharkey <jsharkey@android.com> Protect system services with DUMP permission.

Change-Id: I5e53859f8b8e5473e54eca43ebd7de841f1a05ff
om/android/server/BackupManagerService.java
om/android/server/CountryDetectorService.java
om/android/server/DiskStatsService.java
om/android/server/SamplingProfilerService.java
8e6159b821c0782776c030ab588c3e0d1d0143f6 27-Apr-2012 Dianne Hackborn <hackbod@google.com> Merge "Add traces for window manager and activity manager." into jb-dev
166b05e0ce913711d27ce1a116b3f1fd906822e4 24-Apr-2012 Mike Lockwood <lockwood@google.com> UsbService: Add support for accessory initiating USB audio support

Change-Id: I0e468f4b841de9e1ca7b75a05fc58299dbc78222
Signed-off-by: Mike Lockwood <lockwood@google.com>
om/android/server/usb/UsbDeviceManager.java
om/android/server/usb/UsbService.java
1ded0b1f6af65c2f95f8327f7f3df4cee1bf2346 26-Apr-2012 Dianne Hackborn <hackbod@google.com> Add traces for window manager and activity manager.

Change-Id: I525d762db328e4c597da27b6b56d9a808e199756
om/android/server/wm/WindowManagerService.java
1fa1de527e541c88fb3809279b67b0dc29419bac 26-Apr-2012 Kenny Root <kroot@google.com> Merge "Allow forward locked apps to be in ASECs" into jb-dev
3bc9a79fe83d19d4701bd6035fd30d83f267906e 25-Apr-2012 Robert Greenwalt <rgreenwalt@google.com> Add bit to eventlog to handle new network types

bug:5514930
Change-Id: I29288cb39902578992ee53b171f228f8eeb407fd
om/android/server/ConnectivityService.java
om/android/server/EventLogTags.logtags
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
om/android/server/MountService.java
om/android/server/pm/PackageManagerService.java
5cc510bf895266f9f9b23de28cf29d10385ef793 25-Apr-2012 Seohyeon.Song <coming0410@gmail.com> FileInputStream is not closed in "UserManager.java : readUserList()"

Change-Id: I50f54c70c8b6bc808fa59ce589b0480780cc811b
om/android/server/pm/UserManager.java
9ca10c8c3c94151889f6906e2d239a978e8b473b 25-Apr-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Adding explicit text traversal granularities and actions for web navigation."
2c8e19e81fb930fbb4d353c91ca0852fe91d8166 25-Apr-2012 Michael Jurka <mikejurka@google.com> Merge "New API to allow third-party apps to bind widgets"
38cb84fd4b39c08cbd5b65b7383e712b9f476e3f 25-Apr-2012 Winson Chung <winsonc@google.com> Merge "Reverting min scale in the previous animation changes."
108b0607cd82c1022f6ca211ed02cf731f01adc0 25-Apr-2012 Winson Chung <winsonc@google.com> Reverting min scale in the previous animation changes.

Change-Id: Ia21169386a038026d76a0bb3cf8c74576786e5ba
om/android/server/wm/WindowManagerService.java
b7ff3255c6d4e12f9d2334e3bbec0a125b7b09dc 25-Apr-2012 Svetoslav Ganov <svetoslavganov@google.com> Adding explicit text traversal granularities and actions for web navigation.

1. The granularities for traversing the text content of an accessibility
node info are now predefined constants and custom ones will not be
supported. This is the simplest solution - we can always add namespaced
user defined ones (unlikely).

2. Added actions for traversing web content. These actions can be used by
an accessibility service to transparently drive the JavaScript based
screen reader that is used for handling web content.

3. Added a new accessibility event type for traversing the content of a
view. This event is needed to announce to the user what is the next
element, i.e. the one next to the cursor, after the view's text was
traversed.

bug:5932640
bug:6389591

Change-Id: I144647da55bc4005c64f89865ef333af8359e145
om/android/server/accessibility/AccessibilityManagerService.java
4797d57bf332d578ca1f67b8a8ca7c7e4fdf762f 25-Apr-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #6373340: Cannot unlock to app if app was the..."
1e88e98d7d3bfe323bfbc551404d734cb69b2743 25-Apr-2012 Dianne Hackborn <hackbod@google.com> Fix issue #6373340: Cannot unlock to app if app was the...

...foreground app when the device was put to sleep

This is because of activities being kept in the stopped state
while the lock screen is shown, so we never get to the point of
it becoming visible again to know to proceed.

Just at this point consider the lock screen hidden so the
activity can be resumed and run as normal; the whole point of
this is to soon hide the lock screen, anyway.

Change-Id: I3a713a2f87b8e4412ff66724c051f09a2675be00
om/android/server/am/ActivityManagerService.java
069ac9a78d62a68d5eb640d3b87793f4ac924f6d 25-Apr-2012 Winson Chung <winsonc@google.com> Merge "Updating activity/task transition animations."
dc6f79bf4374f2fcea2b9d4d0aa7f2e39cc42456 18-Apr-2012 Winson Chung <winsonc@google.com> Updating activity/task transition animations.

Change-Id: I0d4295d269222310a5a6594fb379b9592dd9ced0
om/android/server/wm/WindowManagerService.java
bb9d6e6d8f3062302f229b8e2d133eae312a148b 25-Apr-2012 Jeff Sharkey <jsharkey@android.com> Merge "Relax global restrict for system services."
5294a2fc2f401cd248a4bc3f0f9ee1e2854f4e9a 25-Apr-2012 Jeff Sharkey <jsharkey@android.com> Relax global restrict for system services.

Since we control system services, we can ensure they are using little
data when data usage is globally restricted. Continue restricting
AID_MEDIA and AID_DRM, since they respond to app requests.

Bug: 6377903, 5772564
Change-Id: I196bf334f903397ea6a67e6802240ee792e47b54
om/android/server/net/NetworkPolicyManagerService.java
4bde4b9274b790063983bc21992c2b59b569b6fb 25-Apr-2012 Adam Powell <adamp@google.com> Merge "Check for valid records associated with activity tokens in ActivityManagerService up-navigation methods."
61a5b0160d9f2e53ef4d4b451212a63032dad32d 13-Apr-2012 Michael Jurka <mikejurka@google.com> New API to allow third-party apps to bind widgets

Change-Id: I1a3761c1a0f557a32d4d3bdd0207567fec918ba7
om/android/server/AppWidgetService.java
om/android/server/AppWidgetServiceImpl.java
ec046784e157dce998453a008a3b67a0e438473b 25-Apr-2012 Craig Mautner <cmautner@google.com> Merge "Fix dark flash when transition ends."
8a197a4e0887000241dfd183d1e83e6e0f9b2268 25-Apr-2012 Craig Mautner <cmautner@google.com> Fix dark flash when transition ends.

The DimSurface layer was momentarily being placed above the entering
app animtion. This lets the layering be set after the animations have
been evaluated.

Plus debug enhancements.

Change-Id: Icc034bc5264ae9bc6c57c593534683b56588b59a
om/android/server/wm/AppWindowAnimator.java
om/android/server/wm/DimSurface.java
om/android/server/wm/WindowAnimator.java
0430ce908510f501276e7f588ba5c34d33a9d27a 25-Apr-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Removing hierarchical accessibility focus directions."
2ed9c20048d9aed5ce758635eaa109ebb18f0d24 25-Apr-2012 Dianne Hackborn <hackbod@google.com> Merge "Add new signature-level permission to get details of tasks."
e29ccb0d678c712c71bf73f1c66626feff4fa346 24-Apr-2012 Dianne Hackborn <hackbod@android.com> am b3a76660: am 78e62111: am fee88fdb: Merge "Issue: Foreground activity performs [Resume] and [Pause] when any process died in sleep mode."

* commit 'b3a766600275a004dfa2423e87229082d7f1232b':
Issue: Foreground activity performs [Resume] and [Pause] when any process died in sleep mode.
5c6d80c9348d61cf59cc0c5bf4bc19450feba947 24-Apr-2012 Dianne Hackborn <hackbod@android.com> am 27e1680b: am 5a3370e5: am 50b53700: Merge "Fix for too many binder calls in packagemanager"

* commit '27e1680b5cd3694029ddac4128050b17f59f235e':
Fix for too many binder calls in packagemanager
bdb1c4067c2453672652730d12466dc17ff4a120 24-Apr-2012 Craig Mautner <cmautner@google.com> Merge "Don't start a dimming operation when hiding."
35af2fff433e6f83f70b8bb15b3bf4fc19d13104 24-Apr-2012 Craig Mautner <cmautner@google.com> Don't start a dimming operation when hiding.

Check to see if app token is hiding before going ahead with turning on
dimming. Before this fix went in we were turning dimming back on right
after turning it off. Then we didn't turn it off again until all
animations had completed leading to a delayed dim-off experience.

Fixes bug 6378033.

Change-Id: Ic819a0093ba95f62df369266c07525835703c5fa
om/android/server/wm/WindowManagerService.java
8238e717df4bc5eebf15f97172d68af3599a95bb 24-Apr-2012 Dianne Hackborn <hackbod@google.com> Add new signature-level permission to get details of tasks.

Third party apps now can't get access to the extras of the
intents associated with tasks, to keep private data in them
from leaking out.

Change-Id: I95af9e181ac42557bc8b981807e7ddd266a88d0e
om/android/server/am/ActivityManagerService.java
b71a5bc02bb967d9774879401b58133c3e818419 24-Apr-2012 Adam Powell <adamp@google.com> Check for valid records associated with activity tokens in
ActivityManagerService up-navigation methods.

Silly monkeys.

Fixes bug 6328725

Change-Id: Ifec3f162bdfc2e7e872a689210752c0f6b9b0ab7
om/android/server/am/ActivityManagerService.java
df3ab4ab3de76c985f65b0b85f2e3785d4b0eac0 24-Apr-2012 Glenn Kasten <gkasten@google.com> Merge "Scheduling policy service"
69c1a571acefc59d7260e6c805801656923b1330 24-Apr-2012 Craig Mautner <cmautner@google.com> Merge "Various debugging enhancements."
4d9251bb3e62cddbfd9b85f1204b5c5043e3c76e 24-Apr-2012 Craig Mautner <cmautner@google.com> Merge "Fix visual glitch in app transition."
fbf378c736a973b8edaf1fc4c187d11dc0f5e291 24-Apr-2012 Craig Mautner <cmautner@google.com> Various debugging enhancements.

Also moved DummyAnimation into AppWindowAnimator where it belongs.

Change-Id: I7da254a8b99030b898e2ff8d983500d7ce0b2b65
om/android/server/wm/AppWindowAnimator.java
om/android/server/wm/WindowAnimator.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowStateAnimator.java
c217f4cfd72c54e020695956f587bb9e27da6346 24-Apr-2012 Robert Greenwalt <rgreenwalt@google.com> Merge "Allow quoted strings from NativeDaemonConnector"
07b0465095bd9ab3412caefa4fcacbdc3825c64b 24-Apr-2012 Glenn Kasten <gkasten@google.com> Scheduling policy service

Change-Id: I6178b96896ffbb3323210f93784a65d724a3e694
om/android/server/SystemServer.java
9cd75d46b0a9683a573953822633b610bafa5771 24-Apr-2012 Craig Mautner <cmautner@google.com> Fix visual glitch in app transition.

When dummy animation is being used, set the alpha to 0 or 1 depending
on whether the app was previously hidden or visible.

Change-Id: I1a4e3cdb4b9ca4a6aef58e47bf26e5adbef66a7f
om/android/server/wm/AppWindowAnimator.java
a697f4069dfc80e96203d5b80e8d68f2f490a68e 24-Apr-2012 Robert Greenwalt <rgreenwalt@google.com> Merge "Stop complaining about failure to remove routes"
76f287e416ded85734b610f316e38d243d2ddb09 23-Apr-2012 Svetoslav Ganov <svetoslavganov@google.com> Removing hierarchical accessibility focus directions.

1. The accessibility focus directions are not needed since an
accessibility service just get the root, first child, next
sibling, previous sibling and call execute the action to
give it accessibility focus. Now the accessibility node
info tree is properly ordered taking into account layout
manager directions for both layout manager that we report
and ones that we have determined as not important for
accessibility. Also the position of a node info are ordered
properly based on their coordinates after all transformations
as opposed to child index.

bug:5932640

Change-Id: I994a8297cb1e57c829ecbac73a937c2bcbe0bac7
om/android/server/accessibility/AccessibilityManagerService.java
b67c63b1aee9da5676c8b0e7cbccac8e97eb79a6 24-Apr-2012 Craig Mautner <cmautner@google.com> Merge "Set mOrientationChangeComplete after windows drawn."
924c21582c666151e01206df82c27de9424e914a 24-Apr-2012 Craig Mautner <cmautner@google.com> Set mOrientationChangeComplete after windows drawn.

Force a pass through layout with mOrientationChangeComplete set
following all windows drawn when the application is freezing the
screen.

This fixes bug 6359311.

Change-Id: I318864fb687cf85a0c9ac4478e4f29dc20f43d9c
om/android/server/wm/WindowAnimator.java
2473a4bae16b2713753dd80f8356ad18fce43207 24-Apr-2012 Robert Greenwalt <rgreenwalt@google.com> Stop complaining about failure to remove routes

We often get told a network has gone away after the interface is downed
and the routes are auto-removed. Change the log to VDBUG so standard
builds don't have the noise.

bug:2856577
Change-Id: If12ec3ed3b646ff6ef89b3778d037cfc478c0d25
om/android/server/ConnectivityService.java
376011e895a53a7919dcd25c468c8f91df183afa 24-Apr-2012 Jake Hamby <jhamby@google.com> Merge "After reboot with airplane mode and BT enabled, keep BT enabled."
9341f389dbad2df1a30dabfbada8e3a92a4a39f3 24-Apr-2012 Jake Hamby <jhamby@google.com> After reboot with airplane mode and BT enabled, keep BT enabled.

Enabling airplane mode disables Wi-Fi and Bluetooth as well as the
cell radio. Bluetooth and Wi-Fi can then be reenabled if desired.
After a reboot, Bluetooth was always disabled if airplane mode
was enabled. Changed to set Bluetooth to its previous state after
reboot, regardless of the airplane mode setting. This is already
the behavior for Wi-Fi after a reboot.

Bug: 5623624
Change-Id: I1c44500221aa0e5d1d7a5c9046d6c1380d28b5c0
om/android/server/SystemServer.java
49c1d1764bce02cf12a68e9312f3aa9dfa2e25ce 23-Apr-2012 Jeff Sharkey <jsharkey@android.com> Clear identity when checking if bandwidth enabled.

Change-Id: I0f10f86dc14483e29609057c671454b322da4826
om/android/server/net/NetworkStatsService.java
03d2f292a63f3600f1f913f53f19bf783f05ef2f 23-Apr-2012 Amith Yamasani <yamasani@google.com> Merge "Clipboard service keeps separate clipboards per user."
4190a047ca1c5eb19a1f7e5d599ef1d532da71c7 22-Apr-2012 Jeff Sharkey <jsharkey@android.com> Better assertions when bandwidth module disabled.

Also disable some verbose logging in WifiStateTracker.

Bug: 6368329
Change-Id: I9a5219bc1b3fd870468f7de46cdf4f173a437c59
om/android/server/net/NetworkStatsService.java
a2c68198b13e416278e9bbe1d7f0abab4033d245 21-Apr-2012 Jeff Brown <jeffbrown@google.com> Merge "Get alias for Bluetooth devices."
5bbd4b4f5fc19302fa017ad6afee6eb2d489d91a 21-Apr-2012 Jeff Brown <jeffbrown@google.com> Get alias for Bluetooth devices.

Bluetooth devices can be renamed by the user. Make the
input system aware of the user-specified name and transparently
pass it down to applications. This enables the keyboard
layout picker Settings UI to use device names that are
consistent with what the user set in the Bluetooth UI.

Bug: 6363157
Change-Id: I8eea26ce2c69c2a3f09c8de02e9e847610e0419c
om/android/server/SystemServer.java
om/android/server/input/InputManagerService.java
e9e26cc727a1490db5eb0e572a40913f624529fe 21-Apr-2012 Amith Yamasani <yamasani@google.com> Clipboard service keeps separate clipboards per user.

No leaking personal information via the clipboard.

Change-Id: I11125288e2e640eb0c0e4c73dae2b4d9aa7c0f3b
om/android/server/ClipboardService.java
8ff0c9204e565d7389b10495cf885c772d204be5 21-Apr-2012 Dianne Hackborn <hackbod@google.com> Merge "You can now long press on the power off menu to reboot to safe mode."
fee88fdb64cd6c0a51b11426e28a1484390d473b 21-Apr-2012 Dianne Hackborn <hackbod@android.com> Merge "Issue: Foreground activity performs [Resume] and [Pause] when any process died in sleep mode."
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
om/android/server/wm/WindowManagerService.java
9392ad25a866ea2dff68683795294103157f8ed7 21-Apr-2012 Amith Yamasani <yamasani@google.com> Merge "Fix dumpsys package."
122b2c32dea573a3efbd0d608a70b7cd169d99dd 21-Apr-2012 Svetoslav Ganov <svetoslavganov@google.com> Fixing a couple of issues I have introduces in the last patch.

1. Fix waiting for the wrong instance.

2. Fix cloning of accessibility node info.

Change-Id: Icabf0d4bc947602a32fddc6642cc787f2bc766e4
om/android/server/accessibility/AccessibilityManagerService.java
8b0af627997277978240525d87ef7a7f0661554b 21-Apr-2012 Kenny Root <kroot@google.com> Merge "Move forward lock utilities to PackageHelper"
8d3696eca2fb26b33c71494eaf93a0a6588b946a 21-Apr-2012 Jeff Sharkey <jsharkey@android.com> Merge "Connect metered DHCP hint for Wi-Fi networks."
9f6e4ba50e7e73704c7fbd3ba65fe73bdf8ad73f 20-Apr-2012 Jeff Sharkey <jsharkey@android.com> Connect metered DHCP hint for Wi-Fi networks.

When DHCP lease includes vendor info indicating that remote Wi-Fi
network is metered, advise NetworkPolicy. Users can still manually
change the metered flag in Settings.

Also remove any policies belonging to removed Wi-Fi networks, and
teach isNetworkMetered() about ethernet networks.

Bug: 6344821, 6369307, 6365872
Change-Id: I108606c6fddf2d02828fcab011f3a1501415f1bc
om/android/server/net/NetworkPolicyManagerService.java
72de2062485f711c9a2291c204fd2c0fb6c4e20f 21-Apr-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Adding support for traversing the content of a node info at granularity."
7ea3e7df1f1ff5dde8ffb42fa179beef679f40ea 21-Apr-2012 Amith Yamasani <yamasani@google.com> Fix dumpsys package.

Was bailing out due to insufficient permissions to query users.

Bug: 6374050
Change-Id: Ic4a4ab32e2efb4d1fc1f1607fd304f99d5382743
om/android/server/pm/Settings.java
aa780c110922148a6a4ba06734bb2b0bb8c98f93 20-Apr-2012 Svetoslav Ganov <svetoslavganov@google.com> Adding support for traversing the content of a node info at granularity.

1. A view that creates an accessibility node info may add to the info
a list of granularity labels. These are granularities by which the
source view can iterate over its content. For example a text view
may support character, word link while a web view may additionally
support buttons, tables, etc. There are actions on accessibility
node info to go to the next/previous at a given granularity which
is passesed as an argument.

2. Added Bundle argument to the APIs for performing accessibility
actions. This is generic and extensible.

bug:5932640

Change-Id: I328cbbb4cddfdee082ab2a8b7ff1bd7477d8d6f9
om/android/server/accessibility/AccessibilityManagerService.java
4d7349bb6df5a01ba451aa1abd4c9f6349a57016 20-Apr-2012 Craig Mautner <cmautner@google.com> Remove flicker from transitions.

Change state progressions to handle animation/layout separation.
Also added debug as needed.

Fixes bug 6360835.
Fixes bug 6206366.
Fixes bug 6286371.
Fixes bug 6240494.

Change-Id: I1079756a7e3e35ebb9f711f02d005bde9bf65ef0
om/android/server/wm/DimAnimator.java
om/android/server/wm/WindowAnimator.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowStateAnimator.java
8e2f41426ce162a164d1074dd67ea4549ffd0711 20-Apr-2012 Svetoslav Ganov <svetoslavganov@google.com> Fixes in the accessibility gesture dispatching.

1. The gesture dispatcher thread was not waiting in a loop
that check for complete initialization. Therefore is was
susceptible to missed signals and unexpected interrupts.

2. In the gesture processing message handle the interaction id
was reading the wrong message argument.

bug:5932640

Change-Id: Ic65ecc01a7fe7d43929c6c07d0759ae9001cf515
om/android/server/accessibility/AccessibilityManagerService.java
2d34b4a88531e51982b030c43d672ec2cc3d8f36 20-Apr-2012 Robert Greenwalt <rgreenwalt@google.com> Allow quoted strings from NativeDaemonConnector

Previously we'd only handled quoted strings going into NDC. This
change auto-handles quoted strings in broadcasts and allows
protocol handlers to request de-quoted elements when needed instead
of using the generic split(" ").

bug: 6353048
Change-Id: I8a07be86411063ed1b402294edc399b4cc076da5
om/android/server/NativeDaemonConnector.java
om/android/server/NativeDaemonEvent.java
2782a478d0214cf71a32d4537fc9fb191d1072fb 15-Apr-2012 Kenny Root <kroot@google.com> Move forward lock utilities to PackageHelper

The forward lock utilities will need to be called from
DefaultContainerService for ASEC packages in the future. Move them to
PackageHelper to aid in the transition.

Also move the public resource copying to the FileInstallArgs step which
makes a little bit more sense.

Change-Id: I3a62ac817719db3ee1c89c106a551dcbe9c44744
om/android/server/pm/PackageManagerService.java
e1a996e99dc68b48efad989876c01ce05a7a58ac 20-Apr-2012 Dianne Hackborn <hackbod@google.com> Merge "Move handling of package changes to a background thread."
9771a3144c8121877b5dc2fad439cfe378bc7a72 21-Feb-2012 Henrik Engström <henrik.engstrom@sonyericsson.com> Fix for too many binder calls in packagemanager

The packagemanager uses a ParceledListSlice to send back its lists
of installed packages and apps. The list slice has a method append
which, in addition to adding the item to the list, also returns true
if the list has passed a size limit (about 1/4 of the total possible
IPC parcel size) to let the caller know that he should send the
slice. However, when used by the pm, it has an extra ! that makes it
send whenever it ISN'T over this limit instead (and conversely, not
send if it is under). This causes a lot more calls than needed since
it sends tiny one item slices instead of larger ones. This patch
removes the extra ! making it behave correctly.

Change-Id: I8db46d380a25406b55f3214aee1505e81949acc5
om/android/server/pm/PackageManagerService.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
om/android/server/DevicePolicyManagerService.java
om/android/server/InputMethodManagerService.java
om/android/server/LocationManagerService.java
om/android/server/RecognitionManagerService.java
om/android/server/TextServicesManagerService.java
om/android/server/WallpaperManagerService.java
om/android/server/accessibility/AccessibilityManagerService.java
om/android/server/am/UsageStatsService.java
om/android/server/usb/UsbSettingsManager.java
e30df7744c2ff5c6f23ed7d6fb2cd229188c32f8 20-Apr-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Adding an opt-in mechanism for gesture detection in AccessibilityService."
fefd20e927b7252d63acb7bb1852c5188e3c1b2e 20-Apr-2012 Svetoslav Ganov <svetoslavganov@google.com> Adding an opt-in mechanism for gesture detection in AccessibilityService.

1. An accessibility service has to explicitly opt in to be notified
for gestures by the system. There is only one accessibility service
that handles gestures and in case it does not handle a gesture
the system performs default handling. This default handling ensures
that we have gesture navigation even if no accessibility service
would like to participate/customize the interaction model.

bug:5932640

Change-Id: Id8194293bd94097b455e9388b68134a45dc3b8fa
om/android/server/accessibility/AccessibilityManagerService.java
om/android/server/accessibility/TouchExplorer.java
dd184f9fb1cca51e2840ece187126caf933ab409 20-Apr-2012 Winson Chung <winsonc@google.com> Merge "Adding callback for widget size changed, and potentially other extra info"
e8724c82ab1479f13c85a2c6219841e1fd95f2d2 20-Apr-2012 Adam Cohen <adamcohen@google.com> Adding callback for widget size changed, and potentially other extra info

Change-Id: I57738c92b6a0ba68ae66b19a533559470c64e6f1
om/android/server/AppWidgetService.java
om/android/server/AppWidgetServiceImpl.java
dbad287b62966399d0d5029f3b10932895010337 18-Apr-2012 p13451 <cheoloh.park@gmail.com> Issue: Foreground activity performs [Resume] and [Pause] when any process died in sleep mode.

Step to Reproduce
1) Turn off device’s screen. (Sleep mode)
2) Kill any process.
A. Engineer Version: kill [PID]
B. User Version: am force-stop [Package Name]
3) Foreground activity proceed [Resume] and [Pause] consecutively.

Reason: Since ICS version, activity goes to stopped status when screen turns off.
stopIfSleepingLocked( ) makes activity to stopped status but, pauseIfSleepingLocked( ) was used in GB
and, activity keep paused status and, this problem did not occur.
This change give effect to resuming activity when any process was killed.
Because, resume is proceed without exception for activity status.
The exception only filtered for [ActivityState.PAUSED] in sleep or shutdown mode.
and, resume complete flow when activity status was [ActivityState.STOPPED].

Solution for this issue:
We think that exception’s condition have to change if stopped activity status is intended in sleep mode.
According to activity life cycle, activity can not resume from stop status.

Also check [ActivityState.STOPPING]. :)

Change-Id: Icca3366ac30ffa3b18f6e2393e4d7309089ef26a
om/android/server/am/ActivityStack.java
875f0643164e2235de7256c0a256f9f4c8768fa2 20-Apr-2012 Jeff Sharkey <jsharkey@android.com> Merge "Move SystemUI out of system UID."
661f362a2c531c46fdce5359b176a30ba7d16e1f 20-Apr-2012 Dianne Hackborn <hackbod@google.com> Merge "Add new API to find smallest/largest screen size."
68c33ca7ce1f142eb5f1e1f90118aeba4c9db1e3 19-Apr-2012 Dianne Hackborn <hackbod@google.com> Add new API to find smallest/largest screen size.

Change-Id: I790801fceaf84ee2e3b1c9d32828285ad3231d0e
om/android/server/wm/WindowManagerService.java
4b49657c7f78f8cee30804f8b31a004a11fffd7f 19-Apr-2012 Jeff Sharkey <jsharkey@android.com> Log when /cache files are deleted.

Bug: 6362988
Change-Id: Ib8497453c45612be5b83035eeaf3abe6d716ccbf
om/android/server/DeviceStorageMonitorService.java
om/android/server/EventLogTags.logtags
35be7560300a97fc3675bdd325910f28827d9508 19-Apr-2012 Jeff Sharkey <jsharkey@android.com> Move SystemUI out of system UID.

Add permissions for various things it pokes. Create new permission
to control launching non-exported activities from recents. Hidden
API to relax WallpaperService checks.

Change-Id: I547fdcd7c213dd153ae101533ce7c56cd8f86a0d
om/android/server/am/ActivityStack.java
f40a02f85f112e4b78fcea6f0d0390bfad15c2e2 19-Apr-2012 Irfan Sheriff <isheriff@google.com> Merge "Fix build"
54ac7a510245e5f00c16ff5595b6ae8d002c1c3b 19-Apr-2012 Irfan Sheriff <isheriff@google.com> Fix build

Change-Id: I1968e0d7d25f613fa6cf72f82d79f17224e3d5ab
om/android/server/NsdService.java
76eb1032d8bb1580469563a79c36849c8b0a3cb3 19-Apr-2012 Craig Mautner <cmautner@google.com> Merge "Defer the Surface.show until animation phase."
de6198ebd7f9ea5b7940d38bf5839dfbc6a192c4 19-Apr-2012 Craig Mautner <cmautner@google.com> Defer the Surface.show until animation phase.

This fixes a rotation bug introduced by delaying rendering animation
into the Surface. Now instead of delaying the rendering we delay the
show by eliminating a point where we were showing the Surface too soon.

Change-Id: I63ad3b494963111ffc96569093c8d43517c5408b
om/android/server/wm/WindowStateAnimator.java
66e69db6d99dd1c1a3906ae1b941ea13703f73b5 19-Apr-2012 Irfan Sheriff <isheriff@google.com> Merge "Add user control to turn on/off nsd"
3ef889bf561e59561ff2c6c4b2ffb586b9c5af5c 18-Apr-2012 Irfan Sheriff <isheriff@google.com> Add user control to turn on/off nsd

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

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

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

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

Bug: 5547401

Change-Id: Ieccac5746b40f60debd902a45d1dedbc91dcdc89
om/android/server/NotificationManagerService.java
08ce91a1a4c4b69a30a46095ed701d804dd6302e 19-Apr-2012 Dianne Hackborn <hackbod@android.com> am 7eda9de1: am 2fe57183: am 30eec832: Merge "Transparent activity orientation problem when previous landsacpe fullscreen activity not yet destroyed."

* commit '7eda9de1a638e4ed1ce5dc65fecd673400b9f3c0':
Transparent activity orientation problem when previous landsacpe fullscreen activity not yet destroyed.
7f58b95f7c2bd75a991ec6a2f05676aaba47a544 18-Apr-2012 Dianne Hackborn <hackbod@google.com> Fix to custom scale animations.

These now do something reasonable when performing transitions
across two activities that are both on top of the wallpaper.

Fixed computation of the pivot point of the animations.

Fixed issue where the recents panel was considered a status
bar element for purposes of deciding if the animating elements
are obscured by the status bar, which would result in us not
running the animation correctly.

Change-Id: I4b9b588b80243463e6f087a9703ee886ee281630
om/android/server/am/ActivityStack.java
om/android/server/wm/WindowManagerService.java
f01d3dd710e8b86b3e2846af62835158fd4e0db1 18-Apr-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Adding some more gestures and actions for accessibility."
f35ea5d25b286e166bdc43a589a45b56b6358499 18-Apr-2012 Craig Mautner <cmautner@google.com> Merge "Delay rendering into Surface until draw completed."
9546e457fcfed1da9448d72758642793d9e271bb 18-Apr-2012 Craig Mautner <cmautner@google.com> Delay rendering into Surface until draw completed.

Hold off on updating surface with animation until the Surface draw has
completed. Previously we were calling Surface.setAlpha/setLayer/
setMatrix prior to the app drawing into the surface. This fixes a bug
that caused a flash of the target animation image before the animation
had begun.

Change-Id: Id9142e09b0b22d631dc002eba4dc787455dea03a
om/android/server/wm/WindowStateAnimator.java
005b83b0c62d3d0538f0d566b08bd457015ec661 17-Apr-2012 Svetoslav Ganov <svetoslavganov@google.com> Adding some more gestures and actions for accessibility.

1. Added more gesture for accessibility. After a meeting
with the access-eng team we have decided that the current
set of gestures may be smaller than needed considering
that we will use four gestures for home, back, recents,
and notifications.

2. Adding actions for going back, home, opening the recents,
and opening the notifications.

3. Added preliminary mapping from some of the new gestures
to the new actions.

4. Fixed a bug in the accessibility interaction controller
which was trying to create a handled on the main looper
thread which may be null if the queried UI is in the
system process. Now the context looper of the root view
is used.

5. Fixed a bug of using an incorrect constant.

6. Added a missing locking in a couple of places.

7. Fixed view comparison for accessibilityt since it was
not anisymmetric.

bug:5932640
bug:5605641

Change-Id: Icc983bf4eafefa42b65920b3782ed8a25518e94f
om/android/server/accessibility/AccessibilityManagerService.java
e7d9cd363d6095d37ca25d393c5e86067d3cc5e5 18-Apr-2012 Jeff Sharkey <jsharkey@android.com> Merge "Add ALLOW_METERED column to DownloadManager."
15ec7d6d7f23ec197a88619b5e03320cfebd2240 17-Apr-2012 Jeff Sharkey <jsharkey@android.com> Add ALLOW_METERED column to DownloadManager.

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

Bug: 3001465
Change-Id: Ibc23577d4ad941e4f93db417be6b046881dcbfb1
om/android/server/ConnectivityService.java
3cdfcdc1c4802ecc2f0eb6beb6f7bdb714a85d2d 18-Apr-2012 Amith Yamasani <yamasani@google.com> Merge "Fix an NPE when launching an activity that's not found."
95a6a96e1cfb79b1960bb2a9e6bc22d9d8e5a238 18-Apr-2012 Amith Yamasani <yamasani@google.com> Fix an NPE when launching an activity that's not found.

Bug: 6356194
Change-Id: I66aeeda3ecab36a4aa32fb78c1d0559a73cd9a7a
om/android/server/am/ActivityStack.java
0445bc6e4eeba8af74e7eea7c9d68e1ede74f90d 18-Apr-2012 p13451 <cheoloh.park@gmail.com> Transparent activity orientation problem when previous landsacpe fullscreen activity not yet destroyed.

After terminating landsacpe fullscreen activity,
when user launch transparent activity via portrait home app, transparent activity is shown as landscape mode.

At this time AppWindowToken of previous acitivity has not been deleted, because Activity.onDestory() has not been returned yet.
In this case, getOrientationFromAppTokensLocked() returned ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE.

Ignore hidden application is terminated on the top.
See also http://code.google.com/p/android/issues/detail?id=28927

Change-Id: I51239431120ec6ba8f8ff76871efb2347b9810ca
om/android/server/wm/WindowManagerService.java
420489ca1f92b290f4737fb675bfd3db9cdbed29 18-Apr-2012 Jeff Brown <jeffbrown@google.com> Merge "Support loading keyboard layout overlays from resources."
6ec6f79e1ac1714e3b837796e99f07ff88f66601 18-Apr-2012 Jeff Brown <jeffbrown@google.com> Support loading keyboard layout overlays from resources.

Added the concept of a keyboard layout overlay, which is
a key character map file that has "type OVERLAY".

Added support for loading keyboard layout overlays from
resources dynamically. The layouts are reloaded whenever they
are changed in the Settings application or an application
is installed. This is somewhat more aggressive than necessary
so we might want to optimize it later.

Before system-ready, the input system uses just the generic
keyboard layouts that are included on the device system image.
After system-ready, it considers the user's selected keyboard
layout overlay and attempts to load it as necessary. We need to
wait until system-ready before doing this because we need to
be in a state where it is safe to start applications or access
their resources.

Bug: 6110399
Change-Id: Iae0886d3356649b0d2440aa00910a888cedd8323
om/android/server/InputMethodManagerService.java
om/android/server/SystemServer.java
om/android/server/input/InputManagerService.java
a51a9564fd53b661446cd63eea23208656acc678 18-Apr-2012 Craig Mautner <cmautner@google.com> Add call-stack reporting methods into Debug

Added two public methods to Debug. These methods return a String
indicating the caller (getCaller()) or callers (getCallers(int depth))
of the calling method. The String indicates the class, method and line
number of the caller(s). Similar to using Throwable.fillInStackTrace()
but much more concise.

Change-Id: I53d0085aa50e4501d28e8eb3ad5b91ef700ac218
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowStateAnimator.java
c843642fbb76619520f960043adaa268e252a657 17-Apr-2012 Craig Mautner <cmautner@google.com> Merge changes I4752bdf1,I37690cf2

* changes:
Move Surface operations into existing transaction.
Clear orientation variable until rotation is done.
d95ce04bdc92fe337c929c0dca9366fde7a564d2 17-Apr-2012 Amith Yamasani <yamasani@google.com> Merge "Make sure persistent processes are not replicated for secondary users."
acaf9cca865902e6f1823e771f4234bfda53cfd1 17-Apr-2012 Craig Mautner <cmautner@google.com> Move Surface operations into existing transaction.

Several Surface operations - notably setPosition, setSize, and show -
had been moved outside of a Surface.openTransaction/closeTransaction
window. This corrects that problem.

In addition, before animations were separated from layout the Surface
frame was computed prior to returning from relayoutWindow(). After
separation the frame was being computed during animation. This checkin
restores the frame calculation in layout.

Fixes bug 6343291.

Change-Id: I4752bdf1fed0f2b46c5eb9508825c9b1b0fd702f
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowStateAnimator.java
0192e966ff9df6d8da2a07e26f06fedcc8fdafbd 17-Apr-2012 Jeff Brown <jeffbrown@google.com> Merge "Add persistence for selected keyboard layout."
a3bc565882dd3984e995363642b1295fe3d24d10 17-Apr-2012 Jeff Brown <jeffbrown@google.com> Add persistence for selected keyboard layout.

Bug: 6110399
Change-Id: I99544bf05e9755385bee478b5f047ccec2e5cae3
om/android/server/input/InputManagerService.java
a4a54e2a5f383e766bfecaec776e0b00002badd1 17-Apr-2012 Amith Yamasani <yamasani@google.com> Make sure persistent processes are not replicated for secondary users.

An intent is launched in a singleton process if the process is persistent
and the resolved activity/service/etc is not requested to run in a different
process.

Change-Id: I1463e73a76bc8bde4185f9cf4395edb47515841d
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityStack.java
om/android/server/am/BroadcastQueue.java
2e3dec5aebb2020a9107e847659af5aaf7215f66 17-Apr-2012 Irfan Sheriff <isheriff@google.com> Merge "Open network service discovery API"
55a28720fe7ecb100a8068d818c6055678e85ed5 17-Apr-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Fixing a regression I have introduced."
31725b3f387dacf018804e3c500d693261f1d994 17-Apr-2012 Svetoslav Ganov <svetoslavganov@google.com> Fixing a regression I have introduced.

bug:6344558

Change-Id: Ie726e091942e337962baa052953002be724068b1
om/android/server/accessibility/AccessibilityManagerService.java
e1531a65a93cfad27ff2ef743456a9b57a14cc7b 17-Apr-2012 Irfan Sheriff <isheriff@google.com> Merge "Log messages in dump"
ac76e72272c957dc7609aa68224efa2d32c23cd0 17-Apr-2012 Dianne Hackborn <hackbod@google.com> Merge "Add new scale-up window manager animation."
eabfb3a36e9469c5e219f92b39b7200104319185 17-Apr-2012 Dianne Hackborn <hackbod@google.com> Add new scale-up window manager animation.

Like zoom thumbnail, but without the thumbnail.

Change-Id: I9486dd204398b87c9e70ff0d05d03f4a22449cd6
om/android/server/am/ActivityRecord.java
om/android/server/wm/WindowManagerService.java
60792375761c0b2aed11f7f2ccb60c2e59f9fec1 17-Apr-2012 Irfan Sheriff <isheriff@google.com> Log messages in dump

Remove event logging and add messages in dump

Change-Id: Ic79c68443bac9b7257644ed6941853f44a9b0661
om/android/server/WifiService.java
3255a28b6a18bb97f0e533dc1673c5e28837b4f2 17-Apr-2012 Craig Mautner <cmautner@google.com> Clear orientation variable until rotation is done.

In the old code orientationChangeComplete was set to true on each pass
through perfomLayout. If any window was rotating the variable was set
to false on the way through the performLayout. Since we can now make
passes through performLayout before any animation step occurs we were
seeing mOrientationChangeComplete true prior to rotation completing.

This change sets mOrientationChangeComplete false at the start of a
rotation and sets it to true if we ever get through an animation step
without encountering any rotating windows.

Change-Id: I37690cf20868dfbaac94a81640bc4d9cb9fb8f00
om/android/server/wm/ScreenRotationAnimation.java
om/android/server/wm/WindowManagerService.java
9704e78418a1ed9927ac2596a5c0084953dcb22b 17-Apr-2012 Jeff Brown <jeffbrown@google.com> Merge "Refactor SensorManager to move non-API bits into a subclass."
8206525b242ceb012d882849c4e355223ba81b9d 16-Apr-2012 Jeff Brown <jeffbrown@google.com> Fix lock ordering bug due to use of reentrant lock.

Bug: 6340736
Change-Id: I4dc738da8c976182669b89af9dcb6fd11dcb0223
om/android/server/VibratorService.java
25157e458d6e10b027d1ba6b78b0487156c9f57a 16-Apr-2012 Jeff Brown <jeffbrown@google.com> Refactor SensorManager to move non-API bits into a subclass.

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

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

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

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

Bug: 6339552
Change-Id: I50d41ac97cf535924f2bfa2026d28547a4d00286
om/android/server/PowerManagerService.java
123328778e99b5bbc68b80ab8efc43ca506a6a2c 16-Apr-2012 Jeff Sharkey <jsharkey@android.com> Merge "Move TrafficStats iface counters to xt_qtaguid."
6e0ac89f3896369363698801e75671b3478e8d4f 16-Apr-2012 Bjorn Bringert <bringert@android.com> Merge "Find new recognizer if old one is gone"
7bf8fba6f0e0fe8072201a0b174727b905437990 16-Apr-2012 Jeff Sharkey <jsharkey@android.com> Merge "API to report if active network is metered."
9f7cbf0e50bcb7e9163b23524814003ba8784732 13-Apr-2012 Jeff Sharkey <jsharkey@android.com> API to report if active network is metered.

Report to developers if active network is "metered" and define it
as the user being sensitive to heavy data usage.

Bug: 3001465
Change-Id: I855ca3cd3eb1de3c4814148d70ccf24957af898a
om/android/server/ConnectivityService.java
om/android/server/net/NetworkPolicyManagerService.java
ddf322915ba87ef0bf604406ae441c63b371fda0 16-Apr-2012 Bjorn Bringert <bringert@android.com> Find new recognizer if old one is gone

Before, RecognitionManagerService just cleared the recognizer
setting, which the Settings app really doesn't like.

Bug: 6332933
Change-Id: If4f9b583c304c5ea99021dddda50fca55e3ac541
om/android/server/RecognitionManagerService.java
a0e9d0f60eb33e480be7e02b08863be588f4df7d 16-Apr-2012 Craig Mautner <cmautner@google.com> Merge "Animate from Choreographer only."
92784670c48759c0db604ddb95c05a7b9bdebed8 13-Apr-2012 Irfan Sheriff <isheriff@google.com> Open network service discovery API

Add support for DNS based network service discovery API. This
allows applications to discover and resolve applications on a
local network such as Wi-Fi

Change-Id: Ie89895edd35d12b7f7a23fb5fed36cb2b2079f7a
om/android/server/NsdService.java
313a93ddf9dce7bdda21f29c10a464dd303871da 15-Apr-2012 Kenny Root <kroot@google.com> Merge "Close streams for forward-locked apps"
3f99afc0d5c25321b870f95415d7f31e2b3ec934 14-Apr-2012 Kenny Root <kroot@google.com> Close streams for forward-locked apps

Forward-locked apps aren't very prevalent, but it needed to be
restructured to make sure both streams and ZipFile objects are closed.

Change-Id: I41f863224fecd24069e525e9ce3738de8237bd5e
om/android/server/pm/PackageManagerService.java
011d778c9ff3c03184ce12dbd363d0f2f844de57 14-Apr-2012 Kenny Root <kroot@google.com> Merge "Add warning log for mismatched signatures"
8c11f1d6abbf322f4e0aca2a27a076ec1af1e071 14-Apr-2012 Kenny Root <kroot@google.com> Add warning log for mismatched signatures

It's difficult to see in bugreports when this situation arises. Add a
small log so we can easily determine installation failure reason.

Change-Id: Ie59c205cf731cad7b3d04ceb995e58a093c62455
om/android/server/pm/PackageManagerService.java
7d8df3905d294127cc58100912a57c816bfb2502 07-Apr-2012 Craig Mautner <cmautner@google.com> Animate from Choreographer only.

Animation steps are now executed on a Thread launched from the
Choreographer rather than being called at the end of the WindowManager
layout process. Animations and layout are still tightly coupled in
that they share considerable state information and neither can be
executed without holding a lock on WindowServiceManager.mWindowMap.

Change-Id: Ie17d693706971507b50aa473da1b7258e9e67764
om/android/server/wm/ScreenRotationAnimation.java
om/android/server/wm/WindowAnimator.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowStateAnimator.java
9688fea77ee5415749d4b2e71e05961b28e748d5 14-Apr-2012 Jeff Brown <jeffbrown@google.com> Merge "Add setting to redirect vibrator to game controller."
7f6c231a76f0bedaf9655a24707737d343244312 14-Apr-2012 Jeff Brown <jeffbrown@google.com> Add setting to redirect vibrator to game controller.

Bug: 6334179
Change-Id: I70093e38824ea3e5cf9cf242d1d7b6d26115ed80
om/android/server/SystemServer.java
om/android/server/VibratorService.java
dd0c13060dc385da3f264a3c08d766826565b6bf 14-Apr-2012 Jeff Sharkey <jsharkey@android.com> Merge "Surface list of apps with given network policy."
854b2b1670bda1eeb87a14b7ac3d222024f0aad6 14-Apr-2012 Jeff Sharkey <jsharkey@android.com> Surface list of apps with given network policy.

Bug: 6007276
Change-Id: I0f0e939ee6481496480c4afaa108c99eb158547c
om/android/server/net/NetworkPolicyManagerService.java
om/android/server/pm/PackageManagerService.java
4213804541a8b05cd0587b138a2fd9a3b7fd9350 20-Mar-2012 Svetoslav Ganov <svetoslavganov@google.com> Accessibility focus - framework

Usefulness: Keep track of the current user location in the screen when
traversing the it. Enabling structural and directional
navigation over all elements on the screen. This enables
blind users that know the application layout to efficiently
locate desired elements as opposed to try touch exploring the
region where the the element should be - very tedious.

Rationale: There are two ways to implement accessibility focus One is
to let accessibility services keep track of it since they
have access to the screen content, and another to let the view
hierarchy keep track of it. While the first approach would
require almost no work on our part it poses several challenges
which make it a sub-optimal choice. Having the accessibility focus
in the accessibility service would require that service to scrape
the window content every time it changes to sync the view tree
state and the accessibility focus location. Pretty much the service
will have to keep an off screen model of the screen content. This
could be quite challenging to get right and would incur performance
cost for the multiple IPCs to repeatedly fetch the screen content.
Further, keeping virtual accessibility focus (i.e. in the service)
would require sync of the input and accessibility focus. This could
be challenging to implement right as well. Also, having an unlimited
number of accessibility services we cannot guarantee that they will
have a proper implementation, if any, to allow users to perform structural
navigation of the screen content. Assuming two accessibility
services implement structural navigation via accessibility focus,
there is not guarantee that they will behave similarly by default,
i.e. provide some standard way to navigate the screen content.
Also feedback from experienced accessibility researchers, specifically
T.V Raman, provides evidence that having virtual accessibility focus
creates many issues and it is very hard to get right.
Therefore, keeping accessibility focus in the system will avoid
keeping an off-screen model in accessibility services, it will always
be in sync with the state of the view hierarchy and the input focus.
Also this will allow having a default behavior for traversing the
screen via this accessibility focus that is consistent in all
accessibility services. We provide accessibility services with APIs to
override this behavior but all of them will perform screen traversal
in a consistent way by default.

Behavior: If accessibility is enabled the accessibility focus is the leading one
and the input follows it. Putting accessibility focus on a view moves
the input focus there. Clearing the accessibility focus of a view, clears
the input focus of this view. If accessibility focus is on a view that
cannot take input focus, then no other view should have input focus.
In accessibility mode we initially give accessibility focus to the topmost
view and no view has input focus. This ensures consistent behavior accross
all apps. Note that accessibility focus can move hierarchically in the
view tree and having it at the root is better than putting it where the
input focus would be - at the first input focusable which could be at
an arbitrary depth in the view tree. By default not all views are reported
for accessibility, only the important ones. A view may be explicitly labeled
as important or not for accessibility, or the system determines which one
is such - default. Important views for accessibility are all views that are
not dumb layout managers used only to arrange their chidren. Since the same
content arrangement can be obtained via different combintation of layout
managers, such managers cannot be used to reliably determine the application
structure. For example, a user should see a list as a list view with several
list items and each list item as a text view and a button as opposed to seeing
all the layout managers used to arrange the list item's content.
By default only important for accessibility views are regared for accessibility
purposes. View not regarded for accessibility neither fire accessibility events,
nor are reported being on the screen. An accessibility service may request the
system to regard all views. If the target SDK of an accessibility services is
less than JellyBean, then all views are regarded for accessibility.
Note that an accessibility service that requires all view to be ragarded for
accessibility may put accessibility focus on any view. Hence, it may implement
any navigational paradigm if desired. Especially considering the fact that
the system is detecting some standard gestures and delegates their processing
to an accessibility service. The default implementation of an accessibility
services performs the defualt navigation.

bug:5932640
bug:5605641

Change-Id: Ieac461d480579d706a847b9325720cb254736ebe
om/android/server/accessibility/AccessibilityInputFilter.java
om/android/server/accessibility/AccessibilityManagerService.java
om/android/server/accessibility/TouchExplorer.java
90aba7caac78b407347b930cfb6ff7d6658ac90a 14-Apr-2012 Jeff Brown <jeffbrown@google.com> Merge "Add support for input devices that have vibrators."
75e0dcbca1fe6d218685c73829ae8c75a45b4920 14-Apr-2012 Jeff Brown <jeffbrown@google.com> Merge "Extract Vibrator implementation from interface."
a47425a13c19f95057df78b8bb65bb25657e8753 13-Apr-2012 Jeff Brown <jeffbrown@google.com> Add support for input devices that have vibrators.

Added a getVibrator() method to InputDevice which returns a Vibrator
associated with that input device. Its uses the same API as the
system vibrator which makes it easy for applications to be modified
to use one or the other.

Bug: 6334179
Change-Id: Ifc7f13dbcb778670f3f1c07ccc562334e6109d2e
om/android/server/input/InputManagerService.java
10b6f68d484d19de418403e35589deea33f212b3 13-Apr-2012 Jeff Sharkey <jsharkey@android.com> Merge "Enforce READ_EXTERNAL on non-user builds."
7358fbfeb2febb60085067fcacc192f429b06545 13-Apr-2012 Craig Mautner <cmautner@google.com> Minor cleanups.

- Replace HashSet with ArrayList.
- Check for Watermark and SurfaceSession initialization once, not every
time through layout.
- Move watermark rendering into animation.
- Add surface operation debugging.

Change-Id: I4b7e7c0b8d89d43c67a42753832f90b8632d4f5d
om/android/server/wm/WindowAnimator.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowStateAnimator.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
om/android/server/NotificationManagerService.java
5d32e772b3a19c1ac84e665f2885755427d590c8 13-Apr-2012 Jeff Sharkey <jsharkey@android.com> Enforce READ_EXTERNAL on non-user builds.

Enable default enforcement of READ_EXTERNAL_STORAGE on non-user
builds. Users can still explicitly enable enforcement in Settings.

Bug: 6131916
Change-Id: I7dc66b624ad252ed2a2ad3647f3ea85dda7f8e82
om/android/server/pm/PackageManagerService.java
om/android/server/pm/Settings.java
882735972e9e7ee52a3116a3aba0440968b2da1a 13-Apr-2012 Jeff Brown <jeffbrown@google.com> Merge "Notify applications when input devices change."
af9e8d38184c6ba4d2d3eb5bde7014a66dd8a78b 13-Apr-2012 Jeff Brown <jeffbrown@google.com> Notify applications when input devices change.

This change allows the InputManager to keep track of what input
devices are registered with the system and when they change.
It needs to do this so that it can properly clear its cache of
input device properties (especially the key map!) when changes
occur.

Added new API so that applications can register listeners for
input device changes.

Fixed a minor bug in EventHub where it didn't handle EPOLLHUP
properly so it would spam the log about unsupposed epoll events
until inotify noticed that the device was gone and removed it.

Change-Id: I937d8c601f7185d4299038bce6a2934fe4fdd2b3
om/android/server/input/InputManagerService.java
67ae551272f2bc8ffe83ecd62e970f657dc965d5 13-Apr-2012 Dianne Hackborn <hackbod@google.com> Merge "Keep activities stopped while the lock screen is up."
cbba37c6096486cbc8ce6f0c4eb7df9a352d54b1 13-Apr-2012 Irfan Sheriff <isheriff@google.com> Merge "Bonjour fixes"
ff5b158f69bf453cf1fdedd175a09482c65f2bf2 13-Apr-2012 Dianne Hackborn <hackbod@google.com> Keep activities stopped while the lock screen is up.

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

Change-Id: I71c86d3298f23a98014d7ae36fd540c9df9a64e6
om/android/server/am/ActivityManagerService.java
0c2acffec8689f8721a454845b24a830bc37ce92 13-Apr-2012 Dianne Hackborn <hackbod@google.com> Clean up lock screen hide animation.

We now have an animation to apply to the thing behind the lock
screen animation when it isn't on the wallpaper, which looks
similar to the animation we use when both are on the wallpaper.

In implementing this, cleaned up the code to figure out up-front
which animation to run, getting rid of that kludgy thing that
cleared the window animation if the wallpaper was not being used
for the lower windows.

Change-Id: Ifc4c8a8894ad384124dcf4bbdaab134f1157b0f3
om/android/server/wm/WindowAnimator.java
om/android/server/wm/WindowManagerService.java
234766a36af6214644fa8205202287084ca9cf93 11-Apr-2012 Jeff Sharkey <jsharkey@android.com> Move TrafficStats iface counters to xt_qtaguid.

Use xt_qtaguid iface_stat_all counters, which are monotonic during
a single boot.

Track all ifaces associated with mobile networks since boot, and
move TrafficStats to using these ifaces. This will include usage of
networks omitted from config_data_usage_network_types, specifically
on devices that recycle network interfaces across APNs.

Split wildcard template matching, and move NetworkStatsService to
use mobile wildcard when logging stats.

Bug: 5324515
Change-Id: I2211c374c05d1b598cc647f2f873630538955ffe
om/android/server/net/NetworkStatsService.java
187ae2105eb771e10ef54e0e9f2796e7fb7cb4e9 12-Apr-2012 Dianne Hackborn <hackbod@google.com> Revert to ICS screen rotation animation.

Change-Id: Ida76f17a00e4c8ab828deae51095107e4eeaa321
om/android/server/wm/ScreenRotationAnimation.java
om/android/server/wm/WindowAnimator.java
817388e056a5d1d0e7cd7de2c6b0c9c80617bc5f 11-Apr-2012 Irfan Sheriff <isheriff@google.com> Bonjour fixes

Change-Id: I1df1dc470bb42c84abc7e1a46bedf9f206910b65
om/android/server/NsdService.java
2b23adbc33c888a2c9fa22dd2e967227baa27e5c 12-Apr-2012 Amith Yamasani <yamasani@google.com> Merge "Make dumpsys activity services work again."
7463adacbd5ccb329b094c5343a0389f4872f5e7 12-Apr-2012 Amith Yamasani <yamasani@google.com> Make dumpsys activity services work again.

Due to the step to query the users, dumpsys was crashing when run
as non-root. Clearing the calling identity after checking perms
fixes this.

Bug: 6311443
Change-Id: I0b0bca5c7305cea19adc772b3bfec34c16bb24c4
om/android/server/am/ActivityManagerService.java
a11236bf0908c5d02e7be24b97ec4cf9e63e33f3 12-Apr-2012 Jeff Sharkey <jsharkey@android.com> Merge "Include enforcement state in dumpsys."
1c27576aff247ff1d7789e0a571958726f161593 12-Apr-2012 Jeff Sharkey <jsharkey@android.com> Include enforcement state in dumpsys.

Bug: 6323087
Change-Id: I6d779798538c114ea9816d3bdbbff5552c285df6
om/android/server/pm/Settings.java
2f63cfda7645cf8ac6734b751fb9dcee42d6b302 12-Apr-2012 Justin Mattson <jmatt@google.com> am 4ea7bfea: Merge "Check if WallpaperService is enabled" into ics-aah

* commit '4ea7bfea312e4ddf815eabdef04d3f3b4878a51a':
Check if WallpaperService is enabled
1e1edaa60dc183b1b8f0b8588deb8c42c9169cfb 12-Apr-2012 Craig Mautner <cmautner@google.com> Merge "Check WindowState when looking for animation."
f20588fdc65a5651c3a5ab5c0c20165c0e33c394 12-Apr-2012 Craig Mautner <cmautner@google.com> Check WindowState when looking for animation.

The method setTokenVisibilityLocked returns true when animations are
delaying the exit of an app. Previously this only checked AppToken
animations but that caused exiting WindowState animations to be
ignored.

In particular if an application both hid an AppToken and then
dismissed the AppToken, the AppToken was being removed from
mClosingTokens before the animation finished. This caused
rebuildAppWindowListLocked to lose a WindowState. Furthermore
Surfaces were not being removed when a WindowState was lost and
we were leaking Surfaces.

Fixes bug 6297563.

Change-Id: Ie75c71064518199237ec4a17d3f65e2a2dd29674
om/android/server/wm/WindowManagerService.java
f882efadd378e0476b7362e474f3a20dcf1c0d27 12-Apr-2012 Dianne Hackborn <hackbod@google.com> Fix issue #6266651: Low storage warning takes long time to sort apps by usage

On a device with emulated external storage, the low storage notification
should go to the main storage settings UI. This shows the user all of
the things that could be causing their storage to be low.

Change-Id: I9c345b6cb7abbabc24a67c7e104d077ecbbfb86d
om/android/server/DeviceStorageMonitorService.java
b4148125490d48fb57c69b8543c997e3a6be1f44 11-Apr-2012 Craig Mautner <cmautner@google.com> Merge "Check for existing dimming before stop dimming."
f8d4fbb9c87201350534861c4d988e63691fe24f 11-Apr-2012 Craig Mautner <cmautner@google.com> Check for existing dimming before stop dimming.

Add a test to make sure that we are dimming before we send the message
to stop it. This prevents a CPU consuming loop when dimming is already on.

Fixes bug 6320003.

Change-Id: If26dc5b0800300d8e38c166824651223eded4cfa
om/android/server/wm/WindowAnimator.java
om/android/server/wm/WindowManagerService.java
3bf928d51ec9ce53d1ebeb53c7265980e349e444 11-Apr-2012 Daniel Sandler <dsandler@android.com> Merge "Fix PowerMgr NPE on emulator."
8d33d39d68d46af758143a56c89322360cbbada2 11-Apr-2012 satok <satok@google.com> Merge "Show physical keyboard control button on the input method switch dialog"
01038492ff0317f0d3cff54d8a7ee36bb31ff175 09-Apr-2012 satok <satok@google.com> Show physical keyboard control button on the input method switch dialog

Bug: 5240095
Change-Id: Ica768083f95c33dc1e494a28ba7d8b6eb989b0ef
om/android/server/InputMethodManagerService.java
om/android/server/SystemServer.java
9f25b7fdf216c9ef0bd2322cd223eeaf0d60f77f 10-Apr-2012 Jeff Brown <jeffbrown@google.com> Request key maps from input manager service.

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

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

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

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

Change-Id: If7a695839ad0972317a5aab89e9d1e42ace28eb7
om/android/server/input/InputManagerService.java
2a854c13f864d5493846a7fc66bb6aefeaac8c8b 11-Apr-2012 Dianne Hackborn <hackbod@google.com> Merge "Some small tweaks to improve memory management."
162bc0ea0d7862b92f18d0ce47310a85304205f7 09-Apr-2012 Dianne Hackborn <hackbod@google.com> Some small tweaks to improve memory management.

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

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

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

Change-Id: I241b3152b52d09757bd14a202477cf69c9b78786
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityStack.java
om/android/server/am/ProcessRecord.java
f0cabba38bcb1aefad191915e214e836fa5ed2bd 10-Apr-2012 Craig Mautner <cmautner@google.com> Merge "Fix NPE in setTransparentRegion."
cd2a3ea5c8aaca505452e3287b2ad30bbba0e8d1 10-Apr-2012 Jeff Brown <jeffbrown@google.com> Merge "Don't reuse StringBuilder outside of lock when dumping ANR."
deb6ed8c2e63fcb2a189ce6e0338f13edcb7c783 10-Apr-2012 Jeff Brown <jeffbrown@google.com> Don't reuse StringBuilder outside of lock when dumping ANR.

The ANR dumping code was reusing the shared StringBuilder while
not holding the ActivityManagerService lock. As a result, other
threads could sweep in and clobber the ANR information.
We don't want to hold the lock here, so just create a new StringBuilder.

Change-Id: I0d91af55f5c123102cfab2cd97035491efed59c0
om/android/server/am/ActivityManagerService.java
1f4e0ccba08e4abb55a38a8b5936dbb244475fb9 10-Apr-2012 Craig Mautner <cmautner@google.com> Fix NPE in setTransparentRegion.

Check for null Surface before using it.

Fixes bug 6312835.

Change-Id: Iaaac2a5d88e81b88e369815e09818c268085e4b7
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowStateAnimator.java
8330e40b9897afb1e2b2e6354ed3c35e7c557486 10-Apr-2012 Craig Mautner <cmautner@google.com> Merge "Reduce load on CPU when animating rotation."
73850cb6991074e33c31d310ccb63a1f863f7b4e 10-Apr-2012 Craig Mautner <cmautner@google.com> Reduce load on CPU when animating rotation.

This change keeps requestTraversalLocked from being called on virtually
every call to animate while rotating.

Change-Id: I6d2db37db3bb82f4f9ecc84b17dbf121819a6c1b
om/android/server/wm/WindowAnimator.java
om/android/server/wm/WindowManagerService.java
0af489568de297fafc1d0e577481181ce3d81d4c 10-Apr-2012 Daniel Sandler <dsandler@android.com> Fix PowerMgr NPE on emulator.

Bug: 6313695
Change-Id: Ib12b9102df01603df135cef03fd2a2f6e3634dd1
om/android/server/PowerManagerService.java
c38cf4c7dbe7d96255d42dabf8ca801830813f5e 10-Apr-2012 Daniel Sandler <dsandler@android.com> Merge "New Android Dreams architecture, disabled for now."
4233f262499aa1dea332fe60d7a30ab4cdc4e3ed 10-Apr-2012 Justin Mattson <jmatt@google.com> Check if WallpaperService is enabled

If WallpaperService is disabled, don't delay starting SurfaceFlinger
until it is.

Change-Id: I95db6b7bc791329e2bae33472cfeb125e5f6f324
om/android/server/wm/WindowManagerService.java
7d276c377ce0c56630c06a6da431a6cb9bd76d1e 30-Jan-2012 Daniel Sandler <dsandler@android.com> New Android Dreams architecture, disabled for now.

Rather than normal Activities (which have a host of problems
when used for this purpose), screen savers are now a
special kind of Service that can add views to its own
special window (TYPE_DREAM, in the SCREENSAVER layer).

Dreams are now launched by the power manager; whenever it is
about to turn the screen off, it asks the window manager if
it wants to run a screen saver instead. (http://b/5677408)

Also, the new config_enableDreams bool allows the entire
feature to be switched on or off in one place. It is
currently switched off (and the APIs are all @hidden).

Change-Id: Idfe9d430568471d15f4b463cb70586a899a331f7
om/android/server/PowerManagerService.java
om/android/server/SystemServer.java
om/android/server/wm/WindowManagerService.java
eaeee6a55c443fcd71cd2012e4b3366421723e74 09-Apr-2012 Jeff Sharkey <jsharkey@android.com> Merge "Migrate to @Override to remove warnings."
fd6ebee93c1b85118e4958a8fe4376af9033929e 09-Apr-2012 Jeff Brown <jeffbrown@google.com> Merge "Fix lid switch interpretation."
27fd3420ac0498ff5086f71023f443966541aa04 09-Apr-2012 Jeff Brown <jeffbrown@google.com> Fix lid switch interpretation.

Also remove unnecessary permission check for method that is
only called internally.

Change-Id: I32f63fc3e96b06709d18b046ee2d3c8f310de70d
om/android/server/wm/WindowManagerService.java
bfdd680ab44da173a4a39fcd6feccdebb9d1f855 09-Apr-2012 Jeff Sharkey <jsharkey@android.com> Migrate to @Override to remove warnings.

Bug: 6303344
Change-Id: I0d33b2ed448467379d576ccd71fb5ae20c878852
om/android/server/net/NetworkPolicyManagerService.java
om/android/server/net/NetworkStatsCollection.java
om/android/server/net/NetworkStatsRecorder.java
om/android/server/net/NetworkStatsService.java
4b3c5232109422c5c9bee044c01721536ceab488 09-Apr-2012 Jeff Sharkey <jsharkey@android.com> Merge "Splice operations before collapsing ifaces."
21a547823de52806de48f70b8360353344a5ad88 09-Apr-2012 Jeff Sharkey <jsharkey@android.com> Splice operations before collapsing ifaces.

Bug: 6241038
Change-Id: Ide9058703f7305df8fb070af149ddce0653a0abf
om/android/server/net/NetworkStatsService.java
079f09c6ca4148d8e640e34ec03a3eb4fb3507cc 09-Apr-2012 Eric Laurent <elaurent@google.com> Merge "Added support for USB audio devices"
59f482764e346a5c5ac118ee1f7b24da645c2559 06-Apr-2012 Eric Laurent <elaurent@google.com> Added support for USB audio devices

Two types of USB audio devices are defined:
- USB audio device: the audio device in USB device mode while
the Android device is in USB host mode.
- USB audio accessory: the audio device in USB host mode while
the Android device is in USB device mode.

Renamed intents for analog and digital docks to avoid confusion:
- ACTION_USB_ANLG_HEADSET_PLUG to ACTION_ANALOG_AUDIO_DOCK_PLUG
- ACTION_USB_DGTL_HEADSET_PLUG to ACTION_DIGITAL_AUDIO_DOCK_PLUG

Factorized code in AudioService broadcast receiver.

Change-Id: I1b6d0257a9d68ecb9495c78c98bac8c67fec7891
om/android/server/WiredAccessoryObserver.java
cd837070f64a7dffb5e78b37763da63c01600ebf 07-Apr-2012 Craig Mautner <cmautner@google.com> Merge "Fix endless looping in layout."
3de422fe4fe903b1370f3f7ee9c7086966e15b28 07-Apr-2012 Craig Mautner <cmautner@google.com> Fix endless looping in layout.

An odd alignment of the stars can end up with all of mAppToken.allDrawn
animating and mAppToken.startingDisplayed all false, and animation not
null. In such a case we can continue returning false but still pass
the test in WindowAnimator.updateWindowsAndRotation setting
wasAnimating to true. The combination continually sets the
FINISH_LAYOUT_REDO_WALLPAPER bit in mPendingLayoutChanges.

Fixes bug 6304838.

Change-Id: Ie7a7b39ea218213f51dc3df3eefe4ff03f1d885d
om/android/server/wm/AppWindowAnimator.java
b7943811a2dbe602f21b2cce0bfb0458042191b0 07-Apr-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #6242583: ResolverActivity is considered as home activity"
2d69d49d30a43f957b9b80b0ac2c27fdf9662771 07-Apr-2012 Dianne Hackborn <hackbod@google.com> Fix issue #6242583: ResolverActivity is considered as home activity

Change-Id: Ib29908cdfcbbff769d12df1770264ad13ec5337b
om/android/server/am/ActivityRecord.java
bf64e70f9b818d992d3aad8424f2f0ad3966d729 06-Apr-2012 Christopher Tate <ctate@google.com> Merge "Attribute alarm broadcast wakelocks to the sender"
c4a07d1caa9befd4fa8165ff05fa5e92480d8e27 06-Apr-2012 Christopher Tate <ctate@google.com> Attribute alarm broadcast wakelocks to the sender

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

Bug 5911317

Change-Id: I8cb79c3bd5db467388716ab68285f4ab0bfe468b
om/android/server/AlarmManagerService.java
om/android/server/am/ActivityManagerService.java
1ade5ae9c812464f086f2151069781db1b27db2f 06-Apr-2012 Craig Mautner <cmautner@google.com> Merge "Animate from local list of WindowStateAnimators."
bec53f7066852c1c5877c51fcd8c55840891d866 05-Apr-2012 Craig Mautner <cmautner@google.com> Animate from local list of WindowStateAnimators.

Stop animate() from using the mWindows maintained by
WindowManagerService. Animating WindowStateAnimators are now drawn from
a HashSet maintained by WindowAnimator and containing just those
WindowStateAnimators that have Surfaces.

When starting a move animation do not place parameters directly into
the WindowStateAnimator, instead pass them through the Handler.

Also removed synchronization points from mWindows/mAppTokens
add/remove.
om/android/server/wm/AppWindowAnimator.java
om/android/server/wm/AppWindowToken.java
om/android/server/wm/DimAnimator.java
om/android/server/wm/DimSurface.java
om/android/server/wm/WindowAnimator.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowStateAnimator.java
b52e3e55098c4a6e3dbfe19885895411cfb38911 06-Apr-2012 Jeff Sharkey <jsharkey@android.com> INetworkStatsSession with lifecycle for caching.

Users outside system_server now explicitly communicate their
lifecycle, which keeps a strong-reference chain to any fully loaded
NetworkStatsCollection histories.

Bug: 6236498
Change-Id: I8e22739b6e89a626b676967a736d7117fd000778
om/android/server/net/NetworkPolicyManagerService.java
om/android/server/net/NetworkStatsRecorder.java
om/android/server/net/NetworkStatsService.java
9d5a4be05b6d51ebb768e5fbcfa27ed9a39269b3 06-Apr-2012 Mike Lockwood <lockwood@google.com> Add Intents to notify when USB audio devices or accessories are attached

In this change, only the USB audio accessory support is implemented.

Change-Id: Id9b411319b07a96dc56649ca74cc5f3f89a55a7c
Signed-off-by: Mike Lockwood <lockwood@google.com>
om/android/server/usb/UsbDeviceManager.java
7a3bc87468d2d2c48e9ae3071c82f7aa5251e7d5 06-Apr-2012 Craig Mautner <cmautner@google.com> Merge "Fix so that windows again animate when moving."
ac14351e16e1258f1cb54e2bf772b8be004eb2b8 06-Apr-2012 Jeff Brown <jeffbrown@google.com> Move some APIs from window manager to input manager.

Simplified input injection API down to just one call.

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

Change-Id: I41278141586ddee9468cae0fb59ff0dced6cbc00
om/android/server/input/InputManagerService.java
om/android/server/wm/WindowManagerService.java
6af9b92b75c820661ea995a98898395f22871498 06-Apr-2012 Craig Mautner <cmautner@google.com> Fix looping to turn off dimming.

Dimming was constantly being turned off if it wasn't time to turn it
on. This caused endless reentry into the Window Manager and consumed
lots of CPU.

Fixes bug 6293953.

Change-Id: Id87e60c7c70e96e66ce0b6297442f5ac0d2ff477
om/android/server/wm/WindowAnimator.java
om/android/server/wm/WindowManagerService.java
42c45856f5d8927e188ed1c9c3c8dd711af5796e 06-Apr-2012 Dianne Hackborn <hackbod@google.com> Fix so that windows again animate when moving.

Change-Id: I2441d0c892687b8cda239815caf77837cd21093e
om/android/server/wm/WindowManagerService.java
2119ade6d737345d58145e773f5877c199a3e20d 06-Apr-2012 John Wang <johnwang@google.com> Merge "Enhance Cell Location Api."
818e7e9c83ade56574a605e54125b4fdb1b91aaf 06-Apr-2012 Dianne Hackborn <hackbod@google.com> Merge "Dump KSM stats in the meminfo."
330401243ed992eb62e59c8ac34d6862eb64d712 06-Apr-2012 Jeff Sharkey <jsharkey@android.com> Merge "Support metered Wi-Fi NetworkPolicy."
8fc27e8b87bd1def854a03d84009143b315d4176 05-Apr-2012 Jeff Sharkey <jsharkey@android.com> Support metered Wi-Fi NetworkPolicy.

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

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

Bug: 3001465, 3291052
Change-Id: I1f8aaa49a5db306df022c402ea7f3f5d4bc0cfc7
om/android/server/net/NetworkIdentitySet.java
om/android/server/net/NetworkPolicyManagerService.java
om/android/server/net/NetworkStatsService.java
e9bdb31ea1dc3c1c2b1833a4bf0031d85928a45b 06-Apr-2012 Jeff Brown <jeffbrown@google.com> Merge "Refactor input system into its own service."
d3e677bc509f2fe275527adc71db62b714669fd2 05-Apr-2012 Dianne Hackborn <hackbod@google.com> Dump KSM stats in the meminfo.

Change-Id: I077dcb137ed743ea10fde1dbba4e86c340dec432
om/android/server/am/ActivityManagerService.java
2184a985da15eddd010e53120ebb1da9f8af53e1 05-Apr-2012 Amith Yamasani <yamasani@google.com> Merge "Lockscreen settings per user"
4532e6158474a263d9d26c2b42240bcf7ce9b172 05-Apr-2012 Jeff Brown <jeffbrown@google.com> Refactor input system into its own service.

Extracted the input system from the window manager service into
a new input manager service. This will make it easier to
offer new input-related features to applications.

Cleaned up the input manager service JNI layer somewhat to get rid
of all of the unnecessary checks for whether the input manager
had been initialized. Simplified the callback layer as well.

Change-Id: I3175d01307aed1420780d3c093d2694b41edf66e
om/android/server/SystemServer.java
om/android/server/accessibility/AccessibilityInputFilter.java
om/android/server/accessibility/TouchExplorer.java
om/android/server/input/InputApplicationHandle.java
om/android/server/input/InputFilter.java
om/android/server/input/InputManagerService.java
om/android/server/input/InputWindowHandle.java
om/android/server/wm/AppWindowToken.java
om/android/server/wm/DragState.java
om/android/server/wm/FakeWindowImpl.java
om/android/server/wm/InputApplicationHandle.java
om/android/server/wm/InputFilter.java
om/android/server/wm/InputManager.java
om/android/server/wm/InputMonitor.java
om/android/server/wm/InputWindowHandle.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
52c489cd63cca0361f374f7cb392018fabfa8bcc 28-Mar-2012 Amith Yamasani <yamasani@google.com> Lockscreen settings per user

Move all lockscreen related settings to LockSettingsService.
LockPatternUtils uses this through IPC instead of Secure settings.
Migrate old settings to new database managed by LockSettingsService.
Passwords and patterns are stored in a new per-user location, except
for the primary user, for backward compatibility.
KeyguardViewMediator and LockPatternKeyguardView listen for changes
to user and updates the lockscreen.

Settings provider will look for Lock settings in the LockSettings
service now for the entries that used to be stored in Settings.

Change-Id: I956cd5b95e2d9d45a6401af7e270e6a5aa2dcc98
om/android/server/SystemServer.java
e4d8a5dd42070d919dbd774f24c6684ecf1e350e 05-Apr-2012 Craig Mautner <cmautner@google.com> Fix failure to animate away exiting AppWindowToken

A previous check in changed the collection we were pulling exiting
AppWindowTokens from. Instead of pulling them from mExitingAppTokens
they came from mAppTokens and hence were not animated away.

Fixes bug 6296433.

Change-Id: I23347085658fce5412abb8ea119ce7e6152cab8b
om/android/server/wm/WindowAnimator.java
9828830611137bb751ab3512082a3bd31f439e38 05-Apr-2012 Adam Powell <adamp@google.com> Merge "TaskStackBuilder and Activity navigation features for framework"
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
om/android/server/am/ActivityManagerService.java
963db55d59a170f4b17ff907c96615a19ef6fe17 31-Mar-2012 John Wang <johnwang@google.com> Enhance Cell Location Api.

To boost accurary and enhance capability of cell location api,
two new APIs, TelephonyManager.getAllCellInfo() and
TelephonyManager.listen(LISTEN_CELL_INFO), are added. Two new
Class, CellInfo and CellIdentity, are created.

This API change returns all information of one cell locaiton
at the same time. It also provides additional LTE and timestamp information.

Change-Id: I4d0f813107e625ec4ac88c8d980ffd171aa5fc30
om/android/server/TelephonyRegistry.java
f87d19621dc2a30232bba1f51862a0b671eb9729 04-Apr-2012 Dianne Hackborn <hackbod@google.com> Clean up status bar, system bar, navigation bar management.

The status bar and navigation bar are two completely separate
elements, with their own semantics. The system bar now classifies
itself as a navigation bar, since that is really how it behaves.

This required rewriting the HDMI resizing code, so that it is
all done by PhoneWindowManager since that is what is responsible
for the size of the navigation bar (and thus now system bar). This
actually gets rid of a fair amount of code, and means we can also
do the same thing for a pure navigation bar.

Likewise the system bar now has the navigation bar ability to be
hidden when requested by system UI flags. To get the behavior
we want on Xoom, we only allow the nav bar to be hidden when it
will help provide a better aspect ratio for showing widescreen
videos.

Finally the nav/system bar now animates when hidden and shown.

Change-Id: Ie927154b68376a0b61802f99171ff56b8da92e7a
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
689b741abc93a3b44d7a39e9b138162bad330f23 04-Apr-2012 Irfan Sheriff <isheriff@google.com> Merge "Add initial framework for DNS service discovery"
7d024d372431effc87168afdc7cbe387680c4935 23-Mar-2012 Irfan Sheriff <isheriff@google.com> Add initial framework for DNS service discovery

Change-Id: I53c0b7ebfd75e520ebb7553612f1aa8413b6b79b
om/android/server/NsdService.java
om/android/server/SystemServer.java
c3a6cf79e3ba65342a2f992bc730257a1656e501 04-Apr-2012 Craig Mautner <cmautner@google.com> Merge "First separation of animation from AppWindowToken."
0048dc9d55db71cea9c140748fbdb8e1cfe79b44 04-Apr-2012 Craig Mautner <cmautner@google.com> Merge "Move more items between layout and animate sides."
594316361d38d88b53c85bd5c8d58a92345e8187 04-Apr-2012 Craig Mautner <cmautner@google.com> First separation of animation from AppWindowToken.

New class AppWindowAnimator pulls animation out of AppWindowToken.

Change-Id: Ic1ccb6ec2bf091f1f901fe3c20cbeb242376ae6b
om/android/server/wm/AppWindowAnimator.java
om/android/server/wm/AppWindowToken.java
om/android/server/wm/WindowAnimator.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
om/android/server/wm/WindowStateAnimator.java
d09cc4ba247e896cc95a57ed7a3247b55b1b68fc 04-Apr-2012 Craig Mautner <cmautner@google.com> Move more items between layout and animate sides.

- Isolate DimAnimator animation from the layout side.
- Isolate mWallpaperForceHidingChanged and mOrientationChangeComplete
from the animation side.
- Eliminate a redundant setting of mOrientationChangeComplete to true.
It was already true at that point.
- Synchronize changes to mWindows and mAppTokens on mAnimator. This is
a nop until we go to multiple threads.
- Synchronize AppWindowToken.freezingScreen on mAnimator.
- Modification to repeat layout debugging including temporary enabling
of spew on layout repeats.

Change-Id: Ic8d82b1c197144aaf6957caa5f71e175288220f2
om/android/server/wm/AppWindowToken.java
om/android/server/wm/DimAnimator.java
om/android/server/wm/WindowAnimator.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
om/android/server/wm/WindowStateAnimator.java
69ccdbd78a6dbcf32d6f734d238e5eaaa606a85f 03-Apr-2012 Mike Lockwood <lockwood@google.com> Merge commit 'bc52ca2'

Conflicts:
services/java/com/android/server/am/ActivityManagerService.java

Change-Id: I6da33a191a4ac13d08d8350a432b205e3dff85da
15001eafa290e70b29a487ec196d99bf284fa103 03-Apr-2012 Amith Yamasani <yamasani@google.com> Merge "Dump the uid of a notification, for debugging."
191310b7d367b491496de85dce5e286ebfdc4c73 03-Apr-2012 Amith Yamasani <yamasani@google.com> Merge "Fix a regression in activity manager regarding killing stopped processes."
34db3d65d6e1489f06fe9ec18a897bba3fa9c4d3 03-Apr-2012 Amith Yamasani <yamasani@google.com> Fix a regression in activity manager regarding killing stopped processes.

Bug: 6275175
Change-Id: Ib1fa80cba9d21799f36fec999899e54a0fe8da51
om/android/server/am/ActivityManagerService.java
1d6013357847983180a317e2acaf807bde8b7ea7 02-Apr-2012 Craig Mautner <cmautner@google.com> Merge "Refactor to convert four state booleans to int."
749a7bb28b2aff7a77a8c7dce01e086c2bd82c6b 02-Apr-2012 Craig Mautner <cmautner@google.com> Refactor to convert four state booleans to int.

Replace four booleans (mDrawPending, mCommitDrawPending, mReadyToShow
and mHasDrawn) with a single int that can take on the four states.

Move mLastHidden from WindowState to WindowStateAnimator.

Change-Id: Ieff319dfa19123bf5a6cdc98e9ab28fd432b8153
om/android/server/wm/AppWindowToken.java
om/android/server/wm/WindowAnimator.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
om/android/server/wm/WindowStateAnimator.java
ea7ff4d2fe58505ec66c0e994ac1e03561b2b836 02-Apr-2012 Craig Mautner <cmautner@google.com> Merge "Defer a couple of Surface actions for WSAnimator."
48ba1e7f530dab01bd2e733b6466246380720a92 02-Apr-2012 Craig Mautner <cmautner@google.com> Defer a couple of Surface actions for WSAnimator.

Perform the set-transparent-region-hint operation outside of the
WindowManagerService loop. This is to isolate the Surface operation
from the WindowManagerService inner loop.

Similarly, defer the setWallpaperOffset call so it's animation is not
coupled to the WindowManagerService inner loop.

Note that both operations are still being done on the
WindowManagerService thread.

Change-Id: I97f030b2a9b7cffe91c77342a299bfac6e59e9f8
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowStateAnimator.java
5d724f50d4d3907c4742dadd666f5355f046b5b1 02-Apr-2012 Craig Mautner <cmautner@google.com> Merge "Further isolate the Surface from WindowState."
c8bc97e53044cd62c0e023fdc441fd13127d0283 02-Apr-2012 Craig Mautner <cmautner@google.com> Further isolate the Surface from WindowState.

Replace references to mWinAnimator.mSurface with new member
mHasSurface.

Clean up odd looping structures.

Simplify logging.

Change-Id: I9cc52a657044220d7b92528928b11bb18a724aef
om/android/server/wm/AppWindowToken.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
om/android/server/wm/WindowStateAnimator.java
83d9eda9c2c411e3480c52f01e192bf3c86be8e9 13-Jan-2012 Stephen Smalley <sds@tycho.nsa.gov> Pass additional inputs when spawning apps via the Zygote and add SELinux permission checks.

When spawning an app process, the ActivityManagerService has additional information
about the app package that may be useful in setting a SELinux security context on the
process. Extend the Process.start() interface to allow passing such information
to the Zygote spawner. We originally considered using the existing zygoteArgs
argument, but found that those arguments are appended after the class name and
left uninterpreted by ZygoteConnection, merely passed along to the class or wrapper.
Thus we introduce a new seInfo argument for this purpose.

Modify the ZygoteConnection to interpret the new option and convey it to
forkAndSpecialize, as well as passing the nice name as a further input.
Also modify the ZygoteConnection to apply SELinux permission checks on
privileged operations.

Change-Id: I66045ffd33ca9898b1d026882bcc1c5baf3adc17
om/android/server/am/ActivityManagerService.java
e6c966caa3aff3099e6fb00caefa10387f57b9c3 02-Apr-2012 Michael Jurka <mikejurka@google.com> Merge "Add frame counter to dumpGfxInfo"
2c93efc9eb188532472edc9e0c3e1ab8121aa20d 02-Apr-2012 satok <satok@google.com> Hide ongoing notification icon when the screen is locked.

Bug: 5858903
Change-Id: Ibee9123f4a520e77f4baf8bdd3d75364ab451100
om/android/server/InputMethodManagerService.java
61d6c8ca49d4a3d5bf4c961878a3f71145d75058 31-Mar-2012 Dianne Hackborn <hackbod@google.com> Merge "Add new feature to let apps layout over status bar / system bar."
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
om/android/server/StatusBarManagerService.java
om/android/server/wm/WindowManagerService.java
4185012ad323847fb60d32224a642df629c0e06c 30-Mar-2012 Craig Mautner <cmautner@google.com> Merge "Move variables into animation class."
a608b882327fbb393bde3854953cd322a6fea675 30-Mar-2012 Craig Mautner <cmautner@google.com> Move variables into animation class.

Moved drawPending and commitDrawPending and associated methods from
WindowState to WindowStateAnimator.

Created mechanism for passing results from WindowAnimator to
WindowManagerService. Initial results passed are mUpdateRotation and
mWallpaperMayChange.

Change-Id: Ib03d28f921580ac9426ea9233bea6eafc9ea964c
om/android/server/wm/AppWindowToken.java
om/android/server/wm/WindowAnimator.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
om/android/server/wm/WindowStateAnimator.java
0dedffd656efb74a998bf697192720c93c48994d 30-Mar-2012 Amith Yamasani <yamasani@google.com> Dump the uid of a notification, for debugging.

Useful for multiuser testing.

Change-Id: I4aac8eda9b2f9c7ada07bd6a040260beb1acce87
om/android/server/NotificationManagerService.java
a3fabff98590d26f0c362cb09dc378fece66215c 28-Mar-2012 Michael Jurka <mikejurka@google.com> Add frame counter to dumpGfxInfo

Change-Id: I016f706e32cbdbce014795d8fc537b15c389dc7a
om/android/server/wm/WindowManagerService.java
50c69b5d8ae4bc973e53cbe3b58b0eb0299e25c8 30-Mar-2012 Michael Jurka <mikejurka@google.com> Merge "Preload recents on phones with hard nav keys"
15d5a964fd120766d049fddfc051d10eef5e440d 30-Mar-2012 Craig Mautner <cmautner@google.com> Merge "Remove obsolete variable masking valid one."
d87946ba48b62a6a83fd971ef7c4c419407db836 30-Mar-2012 Craig Mautner <cmautner@google.com> Remove obsolete variable masking valid one.

The mUpdateRotation variable was still in the WindowManagerService
mInnerFields object. This was masking the true mUpdateRotation found in
WindowAnimator.

Fixes Bug 6240025.

Change-Id: I6531002f870f30d22e19ba9af5cac86e1c7b9bcb
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
om/android/server/wm/WindowStateAnimator.java
bc52ca28148a9a8f2935c380d9e97d56a75be416 30-Mar-2012 Justin Koh <justinkoh@google.com> Stop ANR dialogs from appearing when ActivityManager dialogs should not be shown

Stop ANR dialogs from appearing on devices where the ActivityManager dialogs
should not be shown. Instead, kill the process. This is preferable because the
user can't actually do anything on the device.

TESTED = runs on device with that config, simulated ANR using test app.

Change-Id: I6267000afd12ef929f0c625220184c6ab0139552
om/android/server/am/ActivityManagerService.java
a08f3e866a46c990e786defa95013ee0313b0887 30-Mar-2012 Jeff Brown <jeffbrown@google.com> Merge "Enable vsync traversals by default."
ebb2d8d708c5c58c79ae88ac2bd10450a856f702 24-Mar-2012 Jeff Brown <jeffbrown@google.com> Enable vsync traversals by default.

Improved how the various callbacks are managed and sequenced
to reduce code duplication.

Added a heuristic to avoid postponing traversals until
the next vsync frame if we did not actually do any drawing during
the previous frame. This helps in the very common case where
drawing occurs in response to input.

Change-Id: I277d9eeaf50408f8745a3cfd181db1d140770658
om/android/server/wm/WindowManagerService.java
c2f9be0b7fe14258e01d73f6bc43dd94c3e711d4 28-Mar-2012 Craig Mautner <cmautner@google.com> Move Surface operations out of WindowState.

Migrated the bulk of Surface operations from WindowState to
WindowStateAnimator. There remain a multitude of cross-referencing
between the two classes and most of the other classes in the wm
package.

Change-Id: I4bfdfb84be31341371f3ef311aca8fc6a4966692
om/android/server/wm/AppWindowToken.java
om/android/server/wm/DimAnimator.java
om/android/server/wm/WindowAnimator.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
om/android/server/wm/WindowStateAnimator.java
e7ae2505405cf30d9d3140278d5b9a2604d866df 27-Mar-2012 Craig Mautner <cmautner@google.com> Move wallpaper animations int WindowAnimator.

More refactoring. This time wallpaper animations were broken up from
WindowManagerService and the layout piece kept there while the
animation piece was moved into WindwoAnimator.

Also, applyAnimationLocked and applyEnterAnimationLocked were moved
from WindowManagerService to WindowState.

Change-Id: I05935023702ce05fdfdc804342ec14f719cdfea4
om/android/server/wm/WindowAnimator.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
om/android/server/wm/WindowStateAnimator.java
7f2668c8469934ce83a5647977f6e74ab782cf07 27-Mar-2012 Michael Jurka <mikejurka@google.com> Preload recents on phones with hard nav keys

Also refactor recents code across Phone/Tablet

Change-Id: Id557c5cb0f7d9378f81c40b20511a5d98bf4078e
om/android/server/StatusBarManagerService.java
0833082c8eb1d9a1473bb07232eb514974b87e2c 29-Mar-2012 Daniel Sandler <dsandler@android.com> Merge "Stop showing ADB and MTP/PTP/USB notifications at the top."
0184ce92959ae5ba5a1dee286573162c32152c75 29-Mar-2012 Amith Yamasani <yamasani@google.com> Undo a previous change that's causing multi-user issues

Surgical hack for getting Settings to run multiple instances without
causing other system services/providers from doing the same.

Change-Id: Ic5dab61976a04c3012235299ba55edfcd8273dbb
om/android/server/am/ActivityManagerService.java
49a2ad1f404622803faba0bc5937b8a39aba02b3 28-Mar-2012 Daniel Sandler <dsandler@android.com> Stop showing ADB and MTP/PTP/USB notifications at the top.

Two parts to this:
1. Stop treating FLAG_ONGOING_EVENT notifications specially
(in particular, ordering them at the top of the panel).
2. Set the priority bits on the system UI notifications
appropriately (low).

Change-Id: I3bde7e573654c5aad5e1c5d29e6a21ba94edcc5b
om/android/server/NotificationManagerService.java
om/android/server/usb/UsbDeviceManager.java
79eeae4d69089693ac2d96b19a79767908f781f2 29-Mar-2012 Amith Yamasani <yamasani@google.com> Merge "Show the current user in power menu"
52f1d752f90579c9b57e3350393a029cf72138d0 29-Mar-2012 Amith Yamasani <yamasani@google.com> Show the current user in power menu

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

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

Change-Id: Iaf2a00f6d1871fd2a88d8982439e445423bb2896
om/android/server/am/ActivityManagerService.java
8a34718d844ec7abefa7d0736c7d1a37ff658f61 28-Mar-2012 Irfan Sheriff <isheriff@google.com> Merge "Control suspend optimizations from framework"
3df92c50febef4d5f1f55ab135c32006a123eeae 28-Mar-2012 Christopher Tate <ctate@google.com> Merge "Fix uninstallation tracking in the Backup Manager"
a3d55342be7b4b209b5d794f4bae38ec78c48c3d 27-Mar-2012 Christopher Tate <ctate@google.com> Fix uninstallation tracking in the Backup Manager

This never worked properly; now it does. We also no longer
do a redundant pair of remove/add operations when a package is
updated.

Bonus memory savings: we were keeping sets of ApplicationInfo
objects as part of the ongoing bookkeeping, but those were no longer
being used for anything other than the package names. That's been
tossed out now and only the name strings are now used; hooray for
memory savings!

Change-Id: I4c6e592a1680e28550bcb4f76789260ded22280d
om/android/server/BackupManagerService.java
8b5bce8d9060c1b68b5605da8f6978d8fb5ea1d3 27-Mar-2012 Amith Yamasani <yamasani@google.com> Merge "User management and switching"
135936072b24b090fb63940aea41b408d855a4f3 23-Mar-2012 Amith Yamasani <yamasani@google.com> User management and switching

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

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

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

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

Lock the screen when switching users, to force unlocking.

Change-Id: Ib23a721cb75285eef5fd6ba8c7272462764038fa
om/android/server/AppWidgetService.java
om/android/server/AppWidgetServiceImpl.java
om/android/server/ClipboardService.java
om/android/server/WallpaperManagerService.java
om/android/server/am/ActivityManagerService.java
om/android/server/pm/PackageManagerService.java
om/android/server/pm/PackageSetting.java
om/android/server/pm/PackageSettingBase.java
om/android/server/pm/Settings.java
om/android/server/pm/UserManager.java
79763f3ce7495dfb3866989a05b64a5eeae50860 27-Mar-2012 Eric Laurent <elaurent@google.com> Merge "Fixed headset detection broken on stingray"
1358ebe46c47a8c5d80d3f9bc4768805ac80ca46 27-Mar-2012 Magnus Eriksson <eriksson.mag@gmail.com> Fix off-by-one error when filtering application UIDs

A filtering check in writeLPr() mistakenly includes the first application UID
(10000) with the result that the package with UID 10000 is missing from
packages.list. This patch fix the error.

Change-Id: I3651beb346290db8e09317391b95a77aed1946b6
Signed-off-by: Magnus Eriksson <eriksson.mag@gmail.com>
om/android/server/pm/Settings.java
262f766ac8bd330008e1f0a61c1a37c64108b17c 27-Mar-2012 Irfan Sheriff <isheriff@google.com> Control suspend optimizations from framework

The suspend optimizations handling in the driver is being removed.
The framework will hence forth control when these optimizations occur -
we do this at screen off and hold a short wakelock to ensure this.

We also remove the use of the now defunct setsuspendopt command and
handle the high perf locking with the new suspend mode command.

Change-Id: Ia12e38befb2c4f85cad6612bc8f807805bd0dae1
om/android/server/WifiService.java
b3cbd0b4d827577b3b8ad34106779c67a48701dd 27-Mar-2012 Craig Mautner <cmautner@google.com> Merge "Refactor animation out of WindowState."
a2c77053b8dfa5f06bdd927bdbab4df2d00bb4e2 26-Mar-2012 Craig Mautner <cmautner@google.com> Refactor animation out of WindowState.

Remove the animation stepping from WindowState and move it into a new
class, WindowStateAnimator. Update all references to moved variables
in related files.

Change-Id: I7540d8f897b370c73975f3ffe450140861cb0cd1
om/android/server/wm/AppWindowToken.java
om/android/server/wm/DimAnimator.java
om/android/server/wm/WindowAnimator.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
om/android/server/wm/WindowStateAnimator.java
dcbe048f4df9735c8d22f5a801c582cadcf35539 26-Mar-2012 Michael Jurka <mikejurka@google.com> Merge "Fix bug: don't show system bar in app thumbnails"
eba00ce996d6646f558f25890f0a551de8e7ecf7 26-Mar-2012 Dianne Hackborn <hackbod@google.com> Merge "Okay now let's really turn it off."
69dc66e91bcf1d982ae23b7c67cf82d6dd0e8056 26-Mar-2012 Dianne Hackborn <hackbod@google.com> Okay now let's really turn it off.

Change-Id: Idda3c13339a6a29a300555d31e67219c9af4ae68
om/android/server/am/ActivityManagerService.java
a026b48972316d05a75b6dde883be39b1e046891 26-Mar-2012 Dianne Hackborn <hackbod@google.com> Merge "Turn off "too slow" logs."
551d0b1f2ae3b4747ff38abbf8efa904e14fd368 26-Mar-2012 Dianne Hackborn <hackbod@google.com> Turn off "too slow" logs.

Change-Id: I6ec306ca1c55226269c4644a869a984c4fa00f0d
om/android/server/am/ActivityManagerService.java
4accb6a88bcd8521db1cd7cf438abd292e38741e 26-Mar-2012 Michael Jurka <mikejurka@google.com> Fix bug: don't show system bar in app thumbnails

Bug: 5953608
Change-Id: Ib730638fe130f287ff446db0c6cd42efc5746c5c
om/android/server/wm/WindowManagerService.java
c9f67764a856544446d44a3b377081f7fde3966c 26-Mar-2012 Craig Mautner <cmautner@google.com> Merge "Skip layout if performShow fails."
cf8cbbe77447d9cca28e789c5ec4e714694ab37d 26-Mar-2012 Craig Mautner <cmautner@google.com> Skip layout if performShow fails.

In cases where a Surface does not go from hidden to shown, do not set
the perform layout flag. This keeps us out of repeated passes through
the layout code.

Fixes bug 6222487.

Change-Id: I22601bef5733d2f996a8cbdd50d6b89517bc3122
om/android/server/wm/AppWindowToken.java
om/android/server/wm/WindowAnimator.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
a6deda436baf0df70438b0d9d795bb420b120114 24-Mar-2012 Christopher Tate <ctate@google.com> Merge "Don't crash when wiping backup data redundantly in the local transport"
0abf6a001461a4c2ea31ddc44a60b003b4e0554d 24-Mar-2012 Christopher Tate <ctate@google.com> Don't crash when wiping backup data redundantly in the local transport

Previously, if using the "local" debugging transport:

adb shell bmgr wipe com.android.browser
adb shell bmgr wipe com.android.browser

... would bring down the runtime. This no longer happens. The fix
covers two aspects of the situation: 1. the local transport no longer
blows up in this use case, and 2. the backup manager itself now catches
blowups on the part of the transport, and tidies up after them.

Bug 6205185

Change-Id: Ieb9b8827a62523148ad5a0ec15b05a954d198b3d
om/android/server/BackupManagerService.java
857d6c27f28066769ead37c4e88e88a5a321bc5f 24-Mar-2012 Eric Laurent <elaurent@google.com> Fixed headset detection broken on stingray

commit 5e64321e broke the headset detection on stingray.
This is because the name passed with the UEvent upon headset insertion/removal is
different from the dev path (h2w). It actually indicates the type of headset connected.

The fix consists in using the dev path received with the UEvent to find the corresponding
entry in uEventInfo.

Change-Id: I8481cfa17a7af3c8f5d83fc87d0f7c0d2c981098
om/android/server/WiredAccessoryObserver.java
d5f2374e13a7bcefbc7252b814d128794f22af93 24-Mar-2012 Craig Mautner <cmautner@google.com> Merge "Reset layout needed at each animation step."
bb1449b392b4fb14f17fa747c2261d7195405df3 24-Mar-2012 Craig Mautner <cmautner@google.com> Reset layout needed at each animation step.

The member variable WindowAnimator.mPendingLayoutChanges was never
being reset to 0. Consequently once it was set it was causing endless
calls to the layout method.

Fixes bug 6208114, 6220403, 6219546.

Fixed NPE in RecentsPanelView.

Change-Id: Ie529b8f31e535543cb5ae0af9447146306b14eeb
om/android/server/wm/WindowAnimator.java
om/android/server/wm/WindowManagerService.java
69f819b397e5e4b50b1931da6ef1caba0229640a 23-Mar-2012 Jeff Sharkey <jsharkey@android.com> Merge "Include GIDs for unenforced permissions."
7cf4640e812a86451d17514f01bb7ffa5e56c33b 23-Mar-2012 Dianne Hackborn <hackbod@google.com> Merge "Add new thumbnail animation."
8078d8c8a282ca81344febe7256f63b1e805e3aa 20-Mar-2012 Dianne Hackborn <hackbod@google.com> Add new thumbnail animation.

Use it for recent tasks switching.

Not perfect yet by far, but something.

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

Change-Id: I49bf6c94aafde875ac652dedaf96d6c08cc9e7d2
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityRecord.java
om/android/server/am/ActivityStack.java
om/android/server/wm/AppWindowToken.java
om/android/server/wm/WindowAnimator.java
om/android/server/wm/WindowManagerService.java
5b6f07b46122a0a1f057b28f1c07cbc74e592660 23-Mar-2012 Christopher Tate <ctate@google.com> Merge "Deal gracefully with fatal exceptions during full backup"
aa0c02d22182011b2add83b56ef96a303fa53ee0 23-Mar-2012 Christopher Tate <ctate@google.com> Deal gracefully with fatal exceptions during full backup

In particular, if the low-level zip or crypto layers of the output
pipeline throw, the output becomes invalid at that point, but we
were not properly detecting this; we were missing the exception and
the runtime was going down. Now we catch any such fatal exception
and make sure to shut down the backup operation cleanly, leaving
the output at whatever point in its construction that it had
achieved.

Bug 6131870

Change-Id: If0fe0337857404b776f407a79d11dd88b8e60fd0
om/android/server/BackupManagerService.java
9c2efb35e23eb875e8d901c39a94ce9dc14bf0dc 23-Mar-2012 Christopher Tate <ctate@google.com> Sanity-check backup agent name prior to instantiation

Fixes a crash that would occur if an app with a pending backup
pass in the pipeline was updated to remove its agent declaration
from the manifest (or other more esoteric ways that a backup
pass was expected to run for an app without their own agent).

Bug 5776591

Change-Id: I5a8bc8c12de6a2bfa82f5093fe3a15b754109ab1
om/android/server/BackupManagerService.java
b9a070189c2280a6356a8abb9483b517a41e14c3 23-Mar-2012 Jeff Sharkey <jsharkey@android.com> Include GIDs for unenforced permissions.

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

Bug: 6131916
Change-Id: I6d83efc937919f13a1a7d9caac902e572869406a
om/android/server/am/ActivityManagerService.java
om/android/server/pm/PackageManagerService.java
54c546223cd550d2995ec6d956a8e7963311a0a6 23-Mar-2012 Craig Mautner <cmautner@google.com> Merge "Separate animation into separate class."
764983d16925daeeba3f29fd1f844187655d1386 22-Mar-2012 Craig Mautner <cmautner@google.com> Separate animation into separate class.

Introduction of the class WindowAnimator which takes care of all
animations stepping and Surface operations.

Change-Id: I78f1c269fa57df0616c08adbe156e3059709ae48
om/android/server/wm/AppWindowToken.java
om/android/server/wm/WindowAnimator.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
ced11a5bc4495eaa51a4d6675b2d4e296a130049 22-Mar-2012 Mike Lockwood <lockwood@google.com> Merge changes I35a76a27,I04bb7ad4,If38a1a10,Ice5be6e5,I009e443f,I968ddf90,I69d4e518,I09b1dfc9

* changes:
Merge commit '74803dc'
add config_bluetooth_default_profiles config var and use it to disable bt profiles
Do not allow Surface creation on machines without SurfaceFlinger We will fail later anyways, but this change makes it much easier to track down places where we are inadvertently doing operations that depend on the flinger.
fix setting only usb mode
Detect (at runtime) kernel support for the "hdmi_audio" switch.
Add a config resource to disable key-chord screenshotting
Do not assume that there is always a running activity (Necessary for headless devices)
Add batch volume adjust support to adjustMasterVolume() in AudioManager and AudioService.
11c0ab9a0810a9007228db197acd27c274f0d08d 22-Mar-2012 Mike Lockwood <lockwood@android.com> Merge "ActivityManagerService: Disable app crashed dialog on headless builds"
ad812a23df775062f0185076557e7f3fdfa57943 22-Mar-2012 Amith Yamasani <yamasani@google.com> Merge "Package restrictions per user"
dab2072365565b4892be7910b0cdb870e83689f6 08-Mar-2012 RoboErik <epastern@google.com> fix setting only usb mode

If you cleared the last usb mode it would fail (and so would setting
it if you started with none). This fixes it to set and unset the
last property correctly.

Change-Id: Ice5be6e57b6ca6b8c9241b0ac62071a3bc72606a
om/android/server/usb/UsbDeviceManager.java
5e64321ebfc0a3225bc4e4828d3c29d719db450a 06-Mar-2012 John Grossman <johngro@google.com> Detect (at runtime) kernel support for the "hdmi_audio" switch.

A new switch was introduced in AndroidAtHome to deal with a race
condition between the WiredAccessoryObserver and the HW composer HAL.
When the new switch ("hdmi_audio") is present, we want to pay
attention to it instead of paying attention to the old switch
("hdmi"). This change checks at startup for the presence or absence
of the new switch and uses it if available, otherwise it falls back on
classic behavior.

see change ID I960cfc2f3e8df5342e7248a26fd313fdad2ca322 for the kernel
side changes.

see bug 6023647 for a discussion of the issue.

Change-Id: I009e443f25662e7beb233e892ca71034b05ebfc2
Signed-off-by: John Grossman <johngro@google.com>
om/android/server/WiredAccessoryObserver.java
d87a9be444874d62fcfa70a9d48b7dc4f5f5948e 05-Mar-2012 Kevin Hester-Chow <khester@google.com> Do not assume that there is always a running activity
(Necessary for headless devices)

Change-Id: I69d4e518df99a02f2fbf19a9d86a693cea292f80
om/android/server/am/ActivityManagerService.java
86548c472afc3700969fafb42b7ce6aa6dae0005 13-Sep-2011 Mike Lockwood <lockwood@android.com> ActivityManagerService: Disable app crashed dialog on headless builds

Change-Id: I78bf2cb2cd9f99db57f447b7bfaca80c4fefbd66
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/am/ActivityManagerService.java
370f2dbc372116f986274ff2552b5ecfdce7d29a 22-Mar-2012 Jeff Sharkey <jsharkey@android.com> Merge "Move network policy to per-appId (instead of UID)."
8a8b581e669f6187b397f856a567a76ed8aba2c2 22-Mar-2012 Jeff Sharkey <jsharkey@android.com> Move network policy to per-appId (instead of UID).

To support multi-user, store network policy per-appId and expand to
apply rules to all UserInfo on device.

Bug: 6140462
Change-Id: Ic0866b4d41c8c60cc1c0a597f0de927b92b65b1e
om/android/server/net/NetworkPolicyManagerService.java
483f3b06ea84440a082e21b68ec2c2e54046f5a6 14-Mar-2012 Amith Yamasani <yamasani@google.com> Package restrictions per user

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

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

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

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

Added some tests for pm.Settings and PackageManager.

Change-Id: Ia83b529e1df88dbcb3bd55ebfc952a6e9b20e861
om/android/server/AppWidgetService.java
om/android/server/AppWidgetServiceImpl.java
om/android/server/IntentResolver.java
om/android/server/MountService.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityStack.java
om/android/server/am/BroadcastQueue.java
om/android/server/am/CompatModePackages.java
om/android/server/pm/PackageManagerService.java
om/android/server/pm/PackageSetting.java
om/android/server/pm/PackageSettingBase.java
om/android/server/pm/Settings.java
om/android/server/pm/UserManager.java
03273d00ce1d7b4ebde95994732dd80204ba7e68 21-Mar-2012 Craig Mautner <cmautner@google.com> Continue animations started from AppWindowToken.

Animations that were started from AppWindowToken.showAllWindowsLocked
were not setting mInnerFields.mAnimating and hence the animations were
not progressing. This resulted in popups such as menus and time/date
settings not showing up.

Fixes bug 6205076.

Change-Id: I4daae5895e64182328671e282331f14dd5561d5e
om/android/server/wm/AppWindowToken.java
om/android/server/wm/WindowManagerService.java
6d332c514805798a9a545999e7f0d6d83a6a35d1 21-Mar-2012 Craig Mautner <cmautner@google.com> Merge "Minor refactoring prior to major refactoring."
e5b2b644b1c48026cd3a58fb9267b708b774ae6a 21-Mar-2012 Jeff Sharkey <jsharkey@android.com> Merge "Remove unused android.net.Downloads."
948eef82546c15086d0b78ce18ee874aa5c634f7 21-Mar-2012 Jeff Sharkey <jsharkey@android.com> Remove unused android.net.Downloads.

It's another set of constants that can be confused with those in
android.provider.Downloads.

Change-Id: I78ac058fa264d59a81f7655ab101c3fb2c8c17ff
om/android/server/BootReceiver.java
3a66cf3e86f351f0957188a4b874a3e65edfa40f 21-Mar-2012 Jeff Sharkey <jsharkey@android.com> Avoid data usage notifications in airplane mode.

Only for mobile networks.

Bug: 5995839
Change-Id: I6a6dba8cfe98c8e72861f90665c3e41da6d9a474
om/android/server/net/NetworkPolicyManagerService.java
2fb98b147b58210604dfaf1482f635ce8d8a0575 21-Mar-2012 Craig Mautner <cmautner@google.com> Minor refactoring prior to major refactoring.

Removal of blur layer.
Deferral of Surface actions in BlackFrame from ctor to first use.
Combine common test into single method okToDisplay().
Remove redundant logic in DimAnimator.

Change-Id: I43af0415794a8f142803ce94d7e17539aafac67d
om/android/server/wm/AppWindowToken.java
om/android/server/wm/BlackFrame.java
om/android/server/wm/DimAnimator.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
481cb7ea386d110bd1d0c6e224d3989546344457 21-Mar-2012 Jeff Sharkey <jsharkey@android.com> Merge "Remember when NetworkPolicy was inferred."
837f9242ae2e8f5f380d0b30b8fffbc68494914f 21-Mar-2012 Jeff Sharkey <jsharkey@android.com> Remember when NetworkPolicy was inferred.

This helps future-proof NPMS if we need to correct default policies
after an upgrade.

Change-Id: I0ddfdeaf41757a46aeb867c91d495ccf981d544b
om/android/server/net/NetworkPolicyManagerService.java
d3ae220286c2f98ec7739d228a85a24987759506 20-Mar-2012 Craig Mautner <cmautner@google.com> Merge "Fix flickering when starting and ending apps."
22ce1414a0073b5cddadf1da8475f6fb7b409e44 20-Mar-2012 Craig Mautner <cmautner@google.com> Fix flickering when starting and ending apps.

Surfaces were displaying animations in their entirety for a single
frame before the animation kicked in. This caused a flash on the
screen. By setting the animation to invisible (alpha=0) at their
start it makes no difference if they are displayed.

Fixed bug 6176540.

Removed redundant mDimAnimator.show call.

Change-Id: I47c1b0d38273b011d9115822a8476671d6a050fc
om/android/server/wm/AppWindowToken.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
09f5aededa1568f59bbe014ce5199ebca35a93b8 20-Mar-2012 Jeff Sharkey <jsharkey@android.com> Merge "Selective enforcement of READ_EXTERNAL_STORAGE."
edc84ee8392afa0102f098168329db5bb43a6d4b 20-Mar-2012 Jeff Sharkey <jsharkey@android.com> Selective enforcement of READ_EXTERNAL_STORAGE.

Store enforcement state of specific permissions, allowing them to be
selectively enforced. Currently supports READ_EXTERNAL_STORAGE, which
by default isn't enforced, but enforcement can be enabled at runtime.

Bug: 6131916
Change-Id: I4bcc215a2eb5e6507d6257b577311cbd13c77acf
om/android/server/pm/PackageManagerService.java
om/android/server/pm/Settings.java
9ce685b934b36cc57631e10f7c1e3609e91e3f9c 16-Mar-2012 Christopher Tate <ctate@google.com> Make immersive mode public & imply update locking

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

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

Bug 6154438

Change-Id: Ibd3491fc437077f3fa0d9708ed91955121e8c877
om/android/server/am/ActivityManagerService.java
7a2195cdd33f27c79eda343defc1f7ccf59cc8ac 20-Mar-2012 Dianne Hackborn <hackbod@google.com> Start using the new activity options argument.

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

Change-Id: I8e209bf52398a98ab9f1bcafa1ec0a580dae57c0
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityRecord.java
om/android/server/am/ActivityStack.java
om/android/server/am/PendingIntentRecord.java
dea50f05e43b2ad6ea392d7ddfbfa691f6903734 17-Mar-2012 Dianne Hackborn <hackbod@google.com> Merge "More work on rotation animation."
d6b32b6178238361ffd1b428120942858de78428 16-Mar-2012 Dianne Hackborn <hackbod@google.com> More work on rotation animation.

Change-Id: Ib8206db98b68cb1e0b16e4c55d949e80ff31bd9f
om/android/server/wm/BlackFrame.java
om/android/server/wm/ScreenRotationAnimation.java
d87eb6c7c686182aaf0e7dd6facacb9e229f9684 16-Mar-2012 Craig Mautner <cmautner@google.com> Merge "Fix black screen on app transition."
0059d3508f3c5346d4ea07d4ada3e1827e4c8a01 16-Mar-2012 Craig Mautner <cmautner@google.com> Fix black screen on app transition.

The layer adjustment to an animating window upon completion was masking
the window behind the mWindowAnimationBackgroundSurface, a DimSurface.
The DimSurface was not being hidden because the step was happening too
late. Swapping the order of performAnimationsLocked and
updateWindowsAppsAndRotationAnimationsLocked fixes this ordering issue.

Fixes bug 6185920.

Change-Id: I0ff64c019e821fa3a92505ac6351f2648897e592
om/android/server/wm/WindowManagerService.java
baad5d5f0de40c4b161aaf8bb87aee4e57784c50 16-Mar-2012 Dianne Hackborn <hackbod@google.com> Merge "resolved conflicts for merge of 354e0346 to master"
29ba7e66804e91cbd05fed74893061b4971ec52b 16-Mar-2012 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 354e0346 to master

Change-Id: I432f5f43aa1e19c6a474e8656fe0e3715828e8af
1dd3ed09e8623574ef21fd48354eaa46d1edd9ee 16-Mar-2012 Craig Mautner <cmautner@google.com> Perform finish animation actions.

When stepAnimation returns false, do not return false immediately.
Instead carry out finish actions. Also, remove state machine that is no
longer necessary.

Fixes bug 6184070.

Change-Id: I530eb2b62b864bbce929f573d10b31b102152f1f
om/android/server/wm/AppWindowToken.java
om/android/server/wm/WindowState.java
5da418d3319add35f15197db39195984b0262e84 16-Mar-2012 Dianne Hackborn <hackbod@google.com> am ce06c000: Merge "Debugging code for #6169553: Make Phone launch faster" into ics-mr1

* commit 'ce06c000b4133c63414c3244c3325e25315ab179':
Debugging code for #6169553: Make Phone launch faster
c032a73b511d4006e083a646b7dd23d54ed373ac 16-Mar-2012 Dianne Hackborn <hackbod@google.com> am ce06c000: Merge "Debugging code for #6169553: Make Phone launch faster" into ics-mr1

* commit 'ce06c000b4133c63414c3244c3325e25315ab179':
Debugging code for #6169553: Make Phone launch faster
2937a9ea0a81a0400f0189221f775561ff3b0a6c 16-Mar-2012 Jeff Sharkey <jsharkey@android.com> Merge "Combine network subtypes by default."
d4dd7716fb825f29a609c5c4cb31204eea78183a 16-Mar-2012 Jeff Sharkey <jsharkey@android.com> Combine network subtypes by default.

Subtype controls (3G-vs-4G) aren't exposed in the UI, so tracking
data with that granularity creates unnecessary overhead. For example,
some GSM networks can regularly flap between two subtypes.

Bug: 6118868
Change-Id: Id098891dba52336d00d0f96632a7924e228b4713
om/android/server/net/NetworkStatsService.java
fe4afa153571890fa684170ebf058e7daeb57531 15-Mar-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix swiping away recents to always kill processes."
2a29b3ad1350785aedea3442b38042885533576c 15-Mar-2012 Dianne Hackborn <hackbod@google.com> Debugging code for #6169553: Make Phone launch faster

The activity manager now has a tick when launching an app every
500ms, where it collects the current stack traces of the app if
it hasn't finished launching. These traces are included as part
of dumpstate.

This is only done on non-user builds.

Change-Id: I7f09ea00aab821ac81795f48c9d68fcca65f89fe
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityRecord.java
om/android/server/am/ActivityStack.java
9da2d403344d7e8b67c966db4f064c4c7a2f5901 15-Mar-2012 Dianne Hackborn <hackbod@google.com> Fix swiping away recents to always kill processes.

This would only kill processes if there were activities associated
with the recent task; now it always kills processes.

Always fix some debug output.

Change-Id: Iccda19ba0a20823347b06c13b450587283d28284
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityStack.java
om/android/server/am/ContentProviderRecord.java
om/android/server/am/ProviderMap.java
om/android/server/am/TaskRecord.java
bf90eaa5d2410bfb60ef84a0efcf3b5eb5022d9f 15-Mar-2012 Craig Mautner <cmautner@google.com> Separate layout ops from surface ops.

Further work to isolate layout from animation and surface operations.
Remove cruft and minor refactoring.

Change-Id: I6f910ed72c7c614996641c353870c2b2ab5e8bb4
om/android/server/wm/ScreenRotationAnimation.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
f44882ff1c156f9abb7417d075379d1f5a4551f3 15-Mar-2012 Craig Mautner <cmautner@google.com> Merge "Separate out animations from layout."
e32c30784191a9244a08450759471c934c85034c 12-Mar-2012 Craig Mautner <cmautner@google.com> Separate out animations from layout.

(Dianne) pulled the animation steps out of the layout. Changes to
exposed layers cause repeated calls to layout code.

Combined animation steps into start and finish animation code.

Change-Id: I3602d1d6249d20987d102a54e3a67a7a39361b55
om/android/server/wm/AppWindowToken.java
om/android/server/wm/ScreenRotationAnimation.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
a4972e951bf2bdb7afdafee95b3ab0c15b8bacae 14-Mar-2012 Dianne Hackborn <hackbod@google.com> Add new "options" argument to all startActivity APIs.

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

Change-Id: I4eb6f27275cdd4bf186f6da316ab93a2372ad4b7
om/android/server/UiModeManagerService.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityStack.java
om/android/server/am/PendingIntentRecord.java
8e94c25f5d7392f299de3b67c49e847cdd103551 13-Mar-2012 Robert Greenwalt <rgreenwalt@google.com> Merge "Record the trimmed cmd string for logs"
d192598d3e7c6f38fc9deb573b06ababa56d741a 12-Mar-2012 Robert Greenwalt <rgreenwalt@google.com> Record the trimmed cmd string for logs

The over the wire command includes a \0 that mangles log messages.
bug:6149176

Change-Id: I77d4e443f1966bff060f1b97570851f7549fee8e
om/android/server/NativeDaemonConnector.java
a1b09a92d8879f1f385046533628547a118eb558 13-Mar-2012 Craig Mautner <cmautner@google.com> Merge "Set the reason for screen-off before usage."
44bf70fba26146d7e788ec051ee4ab45336de2fa 13-Mar-2012 Craig Mautner <cmautner@google.com> Set the reason for screen-off before usage.

An occasional call sequence through updateLightsLocked ended up storing
the old screen-off reason rather than the current screen-off reason.
This caused the Keyguard screen to be bypassed when turning back on. By
saving the power-off reason in mScreenOffReason prior to calling
updateLightsLocked we eliminate this problem.

The offending calling sequence was:
PowerManagerService.setPowerState(..., reason) => updateLightsLocked
=> animateTo => screenOffFinishedAminatingLocked(mScreenOffReason)
=> sendNotificationLocked.

Change-Id: I8ee0b3226f94af7ff7e7b7b0bf54e47fd0c03631
om/android/server/PowerManagerService.java
e0247498304f6591eb4b9347e5ad64bc6b63523b 13-Mar-2012 Daniel Lehmann <lehmannd@google.com> am 8f30d219: am f0533f94: am 0e873700: Remove the country detector logging

* commit '8f30d2191eb88d577d6d2ba9874053cfea0091c8':
Remove the country detector logging
3982af7b9ce0eb49dc54c9172422805a220c8b9c 13-Mar-2012 Daniel Lehmann <lehmannd@google.com> am 0e873700: Remove the country detector logging

* commit '0e87370077b322b3a88c345a44c6bf3d56617071':
Remove the country detector logging
f0533f9462275eff04491a1a27ee4cb1f4afd581 13-Mar-2012 Daniel Lehmann <lehmannd@google.com> am 0e873700: Remove the country detector logging

* commit '0e87370077b322b3a88c345a44c6bf3d56617071':
Remove the country detector logging
13dfcd1f08170df24301e895de0b300c6267ef1e 13-Mar-2012 Dianne Hackborn <hackbod@google.com> Merge "Dejank: also animate window moves due to requested size changes."
4faaed97ab331b322afeef8055d740dc7673e1b2 13-Mar-2012 Siva Velusamy <vsiva@google.com> Merge "ActivityManager: add option to allow OpenGL trace."
1743b64d87cee56e51dedbe4ad60fa2acc28af9c 13-Mar-2012 Dianne Hackborn <hackbod@google.com> Dejank: also animate window moves due to requested size changes.

This performance an animation when, for example, a dialog window is
moved because the size of its content has changed.

Change-Id: I2d79a1a57f94e0f2f8ef706a473fca6c9cc637cf
om/android/server/wm/WindowState.java
0e87370077b322b3a88c345a44c6bf3d56617071 13-Mar-2012 Daniel Lehmann <lehmannd@google.com> Remove the country detector logging

Bug:6156714
Change-Id: Id0ff60b0530142e2bce055ee8cf8dde94e974aa5
om/android/server/CountryDetectorService.java
om/android/server/location/ComprehensiveCountryDetector.java
110a6b6252d6daf9882ece7595bd3613b82448a8 12-Mar-2012 Jeff Sharkey <jsharkey@android.com> Let <path-permission> block unprotected providers.

When accessing a ContentProvider that is unprotected by top-level
permissions, and caller doesn't hold a matching <path-permission>
permission, revoke the default top-level access.

This enables an otherwise unprotected provider to enforce permissions
on specific paths.

Bug: 6131916
Change-Id: Icab89f765ccd90b1acea6988b05f00877fe2c11e
om/android/server/am/ActivityManagerService.java
92a8b22e7410e74e1cba1b856333116652af8a5c 10-Mar-2012 Siva Velusamy <vsiva@google.com> ActivityManager: add option to allow OpenGL trace.

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

Change-Id: I77788bfe97c9108943b1f947ce81afe8293d78a0
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityStack.java
ce8668f809f8e25ddbc65217e7f08490c6165637 10-Mar-2012 Jeff Sharkey <jsharkey@android.com> Merge "Save timezone when setting data cycle reset date."
9bf3150cfae03421c9dd237b46657714859d871c 10-Mar-2012 Jeff Sharkey <jsharkey@android.com> Save timezone when setting data cycle reset date.

Instead of cycle reset at midnight UTC, use midnight of timezone
active when user last set cycle reset date. Tests to verify, and
also to test leap year behavior.

Bug: 5938567
Change-Id: Ie06f7f0fa242d23110f9586a3f4f7037af87b31b
om/android/server/net/NetworkPolicyManagerService.java
466608e9e8bc48dafa2f970249076b03535cb97a 09-Mar-2012 Craig Mautner <cmautner@google.com> Merge "Fix state machine sequence causing wallpaper flash."
ad3a9bb628e912b39e10f8d8a8bde0badefd8bd0 09-Mar-2012 Craig Mautner <cmautner@google.com> Fix state machine sequence causing wallpaper flash.

Fixes bug 6127355.

Change-Id: Ie6894329829f78b3ff8936cfe5ed2933490db5d8
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
55b4b28606e740c3a1f75dd7b9b3b8feee86d795 09-Mar-2012 Dianne Hackborn <hackbod@google.com> Merge "Improved rotation animation."
191874e37106ca503003ef3d4bec392ca2627cbe 09-Mar-2012 Dianne Hackborn <hackbod@google.com> Improved rotation animation.

Change-Id: Id21686be8b2b229dc61c5d01f888c9b5deabb857
om/android/server/wm/ScreenRotationAnimation.java
d4933842b1f665f4d88b75a5d4d152cbc02e7010 09-Mar-2012 Irfan Sheriff <isheriff@google.com> Merge "Fix softap start"
e4aecb671ba19903e3e1066a6e265a18c43b188e 09-Mar-2012 Irfan Sheriff <isheriff@google.com> Fix softap start

Remove the unncessary "softap start" which was used for broadcom
specific implementation

Change-Id: I79458082a116cd630bd13d1ed1a237eda7daaa88
om/android/server/NetworkManagementService.java
8931da12e85c181652a8e47fb358a5bdfc79a1fd 09-Mar-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix crash."
d9781fe7ee88ea324e5e688dd9c352ab54fd179a 09-Mar-2012 Dianne Hackborn <hackbod@google.com> Fix crash.

Change-Id: Id219351625494c54524e400055755d41f3bef868
om/android/server/am/ActivityManagerService.java
df813c03b16ed32c25a8c8fee82a7a98088ac940 09-Mar-2012 Jeff Brown <jeffbrown@google.com> Merge "Use the Choreographer for Drawable animations."
28ca8f9f95b1ee8186463bfc3f33b9383c0d1dd0 09-Mar-2012 Amith Yamasani <yamasani@google.com> Merge "Make SyncManager and AccountManagerService multi-user aware."
583fcb9175cd0c614f096db633d9e784ab7e1f54 09-Mar-2012 Romain Guy <romainguy@google.com> Merge "Dispatch screen state change events to Views Bug #6120957"
bb9908b828a8cfd5965553be66faa6af89973697 08-Mar-2012 Romain Guy <romainguy@google.com> Dispatch screen state change events to Views
Bug #6120957

Using this new callback, views can interrupt and resume their
animations or other periodic tasks based on the current state
of the display.

Change-Id: I398f4abd421e9c5f207107bf1009a7b92cf45daa
om/android/server/wm/WindowManagerService.java
21c241e061de29a538008ca42df9c878184bcfb8 08-Mar-2012 Dianne Hackborn <hackbod@google.com> Add new Intent API for associating a ClipData with an Intent.

Allows applications to propagate multiple URI grants through an
Intent.

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

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

Change-Id: Id4ba8e72c11caf7e1f1f438cb7af058d1586a37c
om/android/server/AlarmManagerService.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityRecord.java
om/android/server/am/ActivityStack.java
om/android/server/am/IntentBindRecord.java
om/android/server/am/PendingIntentRecord.java
om/android/server/am/ServiceRecord.java
om/android/server/am/TaskRecord.java
04e0d265e3385e9d1fbc35e43c4e8caffbbe3290 14-Feb-2012 Amith Yamasani <yamasani@google.com> Make SyncManager and AccountManagerService multi-user aware.

AccountManagerService
- Maintain multiple account lists, one per user
- Keep multiple databases of accounts
- Account db moved to /data/system/users/<userid>/

SyncManager
- SyncStorageEngine keeps track of multiple users' accounts.
- SyncQueue maintained as a single instance, queueing requests from
multiple users.
- Changed some methods to take userId arguments
- Removed some deadc0de
- Store the userId in the SyncOperation, so we know which provider
instance to bind to when queued operations are processed.

ContentService
- Pass along the userid to sync manager calls.

ActivityManagerService:
- Fixed a bug in cancelIntentSender
- Don't bring other user's task forward when resetting tasks.

Updated tests

Change-Id: If317340ef68e902787aa3f5ceb4cf96f14aea695
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityStack.java
250069bf6bf3d7e2ef85c49e0cd100e80c3c8b7d 08-Mar-2012 Romain Guy <romainguy@google.com> Merge "Ignore draw requests when the display is off"
7ae9d5faad5816f7e567ec1ec77e78d746cf7e5c 06-Mar-2012 Jeff Brown <jeffbrown@google.com> Use the Choreographer for Drawable animations.

Change-Id: Ifcbf33434bf3c32d1900fd0b3f5bde004604ce8a
om/android/server/wm/WindowManagerService.java
9162cd596b958c1e59ec69257b2e596290ad73c3 08-Mar-2012 RoboErik <epastern@google.com> fix setting only usb mode

If you cleared the last usb mode it would fail (and so would setting
it if you started with none). This fixes it to set and unset the
last property correctly.

Change-Id: I8aa62a65ccda5f3872d2995f30d80426f07a281c
om/android/server/usb/UsbDeviceManager.java
09ec58ea0ff4a49c3c040cda7e5af8df3b040237 08-Mar-2012 Selim Gurun <sgurun@google.com> Merge "Prevent potential stall in dns proxy."
e0cbb81b7ac0985a839a384ab3227bb6bc1acd43 08-Mar-2012 Kevin Hester-Chow <khester@google.com> Merge "Do not assume that there is always a running activity (Necessary for headless devices)" into ics-aah
8247add51db34afd8ccb16ec120f4f1f6d80d576 08-Mar-2012 Jim Miller <jaggies@google.com> Merge "Fix 6119433: disambiguate screen brightness changes from other lights"
18651804ff913a6c296f772e53bc2d3b84b1b923 07-Mar-2012 Jim Miller <jaggies@google.com> Fix 6119433: disambiguate screen brightness changes from other lights

This fixes a bug where the code asked to change the keyboard brightness
on a device that doesn't support it. Instead of animating the keyboard
brightness, it ended up animating the display brightness and invoking
the power off animation as a result. The fix is to ignore keyboard
brightness because we don't have any devices that currently support it.

Change-Id: I672d89f92f991812ea676f19c40058b2d3008656
om/android/server/PowerManagerService.java
091ca2d5fb0592304358a9dfcd7931de68bb9983 07-Mar-2012 Jeff Sharkey <jsharkey@android.com> Merge "Avoid updating network stats after shutdown."
6341fcecc8826924a4bb24169aaf80fec9a20894 07-Mar-2012 Jeff Sharkey <jsharkey@android.com> Avoid updating network stats after shutdown.

Bug: 6109476
Change-Id: I9a3a8b182c8fa56d83ddc755d204d5b267c9bc5d
om/android/server/net/NetworkStatsService.java
5eb37241fee7e656cf9787bf00a160e94b4894fc 07-Mar-2012 Dianne Hackborn <hackbod@google.com> Merge "Work on more low memory reporting to apps."
27ff913d56de8400083a13fc572e2812b32c890c 06-Mar-2012 Dianne Hackborn <hackbod@google.com> Work on more low memory reporting to apps.

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

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

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

Change-Id: Ifd1c6151124350168aef20a94e517166fd2e03eb
om/android/server/am/ActivityManagerService.java
d7af347922064be585d3b9406cf7f9edd9d2f049 06-Mar-2012 John Grossman <johngro@google.com> Detect (at runtime) kernel support for the "hdmi_audio" switch.

A new switch was introduced in AndroidAtHome to deal with a race
condition between the WiredAccessoryObserver and the HW composer HAL.
When the new switch ("hdmi_audio") is present, we want to pay
attention to it instead of paying attention to the old switch
("hdmi"). This change checks at startup for the presence or absence
of the new switch and uses it if available, otherwise it falls back on
classic behavior.

see change ID I960cfc2f3e8df5342e7248a26fd313fdad2ca322 for the kernel
side changes.

see bug 6023647 for a discussion of the issue.

Change-Id: Ia2f2c399c3d85896ede0fff57ecbd51f332b3e0e
Signed-off-by: John Grossman <johngro@google.com>
om/android/server/WiredAccessoryObserver.java
06402e91e9a94ddccf4562fd98b358aad776b6aa 06-Mar-2012 Robert Greenwalt <rgreenwalt@google.com> Merge "Make NDC not block forever and handle restart."
135fb111dfa512809166ea3a0967ef6d67c76a2b 06-Mar-2012 Craig Mautner <cmautner@google.com> Merge "Fix deadlock by making DropBoxManager call async."
4f03d35f9c040222e6a46dde807fe2ff7852beb8 06-Mar-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix issues #6103378 and #5959515."
26caf7adf62fa36dc3fa7c194ff38520d1003f11 05-Mar-2012 Craig Mautner <cmautner@google.com> Fix deadlock by making DropBoxManager call async.

Created a Handler and used it to make sendBroadcast call asynchronously.
Deadlock was caused by WindowManagerService Log.wtf call requiring
ActivityManagerService lock while holding its own lock. At the same time
ActivityManagerService was holding its lock while waiting for
WindowManagerService lock.

Tested by forcing a Log.wtf in
WindowManagerServices.updateWindowsAppsAndRotationAnimationsLocked
inside mAppTokens loop. Then ran 'adb shell monkey -v -v 500000'.
Without this fix it would lock up and reboot within a couple of minutes.
With this fix it runs until the Camera app crashes. But that's a
different bug...

Fixes bug 6112676.

Change-Id: I5b360aa08412d117b1765f01bacd931020509db7
om/android/server/DropBoxManagerService.java
6569625beef705ec489662b80d372c4423f9c7f7 06-Mar-2012 Dianne Hackborn <hackbod@google.com> Fix issues #6103378 and #5959515.

Change-Id: I762d86dd7119c9ac02f4b8803c4a250c6b7637c7
6103378: APR: IOOBE at android.content.pm.PackageParser.generatePackageInfo(
PackageParser.java:355)
5959515: PackageManager doesn't validate className in setComponentEnabledSetting
om/android/server/pm/PackageManagerService.java
7e4e561bc717a6eea4e0d06ec4173ad27420425f 05-Mar-2012 Romain Guy <romainguy@google.com> Ignore draw requests when the display is off

When WindowManagerService's events are enabled/disabled, the state of the
display is dispatched to the known windows. This allows ViewRootImpl to
ignore draw requests until the screen is turned back on. This can potentially
lead to significant battery savings. For instance, a launcher widget showing
a repeating animation will cause the CPU and the GPU to wake up regularly
without this change.
(Change submitted by Intel and merged manually)

Change-Id: I7f93b0e60c3e6de1705f619e80860c36b1cdb978
om/android/server/wm/WindowManagerService.java
e78d7670ca6d0f7cd66edeef791978234dd8d857 05-Mar-2012 Dima Zavin <dima@android.com> Merge "PowerManagerService: only turn off screen when we really mean to"
d975403a2dc71132cab1f6bfa111a9b353f307f8 05-Mar-2012 Dima Zavin <dima@android.com> PowerManagerService: only turn off screen when we really mean to

Change-Id: I8aa574b38a4d901fce91b6d7771207949f9c8044
Signed-off-by: Dima Zavin <dima@android.com>
om/android/server/PowerManagerService.java
c3b91e9afd981f1a994a1024c3e822cf909f070d 05-Mar-2012 Dianne Hackborn <hackbod@google.com> Merge "More work on rotation animation."
9fd74805c8be91df78f3eccc40ab2466c8114fc9 02-Mar-2012 Dianne Hackborn <hackbod@google.com> More work on rotation animation.

The black frame is now a separate animation element. This allows us
to have it move through the aspect ratio change, without the old
and new screen elements doing weird aspect ratio scalings. This
makes the animation generally look different (more like a reveal),
not sure if it is better or worse, but definitely has less artifacts
in things like the gallery.

Also tweaked the animation definitions a bit.

Change-Id: I94c274ba04bbc7a675946dc6c1778e19386e4a66
om/android/server/wm/BlackFrame.java
om/android/server/wm/ScreenRotationAnimation.java
2d72be20fe950209c389c6368e785aab6fb2c1a0 05-Mar-2012 Kevin Hester-Chow <khester@google.com> Do not assume that there is always a running activity
(Necessary for headless devices)

Change-Id: I61969ebfdd4aa02a3661272a0bcd0aa67667f115
om/android/server/am/ActivityManagerService.java
db9e6937f18ceeb5715954c828ac4a51e383d140 03-Mar-2012 Irfan Sheriff <isheriff@google.com> Merge "Enhance WPS"
86add4350c228a9a33c71d695098ea8ba7c7c275 03-Mar-2012 Craig Mautner <cmautner@google.com> Fix reference to wrong ArrayList.
Fixes bug 6107296.

Change-Id: I44f2793c1c92686b276e491436a10be4f18c0d48
om/android/server/wm/WindowManagerService.java
b6df928e5eff4448f670b92c1ce00de55f0f0eac 03-Mar-2012 Craig Mautner <cmautner@google.com> Merge "Fix rotation so orientation changes aren't dropped. Modify test so that rotation animation is entered one final time after rotation completes. This last time causes mUpdateRotation to be set true forcing a test for orientation change. Fixes bug 6109189."
a731cd302dc39deaf835aeb52af12f391806a4bf 03-Mar-2012 Craig Mautner <cmautner@google.com> Fix rotation so orientation changes aren't dropped.
Modify test so that rotation animation is entered one final time after rotation completes. This last time causes mUpdateRotation to be set true forcing a test for orientation change.
Fixes bug 6109189.

Change-Id: I25475f336a3439a56b1c540205d09ee48c1d2b7c
om/android/server/wm/ScreenRotationAnimation.java
om/android/server/wm/WindowManagerService.java
86a5f5b9afa97a4ed6f5a2466fb9359ea131e2fb 29-Feb-2012 Irfan Sheriff <isheriff@google.com> Enhance WPS

- Add a cancel API
- Add more error reporting on WPS
- Fix network status reporting that showed up with new implementation

Change-Id: I499796c80d16d18df95fb702d029aa7e7283b603
om/android/server/WifiService.java
7b72ea71b90f1c12ad9b104cc2e79499d98de863 02-Mar-2012 yoonsung.nam <yoonsung.nam@samsung.com> Fix the bug net.dns1.pid is same as net.dns2.pid

writePidDns() does not increase the index in case first given dns
already exist in the property.

Change-Id: I1129d0042929b3ee119160e53cae0e4143c7ea88
Signed-off-by: yoonsung.nam <yoonsung.nam@samsung.com>
om/android/server/ConnectivityService.java
f8acebe4a5dfc5d8f24e55b50170b6053ba060de 02-Mar-2012 Craig Mautner <cmautner@google.com> Merge "Separate animation steps into start, step and finish phases. Fixes bug 6089126."
b132506e6e104f9c1fad15b5ee7cbc259fcd87c8 02-Mar-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix issue where pm would clear preferred apps when updating an app."
dbb7991b4e4638b284814b50e79cacc1e1c9d8cd 02-Mar-2012 Craig Mautner <cmautner@google.com> Separate animation steps into start, step and finish phases.
Fixes bug 6089126.

Change-Id: Iafbde36ff719640335a7ecf762e1d991cf7915e4
om/android/server/wm/AppWindowToken.java
om/android/server/wm/ScreenRotationAnimation.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
209266e93f13f598a52b7706319ae1119311e10c 02-Mar-2012 Irfan Sheriff <isheriff@google.com> Merge "Fix WifiManager async API"
46f31c31ea76e8f8a835abbc6a2929ab0b929965 01-Mar-2012 Jim Miller <jaggies@google.com> Fix 5797764: fix crash on tablets

This fixes a crash on tablets introduced by Change Ifad76fb2. It was caused
by calling nativeStartSurfaceFlingerAnimation() on devices that previously
didn't call it and apparently don't support some feature it uses.

Change-Id: Ia4c04e7e611f45cde0fbeb861aec3435d1719552
om/android/server/PowerManagerService.java
3f4b1c4d582394646043f1a67527ed3e9f999e1b 01-Mar-2012 Jim Miller <jaggies@google.com> Merge "Fix 5797764: don't hold PowerManager lock when changing native brightness"
d3975a917799b85cacaf382b65c5832813066b51 24-Feb-2012 Irfan Sheriff <isheriff@google.com> Fix WifiManager async API

Fix the current asynchronous API to use callback like the way
was done with p2p API.

In the process, fix the use of WPS

Change-Id: Ib6f8714cf51b3525b655948268804e7eaaf17587
om/android/server/WifiService.java
5bb59daf42fb24c1131effd4265c2386304feceb 01-Mar-2012 Christopher Tate <ctate@google.com> Merge: Send UpdateLock broadcasts to manifest receivers

So that e.g. the system update service doesn't need to run all the time.

Bug 5543442

Change-Id: I4cd38240e67851daa5542a2962953e5dbed15b86
om/android/server/UpdateLockService.java
f79f800864f26ce163a0fbc6b2de0470006cc5ac 01-Mar-2012 Christopher Tate <ctate@google.com> Send UpdateLock broadcasts to manifest receivers

So that e.g. the system update service doesn't need to run all the time.

Bug 5543442

Change-Id: Icd0fcc7f771f7ba92ff190ffed0f0debba4bd911
om/android/server/UpdateLockService.java
10bcb6fbb1afda4e8ce8e23dc6620500cea09461 01-Mar-2012 Robert Greenwalt <rgreenwalt@google.com> Merge "Don't forget to turn off mobile_dun"
43d8a95fa8dfd26ba8c56ac7489a8bc77c77034c 01-Mar-2012 Irfan Sheriff <isheriff@google.com> Merge "Improve Wi-Fi hand-off"
07573b32494acbabd21979d8b9584c1ed3f7a6ad 28-Jan-2012 Irfan Sheriff <isheriff@google.com> Improve Wi-Fi hand-off

When Wi-fi connects at L2 layer, the beacons reach and the device
can maintain a connection to the access point, but the application
connectivity can be flaky (due to bigger packet size exchange).

We now use Watchdog to monitor the quality of the last hop on
Wi-Fi using signal strength and ARP connectivity as indicators
to decide if the link is good enough to switch to Wi-Fi as the uplink.

ARP pings are useful for link validation but can still get through
when the application traffic fails to go through and thus not best indicator
real packet loss since they are tiny packets (28 bytes) and have
much low chance of packet corruption than the regular data
packets.

Signal strength and ARP used together ends up working well in tests.
The goal is to switch to Wi-Fi after validating ARP transfer
and RSSI and then switching out of Wi-Fi when we hit a low
signal strength threshold and waiting until the signal strength
improves and validating ARP transfer.

Change-Id: Ica593291ec7772da892f03cf45b649635b730c47
om/android/server/WifiService.java
470007f69a258ccebb7c04927210a091dbcbe181 07-Feb-2012 Robert Greenwalt <rgreenwalt@google.com> Make NDC not block forever and handle restart.

Still possible for netd to get wedged but system won't die because of it.
Leads the way to having forking netd - then only individual commands would
wedge, promoting stability.

bug:5864209
bug:6019952
Change-Id: I43e4c5072863b8b812d4fe24d30d92eb1a11651a
om/android/server/NativeDaemonConnector.java
om/android/server/NativeDaemonEvent.java
8662cab5c6a01ea5c426512e6f6d2cf3e158aea0 23-Feb-2012 Christopher Tate <ctate@google.com> Merge: Introduce UpdateLocks

An "UpdateLock" works similarly to a wake lock in API: the caller is
providing a hint to the OS that now is not a good time to interrupt
the user/device in order to do intrusive work like applying OTAs.
This is particularly important for headless or kiosk-like products
where ordinarily the update process will be automatically scheduled
and proceed without user or administrator intervention.

UpdateLocks require that the caller hold the new signatureOrSystem
permission android.permission.UPDATE_LOCK. acquire() and release()
will throw security exceptions if this is not the case.

The "is now convenient?" state is expressed to interested parties
by way of a sticky broadcast sent only to registered listeners. The
broadcast is protected; only the system can send it, so listeners
can trust it to be accurate. The broadcast intent also includes a
timestamp (System.currentTimeMillis()) to help inform listeners that
wish to implement scheduling policies based on when the device became
idle.

The API change here is a tiny one: a dump(PrintWriter) method has been
added to the TokenWatcher class to facilitate getting information out
of it for dumpsys purposes. UpdateLock itself is still @hide.

Bug 5543442

Change-Id: I3709c831fc1883d7cb753cd2d3ee8e10a61e7e48
om/android/server/SystemServer.java
om/android/server/UpdateLockService.java
c9dac1185d6944e4bdb851a06ae07ea3621042bf 28-Feb-2012 Robert Greenwalt <rgreenwalt@google.com> Don't forget to turn off mobile_dun

When we find a higher priority match for tethering traffic we should turn off
whatever we were trying before.

bug:6083611
Change-Id: I06ee41336df107353bf1a979150345e461574a48
om/android/server/connectivity/Tethering.java
0450510f5932c07e66c1208f007711fe514d2555 29-Feb-2012 Dianne Hackborn <hackbod@google.com> Fix issue where pm would clear preferred apps when updating an app.

The code for this was fairly conservative since the components of the
apps could change, leaving junk in the preferred app list. Now we
don't pro-actively clear them, but try to catch missing components
later.

Change-Id: I793063449dcc577fd3d56bb56495b308f0c95ea8
om/android/server/pm/PackageManagerService.java
8c218b78b3c34e518df4bf25dececde7d821e5cb 29-Feb-2012 Christopher Tate <ctate@google.com> Merge "Introduce UpdateLocks - "now is not a good time for non-interactive OTA"" into ics-aah
c38358025d8551a7ed225fd08ae7492f140de2e2 29-Feb-2012 Craig Mautner <cmautner@google.com> Merge changes I08fcd278,I1f496bb7

* changes:
Detect animation completions like we used to. Previous approximations weren't indicating completion and windows weren't being layered correctly as a result.
debug
a6bae56fc533e5817bd85098b52dea9cc24b5dac 29-Feb-2012 satok <satok@google.com> Merge "Unblock IPC call in TextServicesManagerService"
343511c9ec6a7a1d3760f784824a64e732f3b7a2 29-Feb-2012 Craig Mautner <cmautner@google.com> Detect animation completions like we used to.
Previous approximations weren't indicating completion and windows weren't being layered correctly as a result.

Change-Id: I08fcd278485bb87dc10bca257b9f8073108753f3
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
ba64dfe8728318f1a0db7547d0cc3f27f3a22766 28-Feb-2012 Craig Mautner <cmautner@google.com> debug

Change-Id: I1f496bb71068b6c3a09095c39fb04c9f4153e051
om/android/server/wm/WindowManagerService.java
8097e1c56702810e56b5c834729e81c30231e5d5 29-Feb-2012 Jeff Sharkey <jsharkey@android.com> Merge "Disable verbose NetworkStats logging."
e7bb71d26943fbb053139e1e34203df4c2afaa9b 29-Feb-2012 Jeff Sharkey <jsharkey@android.com> Disable verbose NetworkStats logging.

Bug: 6076584
Change-Id: I4efcda2b474f623f4fe70db8b43b0aa69017d749
om/android/server/net/NetworkStatsRecorder.java
00e6fc4c738a766c6f42b144c473385b944aa399 29-Feb-2012 Dianne Hackborn <hackbod@google.com> am 4953ec1c: am a2e0e3b5: am 27e20ccd: Merge "Fix issue #6073913: onActivityResult() not getting called..." into ics-mr1

* commit '4953ec1c71c4c2c134da2c969945c0d8b4fcb03c':
Fix issue #6073913: onActivityResult() not getting called...
4953ec1c71c4c2c134da2c969945c0d8b4fcb03c 29-Feb-2012 Dianne Hackborn <hackbod@google.com> am a2e0e3b5: am 27e20ccd: Merge "Fix issue #6073913: onActivityResult() not getting called..." into ics-mr1

* commit 'a2e0e3b5f63dc741fd5e54f45f8dde1a3cb58c6c':
Fix issue #6073913: onActivityResult() not getting called...
c221d6ec2fbaa73f82cd219e2d5ab078697070ab 29-Feb-2012 Dianne Hackborn <hackbod@google.com> am 27e20ccd: Merge "Fix issue #6073913: onActivityResult() not getting called..." into ics-mr1

* commit '27e20ccd9ac4dd1f9bf902ed2b359cc8beff7c9b':
Fix issue #6073913: onActivityResult() not getting called...
49b39ced8270f521185abb72504c12d99b64adae 29-Feb-2012 Dianne Hackborn <hackbod@google.com> am 27e20ccd: Merge "Fix issue #6073913: onActivityResult() not getting called..." into ics-mr1

* commit '27e20ccd9ac4dd1f9bf902ed2b359cc8beff7c9b':
Fix issue #6073913: onActivityResult() not getting called...
66e817655a239f8738ce73e06bb1496b2e818f74 23-Feb-2012 Christopher Tate <ctate@google.com> Introduce UpdateLocks - "now is not a good time for non-interactive OTA"

An "UpdateLock" works similarly to a wake lock in API: the caller is
providing a hint to the OS that now is not a good time to interrupt
the user/device in order to do intrusive work like applying OTAs.
This is particularly important for headless or kiosk-like products
where ordinarily the update process will be automatically scheduled
and proceed without user or administrator intervention.

UpdateLocks require that the caller hold the new signatureOrSystem
permission android.permission.UPDATE_LOCK. acquire() and release()
will throw security exceptions if this is not the case.

The "is now convenient?" state is expressed to interested parties
by way of a sticky broadcast sent only to registered listeners. The
broadcast is protected; only the system can send it, so listeners
can trust it to be accurate. The broadcast intent also includes a
timestamp (System.currentTimeMillis()) to help inform listeners that
wish to implement scheduling policies based on when the device became
idle.

The API change here is a tiny one: a dump(PrintWriter) method has been
added to the TokenWatcher class to facilitate getting information out
of it for dumpsys purposes. UpdateLock itself is still @hide.

Bug 5543442

Change-Id: Ic1548dd43935f45d4efc67f970abdc290a45f715
om/android/server/SystemServer.java
om/android/server/UpdateLockService.java
973481d6677ba89721558cb245fa8c701bf5463b 28-Feb-2012 Jean-Baptiste Queru <jbq@google.com> am ccd08b8d: am e939edb5: am f418738c: am d7fa7dee: Merge "Fixes update of extras Bundle in new Locations for GPS Provider"

* commit 'ccd08b8de9dc4c9cfaee93cbbcc7053cc9e8d96f':
Fixes update of extras Bundle in new Locations for GPS Provider
5c607433e3d609e1a023adb496018fd1389a8ec8 28-Feb-2012 Dianne Hackborn <hackbod@google.com> Fix issue #6073913: onActivityResult() not getting called...

...if the process is killed and restarted

Try to ensure that in all cases we deliver an activity result if one
was requested.

Change-Id: Id43e830d2ee782f98ed1e3b68e5e16f3258d4ad8
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityStack.java
e939edb5b4e991998ae8219b03d75c10cdc765cb 28-Feb-2012 Jean-Baptiste Queru <jbq@google.com> am f418738c: am d7fa7dee: Merge "Fixes update of extras Bundle in new Locations for GPS Provider"

* commit 'f418738c64413b818e2dc507c912c2678876632f':
Fixes update of extras Bundle in new Locations for GPS Provider
f418738c64413b818e2dc507c912c2678876632f 28-Feb-2012 Jean-Baptiste Queru <jbq@google.com> am d7fa7dee: Merge "Fixes update of extras Bundle in new Locations for GPS Provider"

* commit 'd7fa7deef9bc0cf22bf450fdb062327697c087c4':
Fixes update of extras Bundle in new Locations for GPS Provider
4e713f14419a37f385cf1509b011982bdcf67edc 28-Feb-2012 satok <satok@google.com> Unblock IPC call in TextServicesManagerService

Bug: 5471520
Change-Id: Iedf2c2cdd8d4834545d06d72ade3ce211b104b1d
om/android/server/TextServicesManagerService.java
92e66dd6835cd5fefad463c79d0589166e8fd3a7 22-Feb-2012 Jim Miller <jaggies@google.com> Fix 5797764: don't hold PowerManager lock when changing native brightness

This fixes a bug where the device could see a priority inversion when
updating display brightness. The problem occurs because the code that
manages screen brightness holds the master lock while waiting for the
native method to complete. On some devices, each call can amount to
tens to hundreds of ms, which meant clients using PowerManager APIs
could block for the duration of the call. In some cases, the animation
could block for many seconds because the unfairness of Java locks.

The solution is to handle all brightness updates in a separate thread that
does not hold the master lock while calling native methods.

This also makes the animation more consistent by animating by actual
wall clock time rather than depending on the round-trip from the driver.

Change-Id: Ifad76fb2fb77e7b2a72dd9150440d87e22581b40
om/android/server/PowerManagerService.java
e5c484cb5588146f2bf3aeaf8324db80bc735d46 28-Feb-2012 Dave Burke <daveburke@google.com> Merge "Increase max size of log size by 50% on userdebug builds."
0132a952f75a88582f4437b2c97039b71456f828 27-Feb-2012 Dave Burke <daveburke@google.com> Increase max size of log size by 50% on userdebug builds.

Useful especially for last kmsg (e.g. IMG/DSS logs truncate
and loose useful info). Since this is a max, won't affect files
that are already shorter than 64kb.

Change-Id: Ia5bb178678067e69384285e8c338dc8cb6ad071b
om/android/server/BootReceiver.java
83eaab5b43e479c85dc112a1f9b3e53e907bae1f 28-Feb-2012 Craig Mautner <cmautner@google.com> Fix bug introduced when moving animation step out from between assignments to wasAnimating and nowAnimating.
Now wasAnimating once again contains the animation state prior to the animation step.

Change-Id: I2b53bd3f62228183233ab36f0ebe44c0344d2351
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
84c00c67d70af4797c098f20124b9f8882980649 28-Feb-2012 Selim Gurun <sgurun@google.com> Prevent potential stall in dns proxy.

Reflect the changes in ResponseCode.h to corresponding java file.

Change-Id: I6d536aa4942bb4bd9db5df97895467fcdb4786ca
om/android/server/NetworkManagementService.java
5265466e8a5453e738713869f61ca45482b85319 25-Feb-2012 Dianne Hackborn <hackbod@google.com> Merge "New development permissions."
0aec3ea6defdee1ee4a9c0d6c4a3c13df3e7b812 25-Feb-2012 Dianne Hackborn <hackbod@google.com> am 911b505f: am dc5fa185: am 133dc2d7: Merge "Fix issue #6048808: sometimes auto-correct is inactive" into ics-mr1

* commit '911b505f11c719906985f169a4f45930bdec8695':
Fix issue #6048808: sometimes auto-correct is inactive
37b5c7cb69d18f23132086411a011fa1703e2b25 25-Feb-2012 Dianne Hackborn <hackbod@google.com> am 133dc2d7: Merge "Fix issue #6048808: sometimes auto-correct is inactive" into ics-mr1

* commit '133dc2d7aecc68990c363c861716b134910a4ced':
Fix issue #6048808: sometimes auto-correct is inactive
7663d80f6b6fd6ca7a736c3802013a09c0abdeb9 24-Feb-2012 Dianne Hackborn <hackbod@google.com> Fix issue #6048808: sometimes auto-correct is inactive

My previous change to speed up the time the IME is dismissed was
fundamentally flawed. That change basically switched the order
the application called the input method manager service from doing
startInput() and then windowGainedFocus(), to first windowGainedFocus()
and then startInput().

The problem is that the service relies on startInput() being done
first, since this is the mechanism to set up the new input focus,
and windowGainedFocus() is just updating the IME visibility state
after that is done. However, by doing the startInput() first, that
means in the case where we are going to hide the IME we must first
wait for the IME to re-initialize editing on whatever input has
focus in the new window.

To address this, the change here tries to find a half-way point
between the two. We now do startInput() after windowGainedFocus()
only when this will result in the window being hidden.

It is not as easy as that, though, because these are calls on to
the system service from the application. So being able to do that
meant a fair amount of re-arranging of this part of the protocol
with the service. Now windowGainedFocus() is called with all of
the information also needed for startInput(), and takes care of
performing both operations. The client-side code is correspondingly
rearranged so that the guts of it where startInput() is called can
instead call the windowGainedFocus() entry if appropriate.

So... in theory this is safer than the previous change, since it
should not be impacting the behavior as much. In practice, however,
we are touching and re-arranging a lot more code, and "should" is
not a promise.

Change-Id: Icb58bef75ef4bf9979f3e2ba88cea20db2e2c3fb
om/android/server/InputMethodManagerService.java
3f0c58eb708ca520e84396fe764147800395812f 24-Feb-2012 Daniel Sandler <dsandler@android.com> Merge "New notification priority and related APIs."
2561b0b10a55841a08e0e1d467e73e10b1bf256d 14-Feb-2012 Daniel Sandler <dsandler@android.com> New notification priority and related APIs.

This change introduces a few new bits of data on
Notification that will help the Notification Manager and
System UI route and display them more intelligently:

-> priority: an integer in a predefined range that
indicates the app's best guess as to the relative
importance (to the user, right now) of that information

-> kind: a tag (really, set of tags) indicating the general
type of notification (realtime, asynchronous, etc)

-> extras: a Bundle of additional key/value pairs
associated with this notification (currently @hidden)

The notification manager takes these data into account when
assigning to each notification a score which is passed with
the notification on to the system UI, where it can be used to
affect presentation. For example:

- Spammy apps (identified explicitly by the user or by
some other means) will have their notifications scored
very negatively by the notification manager, allowing
the UI to suppress them
- Notifications of higher score might be shown larger
or in a different way
- Very important notifications (indicated by a very high
score) might interrupt the user during an otherwise
important task (videochat, game, etc)

Implementation note: This replaces/extends the old internal
notion of "priority", which was mostly used to organize
ongoings and system notifications at the top of the panel.

Change-Id: Ie063dc75f198a68e2b5734a3aa0cacb5aba1ac39
om/android/server/NotificationManagerService.java
42d840b91d161fe98ebe3305f011b3b0f6d4561c 24-Feb-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Fixing issues with the AccessibilityNodeInfo cache."
57c7fd5a43237afc5e8ef31a076e862c0c16c328 24-Feb-2012 Svetoslav Ganov <svetoslavganov@google.com> Fixing issues with the AccessibilityNodeInfo cache.

1. Before there were two caches one in the app process that
kept track only the ids of infos that were given to a
querying client and one in the querying client that
holds the infos. This design requires precise sync
between the caches. Doing that is somehow complicated
since the app has cache for each window and it has
to intercept all accessibility events from that window
to manage the cache. Each app has to have a cache for
each querying client. This approach would guarantee that
no infos are fetched twice but due to its stateful nature
and the two caches is tricky to implement and adds
unnecessary complexity. Now there is only one cache in
the client and the apps are stateless. The client is
passing flags to the app that are a clue what nodes to
prefetch. This approach may occasionally fetch a node
twice but it is considerably simpler and stateless
from the app perspective - there is only one cache.
Fetching a node more than once does not cause much
overhead compared to the IPC.

Change-Id: Ia02f6fe4f82cff9a9c2e21f4a36747de0f414c6f
om/android/server/accessibility/AccessibilityManagerService.java
e639da7baa23121e35aa06d6e182558e0e755696 22-Feb-2012 Dianne Hackborn <hackbod@google.com> New development permissions.

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

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

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

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

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

Change-Id: I6571785c6bb5f6b291862b7a9be584885f88f3a5
om/android/server/pm/PackageManagerService.java
om/android/server/pm/Settings.java
b8678d76c3e09d0d65255f3971b6112a48e19099 23-Feb-2012 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 210c1a26 to master

Change-Id: Ic44193e62215086c22225f2def5eee3159d26ae8
5489e4af193e7e57ac5af4f6ea2632f5df5bda80 22-Feb-2012 Craig Mautner <cmautner@google.com> Merge "- Consolidate all animations in a single place outside of layout loop. - Move mPolicy.startAnimationLw and mPolicy.finishAnimationLw into same method as mPolicy.animatingWindowLw. - Fix first parameter of performLayoutLockedInner(initial, ...) to pass true on initial pass."
0d04e245534cf777dfaf16dce3c51553837c14ff 21-Feb-2012 Svetoslav Ganov <svetoslavganov@google.com> Improving accessibility APIs used for UI automation.

1. UiTestAutomationBridge was accessing the root node in the
active window by tracking the accessibility event stream
and keeping the last active window changing event. Now
the bridge is stateless and the root node is fetched by
passing special window and view id with the request to
the system.

2. AccessibilityNodeInfos that are cached were not finished,
i.e. not sealed, causing exception when trying to access
their children or rpedecessors.

3. AccessibilityManagerService was not properly restoring its
state after the UI automation bridge disconnects from it.
I particular the devices was still in explore by touch mode
event if no services are enabled and the sutomation bridge
is disconnected.

4. ViewRootImpl for the focused window now fires accessibility
events when accessibility is enabled to allow accessibility
services to determine the current user location.

5. Several missing null checks in ViewRootImpl are fixed since
there were scenraios in which a NPE can occur.

6. Update the internal window content querying tests.

7. ViewRootImpl was firing one extra focus event.
bug:6009813
bug:6026952

Change-Id: Ib2e058d64538ecc268f9ef7a8f36ead047868a05
om/android/server/accessibility/AccessibilityManagerService.java
f3b7653c1564fc9914640c1c734a15b97566042b 21-Feb-2012 Dianne Hackborn <hackbod@google.com> am 01011c3d: Fix issue #6037252: Screen shifts after all apps are upgraded

* commit '01011c3d7ce4f76c1a76b33a04fc63da784ddbea':
Fix issue #6037252: Screen shifts after all apps are upgraded
01011c3d7ce4f76c1a76b33a04fc63da784ddbea 21-Feb-2012 Dianne Hackborn <hackbod@google.com> Fix issue #6037252: Screen shifts after all apps are upgraded

Two things: (1) make sure the boot message is always positioned within
the entire unrestricted display, and (2) allow the dim background to go
on top of the nav bar when being used for the boot message (this latter
is really a hack that should be more generally fixed in the future).

Change-Id: I7261b044eb802a39cadff931b50a679ff18781d6
om/android/server/wm/DimAnimator.java
om/android/server/wm/WindowManagerService.java
2f995a7eaa1aba2c038c698039ed6837dfe7e51e 21-Feb-2012 Craig Mautner <cmautner@google.com> - Consolidate all animations in a single place outside of layout loop.
- Move mPolicy.startAnimationLw and mPolicy.finishAnimationLw into same method as mPolicy.animatingWindowLw.
- Fix first parameter of performLayoutLockedInner(initial, ...) to pass true on initial pass.

Change-Id: If1b47bb8a7e03cf427769c657e371abc0910b3e3
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
94d0024557f415b8463f085c9784a3e1d02b58c6 12-Jan-2012 Todd Poynor <toddpoynor@google.com> Power HAL PowerManagerService hookup

Use PowerHAL to set system awake/suspend state.

Change-Id: If58a6f548564ea141b68f304455997d9ff04eace
Signed-off-by: Todd Poynor <toddpoynor@google.com>
om/android/server/PowerManagerService.java
ba217ef207f85559f6b8cab1a5166414a7276805 17-Feb-2012 Jeff Brown <jeffbrown@google.com> Merge "Ignore broken input channel when finishing input event."
9806a2307f3e47e847ad5e62e302eab36d3eb3e4 17-Feb-2012 Jeff Brown <jeffbrown@google.com> Ignore broken input channel when finishing input event.

There are occasional races during application shut down where the
input dispatcher will close an input channel before the application
has finished its last event. So just ignore EPIPE.

Also tweak the logging for failed input event injection to make
it clearer which pid was trying to perform the injection.

Bug: 6013004
Change-Id: I7bbb01441d41762b03eafd4d39dcf0323e1cadf3
om/android/server/wm/WindowManagerService.java
b9ee4f4425612037139dba70d0a7d9a089eeb3d2 17-Feb-2012 Dianne Hackborn <hackbod@google.com> Merge "Revert "Don't wait for current activity to pause before resuming next.""
621e2fecb559d5afa5e43d58e8a7ee2d71c74430 17-Feb-2012 Dianne Hackborn <hackbod@google.com> Revert "Don't wait for current activity to pause before resuming next."

This reverts commit cbb722ed06092a9e2be37150aa8bc635f0fe21da.
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityRecord.java
om/android/server/am/ActivityStack.java
3c3155abea3a6776c8a903dbbdc3e7c7d810fb4f 17-Feb-2012 Amith Yamasani <yamasani@google.com> Merge "Fix Power Control widget"
67cf7d314b5b94db1a9f1c57140b6615b0ea8291 16-Feb-2012 Amith Yamasani <yamasani@google.com> Fix Power Control widget

Some changes in AppWidgetService were interfering with widget permissions.

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

Bug: 6019296
Change-Id: I5e519fd3fbbfa5b3fcc5c297b729c671dac8e7c7
om/android/server/AppWidgetServiceImpl.java
c157673a590e670a9a509ec13d47ffada0b56335 02-Feb-2012 John Grossman <johngro@google.com> Add the CommonTimeManagementService.

Add a small service to the high level core set of system services to
control the configuration of the native common time service. This
service is responsible for controlling policy regarding when the
common time service should be allowed to run, which networks it is
allowed to run on, what priority it runs at in the master election
algorithm, and so on.

Change-Id: I1fcd834c0286aea0df9557520693a3f42de59d69
Signed-off-by: John Grossman <johngro@google.com>
om/android/server/CommonTimeManagementService.java
om/android/server/SystemServer.java
cb46d80d217899e51c3d1ad6fc930d9b61883cf9 16-Feb-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Adding shell commands for modifying content."
f535cb04f08575d29118fab0342b1e6274091734 15-Feb-2012 Masanori Ogino <ogino.masanori@sharp.co.jp> Wipe the user data out in any case.

When the external storage is not mounted, the android system won't
wipe out the user data (i.e. "/data") if wipeData() is called with
the flag WIPE_EXTERNAL_STORAGE.

We think that the user data should be wiped out in any options and
also wipeData(int) method currently supports also for a external
storage. So we will also change the API reference comment.

If we should care about backward compatibility of this method behavior
with the option WIPE_EXTERNAL_STORAGE, then we would add an another
bitmask something like a ALWAYS_RESET.

Change-Id: Id7bf673c722bacc0480d32e46553b9a348513879
om/android/server/DevicePolicyManagerService.java
4a06c8008b2edd6677f9a411af79b0a4971b87fe 16-Feb-2012 Jeff Brown <jeffbrown@google.com> Simplify Choreographer API.

Removed the listeners and schedule animation / draw methods.
Instead all requests are posted as one-shot callbacks, which is a
better match for how clients actually use the Choreographer.

Bug: 5721047
Change-Id: I113180b2713a300e4444d0d987f52b8157b7ac15
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
25872aa3ef189ae5506a923398af11ce5eb1a9b9 04-Feb-2012 Svetoslav Ganov <svetoslavganov@google.com> Adding shell commands for modifying content.

1. Added methods to the ActivityManagerService remote interface
that allow accessing content providers outside of an application.
These methods are guarded by an internal signature protected
permission which is given to the shell user. This enables a
shell program to access content providers.

2. Implemented a shell command that takes as input as standart
fagls with values and manipulates content via the content provider
mechanism.

Change-Id: I2943f8b59fbab33eb623458fa01ea61a077b9845
om/android/server/am/ActivityManagerService.java
om/android/server/am/ContentProviderRecord.java
ea555e27407ad2a32d2682c08f423d2af71f2a91 15-Feb-2012 Amith Yamasani <yamasani@google.com> Merge "Mixed up uid and user-id."
c600e21ffc723260b487e0b8b097452f6b880aab 15-Feb-2012 Amith Yamasani <yamasani@google.com> Mixed up uid and user-id.

1000 is not a userId !

Potential fix for #5990664,#6008692

Change-Id: I528e742e494bc24beef7b59ccb315b7a5d4e84fe
om/android/server/am/ActivityManagerService.java
652fdf9b0e47adaa316c6d66aa9a4cfc95475e4c 14-Feb-2012 Robert Greenwalt <rgreenwalt@google.com> am c8711ca7: Merge "Stop using shared DUN APN when tethering stops." into ics-mr1

* commit 'c8711ca7eb962072ccd6175be3cfa861195ba6cd':
Stop using shared DUN APN when tethering stops.
ef9d55a6b004685daefee43b49e833c1030de017 14-Feb-2012 Mike Lockwood <lockwood@google.com> am 8f7cc7af: am b9be8eff: am ffc89899: Merge "Don\'t pulse LED on new notification unless notification has LED flag set" into ics-mr1

* commit '8f7cc7af66520e3bd5e59e8eadb6907e3e043661':
Don't pulse LED on new notification unless notification has LED flag set
594eba859f0ce6d00127f83b38a93f8996e2735c 14-Feb-2012 Mike Lockwood <lockwood@google.com> am ffc89899: Merge "Don\'t pulse LED on new notification unless notification has LED flag set" into ics-mr1

* commit 'ffc89899652f5c815b6d156f55a909001420891e':
Don't pulse LED on new notification unless notification has LED flag set
2384386f3132839bec0cf460a3f19d068ad28507 13-Feb-2012 Robert Greenwalt <rgreenwalt@google.com> Stop using shared DUN APN when tethering stops.

Backported from master, including a bug fix and a cdma enhancement.

Even if other people are sharing the connection (ie, carrier wants
default and tethered traffic on the same APN) stop using a carrier-
described APN when the tethering stops.

bug:5972599
Change-Id: I25e4831855e6b62c0c3ab3a6f4d4846aaee6ac50
om/android/server/ConnectivityService.java
ece18efb35f762d2f7d2e802be29464ec6abdfbf 14-Feb-2012 Mike Lockwood <lockwood@google.com> Don't pulse LED on new notification unless notification has LED flag set

Bug: 6006131

Change-Id: I719c7d68e310bfaca227f6286159b3993784926b
Signed-off-by: Mike Lockwood <lockwood@google.com>
om/android/server/NotificationManagerService.java
07f941f026ed2aef8945d0d44134162b3db50eb5 13-Feb-2012 Dianne Hackborn <hackbod@google.com> Merge "Move BroadcastQueue out of the ActivityManager class."
ec5b5156e7a6f46cb90f1b3e980b70a11384f43c 13-Feb-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix issue where screen rotations would stop animating."
4dcece8e509027cd28e20b1f9f14d2c0446d84c0 10-Feb-2012 Dianne Hackborn <hackbod@google.com> Fix issue where screen rotations would stop animating.

If we went through the update loop multiple times, and had finished
animating the first time, we would blow away that information the
second time and never kill the animation.

Also moved killing the animation back up to the animation step --
this involves destroying surfaces and such, and so really should
be done as part of the surface transaction. We can also consider
the screen rotation animation object to be owned by the animation,
so it can destroy it when done.

Change-Id: If24356c509c66d046f2ddfd9ad5bfe12504d7716
om/android/server/wm/ScreenRotationAnimation.java
om/android/server/wm/WindowManagerService.java
62d1058cc972a8fcb7739547abd3298f5d98a9b1 13-Feb-2012 Jeff Brown <jeffbrown@google.com> Merge "Remove the input dispatcher throttle."
40c8db5a28e9abae2033facce1354e3677911fcc 11-Feb-2012 Dianne Hackborn <hackbod@google.com> Move BroadcastQueue out of the ActivityManager class.

Change-Id: Ib468481588a1aa506ff00f3c4b1a6ecf672c7b99
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityStack.java
om/android/server/am/BroadcastQueue.java
om/android/server/am/BroadcastRecord.java
om/android/server/am/CompatModePackages.java
41b564f354e7bbe1df96fdf2fe60ebafb3f06a18 11-Feb-2012 Wink Saville <wink@google.com> resolved conflicts for merge of e8b57fea to master

Change-Id: I2ccf2b4cb73faadd0c8608cc21dda5db888d2937
c199e2c7e0f8895273fdd912c5c88495a8b30e35 11-Feb-2012 Mike Lockwood <lockwood@google.com> Merge changes Iefeba018,I1ce5b26d,Ie3f59793,Id3c5e1ec,I9063154a,Ib7bd88a3,I20963df8,I01060b08,I7dc29739,I5c55a051,Ia07aa3c4,I3194ea94,I0dc37cce,Ic3a7bb65,I0a7eaecf,Ifa7b0614,Ice952c8e,Ia5abdb9e,Ifcb310f9,If5f4ec97,I4767690f,I79824179,I6e0f981e,Id60ae7f6

* changes:
EthernetDataTracker: Don't run DHCP or set network available until link is up
Only send master volume or mute updates if the settings have changed
Make AudioManager.adjustMasterVolume public and hidden
Allow disabling network stats support in a resource overlay
Restore persisted master volume if the media server restarts
Don't allow changing master volume when muted
Show the flags in package manager debugging.
Modified the constructor of EndpointBase
Add a getEndpointInfo accessor to AIDL-generated RPC proxy classes
Defer persisting master data to avoid excessive database writes
Add an option that disables the AUDIO_BECOMING_NOISY intent send when a headset is hotplugged.
Remove reference counting and client death notification for master mute
AudioService: Send broadcasts when master volume and mute state change
Use the new get/putFlattenable methods on RpcData.
Don't try to unmarshal void return types when there are out parameters being returned.
AudioManager: Add wrapper methods for master volume support
AudioManager: Add support for master mute
NetworkTimeUpdateService: Schedule NTP on ethernet connect as well as wifi
For events, require that the parameters be marked in.
PhoneWindowManager: stifle warning that ITelephony service does not exist
AudioManager: transparently convert volume settings for other streams to master volume if config_useMasterVolume is set.
Support putting Flattenables in Lists.
Was generating code that uses the wrong RpcData.
store the hw addr in the extraInfo field of ethernet NetworkInfos
673b352f6b2566f04ce25ec7e404132b75190cde 11-Feb-2012 Wink Saville <wink@google.com> am 197fe269: Merge "Add OEM specific USB mode enumeration based on ro.bootmode property" into ics-mr1

* commit '197fe26940022be75384f4038dd789f446d33122':
Add OEM specific USB mode enumeration based on ro.bootmode property
0ee0969ffb92d40c290c9da9bfc6f2cd5b1ba3aa 11-Feb-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "UI automation service disconnected upon package change."
9b666d0faadd26827ca5b7cf6af3aa94af6adcd9 10-Feb-2012 Svetoslav Ganov <svetoslavganov@google.com> UI automation service disconnected upon package change.

1. The AccessibilityManagerService used to disable the IU
automation service on package change. This behavior
was incorrect since the automation service has to
survive package installations.

bug:5975207

Change-Id: Idb5e76d02625c333a5842a6b5c5bc90c9b9634c9
om/android/server/accessibility/AccessibilityManagerService.java
20963df86f3f27f4c54c1ddf177c57d58f0a9128 05-Jan-2012 Joe Onorato <joeo@google.com> Show the flags in package manager debugging.
om/android/server/pm/Settings.java
a07aa3c4c7527eeb42346934a54cd79f3f15bef7 07-Dec-2011 Jason Simmons <jsimmons@google.com> Add an option that disables the AUDIO_BECOMING_NOISY intent send when a headset is hotplugged.

HDMI audio hotplug is treated as a "headset" in the audio services. When a headset is unplugged,
WiredAccessoryObserver sends an AUDIO_BECOMING_NOISY broadcast so that applications can take
appropriate action (e.g. pausing audio if headphones were unplugged).

However, on Tungsten, when you unplug HDMI audio, the Music2 service was getting the NOISY intent
and pausing the transmitter media player. We could add Tungsten-specific code to Music2 to
disable this behavior, but it's probably better to disable this broadcast entirely because
applications on Tungsten probably shouldn't treat HDMI hotplug in the same way they treat
headphone hotplug on phones.
om/android/server/WiredAccessoryObserver.java
a5abdb9e580f7598ae5553f4490d16871453f9f5 09-Nov-2011 Mike Lockwood <lockwood@android.com> NetworkTimeUpdateService: Schedule NTP on ethernet connect as well as wifi

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/NetworkTimeUpdateService.java
f0451db4224e2b6360efa39cd65c88cd391f14e0 10-Feb-2012 Amith Yamasani <yamasani@google.com> Merge "Multi-user - wallpaper service"
37ce3a8af6faab675319d0803b288ab1dddc76be 06-Feb-2012 Amith Yamasani <yamasani@google.com> Multi-user - wallpaper service

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

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

Change-Id: I19c8c3296d3d2efa7f28f951d4b84407489e2166
om/android/server/AppWidgetServiceImpl.java
om/android/server/SystemBackupAgent.java
om/android/server/WallpaperManagerService.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/ProviderMap.java
54a4a41a60ea6c32787dcf16522053cd192b90cd 03-Nov-2011 Joe Onorato <joeo@google.com> Make ActivityManagerService just kill apps when they crash on headless devices.
om/android/server/am/ActivityManagerService.java
c067c9c373e673b2474e8dc2e5a00db274d5e13d 31-Oct-2011 Mike Lockwood <lockwood@android.com> Add support for disabling wallpaper service

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/SystemServer.java
afd8f1820eeee21e960be44b22113dc2cecacf98 07-Feb-2012 Kazuhiro Ondo <kazuhiro.ondo@motorola.com> Add OEM specific USB mode enumeration based on ro.bootmode property

This patch is adding a capability so that OEM can override USB mode
in case the device is boot up with OEM specific mode. (i.e. modem
debug, factory test etc.)

Bug:5964042
Change-Id: Ic8e23d302563ce71eedb74ce94cca8c65838a4f7
om/android/server/usb/UsbDeviceManager.java
491f40ddf2a87d62f825cbf5b2088e86713b2032 31-Oct-2011 Mike Lockwood <lockwood@android.com> Fix merge problem

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/PowerManagerService.java
cba928cef7d614d375253246f014c4a52bb8b913 18-Aug-2011 Mike Lockwood <lockwood@android.com> SystemServer: Add support for disabling AudioService and MountService

Using the same convention in system_init.cpp, you can disable these
services by setting system properties:

system_init.startaudioservice=0
system_init.startmountservice=0

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/SystemServer.java
11ca31729c05a5c82aa298fb52ddebbe08a26627 10-Feb-2012 Mike Lockwood <lockwood@google.com> Merge changes Id747dc81,I3a74bd36,I2395527c,I86aeb066,Ic33d5766,I7bef7390,I4b797dd8,Id3622e9e,I28087c63,Ia1c6d909,I95a766dd,I6c0236c5,Ib71287f4,I4bcbefdc,I22a7cb8d,Ie24dbeaf,I7dbc4b45,I21d524ea,Iaa5bf14e,I7db766c3,I93fcaca2,I1eb72044,I05ffbe7c,Ifdfe2ff8,Ia8f767a2

* changes:
Fix problems dispatching media button events on headless devices
Add headless mode for running the framework without the surface flinger
SettingsProvider: Allow overridding default value for Setttings.Secure.DEVICE_PROVISIONED
Load lockscreen.disabled setting on database create as well as upgrade
SystemUI: Log an error instead of throwing an exception if navigation bar is enabled in tablet UI
SettingsProvider: Add support for overriding lockscreen.disabled default value
Allow overriding default STAY_ON_WHILE_PLUGGED_IN setting value in an overlay
Disable output processing when opening serial port.
Update aidl for new Broker API.
aidl: All flattenable types now must also be parcelable.
Update aidl to new APIs.
Suport RpcData as a parcelable type.
Modified AIDL to support authentication
Fix disconnect from wired ethernet issues.
Fix PresenterClass by adding a _listener field
add presenters to aidl.
Add SerialPort.sendBreak()
Generate fallthrough for unhandled actions in RPC methods.
PhoneWindowManager: Disable boot progress dialog on headless builds
Support custom flattenable types for RPC.
SystemServer: Don't start A2DP service if audio is not enabled
Add RpcData as a built-in marshallable type.
Add the full suite of RpcData types.
Checkpoint adding @home RPC support to aidl
ActivityManager: Make sure BOOT_COMPLETED Intent is sent when running headless
1e11c6519a5b657ad6af4369b8580fbe681ebe0e 10-Feb-2012 Mike Lockwood <lockwood@android.com> Merge "New Serial Manager API:"
d262744b7e4fd9e01a9a0a5d70927328e9391bf9 10-Feb-2012 Dianne Hackborn <hackbod@google.com> Merge "Some cruft removal."
21fbd1f7da53dc044737803dccddf8099f1fc1e9 10-Feb-2012 Dianne Hackborn <hackbod@google.com> Some cruft removal.

Change-Id: If4a94bfd4a033748eb13e8f3ff25e24382746778
om/android/server/am/ActivityManagerService.java
om/android/server/pm/PackageManagerService.java
om/android/server/pm/Settings.java
d747dc8179df3cfcc68df78ec46b93992de52eaf 13-Sep-2011 Mike Lockwood <lockwood@android.com> Fix problems dispatching media button events on headless devices

Signed-off-by: Mike Lockwood <lockwood@android.com>

Conflicts:

policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
om/android/server/am/ActivityManagerService.java
om/android/server/wm/WindowManagerService.java
3a74bd36f8af1a12353db8ddbc5227d33c2ce680 12-Aug-2011 Mike Lockwood <lockwood@android.com> Add headless mode for running the framework without the surface flinger

Enabled by setting system property ro.config.headless to 1
This will allow the framework to run without starting activities,
system UI and the keyguard.
Framework can still run services, content providers and broadcast receivers.

Signed-off-by: Mike Lockwood <lockwood@android.com>

Conflicts:

policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
services/java/com/android/server/PowerManagerService.java
services/java/com/android/server/am/ActivityManagerService.java
om/android/server/PowerManagerService.java
om/android/server/SystemServer.java
om/android/server/am/ActivityManagerService.java
om/android/server/wm/WindowManagerService.java
93fcaca2aa329e60f8fecc69cb81e7b0fe47066b 19-Sep-2011 Mike Lockwood <lockwood@android.com> SystemServer: Don't start A2DP service if audio is not enabled

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/SystemServer.java
a8f767a2395c0127b7f5adb9e207fdd994144e17 31-Aug-2011 Mike Lockwood <lockwood@android.com> ActivityManager: Make sure BOOT_COMPLETED Intent is sent when running headless

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/am/ActivityManagerService.java
b01e8bf57b7492b77e3445db51471edcbadda75e 30-Aug-2011 Mike Lockwood <lockwood@android.com> New Serial Manager API:

SerialManager: provides access to serial ports
SerialPort: for reading and writing data to and from serial ports

IO with both array based and direct ByteBuffers is supported.

Accessing serial ports requires android.permission.SERIAL_PORT permission

Each platform must configure list of supported serial ports in the
config_serialPorts resource overlay
(this is needed to prevent apps from accidentally accessing the bluetooth
or other system UARTs).

In addition, the platform uevent.rc file must set the owner to the
/dev/tty* files to "system" so the framework can access the port.

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/SerialService.java
om/android/server/SystemServer.java
c62242a55a5cfb82f69c7db5208e90667da7ec56 10-Feb-2012 Marco Nelissen <marcone@google.com> Merge "Fix "dumpsys activity provider""
59d46b06653b5f55c2f26d3ff8d642ffda0cecd8 10-Feb-2012 satok <satok@google.com> Merge "Add an api to switch to the next IME and subtype"
688bd47fccf1a1373e6287bc49b5b33fad12b7f3 09-Feb-2012 satok <satok@google.com> Add an api to switch to the next IME and subtype

Bug: 5975302

Change-Id: I48aa4220159c65f456d61a324efcdf0a1ceec91c
om/android/server/InputMethodManagerService.java
a573f6a1d9b12393fbdfd2c0850499973849854b 10-Feb-2012 Dianne Hackborn <hackbod@google.com> Some hardening of isolated processes by restricting access to services.

Services now must explicitly opt in to being accessed by isolated
processes. Currently only the activity manager and surface flinger
allow this. Activity manager is needed so that we can actually
bring up the process; SurfaceFlinger is needed to be able to get the
display information for creating the Configuration. The SurfaceFlinger
should be safe because the app doesn't have access to the window
manager so can't actually get a surface to do anything with.

The activity manager now protects most of its entry points against
isolated processes.

Change-Id: I0dad8cb2c873575c4c7659c3c2a7eda8e98f46b0
om/android/server/am/ActivityManagerService.java
a0c283eac33dd2da72235751bbfa4f2d9898d5ea 09-Feb-2012 Dianne Hackborn <hackbod@google.com> Add new feature for running services in "isolated" sandbox processes.

This reserves a range of uids (for each user) in which these processes
run. These uids are not associated with an application, so they
effectively run with no permissions. When a Service requests to
run in such a process through android:isolatedProcess="true", each
time it is brought up a new isolated process is started with its
own unique uid.

What we have so far gives us the basic infrastructure; more work
remains to further lock down what these uids have access to.

Change-Id: Ibfd27c75619cba61f528f46ede9113f98dc5f45b
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityStack.java
om/android/server/am/ProcessRecord.java
om/android/server/am/ServiceRecord.java
de7408c94e09a34fe0779ee894c64b4315aec17c 08-Feb-2012 Marco Nelissen <marcone@google.com> Fix "dumpsys activity provider"

Change-Id: Ic0678a6edb539bb5648529dd9c38a382bc9cc3fb
om/android/server/am/ActivityManagerService.java
om/android/server/am/ProviderMap.java
f6a7e1f7cd12fbbb2e35391850aec7d7d57b8f66 08-Feb-2012 Dianne Hackborn <hackbod@google.com> Merge "Don't wait for current activity to pause before resuming next."
6ffa76077ddbecb0f432a805ed9999436ac308f1 08-Feb-2012 Guang Zhu <guangzhu@google.com> Revert "Make NDC not block forever and handle restart."

Reverting because it seems to break `adb reboot`

This reverts commit 813af8d46467f41ed2d492917cbb9f9f45d2a3d7.

Change-Id: I75d827664a08799de15369c24c84cc3f49a8f297
om/android/server/NativeDaemonConnector.java
om/android/server/NativeDaemonEvent.java
308028049a75b36d5ed525c0bcef441da850c2a5 03-Feb-2012 Jeff Brown <jeffbrown@google.com> Remove the input dispatcher throttle.

This is part of a series of changes to improve input system pipelining.

Bug: 5963420
Change-Id: Iab33594bc5df8aa05232ef64c64e98fc61c5bf52
om/android/server/wm/InputManager.java
cbb722ed06092a9e2be37150aa8bc635f0fe21da 08-Feb-2012 Dianne Hackborn <hackbod@google.com> Don't wait for current activity to pause before resuming next.

We can do this now that we ensure processes are not killed until
they have been stopped. If the two activities are in the same
process, the ordering will still be correct because we schedule
the pause before the resume.

Change-Id: I209ba739b41e832d35db3edd34d1e7af354cc183
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityRecord.java
om/android/server/am/ActivityStack.java
ec159352fe7fb4c6a476c3542dc65037cb57f982 08-Feb-2012 Robert Greenwalt <rgreenwalt@google.com> Merge "Make NDC not block forever and handle restart."
813af8d46467f41ed2d492917cbb9f9f45d2a3d7 07-Feb-2012 Robert Greenwalt <rgreenwalt@google.com> Make NDC not block forever and handle restart.

Need changes in core.

Still possible for netd to get wedged but system won't die because of it.
Leads the way to having forking netd - then only individual commands would
wedge, promoting stability.

bug:5864209
Change-Id: Ifcd37511c8239fe3df7e9070869b63a9c5649bd2
om/android/server/NativeDaemonConnector.java
om/android/server/NativeDaemonEvent.java
b5718c29aece51dd337e719c5b94be867833d53e 08-Feb-2012 Jeff Sharkey <jsharkey@android.com> Merge "Send broadcast when changing restrict background."
3d9a9d6edd28e06e163fc85c91bf9b6cc0aa7859 07-Feb-2012 SangWook Han <swhan@nemustech.com> WallpaperManagerService does not properly propagate setDimensionHints()

During bootstrap, Launcher could be initialized in between
WallpaperManagerService and ImageWallpaper. In case Launcher's
WindowManager.suggestDesiredDimenstions() is called after
WallpaperManagerService begin to create ImageWallpaper and before
ImageWallpaper Engine attached, that mostly resulted in Black Edge
of image wallpaper.

This can be reproduced easily (1 in 3)
- set image wallpaper other than default.
- modify Launcher/Workspace to call suggestDesiredDimenstions(w,h)
- reboot

To fix Black Edge, WallpaperManagerService modified to maintain
a flag mDesiredDimensionChanging and set desired size at Engine
attach. Black Edge still can be shown for some moment. but, always
recoverd. To eliminate Black Edge it seems that
IWallpaperConnection.aidl need more method.

NOTE: Many market launcher and some phone vendor launcher call
suggestDesiredDimenstions with argument (w,h) instead aosp's
original (w*2,h) for single page wallpaper.

Change-Id: Ib28636e6b2964d9deeee1f1e1d304554cc7a837e
om/android/server/WallpaperManagerService.java
1f8ea2dcd1ed3cde4b84fbb27b5a55b3fea7ff2a 07-Feb-2012 Jeff Sharkey <jsharkey@android.com> Send broadcast when changing restrict background.

When changing global restrict background status, send connectivity
change broadcast, since it radically changes DISCONNECTED/BLOCKED
status system-wide.

Also reduce verbose stats logging.

Bug: 5854466
Change-Id: I3b612c520f50cc3000a3a569b7e0ab5f691cc2bd
om/android/server/ConnectivityService.java
om/android/server/net/NetworkPolicyManagerService.java
om/android/server/net/NetworkStatsRecorder.java
e7171effdf9ef0700782520187c0a292b0a74759 07-Feb-2012 Jeff Sharkey <jsharkey@android.com> Merge "List rotated netstats files during --checkin dump."
7d6934f3eb30fbcd41e753fa3bec38ed75c30925 02-Feb-2012 John Grossman <johngro@google.com> Add the CommonTimeManagementService.

Add a small service to the high level core set of system services to
control the configuration of the native common time service. This
service is responsible for controlling policy regarding when the
common time service should be allowed to run, which networks it is
allowed to run on, what priority it runs at in the master election
algorithm, and so on.

Change-Id: I37308e882a0e8c4cd3e38c4f47b7c40b9150ba31
om/android/server/CommonTimeManagementService.java
om/android/server/SystemServer.java
706498d387eaceb574cf4aa982fee3c288819dad 07-Feb-2012 Jeff Sharkey <jsharkey@android.com> List rotated netstats files during --checkin dump.

Also disable verbose logging.

Change-Id: I4c51e05d695eac43f0d9c28f9699f1655c642a99
om/android/server/net/NetworkStatsService.java
a52b6e7bcf5ee6e80a4443f19b31a3df0ec4e518 07-Feb-2012 Craig Mautner <cmautner@google.com> Merge "Extract code from performLayoutAndPlaceSurfacesInnerLocked() into multiple methods."
61ac6bb250494db602b485491a493b64776eaf3b 03-Feb-2012 Craig Mautner <cmautner@google.com> Extract code from performLayoutAndPlaceSurfacesInnerLocked() into multiple methods.

Change-Id: I80152c38741ce73b92da9483cfed84efbac34f89
om/android/server/wm/WindowManagerService.java
13c7b82234c1c76aca74e23d635a69099611b18e 07-Feb-2012 Amith Yamasani <yamasani@google.com> Merge "Check for null ActivityInfo."
2f6c9eb9c244e206ce495c7ea118bcead1fa4162 07-Feb-2012 Amith Yamasani <yamasani@google.com> Check for null ActivityInfo.

Bug: 5970556
Change-Id: I87ebad1918311f24333d16cb6732742a1dd96685
om/android/server/am/ActivityManagerService.java
241dde2306202e7655fdf41d5381f2874e47e108 03-Feb-2012 Jeff Sharkey <jsharkey@android.com> Unify shorthand for byte-based units.

Change-Id: If990859dee3f0973e1d4c48f05312c84071b3328
om/android/server/net/NetworkPolicyManagerService.java
om/android/server/net/NetworkStatsService.java
1ef7d13172248848805b9ceb6161b0741d8580dd 03-Feb-2012 Amith Yamasani <yamasani@google.com> Merge "Multi-user - 1st major checkin"
742a67127366c376fdf188ff99ba30b27d3bf90c 04-May-2011 Amith Yamasani <yamasani@google.com> Multi-user - 1st major checkin

Switching activity stacks
Cache ContentProvider per user
Long-press power to switch users (on phone)

Added ServiceMap for separating services by user
Launch PendingIntents on the correct user's uid
Fix task switching from Recents list
AppWidgetService is mostly working.

Commands added to pm and am to allow creating and switching profiles.

Change-Id: I15810e8cfbe50a04bd3323a7ef5a8ff4230870ed
om/android/server/AppWidgetService.java
om/android/server/AppWidgetServiceImpl.java
om/android/server/BackupManagerService.java
om/android/server/NotificationManagerService.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityRecord.java
om/android/server/am/ActivityStack.java
om/android/server/am/PendingIntentRecord.java
om/android/server/am/ProviderMap.java
om/android/server/am/ServiceRecord.java
om/android/server/am/TaskRecord.java
om/android/server/pm/Installer.java
om/android/server/pm/PackageManagerService.java
om/android/server/pm/UserManager.java
04b74ec3af725ecb57f70d6e40a9865a2952a6be 03-Feb-2012 Vairavan Srinivasan <vairav@codeaurora.org> SystemServer: Looper's getMainLooper to return ServerThread

Fix to ensure Context.getMainLooper and Looper.getMainLooper
returns ServerThread for system_server. Currently, Looper's
getMainLooper returns null.

Change-Id: I5324a1cc00e27a79ba97836a9377a584e6f76b15
om/android/server/SystemServer.java
f0be1d89bf1cf5592ea1786d837f4f2329bdf66d 21-Jan-2012 Robert Greenwalt <rgreenwalt@google.com> Add some logging to NDC.

We're getting some lockups of netd and this can help point us
in the right direction.

bug:5864209
Change-Id: Id8bdb0a758c5b161e0143de61b5f39c3a982e329
om/android/server/NativeDaemonConnector.java
34c4d2e249085344cabfe418e8f973f2766cf6c9 03-Feb-2012 Jeff Sharkey <jsharkey@android.com> Merge "Support snoozing of data warning notification."
0e2e5f8b564bebd5798c9fa387fbff96429ab5d2 03-Feb-2012 Jeff Sharkey <jsharkey@android.com> Support snoozing of data warning notification.

Introduce second snooze timestamp to support dismissal of data usage
warning notification. Also explicitly set notification "when" to
avoid fighting with other notifications, such as ongoing downloads.

Bug: 5443756, 5262414
Change-Id: I03342c25b0410b1b2db84de9a40884f04cb1d8ae
om/android/server/net/NetworkPolicyManagerService.java
2c5674aa7ba006a712cf885be1657f754f2dee96 02-Feb-2012 Jeff Sharkey <jsharkey@android.com> Merge "Avoid NDC deadlock when re-arming network alert."
25ce9ed57f137dc0b21045ab90fe595640ebf926 02-Feb-2012 Jeff Sharkey <jsharkey@android.com> Avoid NDC deadlock when re-arming network alert.

When NDC delivers limitReached() event, NMS re-arms the alert, which
makes another call back to NDC. If NDC already started processing
another call, this causes deadlock.

Fix this by re-arming on a handler thread.

Bug: 5879848
Change-Id: I46fa78fe1f1122c5f31dd6020483e5ae89a9f39d
om/android/server/net/NetworkStatsService.java
659793bcd0e0d08306d841f3836a891e56e4e756 02-Feb-2012 Chet Haase <chet@google.com> Merge "Add Developer Option setting for Animator scaling."
c38fa1f63674971f9ac6ced1a449fb81026b62f7 02-Feb-2012 Chet Haase <chet@google.com> Add Developer Option setting for Animator scaling.

This new setting allows users to set a scale factor for the
duration and startDelay of all Animator-based animations. This
setting is very similar to the Transition animation scale and
Window animation scale settings, except this one applies specifically
to Animator animations. The property is only accessible by users
through the Settings UI, not programmatically. The value applies
system-wide and is picked up per-process at the time of the first
ValueAnimator construction.

This is an update to a previous CL; this approach uses the WindowManager
to store the animator scale settings, instead of SystemProperties.

Change-Id: I8295fab060aa6d597ae507ded8f9c9d6077be966
om/android/server/wm/WindowManagerService.java
8bcd54b98ad5d98d47364ff14e06910deadf9302 01-Feb-2012 Dianne Hackborn <hackbod@google.com> Use Choreographer for window manager animation timing.

Change-Id: Ic34aff698c63d383ecd06af7da9957475683a1db
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
f46723b41f723ebfc9ed18c7c409b319f4b5e539 26-Jan-2012 Christopher Tate <ctate@google.com> Implement background vs foreground broadcasts

Before now, receiving a broadcast would cause a process to be hoisted
to foreground priority / cgroup. This is no longer the case: broadcasts
by default are handled in the background, with a suitably increased
timeout interval. When a given broadcast needs to be dealt with in a
more timely manner, the issuer can set the new FLAG_BROADCAST_FOREGROUND
flag on the Intent, which will produce the old foreground-priority
behavior.

To avoid priority inversions, foreground broadcasts are tracked on a
separate outgoing queue and can be in flight simultaneously with a
background-priority broadcast. If there is already a background-level
broadcast in flight to a given app and then a foreground-level one is
dispatched to that app, the app [and its handling of both broadcasts]
will be properly hoisted to foreground priority.

This change is also essentially the first step towards refactoring the
broadcast-handling portions of the Activity Manager into a more
independent existence. Making BroadcastQueue a top-level class and
regularizing its operation viz the primary Activity Manager operation
is the next step.

Change-Id: If1be33156dc22dcce318edbb5846b08df8e7bed5
om/android/server/am/ActivityManagerService.java
om/android/server/am/BroadcastRecord.java
2eecea3b48ece6f45b30fef9b41dc20075ccc94f 01-Feb-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Speedup the accessibility window querying APIs and clean up."
e630f7b31bb1e77a2eb4ef3102a25f2927cfd5c3 01-Feb-2012 Jeff Sharkey <jsharkey@android.com> Clear identity when updating network stats.

Bug: 5945461
Change-Id: Ie51ea3f107a705c395b65684f21bf4c28c7f4d33
om/android/server/net/NetworkStatsService.java
5e61331da59921413a8e2a144146a8451a054020 30-Jan-2012 Jeff Sharkey <jsharkey@android.com> Move away from deprecated NetworkInfo extra.

Because the NetworkInfo included in CONNECTIVITY_ACTION broadcast
extra does not reflect the state applicable to the calling UID, and
the last sticky broadcast may have stale state, transition to calling
ConnectivityManager.getActiveNetworkInfo() directly.

Change-Id: I86b316fbedd0273585ad5f1248b091bc3a3a5520
om/android/server/LocationManagerService.java
om/android/server/NetworkTimeUpdateService.java
b675f516da196103597542d2c03f30f70359808e 25-Jan-2012 Wink Saville <wink@google.com> Merge "Add additional debug"
c7d7eafb66f14766e9fa0013407862502dcdfb66 25-Jan-2012 Wink Saville <wink@google.com> Add additional debug

When ConnectivityService#startUsingNetworkFeature is called and the
special network is not available output some additional information.

Change-Id: I34b226a208596fa6418f1f37a0feec1d274d493c
om/android/server/ConnectivityService.java
9800e30b547627421175ca5b864a2750189d7e37 25-Jan-2012 Robert Greenwalt <rgreenwalt@google.com> am 44f64c96: Merge "Filter our v6 address from tethering dns." into ics-mr1

* commit '44f64c965776ae65ff85ef8c37afb7e14483bdf2':
Filter our v6 address from tethering dns.
03d58bc656f64f98f36462ac18dca16107da5a57 20-Dec-2011 Robert Greenwalt <rgreenwalt@google.com> Filter our v6 address from tethering dns.

Don't support IPv6 yet, and the tools crash when they see one, so
filter them out.

bug:5913888
Change-Id: Id7096aa70da4e3cc8e4702b0b489c0228a100db9
om/android/server/connectivity/Tethering.java
629c6765ca21b6ef23db893a35c62eef6a2a28b6 24-Jan-2012 Jeff Sharkey <jsharkey@android.com> Merge "Move network stats to FileRotator pattern."
4e2acb1db56583731dc59534f3728a0608113cbe 24-Jan-2012 Robert Greenwalt <rgreenwalt@google.com> am f449ea9e: Merge "Use the carrier-given dns addrs for tethering." into ics-mr1

* commit 'f449ea9e96162698f4ec6d62c70750eb50744da7':
Use the carrier-given dns addrs for tethering.
f449ea9e96162698f4ec6d62c70750eb50744da7 24-Jan-2012 Robert Greenwalt <rgreenwalt@google.com> Merge "Use the carrier-given dns addrs for tethering." into ics-mr1
08cec4ee46f8b99a202b775c4eed8699be5165e8 24-Jan-2012 Dianne Hackborn <hackbod@google.com> am a5853595: am 47163685: Merge "Another attempt at issue #5823276: home repaints after full-screen app is exited" into ics-mr1

* commit 'a5853595165a6395ca41bbc17a3dd88e12259ad1':
Another attempt at issue #5823276: home repaints after full-screen app is exited
4fdbe9e55026b490d74eb36b0afb1e95836c501c 24-Jan-2012 Dianne Hackborn <hackbod@google.com> am 47163685: Merge "Another attempt at issue #5823276: home repaints after full-screen app is exited" into ics-mr1

* commit '47163685eb90f9520e7ae0ac0984b4e1535e8e5b':
Another attempt at issue #5823276: home repaints after full-screen app is exited
47163685eb90f9520e7ae0ac0984b4e1535e8e5b 24-Jan-2012 Dianne Hackborn <hackbod@google.com> Merge "Another attempt at issue #5823276: home repaints after full-screen app is exited" into ics-mr1
63abc37356728c0575d6a62a203102ae6d97953b 12-Jan-2012 Jeff Sharkey <jsharkey@android.com> Move network stats to FileRotator pattern.

Split existing network stats into two separate classes: a recorder
which generates historical data based on periodic counter snapshots,
and a collection of historical data with persistance logic.

Recorder keeps a pending history in memory until outstanding data
crosses a specific threshold. Persisting is handled through a given
FileRotator. This pattern significantly reduces disk churn and
memory overhead. Separate UID data from UID tag data, enabling a
shorter rotation cycle. Migrate existing stats into new structure.

Remove "xt" stats until iptables hooks are ready. Avoid consuming
Entry values when recording into NetworkStatsHistory. Assign
operation counts to default route interface.

Introduce "Rewriter" interface in FileRotator with methods to enable
rewriteAll(). Introduce IndentingPrintWriter to handle indenting in
dump() methods.

Bug: 5386531
Change-Id: Ibe086230a17999a197206ca62d45f266225fdff1
om/android/server/EventLogTags.logtags
om/android/server/net/NetworkPolicyManagerService.java
om/android/server/net/NetworkStatsCollection.java
om/android/server/net/NetworkStatsRecorder.java
om/android/server/net/NetworkStatsService.java
5c25a2d338e9609d54e58cc1916c91cd8e9979ab 24-Jan-2012 Vairavan Srinivasan <vairav@codeaurora.org> MountService: unlink death notification when unregistering listeners

Change-Id: I09045cfe67f7da84bc68a50fc5440ea2c6b754e5
om/android/server/MountService.java
79311c4af8b54d3cd47ab37a120c648bfc990511 18-Jan-2012 Svetoslav Ganov <svetoslavganov@google.com> Speedup the accessibility window querying APIs and clean up.

1. Now when an interrogating client requires an AccessibilibtyNodeInfo
we aggressively prefetch all the predecessors of that node and its
descendants. The number of fetched nodes in one call is limited to
keep the APIs responsive. The prefetched nodes infos are cached in
the client process. The node info cache is invalidated partially or
completely based on the fired accessibility events. For example,
TYPE_WINDOW_STATE_CHANGED event clears the cache while
TYPE_VIEW_FOCUSED removed the focused node from the cache, etc.
Note that the cache is only for the currently active window.
The ViewRootImple also keeps track of only the ids of the node
infos it has sent to each querying process to avoid duplicating
work. Usually only one process will query the screen content
but we support the general case. Also all the caches are
automatically invalidated so not additional bookkeeping is
required. This simple strategy leads to 10X improving the
speed of the querying APIs.

2. The Monkey and UI test automation framework were registering a
raw event listener for accessibility events and hence perform
connection and cache management in similar way to an AccessibilityService.
This is fragile and requires the implementer to know internal framework
stuff. Now the functionality required by the Monkey and the UI automation
is encapsulated in a new UiTestAutomationBridge class. To enable this
was requited some refactoring of AccessibilityService.

3. Removed the *doSomethiong*InActiveWindow methods from the
AccessibilityInteractionClient and the AccessibilityInteractionConnection.
The function of these methods is implemented by the not *InActiveWindow
version while passing appropriate constants.

4. Updated the internal window Querying tests to use the new
UiTestAutomationBridge.

5. If the ViewRootImple was not initialized the querying APIs of
the IAccessibilityInteractionConnection implementation were
returning immediately without calling the callback with null.
This was causing the client side to wait until it times out. Now
the client is notified as soon as the call fails.

6. Added a check to guarantee that Views with AccessibilityNodeProvider
do not have children.

bug:5879530

Change-Id: I3ee43718748fec6e570992c7073c8f6f1fc269b3
om/android/server/accessibility/AccessibilityManagerService.java
b7ff51bde92b76757a002bb5b1889f5790986513 24-Jan-2012 Dianne Hackborn <hackbod@google.com> Another attempt at issue #5823276: home repaints after full-screen app is exited

This is between the two previous attempts. I returned the part from the
original that was breaking gallery, but have some new code to detect when
something about the window params has changed that would require a
layout pass to make sure we still do a layout then, even if the window is
not currently visible.

Change-Id: I07745e1f66022583e3076b84cc8bbe8bd2acd48f
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
eda775cc89b862e0637af132d78168e1b28820f8 24-Jan-2012 Jim Miller <jaggies@google.com> am 9f080e2a: am 44760b10: Merge "Revert "Fix 5797764: Increase lock screen\'s thread priority"" into ics-mr1

* commit '9f080e2a5bc6a268934e32201c69ea8a86900396':
Revert "Fix 5797764: Increase lock screen's thread priority"
879693917dcd007e3ba9ece63d9e8244758171ef 24-Jan-2012 Jim Miller <jaggies@google.com> am 44760b10: Merge "Revert "Fix 5797764: Increase lock screen\'s thread priority"" into ics-mr1

* commit '44760b106a4bafcf83fb356bf91683db40e0e5a2':
Revert "Fix 5797764: Increase lock screen's thread priority"
44760b106a4bafcf83fb356bf91683db40e0e5a2 24-Jan-2012 Jim Miller <jaggies@google.com> Merge "Revert "Fix 5797764: Increase lock screen's thread priority"" into ics-mr1
54dbbce1c3cd3b534b0bf7cb15c85f966ed029b7 24-Jan-2012 Jim Miller <jaggies@google.com> Revert "Fix 5797764: Increase lock screen's thread priority"

This reverts commit 6d6a70a33746ef5147ab146f1802f0db424dd2f1

This doesn't appear to have a measurable impact for this issue.
om/android/server/wm/WindowManagerService.java
fd1c5ed3705b885ce50b5ecad04ce699248b1d84 13-Jan-2012 Dianne Hackborn <hackbod@google.com> New screen rotation animation design.

We now have an animation that can start as soon as we detect to
rotate the screen, and have a different phase once the new UI
is ready to complete the transition into it.

Change-Id: I05b9c12a699232acbddc36b4a994a4452db71476
om/android/server/wm/ScreenRotationAnimation.java
om/android/server/wm/WindowManagerService.java
d9ea468d6a9cb6018ce33d3dcf9db72f02773af1 21-Jan-2012 Dianne Hackborn <hackbod@google.com> New brightness setting to adjust auto-brightness mode.

Change-Id: Icfec22be99d8c79e9ff5720b80fb9dacbba36134
om/android/server/PowerManagerService.java
7df80fa4e8a017243f26e287c23b7c9092a391fd 10-Dec-2011 Robert Greenwalt <rgreenwalt@google.com> Use the carrier-given dns addrs for tethering.

This fixes a complaint from carriers (that we used 8.8.8.8), but also
fixes the case where there is only room for one live radio
connection: the secondary connection (tethering) doesn't have a
default route to prevent on-device traffic from slipping out on the
tethering connection, but tethered dns is proxied through dnsmasq, so
it is appearing as on-device traffic and is unroutable. By switching
to the carrier-indicated dns servers we can use the host-routes
already set for those and kill two bugs with one fix.

bug:5898904
Change-Id: Ida8777687994f353b2d4f2c7db5d6ea4b6ac3882
om/android/server/connectivity/Tethering.java
30f1312b3cb584c14eba60e6809d4eeed5d906bf 23-Jan-2012 Andy McFadden <fadden@android.com> Merge "Use Map.Entry, not HashMap.Entry"
8ffd2cccf0f0458b941d2a3c69d30a6ae06fc33b 23-Jan-2012 Jim Miller <jaggies@google.com> am b1c7785c: am eaa11a72: Merge "Fix 5797764: Increase lock screen\'s thread priority" into ics-mr1

* commit 'b1c7785c1110e171d3dd3deb259b1caeed0b9da6':
Fix 5797764: Increase lock screen's thread priority
02d37b9731eaf5d79f9eb395576e030934c37f3b 21-Jan-2012 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 892d11f4 to master

Change-Id: I21eca0002100d898e167a25aaa46d896deca2a11
65f87ec733955455b66ea704e85709189b1cea80 21-Jan-2012 Christopher Tate <ctate@google.com> Merge "Fix shared-storage full backup"
73d7369e0f049a6f6ad9fac4c945fef6a3729b5c 21-Jan-2012 Christopher Tate <ctate@google.com> Fix shared-storage full backup

The special shared-storage step was mistakenly writing its data directly
to the USB output pipe rather than to the proper stacked data handling
chain that applies compression and encryption. Fix this by getting rid
of the custom handling of the shared-storage data, instead folding it
into the normal data handling flow [with a small amount of additional
management because e.g. it doesn't need a "manifest" pseudofile in the
archive stream].

Fixes bug 5897791

Change-Id: I3995b07963334d2f8cce49b247c87d3d3ff93bed
om/android/server/BackupManagerService.java
d3fe9abfb9a6a21a18abde6a98dceb423c04ebef 21-Jan-2012 Jim Miller <jaggies@google.com> am ab9601cd: am 230a7092: Merge "Fix 5863053: Add method to lock screen immediately." into ics-mr1

* commit 'ab9601cdbb95ae94088750eff9a926a572c1a4d6':
Fix 5863053: Add method to lock screen immediately.
374fa7dbbc91730315daeca7f2de7e64b932f51f 21-Jan-2012 Jim Miller <jaggies@google.com> am eaa11a72: Merge "Fix 5797764: Increase lock screen\'s thread priority" into ics-mr1

* commit 'eaa11a723150f1ea79446d7ba4bf77eb47b73337':
Fix 5797764: Increase lock screen's thread priority
eaa11a723150f1ea79446d7ba4bf77eb47b73337 21-Jan-2012 Jim Miller <jaggies@google.com> Merge "Fix 5797764: Increase lock screen's thread priority" into ics-mr1
2f36229db823d152f3efd879e751e81a601a75b0 20-Jan-2012 Andy McFadden <fadden@android.com> Use Map.Entry, not HashMap.Entry

Map.Entry is the defined return value from entrySet(). HashMap.Entry
shouldn't be used directly.

Change-Id: Ia21598c6a73fe7eb22179ce114095f779c903084
om/android/server/pm/PackageManagerService.java
om/android/server/pm/Settings.java
6d6a70a33746ef5147ab146f1802f0db424dd2f1 20-Jan-2012 Jim Miller <jaggies@google.com> Fix 5797764: Increase lock screen's thread priority

This increases lock screen's thread priority from THREAD_PRIORITY_FOREGROUND
to THREAD_PRIORITY_DISPLAY to ensure it runs before other activities that
might stall lock screen when the screen turns on.

Change-Id: I14cf9f3f5c092817bc6cf2d0a254001a5d34f744
om/android/server/wm/WindowManagerService.java
2772143eff6a69ae7182e0c2628809d8dbd8d355 20-Jan-2012 Robert Greenwalt <rgreenwalt@google.com> Merge "Stop using shared DUN APN when tethering stops."
4be9cff46e82bbb608f91fd3c9ed9fca3cf14e8b 20-Jan-2012 Dianne Hackborn <hackbod@google.com> am 1bae8066: Merge "Fix issue #5823276 again: home repaints after full-screen app is exited" into ics-mr1

* commit '1bae80668cc1d12bb4a4b93bce1960b2601de131':
Fix issue #5823276 again: home repaints after full-screen app is exited
cfbf7dedaddd825b608e87d3dcf46adf80a46976 12-Jan-2012 Dianne Hackborn <hackbod@google.com> Fix issue #5823276 again: home repaints after full-screen app is exited

Don't consider a window as a candidate for the top fullscreen window
if it is not going to be a candiate for layout.

This fix does not include the change to ignore app tokens that are
hidden. This causes problems in some dialogs that stay hidden until
their app is ready to display, but need to perform a series of relayouts
during that time to get to the right size. Dropping this part of
the change still (mostly?) seems to allow us to avoid the bad states.

Change-Id: Ic052cb1499d3287f47e9ffeac5cd2470ee5a308c
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
470fd72a06390d7a6b854583afd0ed76ce0a03ee 18-Jan-2012 Robert Greenwalt <rgreenwalt@google.com> Log netd traffic nicely.

Create a LocalLog class for logging within a service for dumping in dumps.
Use it in the NativeDaemonConnector so we can get some insight into what
is happening in these lockups.

bug:5864209
Change-Id: I68ddc58847f3c8de613be9528570f8c3157d8274
om/android/server/MountService.java
om/android/server/NativeDaemonConnector.java
om/android/server/NetworkManagementService.java
b800f277cb02f0639b66ecaf0798b30419486ab7 20-Jan-2012 Justin Ho <justinho@google.com> am 820b45c0: Merge "DO NOT MERGE Revert "Fix issue #5823276: home repaints after full-screen app is exited"" into ics-mr1

* commit '820b45c0a21980a43532b9fb9823f8aa08c64a15':
DO NOT MERGE Revert "Fix issue #5823276: home repaints after full-screen app is exited"
170997a519ce79e93e4f6984e9663232475ce92c 19-Jan-2012 Justin Ho <justinho@google.com> DO NOT MERGE Revert "Fix issue #5823276: home repaints after full-screen app is exited"

This reverts commit 01b02a734d2988c22b00f5df6346ad03d8bf52b6.

Change-Id: I848c01fc44eb9a51ead1116b2647ed838ec1825f
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
3bb3d41adbd78ab690378531d37aec369c79ead7 19-Jan-2012 Jim Miller <jaggies@google.com> am 230a7092: Merge "Fix 5863053: Add method to lock screen immediately." into ics-mr1

* commit '230a709285abc5dfd92f05d91a8997d52a59d3c7':
Fix 5863053: Add method to lock screen immediately.
230a709285abc5dfd92f05d91a8997d52a59d3c7 19-Jan-2012 Jim Miller <jaggies@google.com> Merge "Fix 5863053: Add method to lock screen immediately." into ics-mr1
6de74ff2a45591455cbb5c21d78904065e89ec89 18-Jan-2012 Christopher Tate <ctate@google.com> Fix edge cases leading to backup hanging forever

Plug a couple of apparent code paths (one not obviously reachable, but
fixed here on general principles) that could lead to a backup pass
getting confused partway through and simply never properly completing.
In this state it would leave its wakelock held forever until next
reboot. Bug 5828859.

Those fixes are a total of two lines of code. The rest of the patch
adds a textual journal of the most recently completed (or ongoing!)
backup pass's progress, with an eye to being able to isolate any such
issues that may crop up in the future.

Change-Id: If8a5e8aba11db5a1e618d8b9c9ba3038dd5377a1
om/android/server/BackupManagerService.java
93c518e4f8abd98f87cda1712b30a5a86cfa60dd 18-Jan-2012 Jim Miller <jaggies@google.com> Fix 5863053: Add method to lock screen immediately.

This fixes a bug where the device fails to lock when DevicePolicyManagerService
requests the device to be locked and the screen was off because the user hit
the power button.

The change allows DPMS to directly invoke screen lock, bypasssing the screen state.

Change-Id: Iecdda6fc61e9c519119de495be23c69c3b983921
om/android/server/DevicePolicyManagerService.java
om/android/server/wm/WindowManagerService.java
f88d1493aa968d3da551116f076edd5e21f7ccfc 13-Jan-2012 Dianne Hackborn <hackbod@google.com> am 10065177: am 2e282f35: Merge "Fix issue #5823276: home repaints after full-screen app is exited" into ics-mr1

* commit '100651779fde99f7ae2a10719d688b51115f08e9':
Fix issue #5823276: home repaints after full-screen app is exited
defda4de3d5965e87bdd8fedb248d6cd948ecb9d 13-Jan-2012 Dianne Hackborn <hackbod@google.com> am 2e282f35: Merge "Fix issue #5823276: home repaints after full-screen app is exited" into ics-mr1

* commit '2e282f35b009fe4c23daca35592dae2032641643':
Fix issue #5823276: home repaints after full-screen app is exited
2e282f35b009fe4c23daca35592dae2032641643 13-Jan-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #5823276: home repaints after full-screen app is exited" into ics-mr1
ecce05fac6600d01b5dca1cbf6345837e2840c5a 13-Jan-2012 Christopher Tate <ctate@google.com> am 89620c5d: am 2cf18d28: Merge "Streamline package-installed handling by the Backup Manager" into ics-mr1

* commit '89620c5d982858f590f3740169c9f69ee380be3e':
Streamline package-installed handling by the Backup Manager
65d8ec0dd316e988f9ee8d3503fa1692c559cc0d 13-Jan-2012 Christopher Tate <ctate@google.com> am 2cf18d28: Merge "Streamline package-installed handling by the Backup Manager" into ics-mr1

* commit '2cf18d28785fdd188641867503586627cb212302':
Streamline package-installed handling by the Backup Manager
2cf18d28785fdd188641867503586627cb212302 13-Jan-2012 Christopher Tate <ctate@google.com> Merge "Streamline package-installed handling by the Backup Manager" into ics-mr1
191713a51f0292b7fce72cc7e16cfd0f0204a0c7 12-Jan-2012 Guang Zhu <guangzhu@google.com> Move where prop dev.bootcomplete is set

Currently test harnesses depends on this flag to determine when
the system is fully booted, and start dismissing keyguard, launch
tests etc. However, the flag is usually set when the boot animation
is still running, and typically about 5 seconds before keyguard is
up etc. Moving to to when BOOT_COMPLETE broadcast is sent makes it
work more reliable.

We also discussed about using sys.boot_completed instead,
unfortunately this flag is not in all platform and we still have
backwards compatibility to maintain in order to drive unbundled
tests.

Change-Id: I99b084cd70d8e4bcfe490ddeca868136d32712e2
om/android/server/am/ActivityManagerService.java
0bacfd2ba68d21a68a3df345b830bc2a1e515b5a 11-Jan-2012 Christopher Tate <ctate@google.com> Streamline package-installed handling by the Backup Manager

In particular, don't do O(asec_apps * installed_apps) work during the
broadcast receiver's operation. On devices with many installed apps
and a large number of them moved to ASECs, this was causing the system
process to become unresponsive and the watchdog to fire -- which in turn
would initiate a restart loop, as the same package-installed broadcast
would then be issued again once the package manager rescanned the ASEC
containers, ad infinitum. With this change, the expensive call to the
package manager is only made once rather than asec_apps times.

Bug 5850283

Change-Id: I14e280ea1fa6af19cebc58869a20fbb599c92c8c
om/android/server/BackupManagerService.java
ced2b2c09a209e017f02cf28ddd9d35b2d8b8ada 19-Dec-2011 Sean Barbeau <sjbarbeau@gmail.com> Fixes update of extras Bundle in new Locations for GPS Provider

This patch fixes the update of the extras Bundle in the Location object
each time the platform derives a new GPS location and passes it to
listening applications via LocationListener.onLocationChanged().

Sometime between Android 1.6 and 2.1 a bug was introduced that stopped
any extras calculated by the platform from being added into the Location
object, which means they were never passed up to any LocationListeners
for the GPS Provider. This manifested as an issue where the number of
satellites used to derive a fix always reported “0” when retrieved from
Location.getExtras() (Issue 4810 on the Android Issues page -
http://code.google.com/p/android/issues/detail?id=4810).

Sample code to be used within
LocationListener.onLocationChanged(Location location) which demonstrates
this problem:

Bundle extras = location.getExtras();

Int numSats = extras.getInt("satellites"); //This always reports “0”
//post 1.5, although in 1.5
//it properly reported the
//number of satellites used
//to derive this location

The “satellites” extra key/value pair for Locations is defined in
http://developer.android.com/reference/android/location/Location.html#getExtras()

This patch modifies GPSLocationProvider.java to properly update the
Location object with the extras Bundle before the Location object is
passed to any listening applications, and therefore the number of
satellites used to derive a fix can now be retrieved properly through
location.getExtras() (as shown in sample code above). Therefore, this
patch fixes Issue 4810.

Change-Id: Ief21056a3623269bb3149ec78ab92738a234f57f
Signed-off-by: Sean Barbeau <sjbarbeau@gmail.com>
om/android/server/location/GpsLocationProvider.java
5d134343ca9f3ce28704a7fa69a11e4f4d0d25a4 12-Jan-2012 Chia-chi Yeh <chiachi@android.com> am 1e9e7f76: am ff321d49: Merge "VPN: silence VPN notifications." into ics-mr1

* commit '1e9e7f76d5e6187befaf96eece258c27fd08bdc5':
VPN: silence VPN notifications.
3e0c856e4a6ffae1b38e9ac7754c85a0907731f5 12-Jan-2012 Chia-chi Yeh <chiachi@android.com> am ff321d49: Merge "VPN: silence VPN notifications." into ics-mr1

* commit 'ff321d496a6a07fc667112ecfe4d9a107d44147b':
VPN: silence VPN notifications.
ff321d496a6a07fc667112ecfe4d9a107d44147b 12-Jan-2012 Chia-chi Yeh <chiachi@android.com> Merge "VPN: silence VPN notifications." into ics-mr1
01b02a734d2988c22b00f5df6346ad03d8bf52b6 12-Jan-2012 Dianne Hackborn <hackbod@google.com> Fix issue #5823276: home repaints after full-screen app is exited

Don't consider a window as a candidate for the top fullscreen window
if it is not going to be a candiate for layout.

Also don't consider windows a candidate for layout if their app token
is hidden. This fixes a transient state where we are preparing to
unhide the window but have not done so yet.

Change-Id: Ife5299ffa003c1df1a4f787b7a2809cbf614ec16
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
cc9858049ddea5a28cbd1d6ee59dd814e21ef512 12-Jan-2012 Robert Greenwalt <robdroid@android.com> am 1800ccfa: am 4b1261f1: Merge "Disable wimax when mobile data is in Settings" into ics-mr1

* commit '1800ccfa647cca6e9c051759312d6af12f134f5a':
Disable wimax when mobile data is in Settings
c60a627c0077f8aaa50952ef45175695a6b59ba8 12-Jan-2012 Robert Greenwalt <robdroid@android.com> am 4b1261f1: Merge "Disable wimax when mobile data is in Settings" into ics-mr1

* commit '4b1261f17ae2a0180be09b1c987ec7e70b2b46a7':
Disable wimax when mobile data is in Settings
4b1261f17ae2a0180be09b1c987ec7e70b2b46a7 12-Jan-2012 Robert Greenwalt <robdroid@android.com> Merge "Disable wimax when mobile data is in Settings" into ics-mr1
d712248e4e447a42a32afa4880892ade4eb439ae 12-Jan-2012 Danielle Millett <dmillett@google.com> am 2931d8ac: Merge "DO NOT MERGE - Cherry picking from master to MR1" into ics-mr1

* commit '2931d8ace9118bafe08090cd41e235048b6c2eb2':
DO NOT MERGE - Cherry picking from master to MR1
50fe709995d1f126e96cafde133bc4777b31d4ed 11-Jan-2012 Chia-chi Yeh <chiachi@android.com> VPN: silence VPN notifications.

Bug: 5852859
Change-Id: I269d8de298a1fd69a8d777150ae97927537a5424
om/android/server/connectivity/Vpn.java
c36905673a7bcafe9ec74e82e6c4977f2aca6a50 10-Jan-2012 satok <satok@google.com> Enable subtypes when the implicitly enabled subtype is not ascii capable keyboard
Bug: 5806103

Change-Id: I1a83b227498073c47567f73566043c273809adc9
om/android/server/InputMethodManagerService.java
2cc28deb9ef5c9b8aff90e1ad42c3d1915e73b26 11-Jan-2012 Jeff Sharkey <jsharkey@android.com> Merge "Move non-monotonic reporting to interface."
5a7bcf31a44d9875ca5fc010dc213aa2bd5b1168 11-Jan-2012 Jeff Sharkey <jsharkey@android.com> Move non-monotonic reporting to interface.

Report non-monotonic NetworkStats through an observer interface
instead of throwing, since those events are still recoverable.

Change-Id: Ic0749f4634b0ac05dbe90e95ca490957ec8b2f23
om/android/server/net/NetworkStatsService.java
de7a2f30548ac64d67e9ce8ac08090eb5458449d 21-Dec-2011 Danielle Millett <dmillett@google.com> DO NOT MERGE - Cherry picking from master to MR1

Fix 5783857: Device Policy Manager doesn't allow Face Unlock

This makes it so that if face unlock is enabled and then a device policy
manager that requires something more secure than face unlock is installed,
the user will be forced to choose a new acceptable lock type.

This was previously fixed for the case where the device had been reset, or
the shell was restarted after setting face unlock, but not for the case where the
device remained on between setting face unlock and setting up a device policy
manager.

Also changed the function ordering of saveLockPattern() so that the overloaded
wrapper function is next to the main function.

Change-Id: Ibed8c4ab137ebbc07fb143faef6f047bc6dc4474
om/android/server/DevicePolicyManagerService.java
70522addd031f6c667849f76c074e463a141c61d 06-Jan-2012 Nick Kralevich <nnk@google.com> Don't allow reading of packagelist files.

Ensure that all requests to read the list of installed packages
go through the PackageManager directly. Don't allow non-system
program to directly read the raw package list files.

Change-Id: Id083e6b3de4dd9173abfdc741ebf3f60997a1052
om/android/server/pm/Settings.java
b97d34c7c81ed7def6d0c1d7a76d057051f7d154 06-Jan-2012 tk.mun <tk.mun@samsung.com> Disable wimax when mobile data is in Settings

- Add wimax related code in handleSetMobileData to disable wimax when Moblie data is disabled (Settings -> Wireless & Networks - More -> Mobile Networks ->Data Enabled)

Change-Id: Ibf2d9da2eb90d161128005f26ac4b3e991526af4
Signed-off-by: tk.mun <tk.mun@samsung.com>
om/android/server/ConnectivityService.java
32350c7ab2f56b6d70437ba62f85232fd0b2c24a 05-Jan-2012 Robert Greenwalt <rgreenwalt@google.com> Merge "Filter our v6 address from tethering dns."
e145b235dae017f5de56cccdf7e27f46c115b38f 05-Jan-2012 Joe Onorato <joeo@google.com> Show the flags in package manager debugging.

Change-Id: I5f603f52c7199f1fbe377df0794a85450260e974
om/android/server/pm/Settings.java
8beff9586ff89a1e59469e9820fd9e9d704300d2 14-Dec-2011 Robert Greenwalt <rgreenwalt@google.com> Stop using shared DUN APN when tethering stops.

Even if other people are sharing the connection (ie, carrier wants
default and tethered traffic on the same APN) stop using
a carrier-described APN when the tethering stops.

bug:5525764
Change-Id: I95ed2aaed4d79519d233a62cf2945edead8114bc
om/android/server/ConnectivityService.java
3c673732ead2721c564c2bd46780e8ebf10e948b 03-Jan-2012 Danielle Millett <dmillett@google.com> Merge "Fix 5783857: Device Policy Manager doesn't allow Face Unlock"
b8f90a0e6eae582778bbe10b6347acbf5fc69bfb 03-Jan-2012 Jeff Sharkey <jsharkey@android.com> Merge "Test the correct return code from call to cryptfs."
c1bac3a6e240c1c9a14a7b515f585977fb908930 17-Dec-2011 Chia-chi Yeh <chiachi@android.com> VPN: fix a CloseGuard warning.

Change-Id: Ic237a33038be9a170c1f9128332a8743c57971ed
om/android/server/connectivity/Vpn.java
2364a222fcba233d66d0a9cde691d1d6e82227db 21-Dec-2011 Danielle Millett <dmillett@google.com> Fix 5783857: Device Policy Manager doesn't allow Face Unlock

This makes it so that if face unlock is enabled and then a device policy
manager that requires something more secure than face unlock is installed,
the user will be forced to choose a new acceptable lock type.

This was previously fixed for the case where the device had been reset, or
the shell was restarted after setting face unlock, but not for the case where the
device remained on between setting face unlock and setting up a device policy
manager.

Also changed the function ordering of saveLockPattern() so that the overloaded
wrapper function is next to the main function.

Change-Id: Ibed8c4ab137ebbc07fb143faef6f047bc6dc4474
om/android/server/DevicePolicyManagerService.java
4f74d552d54fd26bc377f333fccb671d20519b3e 20-Dec-2011 Robert Greenwalt <rgreenwalt@google.com> Filter our v6 address from tethering dns.

Don't support IPv6 yet, and the tools crash when they see one, so
filter them out.

bug:5763980
Change-Id: Ie9a4445a3c72df3f7ab4320c507ebc8e8cd440ff
om/android/server/connectivity/Tethering.java
da6aedf716bfdd40148823fb63d666d34b7b425e 20-Dec-2011 Fredrik Roubert <roubert@google.com> Test the correct return code from call to cryptfs.

This was broken in commit dd519fac9b79f36a27909149a90fce4321ed1c20
(certainly by mistake), in which Integer.parseInt(tokens[1]) was
errornously replaced with event.getCode().

Change-Id: Ic5af5a2ec5f321da21a4a5db25f6908462f6cae8
om/android/server/MountService.java
1fd4de0adc9e93aa01dd8e1aef1a83b85b9a7579 16-Dec-2011 Jeff Brown <jeffbrown@google.com> Merge "Add plumbing for dumping database info using dumpsys."
fe781c8ccff69007ed856faf3dcf1ec04cc835f3 16-Dec-2011 Dianne Hackborn <hackbod@google.com> Merge "Don't forget to close files."
c3c7bac14aa6924df917ef5f61c97b97dc32817d 16-Dec-2011 Joe Onorato <joeo@google.com> Merge "Add a new ui mode for "appliance"" into ics-aah
c6a7f358e86e9debdc110236797fba911bd9474a 16-Dec-2011 Joe Onorato <joeo@google.com> Merge "Add a new ui mode for "appliance""
b125c2fa367c18eba0fa40d0ea822be302d87a35 16-Dec-2011 Justin Ho <justinho@google.com> am 043c5f8f: Merge "Cherry-picking Id45abeba and Ia065dec6 for MR1" into ics-mr1

* commit '043c5f8f1d9a8e9077e1c16af28509b30f00324d':
Cherry-picking Id45abeba and Ia065dec6 for MR1
6754ba24f12a54b97b3ca1c5d29fc23c15980abe 15-Dec-2011 Jeff Brown <jeffbrown@google.com> Add plumbing for dumping database info using dumpsys.

Change-Id: I51b0364c3d3d41aa38a759fbce48e625fff1b2dd
om/android/server/am/ActivityManagerService.java
bfd89b35bae3f679e1a219f22c07bde9eb63241b 16-Dec-2011 Dianne Hackborn <hackbod@google.com> Don't forget to close files.

Change-Id: Ibfe465e1d7a947bbe40da17e8e8a2713856f95b5
om/android/server/pm/UserManager.java
44fcb83b38b062a650ddf556fe7f5e34905df9ea 15-Dec-2011 Joe Onorato <joeo@google.com> Add a new ui mode for "appliance"

The idea is that this is a device which is more-or-less headless. It
might have some limited interaction capabilities, but it's not something
that you want to rely on having.

Change-Id: Ib92f53a120bf83de781728011721a4859def7d9f
om/android/server/UiModeManagerService.java
3df273e45864ba595b4d870fa3f6c81a770078e2 16-Dec-2011 Jeff Sharkey <jsharkey@android.com> Move NMS observers to RemoteCallbackList.

Internally uses Binder.linkToDeath() to handle case where remote
observer dies.

Change-Id: I9ae0ee6e011a9715172fa079098b108f895ae956
om/android/server/NetworkManagementService.java
27c751dc0011fca9f88502a720670457cc22793f 16-Dec-2011 Jeff Sharkey <jsharkey@android.com> Merge "Restrict app data on metered networks."
f60d0afd1ef08a24121d015bb016df05265b6d07 01-Dec-2011 Jeff Sharkey <jsharkey@android.com> Restrict app data on metered networks.

This separates the definition of "metered network" and "network with
limit." For now, all mobile networks are considered metered.

Bug: 5571454
Change-Id: I394cd385bd33add75e53bfc9cf2fefd06a00208a
om/android/server/net/NetworkPolicyManagerService.java
18cb28756caf02bf2b2f5e67c68451edaf719b47 15-Nov-2011 Marco Nelissen <marcone@google.com> Add ContentProvider.dump()

This is similar to the existing dump() facility for services.
ContentProviders can now implement dump() and that info will be shown
when running "dumpsys activity provider" and when taking a bugreport.

Change-Id: I33b3b132e3c4f920153355cc368eda2f725a715f
om/android/server/am/ActivityManagerService.java
68e616840bcbb14990552fd99f955a8e1216dc2e 15-Dec-2011 Joe Onorato <joeo@google.com> Add a new ui mode for "appliance"

The idea is that this is a device which is more-or-less headless. It
might have some limited interaction capabilities, but it's not something
that you want to rely on having.

Change-Id: Icc9f674299f8dbe2b736a5622a4965904d27e49c
om/android/server/UiModeManagerService.java
4529bb66c47fd02b990ecb0810031157b4f36c2f 14-Dec-2011 Jeff Sharkey <jsharkey@android.com> Move NMS to CONNECTIVITY_INTERNAL permission.

Change-Id: I6043c1b9cb10aeeafb93d1b5c60da571d2fec5c9
om/android/server/NetworkManagementService.java
om/android/server/net/NetworkStatsService.java
dd73df35b84007b1735a45577560912434246aae 14-Dec-2011 Irfan Sheriff <isheriff@google.com> Merge "Track scan count by UID"
8cef06798ef1f67641f8b15165aca39abd6c46ca 14-Dec-2011 Irfan Sheriff <isheriff@google.com> Track scan count by UID

Helps track down misbehaving apps that are initiating
too many scans

Bug:5722180
Change-Id: I0bc396cf5e68ed53b900e8a65abb56acdbd8d8a5
om/android/server/WifiService.java
17b289048766d6b101e70061fe5774ec8f370b55 14-Dec-2011 Jeff Sharkey <jsharkey@android.com> Merge "Avoid reading network stats when disabled."
418d12dc8f2c518b673ebc522de4af6f7dbf0bf3 14-Dec-2011 Jeff Sharkey <jsharkey@android.com> Avoid reading network stats when disabled.

Bug: 5518868
Change-Id: Idb5c588b018bf735597ad7ff904ecc69224dd0a0
om/android/server/net/NetworkStatsService.java
d73b79bb314dde86cf8ff9300fefc133b31841d1 13-Dec-2011 Makoto Onuki <omakoto@google.com> Cherry-picking Id45abeba and Ia065dec6 for MR1

-------------------------------------------------------
MCC detection fixes for CountryDetector

- Don't get and cache phone tpe at the initialization time. At this point
TelephonyManager is probably not ready yet.

- Refresh MCC whenever we get the service state changed callback, even when
the state hasn't actually changed, in order to make sure we get refresh
country properly when MCC changes.

- Also remove the initialization of mPhoneStateListener, which prevented us from
registering phone state listener properly.

- Also fix tests which were already failing.

Bug 5670680

-------------------------------------------------------
Add logging to country detector logic

This is for debugging purposes to verify the effects of
change Id45abeba1b1e843053ac2c946861b439ca568de4.

Bug: 5670680
Change-Id: I238d953484e2c8135f7dac70fce8662c8300a286
om/android/server/CountryDetectorService.java
om/android/server/location/ComprehensiveCountryDetector.java
ee4d45f3052c8d339035c4bb8eca9b7a724e5074 13-Dec-2011 Dianne Hackborn <hackbod@google.com> am 0be53567: am 19a06fe9: Merge "Fix issue #5755172: Soft menu key disappears when menu is open" into ics-mr1

* commit '0be53567c1c2299c548d3204d2b9240108fbd53a':
Fix issue #5755172: Soft menu key disappears when menu is open
4e2e2c2154f067f03e46b8c99eaa5642749cfd17 13-Dec-2011 Dianne Hackborn <hackbod@google.com> am 19a06fe9: Merge "Fix issue #5755172: Soft menu key disappears when menu is open" into ics-mr1

* commit '19a06fe93cccb4b1dd224b8456969821a19b07ef':
Fix issue #5755172: Soft menu key disappears when menu is open
73ab6a49db2b834ce1d56c7a1164938b409ee6fc 13-Dec-2011 Dianne Hackborn <hackbod@google.com> Fix issue #5755172: Soft menu key disappears when menu is open

We need to work more like before in determining whether the menu
key is needed -- in some cases look back in the window list to
determine this if we don't know the value from the current window.

This requires adding a new private flag indicating whether the
compat menu state is known for a window, which is set by
PhoneWindow as part of its existing process of computing the flag
for its own windows.

Now we can have a new API on WindowState to determine the value
of this flag for a window, which if needed walks back in the window list
to find a window the value is known for (or stops at what the policy
has determined is the top full-screen window, so we stop like we used
to at things like the lock screen or the bottom of an application).

Change-Id: I829de6d629b5af8bcb422cb85249ee4041c7205e
om/android/server/wm/WindowState.java
767cae2c76b8f571cca2ecb858b74ee7e0750a5b 13-Dec-2011 Jeff Sharkey <jsharkey@android.com> am f0bbc494: Merge "Avoid NPE when missing network stats." into ics-mr1

* commit 'f0bbc494d638f4c77e688bf9410027f453301559':
Avoid NPE when missing network stats.
4dbfa44a2164724914b451ab1d6d0af8c0e9d1be 13-Dec-2011 Jeff Sharkey <jsharkey@android.com> am f0213bf1: am f0bbc494: Merge "Avoid NPE when missing network stats." into ics-mr1

* commit 'f0213bf1833e49744b29be97e44c3e9eaad9449d':
Avoid NPE when missing network stats.
d04ff11d6fa5eb26ca19ac9962b899d9fb0470f0 13-Dec-2011 Jeff Sharkey <jsharkey@android.com> Avoid NPE when missing network stats.

Bug: 5750339
Change-Id: I4b739dbd076b270a5a2b2e2a1e0f6e445d8c124e
om/android/server/net/NetworkStatsService.java
da123492dee9d0e7e84c4e497e947d3a7c143537 12-Dec-2011 Katherine Kuan <katherinekuan@google.com> Add logging to country detector logic

This is for debugging purposes to verify the effects of
change Id45abeba1b1e843053ac2c946861b439ca568de4.

Bug: 5670680
Change-Id: Ia065dec6ba651e7e77205f812b7606b15eebdc17
om/android/server/CountryDetectorService.java
om/android/server/location/ComprehensiveCountryDetector.java
afb847a4692a6e5cded8c7a330d00b70b794896a 13-Dec-2011 Irfan Sheriff <isheriff@google.com> Merge "Clean up synchronization"
e744cfff7ca5406f7bba17a14b89856c1ca83262 11-Dec-2011 Irfan Sheriff <isheriff@google.com> Clean up synchronization

- Add delayed disk write in WifiConfigStore
- Remove synchronization and keep all access to config store
throught the state machine thread

Change-Id: I53768a17895e48da7b99542ac95c6c2fddbcb021
om/android/server/WifiService.java
cc579b89fc03f404bf42a385dceaebf5060dd327 12-Dec-2011 Robert Greenwalt <rgreenwalt@google.com> Merge "Use the carrier-given dns addrs for tethering."
2339fe3f8f89d6254ce05a1b4e9587f0257e8316 12-Dec-2011 Chia-chi Yeh <chiachi@android.com> am fa71962f: am 46a4e81d: Merge "VPN: delete the "abort" file before starting VPN daemons." into ics-mr1

* commit 'fa71962fe4595f484071ac0deb23f68d44932d83':
VPN: delete the "abort" file before starting VPN daemons.
d9dc7fe61e0daaab6c19189904082436b34747a1 12-Dec-2011 Irfan Sheriff <isheriff@google.com> am c34306e4: am 97ff7893: Merge "Fix wifi bring up at boot up" into ics-mr1

* commit 'c34306e46e0f53a9478216c2d5fd3129a3bc6f8e':
Fix wifi bring up at boot up
95ea6d6d5d56a7e9e533abe2837ed2379c4271e1 10-Dec-2011 Makoto Onuki <omakoto@google.com> Merge "MCC detection fixes for CountryDetector"
ecd7798ce45f9c8f1901c9348ad5452e0bc88a95 10-Dec-2011 Irfan Sheriff <isheriff@google.com> am a3c7c358: am 583fdf00: Merge "Handle emergency call back mode correctly" into ics-mr1

* commit 'a3c7c35873235486787d58fa8310eebd87508bc9':
Handle emergency call back mode correctly
f9165b7e43885a3bf8c2b14788d0600642493d58 10-Dec-2011 Makoto Onuki <omakoto@google.com> MCC detection fixes for CountryDetector

- Don't get and cache phone tpe at the initialization time. At this point
TelephonyManager is probably not ready yet.

- Refresh MCC whenever we get the service state changed callback, even when
the state hasn't actually changed, in order to make sure we get refresh
country properly when MCC changes.

- Also remove the initialization of mPhoneStateListener, which prevented us from
registering phone state listener properly.

- Also fix tests which were already failing.

Bug 5670680

Change-Id: Id45abeba1b1e843053ac2c946861b439ca568de4
om/android/server/location/ComprehensiveCountryDetector.java
bb4fd0b4442301a7c64b52a1241a9d0cd4a75d0b 10-Dec-2011 Robert Greenwalt <rgreenwalt@google.com> Use the carrier-given dns addrs for tethering.

This fixes a complaint from carriers (that we used 8.8.8.8), but also
fixes the case where there is only room for one live radio
connection: the secondary connection (tethering) doesn't have a
default route to prevent on-device traffic from slipping out on the
tethering connection, but tethered dns is proxied through dnsmasq, so
it is appearing as on-device traffic and is unroutable. By switching
to the carrier-indicated dns servers we can use the host-routes
already set for those and kill two bugs with one fix.

bug:5525764
bug:3045311
Change-Id: Ib1ccea81e0c0ed2d1462dc9721c2647124a790da
om/android/server/connectivity/Tethering.java
2b6f8a92b4163a219390a1edc404da51706b1fbb 09-Dec-2011 Chia-chi Yeh <chiachi@android.com> am 46a4e81d: Merge "VPN: delete the "abort" file before starting VPN daemons." into ics-mr1

* commit '46a4e81dbdc9a5f401b5a3c0d26dea2e42b61487':
VPN: delete the "abort" file before starting VPN daemons.
46a4e81dbdc9a5f401b5a3c0d26dea2e42b61487 09-Dec-2011 Chia-chi Yeh <chiachi@android.com> Merge "VPN: delete the "abort" file before starting VPN daemons." into ics-mr1
c1872732922214de80f790e14865e41dd1b98203 09-Dec-2011 Chia-chi Yeh <chiachi@android.com> VPN: delete the "abort" file before starting VPN daemons.

Bug: 5714296
Change-Id: Idba41b9f3907747a84387ea4f3e930b3a185a06e
om/android/server/connectivity/Vpn.java
7fc4d0cd35a4a898c31f6f524faa1d6f2a7092d2 09-Dec-2011 Irfan Sheriff <isheriff@google.com> am 97ff7893: Merge "Fix wifi bring up at boot up" into ics-mr1

* commit '97ff7893321362020211fae3c5a52b95c3ec19e1':
Fix wifi bring up at boot up
97ff7893321362020211fae3c5a52b95c3ec19e1 09-Dec-2011 Irfan Sheriff <isheriff@google.com> Merge "Fix wifi bring up at boot up" into ics-mr1
5401f0b87b9bdcd603c55871a37fff07ab3054d7 08-Dec-2011 Irfan Sheriff <isheriff@google.com> Fix wifi bring up at boot up

Bug: 5719176
Change-Id: Iac879fc634f6ab6289b73c46931d754bc0af2f87
om/android/server/WifiService.java
c384c28e271d0f91970e6ebfccad09cf027deec4 08-Dec-2011 Irfan Sheriff <isheriff@google.com> am 583fdf00: Merge "Handle emergency call back mode correctly" into ics-mr1

* commit '583fdf0068ac46fb384a5aa2b193faf743f8221c':
Handle emergency call back mode correctly
4494c906168f1b93eb9d130096036d06cfa1e291 08-Dec-2011 Irfan Sheriff <isheriff@google.com> Handle emergency call back mode correctly

Bug: 5726996
Change-Id: I5815dd402bd73c530b9ba6d545d8956064949aa2
om/android/server/WifiService.java
0fea67ce9124a6eef913febc70a2d7b3e0ca1c99 08-Dec-2011 Dianne Hackborn <hackbod@google.com> am 95c7cd56: am 87e06ec2: Merge "Fix issue #5144065: Tap on Music icon from Home screen..." into ics-mr1

* commit '95c7cd56cc12179ad00623422814e8ba16646c34':
Fix issue #5144065: Tap on Music icon from Home screen...
1a4822d6cc783154bbbc8b1a41e572b7bb37086e 08-Dec-2011 Dianne Hackborn <hackbod@google.com> am 87e06ec2: Merge "Fix issue #5144065: Tap on Music icon from Home screen..." into ics-mr1

* commit '87e06ec2fa57a54b92fe82f2cacfbf8a44e47baf':
Fix issue #5144065: Tap on Music icon from Home screen...
87e06ec2fa57a54b92fe82f2cacfbf8a44e47baf 08-Dec-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #5144065: Tap on Music icon from Home screen..." into ics-mr1
0d77f84d0cd1bee63f51f456037d32fe2377092f 07-Dec-2011 Jason Simmons <jsimmons@google.com> Merge "Add an option that disables the AUDIO_BECOMING_NOISY intent send when a headset is hotplugged." into ics-aah
1f45d25257f791ce031e7e5bc3c7806a8b82b2eb 07-Dec-2011 Winson Chung <winsonc@google.com> am a21ce1f1: am 0a361b10: Merge "Workaround for issue where the notifyDatasetChanged call chain is broken when Launcher is killed. (Bug 5703782)" into ics-mr1

* commit 'a21ce1f1107e1aad19335bebe4aed915158b5ca6':
Workaround for issue where the notifyDatasetChanged call chain is broken when Launcher is killed. (Bug 5703782)
7992f3e5416bcc225c83f5e573918a0339a3d96c 07-Dec-2011 Winson Chung <winsonc@google.com> am 0a361b10: Merge "Workaround for issue where the notifyDatasetChanged call chain is broken when Launcher is killed. (Bug 5703782)" into ics-mr1

* commit '0a361b10a665a3d158c846722290f26ce62276e1':
Workaround for issue where the notifyDatasetChanged call chain is broken when Launcher is killed. (Bug 5703782)
0a361b10a665a3d158c846722290f26ce62276e1 07-Dec-2011 Winson Chung <winsonc@google.com> Merge "Workaround for issue where the notifyDatasetChanged call chain is broken when Launcher is killed. (Bug 5703782)" into ics-mr1
ae0a0a84d1a1e5fcba0b18d473e1f31e11b7018e 07-Dec-2011 Dianne Hackborn <hackbod@google.com> Fix issue #5144065: Tap on Music icon from Home screen...

... a different app opens

In some cases when reparenting activities we could end up with a reply
chain that crosses task boundaries, so if an activity below that needs
to be reparented we pull that and the activities above it up into the
new task.

Change-Id: Ia4fa041ab7069e39dac162ddbf5b8e1de98675b9
om/android/server/am/ActivityStack.java
aab52cd44288578a6299f1f1c266f3de585811c2 07-Dec-2011 Jason Simmons <jsimmons@google.com> Add an option that disables the AUDIO_BECOMING_NOISY intent send when a headset is hotplugged.

HDMI audio hotplug is treated as a "headset" in the audio services. When a headset is unplugged,
WiredAccessoryObserver sends an AUDIO_BECOMING_NOISY broadcast so that applications can take
appropriate action (e.g. pausing audio if headphones were unplugged).

However, on Tungsten, when you unplug HDMI audio, the Music2 service was getting the NOISY intent
and pausing the transmitter media player. We could add Tungsten-specific code to Music2 to
disable this behavior, but it's probably better to disable this broadcast entirely because
applications on Tungsten probably shouldn't treat HDMI hotplug in the same way they treat
headphone hotplug on phones.

Change-Id: I2d2b913f74f51fb496bd2f00f32e109bbff01fa1
om/android/server/WiredAccessoryObserver.java
a6071c338b0f46a47fe9c4bce87d4684e3c93dc7 07-Dec-2011 Irfan Sheriff <isheriff@google.com> am 8c2122cb: am a85cc282: Merge "Fix CS wakelock handling" into ics-mr1

* commit '8c2122cb3e347c607126c49d76fb165125a02295':
Fix CS wakelock handling
5ea9ea653767d193b105818a4602ec2612ae89c7 07-Dec-2011 Irfan Sheriff <isheriff@google.com> am a85cc282: Merge "Fix CS wakelock handling" into ics-mr1

* commit 'a85cc28229c2d5114fcc83c3d7ebfd6894fd4b98':
Fix CS wakelock handling
87f0a7b1aa3fcd688358f92389d3eeaf1ae99008 07-Dec-2011 Irfan Sheriff <isheriff@google.com> Fix CS wakelock handling

Change-Id: Ibe1c1ab3e26ff0ae7cab7bfb0bd868bfab246037
om/android/server/WifiService.java
c3f581b0474a216938810885f4f606e0db1f21ff 05-Dec-2011 Winson Chung <winsonc@google.com> Workaround for issue where the notifyDatasetChanged call chain is broken when Launcher is killed. (Bug 5703782)

Change-Id: Ic57a7ce85f41d58cd40b7d30eef4a1bf685182e5
om/android/server/AppWidgetService.java
3b282fae37c9897514f5bb7a16aa0b80dd65dd1f 06-Dec-2011 Jason Simmons <jsimmons@google.com> resolved conflicts for merge of 0c0120ef to ics-aah

Change-Id: If1f39ff160b4305ef057d50bb1f01d2c45f1579d
7f2e21b6f4de96c8be986b5ec02200fac464f814 06-Dec-2011 Jeff Sharkey <jsharkey@android.com> Merge "Move native vold calls to varargs."
deb86c63c33f766b1a7fd6916f56b757d40803b1 06-Dec-2011 Dianne Hackborn <hackbod@google.com> am ec42750e: am 0c0120ef: Merge "Fix issue #5714517: App shortcuts can result in bad task intents" into ics-mr1

* commit 'ec42750e4d0e695515d078fb1f222c99a705fd93':
Fix issue #5714517: App shortcuts can result in bad task intents
0c0120efa2dedaf25ae789bced5a3f9fa33c32bb 06-Dec-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #5714517: App shortcuts can result in bad task intents" into ics-mr1
fc2e4f6d01af0ed17030db9e19db6335e18c8ffd 06-Dec-2011 Dianne Hackborn <hackbod@google.com> am 24ec8703: am 52245ac7: Merge "Fix issue #5713576: Home redraws after returning from app on Nexus S 4G" into ics-mr1

* commit '24ec870322c801b0662d8b8d53232e89a94bc00a':
Fix issue #5713576: Home redraws after returning from app on Nexus S 4G
3c585e92edc3ddd26ee554ab0c22749ab6bea864 06-Dec-2011 Dianne Hackborn <hackbod@google.com> am 52245ac7: Merge "Fix issue #5713576: Home redraws after returning from app on Nexus S 4G" into ics-mr1

* commit '52245ac7c41735c561199d9ec7e9577d592ca852':
Fix issue #5713576: Home redraws after returning from app on Nexus S 4G
77eaaf04c6d73a6cc2f09bf6573babb578d27ae7 06-Dec-2011 Dianne Hackborn <hackbod@google.com> Fix issue #5713576: Home redraws after returning from app on Nexus S 4G

Turn of destroying of activities during memory trimming.

Change-Id: Ibea415c13fca4f67f56adefe81a1495f5f9ad273
om/android/server/am/ActivityManagerService.java
f5b8671c340f189c50b41c53622f979b6d5e0a57 06-Dec-2011 Dianne Hackborn <hackbod@google.com> Fix issue #5714517: App shortcuts can result in bad task intents

New API to let you build an Intent whose base configuration is correct,
but has an additional "selector" to pick out the specific app that you
would like launched.

Change-Id: Ide9db6dc60e2844b7696cfe09b28337fe7dd63db
om/android/server/am/TaskRecord.java
om/android/server/pm/PackageManagerService.java
dd519fac9b79f36a27909149a90fce4321ed1c20 02-Dec-2011 Jeff Sharkey <jsharkey@android.com> Move native vold calls to varargs.

Uses argument escaping inside NativeDaemonConnector, using varargs
to separate boundaries.

Bug: 5472606
Change-Id: Ie107a90df7e2b3bd3eaaf04c8367248ab40136f4
om/android/server/MountService.java
7ea817e58d283434c624e1b2b6dcdba2e409133b 02-Dec-2011 Jeff Sharkey <jsharkey@android.com> Merge "Move native netd calls to varargs."
ba2896e939f359e5857149f1a27212db71be012b 01-Dec-2011 Jeff Sharkey <jsharkey@android.com> Move native netd calls to varargs.

Uses argument escaping inside NativeDaemonConnector, using varargs
to separate boundaries. Also introduces Command object to help build
argument lists.

Bug: 5472606
Change-Id: I357979fc19bb0171a056e690064e01b5a7119501
om/android/server/NativeDaemonConnector.java
om/android/server/NativeDaemonEvent.java
om/android/server/NetworkManagementService.java
32cbc3855c2a971aa5a801fd339fb6a37db91a1a 01-Dec-2011 Jeff Brown <jeffbrown@google.com> Refactor InputQueue as InputEventReceiver.

This change simplifies the code associated with receiving input
events from input channels and makes it more robust. It also
does a better job of ensuring that input events are properly
recycled (sometimes we dropped them on the floor).

This change also adds a sequence number to all events, which is
handy for determining whether we are looking at the same event or a
new one, particularly when events are recycled.

Change-Id: I4ebd88f73b5f77f3e150778cd550e7f91956aac2
om/android/server/wm/DragState.java
om/android/server/wm/FakeWindowImpl.java
om/android/server/wm/WindowManagerService.java
db918cf171afd3d4b3c22aab6dd3403d1dec94de 02-Dec-2011 Jeff Brown <jeffbrown@google.com> Merge "Ensure input events are processed in-order in the application."
cfe82181cbe84b478b4612d25fb78a6bba8b2437 01-Dec-2011 Kenny Root <kroot@google.com> am 7f36d421: am 5a7c9176: Merge "Fix free_cache to actually work" into ics-mr1

* commit '7f36d4217269e79f8409c46f12f10464a1f585ea':
Fix free_cache to actually work
e91d0d81fea035d5e9d3d48985fac6e22c8fa972 01-Dec-2011 Kenny Root <kroot@google.com> am 5a7c9176: Merge "Fix free_cache to actually work" into ics-mr1

* commit '5a7c91769f011bc150c9def9edab9cccb4761c66':
Fix free_cache to actually work
5a7c91769f011bc150c9def9edab9cccb4761c66 01-Dec-2011 Kenny Root <kroot@google.com> Merge "Fix free_cache to actually work" into ics-mr1
4952dfd16a0f839559ffa78f5016394caf85294f 01-Dec-2011 Jeff Brown <jeffbrown@google.com> Ensure input events are processed in-order in the application.

As it turns out, it used to be possible for there to be multiple
input events simultaneously in flight in an application. Although
it worked, it made it hard to reason about what was going on.
The problem was somewhat exacerbated by the introduction of a
queue of "InputEventMessage" objects as part of an earlier latency
optimization.

This change restores order from chaos and greatly simplifies the
invariants related to input event dispatch within the application.

Change-Id: I6de5fe61c1fe2ac3dd33edf770d949044df8a019
om/android/server/wm/WindowManagerService.java
7a1c428ed3ded71f92733ebcb9d7ce0963dc72d2 01-Dec-2011 Jeff Sharkey <jsharkey@android.com> Merge "Uniform rethrowing of NDC exceptions."
4da2f669bfdf95c0e4944f075f699ad53ee360a5 01-Dec-2011 Dianne Hackborn <hackbod@google.com> am c4c19a23: am 55e81bd0: Merge "Improve how we manage the previous app." into ics-mr1

* commit 'c4c19a23d74896b4117bf274d1d7e0268ab401c3':
Improve how we manage the previous app.
59aaeb9f2e6b9b3795430ce527640854a2c319f4 01-Dec-2011 Dianne Hackborn <hackbod@google.com> am 55e81bd0: Merge "Improve how we manage the previous app." into ics-mr1

* commit '55e81bd0f219acbe00bbeebc8d33ef9c67a4aa60':
Improve how we manage the previous app.
55e81bd0f219acbe00bbeebc8d33ef9c67a4aa60 01-Dec-2011 Dianne Hackborn <hackbod@google.com> Merge "Improve how we manage the previous app." into ics-mr1
50685606cfa045213bcc1bf29ce1c00c256b055c 01-Dec-2011 Dianne Hackborn <hackbod@google.com> Improve how we manage the previous app.

Setting it when a new activity is being resumed is too soon, because
things like an activity launching an exiting (without being seen by
the user) can knock out the real previous app that we want.

So now we set it when an activity is stopped. At this point it is
going to move from the preceptible to background oom adj, so it is
a good point to determine whether it should be a previous app to
instead put it to that oom adj. This also avoids things like
activities that start and immediately finish from impacting the
previous app.

Further, we keep track of the time each activity was last shown, and
use this to further filter what is set as the previous app.

Change-Id: I72d1cac4de0cc2d4598170296028f11b06918d4f
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityRecord.java
om/android/server/am/ActivityStack.java
276642baf11e05700ef24447dc4271f16ce69b50 01-Dec-2011 Jeff Sharkey <jsharkey@android.com> Uniform rethrowing of NDC exceptions.

Change-Id: I7e8b050f09ef0d3aebd5b5a72f856eb86dd25935
om/android/server/NetworkManagementService.java
ad757e9b36d6bc6b8e39be00612d0e60863aaafc 30-Nov-2011 Kenny Root <kroot@google.com> Fix free_cache to actually work

This broke with some other path-related changes, so it was scanning for
/data/*/cache instead of /data/data/*/cache

Also remove redundant call to restat

Bug: 5686310
Change-Id: Id1661f0f1337858fc9ead53c56ab7557f421c591
om/android/server/DeviceStorageMonitorService.java
c0fc5d81b895a0696fceeeadb76bdbaf1cb52071 01-Dec-2011 Daniel Sandler <dsandler@android.com> am 2a40d0d9: Merge "Put screensavers back in the icebox for now. DO NOT MERGE." into ics-mr1

* commit '2a40d0d92b208021b492e9af3d944720cbf269fc':
Put screensavers back in the icebox for now. DO NOT MERGE.
2a40d0d92b208021b492e9af3d944720cbf269fc 01-Dec-2011 Daniel Sandler <dsandler@android.com> Merge "Put screensavers back in the icebox for now. DO NOT MERGE." into ics-mr1
36d1bbe6063a9a723fe25ea0f3c6e6dd11d6bf37 01-Dec-2011 satok <satok@google.com> am b7dda6d3: am b94a7fb3: Merge "Fix ConcurrentModificationException in TextServicesManagerService" into ics-mr1

* commit 'b7dda6d34b9dad2cd3094125b92a1503a9befa7c':
Fix ConcurrentModificationException in TextServicesManagerService
f3b4f3163b5b4c0a54a2643f07c97c47b14a1eb7 01-Dec-2011 Svetoslav Ganov <svetoslavganov@google.com> resolved conflicts for merge of 26f7a81f to master

Change-Id: I6bf5fd7c0de7945cef84602dbe3a7bbed587700f
eaf9507271ea60bec54614d069a8b3de618dbfb4 01-Dec-2011 satok <satok@google.com> am b94a7fb3: Merge "Fix ConcurrentModificationException in TextServicesManagerService" into ics-mr1

* commit 'b94a7fb3d7483e8b47e4f0229fc7abff10a6572d':
Fix ConcurrentModificationException in TextServicesManagerService
b94a7fb3d7483e8b47e4f0229fc7abff10a6572d 01-Dec-2011 satok <satok@google.com> Merge "Fix ConcurrentModificationException in TextServicesManagerService" into ics-mr1
1c45ac8a1c15a397f5a885944c5be9c2323978d9 01-Dec-2011 Svetoslav Ganov <svetoslavganov@google.com> am d8ec8db5: Merge "Fixing memory leaks in the accessiiblity layer." into ics-mr1

* commit 'd8ec8db5e0f227e4f63e948acb78d829f5ad30c8':
Fixing memory leaks in the accessiiblity layer.
d8ec8db5e0f227e4f63e948acb78d829f5ad30c8 01-Dec-2011 Svetoslav Ganov <svetoslavganov@google.com> Merge "Fixing memory leaks in the accessiiblity layer." into ics-mr1
f11fd2724fc075ebc7b0d996615d7101f220820e 30-Nov-2011 Dianne Hackborn <hackbod@google.com> am 2fc9467e: am 88f10c6c: Merge "Fix issue #5679504: Device stuck and sudden reboot - Watchdog reset?" into ics-mr1

* commit '2fc9467e9a2ef1c22a0bc81cbcd2ced878dbdef7':
Fix issue #5679504: Device stuck and sudden reboot - Watchdog reset?
dd07aa072f0e8498e47956c26fa43a91c7835337 30-Nov-2011 Dianne Hackborn <hackbod@google.com> am a5b8883b: am f8d20bd6: Merge "Turn off debug log." into ics-mr1

* commit 'a5b8883b0db9d6e129b88f003b541fafd829c77b':
Turn off debug log.
bf30ac71a9bcfc97391dda650176f9a1f7146ecc 30-Nov-2011 Dianne Hackborn <hackbod@google.com> am 88f10c6c: Merge "Fix issue #5679504: Device stuck and sudden reboot - Watchdog reset?" into ics-mr1

* commit '88f10c6ce5a97b1990934148deb8ed6aa6ef7a48':
Fix issue #5679504: Device stuck and sudden reboot - Watchdog reset?
3d11e09ef4ce02fa7d27c5de0890e95d59819d8c 30-Nov-2011 Dianne Hackborn <hackbod@google.com> am f8d20bd6: Merge "Turn off debug log." into ics-mr1

* commit 'f8d20bd6495883e98e23827a2e5ed03766fe483b':
Turn off debug log.
88f10c6ce5a97b1990934148deb8ed6aa6ef7a48 30-Nov-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #5679504: Device stuck and sudden reboot - Watchdog reset?" into ics-mr1
f8d20bd6495883e98e23827a2e5ed03766fe483b 30-Nov-2011 Dianne Hackborn <hackbod@google.com> Merge "Turn off debug log." into ics-mr1
d2b22a885a79d537c79e98257647cc120bde2998 30-Nov-2011 Daniel Sandler <dsandler@android.com> Put screensavers back in the icebox for now. DO NOT MERGE.

Bug: 5689684
Change-Id: I3a5291c3520bb43e35d55714f1522e4ae7f6e63c
om/android/server/UiModeManagerService.java
b2b0d91d34355839adc87687a02710951565bd6a 30-Nov-2011 Daniel Sandler <dsandler@android.com> am 7413d49b: am 865b9802: Merge "Expanding NotificationManager\'s event logging." into ics-mr1

* commit '7413d49bfa80fb22480adc5e9d0c7be7d1034363':
Expanding NotificationManager's event logging.
7e6f42945bc4bf74af6a67c81692611b817476ec 30-Nov-2011 Daniel Sandler <dsandler@android.com> am 865b9802: Merge "Expanding NotificationManager\'s event logging." into ics-mr1

* commit '865b98024fb5fa21854feb578b8816bbb72120ba':
Expanding NotificationManager's event logging.
865b98024fb5fa21854feb578b8816bbb72120ba 30-Nov-2011 Daniel Sandler <dsandler@android.com> Merge "Expanding NotificationManager's event logging." into ics-mr1
bbb09aceb64bc4ab26283288fbedbdf8b801577d 30-Nov-2011 Dianne Hackborn <hackbod@google.com> Turn off debug log.

Change-Id: I1d4612133580d493d81d0b15752e009202e95ce0
om/android/server/am/ActivityManagerService.java
1fbee79eb31011fa260d9fe088c165cc9171d98b 30-Nov-2011 Dianne Hackborn <hackbod@google.com> Fix issue #5679504: Device stuck and sudden reboot - Watchdog reset?

Calls to get the display size no longer need to acquire the global
window lock.

Change-Id: I751ea6ed0e20f1f521783f4bd5a8f9c31cd43573
om/android/server/wm/WindowManagerService.java
27a7b136661d0e829a06361deb72a4ef41040681 30-Nov-2011 Dianne Hackborn <hackbod@google.com> am 9c83b6ff: am db904b47: Merge "Fix issue #5628789: Cannot set static/custom wallpaper after clearing Settings data" into ics-mr1

* commit '9c83b6ffca5d23257a99c805d8e4540ac80e53c3':
Fix issue #5628789: Cannot set static/custom wallpaper after clearing Settings data
ee4fe291d375c8783dfe1983a0ed9ea4356f18a5 30-Nov-2011 Dianne Hackborn <hackbod@google.com> am db904b47: Merge "Fix issue #5628789: Cannot set static/custom wallpaper after clearing Settings data" into ics-mr1

* commit 'db904b4782a4dfc9d81d5d0616dea3656893b539':
Fix issue #5628789: Cannot set static/custom wallpaper after clearing Settings data
cf5b90b45cbfe994661f2087fedc9aee80e95763 30-Nov-2011 Jeff Sharkey <jsharkey@android.com> Merge "Clean up InterfaceConfiguration flags."
ed032e78733afab4bf49d80da1a38fb06bf99622 30-Nov-2011 Dianne Hackborn <hackbod@google.com> am 500862b4: am 1808f214: Merge "Fix issue #5636525: ANR observed in setup wizard after changing language" into ics-mr1

* commit '500862b44c8ecbb867144781239bd55b6d3c9489':
Fix issue #5636525: ANR observed in setup wizard after changing language
4c3fa642ef1c0e1bb3303d4b25d8af4e6a7d08a2 30-Nov-2011 satok <satok@google.com> Fix ConcurrentModificationException in TextServicesManagerService

Bug: 5687402
Change-Id: I59086f956b6ee618ff0e1b1034d767d9ae295848
om/android/server/TextServicesManagerService.java
b64cb88c32fe6dc4f3476e80004b2d9d86a7b296 30-Nov-2011 Daniel Sandler <dsandler@android.com> Expanding NotificationManager's event logging.

Specifically, add the "tag" and "mustNotHaveFlags" columns.

(Hunting bug 5444859.)

Change-Id: Ic9ece44ed4697f7a8ef54e7870f72c9f94518cd9
om/android/server/EventLogTags.logtags
om/android/server/NotificationManagerService.java
d116d7c78a9c53f30a73bf273bd7618312cf3847 22-Nov-2011 Svetoslav Ganov <svetoslavganov@google.com> Fixing memory leaks in the accessiiblity layer.

1. AccessibilityInteractionConnections were removed from the
AccessiiblityManagerService but their DeathRecipents were
not unregistered, thus every removed interaction connection
was essentially leaking. Such connection is registered in
the system for every ViewRootImpl when accessiiblity is
enabled and inregistered when disabled.

2. Every AccessibilityEvent and AccessiilbityEventInfo obtained
from a widnow content querying accessibility service had a
handle to a binder proxy over which to make queries. Hoewever,
holding a proxy to a remote binder prevents the latter from
being garbage collected. Therefore, now the events and infos
have a connection id insteand and the hindden singleton
AccessiiblityInteaction client via which queries are made
has a registry with the connections. This class looks up
the connection given its id before making an IPC. Now the
connection is stored in one place and when an accessibility
service is disconnected the system sets the connection to
null so the binder object in the system process can be GCed.
Note that before this change a bad implemented accessibility
service could cache events or infos causing a leak in the
system process. This should never happen.

3. SparseArray was not clearing the reference to the last moved
element while garbage collecting thus causing a leak.

bug:5664337

Change-Id: Id397f614b026d43bd7b57bb7f8186bca5cdfcff9
om/android/server/accessibility/AccessibilityManagerService.java
ddba10622dfd3122cf99c795706754e0d41858c3 30-Nov-2011 Jeff Sharkey <jsharkey@android.com> Clean up InterfaceConfiguration flags.

Offer modifier methods for interface flags instead of mutating
directly, and remove square brackets.

Change-Id: I4cce719dccedfb3f0e8448c111e65b93c0008cbb
om/android/server/NetworkManagementService.java
om/android/server/connectivity/Tethering.java
ebac48c6adf738cb27ea59669c9eca4467063d18 30-Nov-2011 Dianne Hackborn <hackbod@google.com> Fix issue #5628789: Cannot set static/custom wallpaper after clearing Settings data

Need to make sure the "files" directory is created.

Change-Id: I8d5b374a5a03590a5ce7fafb5171705414f7b2f9
om/android/server/WallpaperManagerService.java
b468a8fd2b6fba095372afef9272024c9385688d 30-Nov-2011 Jeff Sharkey <jsharkey@android.com> Merge "Move NativeDaemonConnector to varargs."
3538271d853da4ff78a5d314458d6a4db44a9d67 30-Nov-2011 Dianne Hackborn <hackbod@google.com> am 1808f214: Merge "Fix issue #5636525: ANR observed in setup wizard after changing language" into ics-mr1

* commit '1808f214b0cd7a62628b273b93a1ea688f262565':
Fix issue #5636525: ANR observed in setup wizard after changing language
1808f214b0cd7a62628b273b93a1ea688f262565 30-Nov-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #5636525: ANR observed in setup wizard after changing language" into ics-mr1
8bf0aa9b2b1f3d094ca7cc6917afb12cc16085eb 29-Nov-2011 Dianne Hackborn <hackbod@google.com> Fix issue #5636525: ANR observed in setup wizard after changing language

We could sometimes allow a process to be killed while still waiting for
an activity in it to finish stopping.

Change-Id: Ibf89665c4ad6da6be22de04a82b19ef778a7fda0
om/android/server/am/ActivityManagerService.java
123ad2823b1b60b33228f5b39f24139def4e2236 29-Nov-2011 Dianne Hackborn <hackbod@google.com> am 3788ce9e: am 50b20425: Merge "Another attempt at getting OOM reports to batch." into ics-mr1

* commit '3788ce9ed9b896c2f1d5500910e949a6eba308e2':
Another attempt at getting OOM reports to batch.
d9c1e6d96608996bf6cb5b12c6bdd49f0564240b 29-Nov-2011 Dianne Hackborn <hackbod@google.com> am 50b20425: Merge "Another attempt at getting OOM reports to batch." into ics-mr1

* commit '50b2042502bc459b40430fe3b3b83d7d61e5daf9':
Another attempt at getting OOM reports to batch.
50b2042502bc459b40430fe3b3b83d7d61e5daf9 29-Nov-2011 Dianne Hackborn <hackbod@google.com> Merge "Another attempt at getting OOM reports to batch." into ics-mr1
672342c30903fa6b70a3e8e1977bb34210aede14 29-Nov-2011 Dianne Hackborn <hackbod@google.com> Another attempt at getting OOM reports to batch.

We now generate a stack-trace looking thing at the top of the report.

Also fix a bug I hit where the phone window manager was sending a
broadcast before the boot had completed.

Change-Id: I0cee16180e4d05c9bd3fe715212a28f504ec91ac
om/android/server/am/ActivityManagerService.java
31c6e4817f6c967fc4f61c4f1d9f25743958f7de 19-Nov-2011 Jeff Sharkey <jsharkey@android.com> Move NativeDaemonConnector to varargs.

Perform uniform argument escaping inside NativeDaemonConnector, using
varargs to separate boundaries. Also move to parsed NativeDaemonEvent
instances instead of raw Strings.

Bug: 5472606
Change-Id: I1270733e2b2eeb2f6b810240df82ab24d38ebf40
om/android/server/MountService.java
om/android/server/NativeDaemonConnector.java
om/android/server/NativeDaemonConnectorException.java
om/android/server/NativeDaemonEvent.java
om/android/server/NetworkManagementService.java
45c62be2bc553f603c9adadc60abff62ddedba79 29-Nov-2011 Dianne Hackborn <hackbod@google.com> am e2d76314: am 9b518d93: Merge "Fix issue #5642121: Proximity sensor didn\'t turn the screen on in call" into ics-mr1

* commit 'e2d76314cdd64cc69c791af0ee2fd2bbcc0425ba':
Fix issue #5642121: Proximity sensor didn't turn the screen on in call
e1d7598235b7a745e89e024dcddae391fcaed444 29-Nov-2011 Dianne Hackborn <hackbod@google.com> am 9b518d93: Merge "Fix issue #5642121: Proximity sensor didn\'t turn the screen on in call" into ics-mr1

* commit '9b518d9304eb4ad17591944926231b661a3dfce0':
Fix issue #5642121: Proximity sensor didn't turn the screen on in call
81de8b99f599aaa163a7c9b2067e649e101f94b0 29-Nov-2011 Dianne Hackborn <hackbod@google.com> Fix issue #5642121: Proximity sensor didn't turn the screen on in call

Turning animations back on exposed this. The problem is that when the
screen brightness changes, it initiates a brightness animation. When
we force the screen to black as we wait for it to be ready to display,
it sees that an animation is running so stops it and thinks this means
it should now turn the display off.

To fix this, don't modify the screen brightness while we are waiting
to show the screen. This is good anyway because the whole point is to
avoid showing the screen until ready, and modifying the brightness at
that point would turn it on prematurely.

Change-Id: I84b296f8ca5705c2d237ea7741cdeb95c5521df9
om/android/server/PowerManagerService.java
c0b7f65ae0594e19d1272e5caf2d83638041d19c 29-Nov-2011 Dianne Hackborn <hackbod@google.com> am 496f6e2a: am b54980d1: Merge "Fix issue #5588689: Black camera preview after coming back from gmail" into ics-mr1

* commit '496f6e2ad656c5bb8a277e191554d16abd290b58':
Fix issue #5588689: Black camera preview after coming back from gmail
5e3064c67fc56440a7d199aab00ea5f74dca5039 29-Nov-2011 Dianne Hackborn <hackbod@google.com> am b54980d1: Merge "Fix issue #5588689: Black camera preview after coming back from gmail" into ics-mr1

* commit 'b54980d1d4d903f68cdfa952256afff01902cd94':
Fix issue #5588689: Black camera preview after coming back from gmail
6d05fd3c795088ac60f86382df5a66d631e8a0cb 19-Nov-2011 Dianne Hackborn <hackbod@google.com> Fix issue #5588689: Black camera preview after coming back from gmail

Make surface management between SurfaceView and the window manager
much more controlled, to ensure that SurfaceView always gets to report
the current surface is destroyed before the window manager actually
destroys it.

Also a small tweak to allow windows that have a wallpaper background
to still have a preview window. This makes launching home after it
has been killed feel much more responsive.

Change-Id: I0d22cf178a499601a770cb1dbadef7487e392d85
om/android/server/wm/Session.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
d73dd9528b94f965924f9075fdabe4c96f75cab4 23-Nov-2011 Robert Greenwalt <rgreenwalt@google.com> am 18f05518: am eaeb4f4e: Merge "Fix some policy-base routing issues." into ics-mr1

* commit '18f05518a882eeb778433c65bff27831a8accdc2':
Fix some policy-base routing issues.
e0c3a2e0634d3801e2603e53de09a645680b4803 23-Nov-2011 Robert Greenwalt <rgreenwalt@google.com> am eaeb4f4e: Merge "Fix some policy-base routing issues." into ics-mr1

* commit 'eaeb4f4e3c914550d28a042fb3d752efcf20ab9e':
Fix some policy-base routing issues.
eaeb4f4e3c914550d28a042fb3d752efcf20ab9e 23-Nov-2011 Robert Greenwalt <rgreenwalt@google.com> Merge "Fix some policy-base routing issues." into ics-mr1
e83d181606981bcacd78e55b293fe9fa95b2551d 21-Nov-2011 Robert Greenwalt <rgreenwalt@google.com> Fix some policy-base routing issues.

Secondary nets sometimes come up with no routes, but parsing errors end up with null
routes getting added. Trim that away. Also added some dumpstate logging of the secondary
route tables and rules.

bug:5615697
Change-Id: I94c9d888bab958df44891b9117236436e046cc7f
om/android/server/NetworkManagementService.java
d813e79009d7d1362895f7fa1e8185aa742e1690 18-Nov-2011 Jeff Sharkey <jsharkey@android.com> Merge "Clean up NMS AIDL and permissions checking."
af75c33e8d7f1a27c6c0d71820730ea8525019a3 18-Nov-2011 Jeff Sharkey <jsharkey@android.com> Clean up NMS AIDL and permissions checking.

Bug: 5472290
Change-Id: I30f9d79b1bc7f1d156a3b81b003f2b8ce25d53af
om/android/server/NetworkManagementService.java
b9fc0a4d86eba33a2a2c2a1fd8c6ef3f4756eaa9 18-Nov-2011 satok <satok@google.com> am 852b589a: am 1a3c051b: Merge "Hide/show ime switch icon properly" into ics-mr1

* commit '852b589a51531f8f7a166f36f7596c255896f35c':
Hide/show ime switch icon properly
620e4e4de26cfc384427cbe1734b4dcf1fb3a29a 18-Nov-2011 satok <satok@google.com> am 1a3c051b: Merge "Hide/show ime switch icon properly" into ics-mr1

* commit '1a3c051bcc787363d9154da4a8e8e562dda32926':
Hide/show ime switch icon properly
1a3c051bcc787363d9154da4a8e8e562dda32926 18-Nov-2011 satok <satok@google.com> Merge "Hide/show ime switch icon properly" into ics-mr1
3afd6c0d4d5c2c80cf0450941babaee32ec9c7ee 18-Nov-2011 satok <satok@google.com> Hide/show ime switch icon properly

Bug: 5481999
Change-Id: I4b3dde7285a9ac49da8d5d1133fddd0807b03f4d
om/android/server/InputMethodManagerService.java
8549aeea0af63810bd5a661a23079d6554e4717b 18-Nov-2011 Nick Kralevich <nnk@google.com> Merge "Rename EntropyService to EntropyMixer"
f0c22dc4a043264a2b15d225fd97909b403c02cf 18-Nov-2011 Jeff Sharkey <jsharkey@android.com> am 7892cbff: am 8ac35e30: Merge "Only write network stats when already loaded." into ics-mr1

* commit '7892cbffbeffb6e73f4c88e9965064b3985971c2':
Only write network stats when already loaded.
6967cbc959b079fa7e4411360e40e2a0ed65da29 17-Nov-2011 Nick Kralevich <nnk@google.com> Rename EntropyService to EntropyMixer

EntropyService implies that this program provides entropy to other
programs, and is misleading. The EntropyMixer class is designed purely
to stir the existing entropy pool with some possibily random-ish data,
and carryover entropy across device reboots.

Change-Id: I086cd339a3b652d32371521e61e1b1f555ce2280
om/android/server/EntropyMixer.java
om/android/server/EntropyService.java
om/android/server/SystemServer.java
2940d06db7915e3bba2dd3a8a6a731b9401494e4 17-Nov-2011 Jeff Sharkey <jsharkey@android.com> am 8ac35e30: Merge "Only write network stats when already loaded." into ics-mr1

* commit '8ac35e30b29f3a3e81ed722621bf7f1de708455f':
Only write network stats when already loaded.
8ac35e30b29f3a3e81ed722621bf7f1de708455f 17-Nov-2011 Jeff Sharkey <jsharkey@android.com> Merge "Only write network stats when already loaded." into ics-mr1
c506ff615080082515b1f634ad49b19fd2111669 17-Nov-2011 Jeff Sharkey <jsharkey@android.com> Only write network stats when already loaded.

Bug: 5584564
Change-Id: Ife2a68804bf3691e9bccdc167807204bce8a85b2
om/android/server/net/NetworkStatsService.java
ee737d9e44e14e51b484defe34316cdead08e735 17-Nov-2011 Jeff Sharkey <jsharkey@android.com> am 66b570c7: am b9df01d3: Merge "Update NTP outside locks, log large trim events." into ics-mr1

* commit '66b570c70471976cd2a99825898c778a7850f2c8':
Update NTP outside locks, log large trim events.
f27e94ce9db83f01a98eefd0add04e7a19dde60d 17-Nov-2011 Daniel Sandler <dsandler@android.com> am 7fd3ba91: am d5decdcc: Merge "Disable desk dock apps." into ics-mr1

* commit '7fd3ba9149affe68f8e21c88d3eceb4514cf2f6f':
Disable desk dock apps.
8bc972a5a4c3e24d1b9ba9b1dd4b4e2bbb5dadac 17-Nov-2011 satok <satok@google.com> am 9e502e90: am e5febfd5: Merge "Clean up the spell checker framework" into ics-mr1

* commit '9e502e90b58b4d0bbb792ef1c40dcfd9b9322ce8':
Clean up the spell checker framework
7cd2b19a926224dee2b2e12f37c1d71ce658bf97 17-Nov-2011 Dianne Hackborn <hackbod@google.com> am 65952ec4: am 4c6a65bc: Merge "Maybe fix issue #5627399: java.lang.RuntimeException - While sign in..." into ics-mr1

* commit '65952ec4dc0e1703eb87a54c252953c53d07affc':
Maybe fix issue #5627399: java.lang.RuntimeException - While sign in...
44a08da47d0f3f07c4225e7deb084a1f76c214bd 17-Nov-2011 Jeff Sharkey <jsharkey@android.com> am b9df01d3: Merge "Update NTP outside locks, log large trim events." into ics-mr1

* commit 'b9df01d39692c45b182c429015cc2086ef27db97':
Update NTP outside locks, log large trim events.
b9df01d39692c45b182c429015cc2086ef27db97 17-Nov-2011 Jeff Sharkey <jsharkey@android.com> Merge "Update NTP outside locks, log large trim events." into ics-mr1
6a6d1b944494383cb91434731913e8787a0cb9e3 17-Nov-2011 Daniel Sandler <dsandler@android.com> am d5decdcc: Merge "Disable desk dock apps." into ics-mr1

* commit 'd5decdccc64c59ad62de86c70dbe9ead12150cdc':
Disable desk dock apps.
d5decdccc64c59ad62de86c70dbe9ead12150cdc 17-Nov-2011 Daniel Sandler <dsandler@android.com> Merge "Disable desk dock apps." into ics-mr1
684c54a2eb860062f1960f4eba6bc71aa1cfa71d 17-Nov-2011 Jeff Sharkey <jsharkey@android.com> Update NTP outside locks, log large trim events.

Move NTP updates outside locks to avoid blocking ShutdownThread. Add
logging around trim events that remove substantial history. Include
history start in sample events.

Bug: 5627247, 5584564
Change-Id: If9bbd93842c710efcdec94e68da87e9e42a5f961
om/android/server/EventLogTags.logtags
om/android/server/net/NetworkPolicyManagerService.java
om/android/server/net/NetworkStatsService.java
0427550509c857105f878f1f79b54dee0f899e90 17-Nov-2011 satok <satok@google.com> am e5febfd5: Merge "Clean up the spell checker framework" into ics-mr1

* commit 'e5febfd5bd9b19a01383760b523476ba7f013a5c':
Clean up the spell checker framework
e5febfd5bd9b19a01383760b523476ba7f013a5c 17-Nov-2011 satok <satok@google.com> Merge "Clean up the spell checker framework" into ics-mr1
060677f4686a93d92117d7d472e754423a368bdb 17-Nov-2011 satok <satok@google.com> Clean up the spell checker framework

Change-Id: I64c0d813e53a4ebf8d7e63463e36f6900f1aa7d3
om/android/server/TextServicesManagerService.java
61ecac1a37377f5c6c80c36c11675ca6ec5628f4 16-Nov-2011 Dianne Hackborn <hackbod@google.com> am 4c6a65bc: Merge "Maybe fix issue #5627399: java.lang.RuntimeException - While sign in..." into ics-mr1

* commit '4c6a65bc319feab120d40553d93b160908db2f6d':
Maybe fix issue #5627399: java.lang.RuntimeException - While sign in...
ee9aef0b42ba2c074199e0eca1367cb42be69616 16-Nov-2011 Dianne Hackborn <hackbod@google.com> Maybe fix issue #5627399: java.lang.RuntimeException - While sign in...

...through setup wizard after wipe data

Deal with finish() being called when there are no running activities
on the stack.

Also some improved debugging output.

Change-Id: Ia1d3f3f7e7b79c06ca95c738081322fc80282e0d
om/android/server/am/ActivityManagerService.java
om/android/server/pm/PackageManagerService.java
11ddf533a2165ca68002d3b48e312271b3d0dedb 16-Nov-2011 Daniel Sandler <dsandler@android.com> Disable desk dock apps.

When a device is attached to a desk dock, the
CATEGORY_DESK_DOCK intent will no longer be fired.
As a side effect, the "dock home" behavior (which captures
the home key for the dock app as long as the device is
docked) is now disabled for desk docks.

Car docks are unchanged.

Bug: 5591015
Change-Id: I7884f655913c31cf53b88cb2e2b371987be27f64
om/android/server/UiModeManagerService.java
8e56e1f3459703a9b9f5a13676428eeda68bb73f 16-Nov-2011 Dianne Hackborn <hackbod@google.com> am cbcf8259: am cdec187a: Merge "Whoops, need to acquire lock." into ics-mr1

* commit 'cbcf8259697d2cb9025657a88e01cbb84be11d70':
Whoops, need to acquire lock.
ae3184f75d80bf5914218f973919fc9bc7d7a1ed 16-Nov-2011 Dianne Hackborn <hackbod@google.com> am cdec187a: Merge "Whoops, need to acquire lock." into ics-mr1

* commit 'cdec187a27b2acc34cd4df26b836b83362527d6a':
Whoops, need to acquire lock.
7aa6d31240787da87bb06d4457fdf23e39c46f98 16-Nov-2011 Dianne Hackborn <hackbod@google.com> Whoops, need to acquire lock.

Also increase time between reports to try to reduce the amount
of redundant spam we get.

Change-Id: Iedd7d743826fffa62ee431073cb7dfb49a00cea0
om/android/server/am/ActivityManagerService.java
9864e0d81f2e3f28170b3c82fcf30d9c24ccbeae 15-Nov-2011 Dianne Hackborn <hackbod@google.com> am d9070a08: am 5f11d73c: Merge "Improve low memory dropbox reporting." into ics-mr1

* commit 'd9070a08807ee119d9d73052cc1ad1f1b29eb13d':
Improve low memory dropbox reporting.
6cc19eae6bbf214606c55c5685fe83f324291f31 15-Nov-2011 Dianne Hackborn <hackbod@google.com> am 5f11d73c: Merge "Improve low memory dropbox reporting." into ics-mr1

* commit '5f11d73c918de72368ac5605c50f5fb9ac0457cb':
Improve low memory dropbox reporting.
d8c98fee02b5498270344727d1289004d98c0e73 15-Nov-2011 Dianne Hackborn <hackbod@google.com> Improve low memory dropbox reporting.

The msg is now constructed to try to bin these reports in
interesting ways. We'll see. Also change the tag name from
watchdog to lowmem, since sharkey is kindly taking care of
the back-end to handle this.

Improve how we put processes into low memory states to better
poke things like home and the previous app.

Also clean up some debug output, and add a few new am comment
options for controlling the current debug app.

Change-Id: I562a931a95244a2727bb7a6e1fd80dec259cdae2
om/android/server/am/ActivityManagerService.java
om/android/server/am/ContentProviderRecord.java
489ab1167b98061631e6590092e564ec3c9b006c 15-Nov-2011 Michael Jurka <mikejurka@google.com> am 729a9afe: am 4b7494e0: Merge "Updating recent apps visuals on tablet" into ics-mr1

* commit '729a9afe44c21cbe4e10ca4d6ba400641cc75cbc':
Updating recent apps visuals on tablet
5898991075ad5aa941c7c3c92467c03d28902ecf 15-Nov-2011 Jeff Sharkey <jsharkey@android.com> am bc03c74c: am d968670d: Merge "Conservatively trim data usage stats." into ics-mr1

* commit 'bc03c74c485669695805944a655795a6f9890956':
Conservatively trim data usage stats.
356b9b87cf7eae6e45182cc1827bd4a6ee7223b3 15-Nov-2011 Dianne Hackborn <hackbod@google.com> am f1c78890: am 91c2b5ce: Merge "Improve low memory reporting." into ics-mr1

* commit 'f1c78890dc703f44227b556e71624bed7eef95a1':
Improve low memory reporting.
aaba2529034c83e31e0c369a0363a1c5d2a03f6f 15-Nov-2011 Dianne Hackborn <hackbod@google.com> am 74710e50: am f10a5364: Merge "Maybe fix issue #5405788: Device continuously opening and closing..." into ics-mr1

* commit '74710e5041045251c43ff408641ec6818d23f985':
Maybe fix issue #5405788: Device continuously opening and closing...
2502262ddfd8dfedccd61df8967a35eba8e9a0ca 15-Nov-2011 Michael Jurka <mikejurka@google.com> am 4b7494e0: Merge "Updating recent apps visuals on tablet" into ics-mr1

* commit '4b7494e07a44c0aa363379be463de70455a895f3':
Updating recent apps visuals on tablet
ebf8c5d3ee64489bdd01abce85efcbf16de22148 15-Nov-2011 Jeff Sharkey <jsharkey@android.com> am d968670d: Merge "Conservatively trim data usage stats." into ics-mr1

* commit 'd968670d8369e5d92ba9b7a45b3804d692a05a4e':
Conservatively trim data usage stats.
0dfae928517d9501b1bc32216f7c178f435d3c70 15-Nov-2011 Dianne Hackborn <hackbod@google.com> am 91c2b5ce: Merge "Improve low memory reporting." into ics-mr1

* commit '91c2b5cebe981fb894b7e6f053a8593c1d9db80f':
Improve low memory reporting.
4b7494e07a44c0aa363379be463de70455a895f3 15-Nov-2011 Michael Jurka <mikejurka@google.com> Merge "Updating recent apps visuals on tablet" into ics-mr1
bfd24acd318ef958bb7997c9cbf95c5fb15b10ac 13-Nov-2011 Michael Jurka <mikejurka@google.com> Updating recent apps visuals on tablet

- getting rid of blue glow (5529032)
- moving app icon position
- show message if there are no recent apps (5533332)
- fixing rare IllegalStateException on orientation change (5584344)

Change-Id: I2210e584957869c8f02339e6841daf39364a9dad
om/android/server/wm/WindowManagerService.java
d968670d8369e5d92ba9b7a45b3804d692a05a4e 15-Nov-2011 Jeff Sharkey <jsharkey@android.com> Merge "Conservatively trim data usage stats." into ics-mr1
7ee8658453fe4efe04781bea9a14368e1d5ff41f 15-Nov-2011 Jeff Sharkey <jsharkey@android.com> Conservatively trim data usage stats.

Instead of trusting NTP time alone, use the most-conservative of
system clock and NTP.

Bug: 5584564
Change-Id: I5dd87fc009959b1cf0a7d660e385a0b1a8be238b
om/android/server/net/NetworkStatsService.java
fe48e39aeb6b635fee794f9bc430e17d293e3404 15-Nov-2011 Jason Simmons <jsimmons@google.com> resolved conflicts for merge of f10a5364 to ics-aah

Change-Id: I2d6ba86d7a1c4170a30805215ab727fbeac99726
91c2b5cebe981fb894b7e6f053a8593c1d9db80f 15-Nov-2011 Dianne Hackborn <hackbod@google.com> Merge "Improve low memory reporting." into ics-mr1
8ec8d41aa691f901a58d28b89b1395f56bf1d1c3 15-Nov-2011 Dianne Hackborn <hackbod@google.com> Improve low memory reporting.

Change-Id: I42d56ab8026fd02232dd11dbfbc513fbc0a1a851
om/android/server/am/ActivityManagerService.java
om/android/server/am/ContentProviderRecord.java
813075a67897fec54699289972c642a48a2ba9d5 15-Nov-2011 Dianne Hackborn <hackbod@google.com> Maybe fix issue #5405788: Device continuously opening and closing...

...the "Complete action using" dialog

I have never been able to reproduce this consistently, but here is
another stab in the twilight. It looks like during boot we have
a potential race where we could reset the config sequence number after
we had gone through a config change, causing ActivityThread to ignore
a following config change. Maybe this change will help.

Change-Id: I4b731df5fd5c63894ca2e9bd34693b31ab1c0565
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityStack.java
1093c9acc57af7d9805ddcd50f6f3da024b4ed3a 12-Nov-2011 Dianne Hackborn <hackbod@google.com> am 7ddf38a5: am be70785f: Make activity manager more robust in the face of app activity leaks.

* commit '7ddf38a5bf833f90057b0795dd9af6c61d3cf2d5':
Make activity manager more robust in the face of app activity leaks.
391545ed2251909a9576d942eff82c67bf5fe6d9 12-Nov-2011 Dianne Hackborn <hackbod@google.com> am be70785f: Make activity manager more robust in the face of app activity leaks.

* commit 'be70785f9b2dbd2c52fd8676d99bc64b22784201':
Make activity manager more robust in the face of app activity leaks.
be70785f9b2dbd2c52fd8676d99bc64b22784201 11-Nov-2011 Dianne Hackborn <hackbod@google.com> Make activity manager more robust in the face of app activity leaks.

This came up from bug #5601885: Memory increase (leak?) in system_server
Stingray MR1

This isn't *really* a leak in the system process -- it is a leak in an
application process that is causing the system process to keep around
a bunch of ActivityRecord objects longer than it should, until that app
process is ultimately killed.

Unfortunately these days leaking an ActivityRecord also often means
leaking a thumbnail, which is a big slab of memory.

So make the activity manager better about this, using a weak reference
from the handle the object has so we can still clean away most of the
state associated with the ActivityRecord even if the client side leaks
its own reference.

Change-Id: Idbab45e09749cdfb54899203da7981e7b3576e25
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityRecord.java
om/android/server/am/ActivityStack.java
om/android/server/wm/WindowManagerService.java
7a8e78f4d3f15e65ebc700dff463e7838196986d 11-Nov-2011 Robert Greenwalt <rgreenwalt@google.com> am 3100e2b0: am 24597eb7: Merge "Tone down Tethering logs." into ics-mr1

* commit '3100e2b01792e6868698e06ecf275f47f187d537':
Tone down Tethering logs.
36312612293a9d2446409c280a27f580ba871c41 11-Nov-2011 Robert Greenwalt <rgreenwalt@google.com> am 24597eb7: Merge "Tone down Tethering logs." into ics-mr1

* commit '24597eb77e1a88994b83c5b1f45d5b72383943b8':
Tone down Tethering logs.
24597eb77e1a88994b83c5b1f45d5b72383943b8 11-Nov-2011 Robert Greenwalt <rgreenwalt@google.com> Merge "Tone down Tethering logs." into ics-mr1
fd1be2bc1ebfccf9d111dbe3451293d6e31e4af1 11-Nov-2011 Robert Greenwalt <rgreenwalt@google.com> Tone down Tethering logs.

bug:5601582
Change-Id: I66c0a5a06a2c13a7cf93ea264d156b37df23745f
om/android/server/connectivity/Tethering.java
41904b1e58c6faa4bc36e6dd2ab1b8c7e9bd1130 11-Nov-2011 Robert Greenwalt <rgreenwalt@google.com> am 2c41bce3: am 424781e2: Fix NPE in ConnectivityService.

* commit '2c41bce3f2134159ce64d589ff1bb298b9939178':
Fix NPE in ConnectivityService.
411290aa4b290f5aadc9c678884aa65a2ebbb945 11-Nov-2011 Robert Greenwalt <rgreenwalt@google.com> am 424781e2: Fix NPE in ConnectivityService.

* commit '424781e2e1a1f1447eea733ffd1dc0f8006b628e':
Fix NPE in ConnectivityService.
94ca29d461565e5d336a1fe9d2f68d5669ad2f96 11-Nov-2011 Jeff Sharkey <jsharkey@android.com> am 51c00a57: Merge "Clamp non-monotonic stats instead of dropping." into ics-mr1

* commit '51c00a57f4f956b4b0ce9562fa571b475ee6f6ae':
Clamp non-monotonic stats instead of dropping.
3aedf9174733238e035099c5fd94e9f7bca70bd5 11-Nov-2011 Robert Greenwalt <rgreenwalt@google.com> am 7c9f8005: Merge "Fix Wimax-less build." into ics-mr1

* commit '7c9f8005e20af0bb741e36d8239f301371ba5f7f':
Fix Wimax-less build.
424781e2e1a1f1447eea733ffd1dc0f8006b628e 11-Nov-2011 Robert Greenwalt <rgreenwalt@google.com> Fix NPE in ConnectivityService.

If it's configured with a defined network but can't create a network state tracker
for it, it would NPE and restart the framework whenever a default network
disconnects.

bug:5603268
Change-Id: I816c4f522d766e0353a713623f6635b03395b01e
om/android/server/ConnectivityService.java
1333742bedc9b462024302f302e3a7f27053df66 11-Nov-2011 Akwasi Boateng <akwasi.boateng@ti.com> am cb0db030: Merge branch \'ics-mr1-plus-aosp\' of ssh://android-git:29418/platform/frameworks/base into ics-mr1-plus-aosp

* commit 'cb0db0306b5849a35d3d99eea1b34ce019c6f0d8':
Make the overridden ImageView#setVisibility remotable
Clamp non-monotonic stats instead of dropping.
DO NOT MERGE. Fix leak in LayoutTransition
Fix lastVisible/global rects
Fix Wimax-less build.
Fix leak in LayoutTransition
Deferring wallpaper update to improve workspace scrolling (issue 5506959)
Terminate EGL when an app goes in the background
boot animation is dithered and scaled
Fix NdefRecord byte-stream constructor.
PopupWindow dismiss() can get into a recursive loop.
Fold WiMAX state into the mobile RSSI.
Remove dedicated wimax icon to fix RSSI layout.
51c00a57f4f956b4b0ce9562fa571b475ee6f6ae 11-Nov-2011 Jeff Sharkey <jsharkey@android.com> Merge "Clamp non-monotonic stats instead of dropping." into ics-mr1
d4ef8c8fc9ea70448e5d8138bf8bc96f4e69903f 11-Nov-2011 Jeff Sharkey <jsharkey@android.com> Clamp non-monotonic stats instead of dropping.

When encountering non-monotonic stats rows, recover remaining data by
clamping to 0. In particular, this avoids edge-case where persisting
threshold checks would never trigger. Also recover when tethering
snapshots are missing.

Bug: 5600785, 5433871, 5600678
Change-Id: I1871954ce3955cc4ac8846f9841bae0066176ffe
om/android/server/net/NetworkStatsService.java
7c9f8005e20af0bb741e36d8239f301371ba5f7f 11-Nov-2011 Robert Greenwalt <rgreenwalt@google.com> Merge "Fix Wimax-less build." into ics-mr1
6537b028757af736ff53a13488de4fa75aaef9a9 11-Nov-2011 Robert Greenwalt <rgreenwalt@google.com> Fix Wimax-less build.

A build with the wimax network type defined but wimax disabled
causes an NPE in ConnectivityService's constructor.

bug:5237167
Change-Id: I929eac217e1afa0e61346fdbc3e96a7d3ad09a54
om/android/server/ConnectivityService.java
e5249ecbf4977cd185df6b0a52d713ded27c56b9 10-Nov-2011 Dianne Hackborn <hackbod@google.com> am 0f70e482: Merge "Fix issue #5470311: Activity with android:configChanges defined..." into ics-mr1

* commit '0f70e482c8aa7ce9c5676b1226ff98b63fb991e7':
Fix issue #5470311: Activity with android:configChanges defined...
42d4fea25c080b8e9d36035613e4f66b410b0bce 10-Nov-2011 Chet Haase <chet@google.com> am 41ffab86: Merge "increase the rate at which we dispatch events." into ics-mr1

* commit '41ffab86d92622679d4d2ad8307806e8099f8170':
increase the rate at which we dispatch events.
a6a3a6f94950abddc705c92eb07c607834bc9302 10-Nov-2011 Kenny Root <kroot@google.com> am bc853c03: Merge "Close file on exception as well" into ics-mr1

* commit 'bc853c0344b2bbe6f94f425cd0fb1d2642c0fa2f':
Close file on exception as well
f16cb9e5107938b61e5149105e53edc7ffc00395 10-Nov-2011 Dianne Hackborn <hackbod@google.com> am 8eac3b2f: am 0f70e482: Merge "Fix issue #5470311: Activity with android:configChanges defined..." into ics-mr1

* commit '8eac3b2f1ae4b155bd159317e9f221223189ba26':
Fix issue #5470311: Activity with android:configChanges defined...
0f70e482c8aa7ce9c5676b1226ff98b63fb991e7 10-Nov-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #5470311: Activity with android:configChanges defined..." into ics-mr1
f458b3d39aee19f4b1fd0806c0e97cf093c784ab 10-Nov-2011 Chet Haase <chet@google.com> am 68a15583: am 41ffab86: Merge "increase the rate at which we dispatch events." into ics-mr1

* commit '68a15583f7438c687e3b029f83cf80ca7827ff31':
increase the rate at which we dispatch events.
41ffab86d92622679d4d2ad8307806e8099f8170 10-Nov-2011 Chet Haase <chet@google.com> Merge "increase the rate at which we dispatch events." into ics-mr1
0d1569c3594ea4bab3629b4decca97260bdd9f34 10-Nov-2011 Kenny Root <kroot@google.com> am f4db2fe5: am bc853c03: Merge "Close file on exception as well" into ics-mr1

* commit 'f4db2fe56479635f8ec0a195e9e6b53a55216139':
Close file on exception as well
56b53b597f015fa73ca339deff62eadf287297ae 10-Nov-2011 Dianne Hackborn <hackbod@google.com> Fix issue #5470311: Activity with android:configChanges defined...

...should not be restarted when rotating screen on xoom

This was a side-effect of a previous fix to compute the screen layout
config class based on the actual space available to the application, not
the raw display size. On a device like Xoom, the system bar causes us
to switch between LONG and NOTLONG depending on whether the system bar
is on the short or long side of the screen.

To fix this, we now compute the screen layout class the same way
"smallest width" is computed: looking at all of the possible rotations
and using the smallest of them all. In addition to preventing the device
from toggling between long and notlong on a Xoom-like screen, this will
also avoid other possible undersireable behavior like changing screen
layout size when rotating.

This does mean that Xoom is no longer considered a long screen even when
in landscape, because it is not a long screen in portrait.

Change-Id: I85f90a16294ef5a7de94d5b9231abbc6f914fe90
om/android/server/wm/WindowManagerService.java
c95b7412c2d4b6dca0fdee631bd777b6148ddf81 10-Nov-2011 satok <satok@google.com> am 3628dafe: am 34bd5969: Merge "Respect user settings for spell checking language if explicitly set" into ics-mr1

* commit '3628dafe22aeeb2fca09b49d82c8d7289baf68ad':
Respect user settings for spell checking language if explicitly set
62539e9efa02c4037d3310a8b4f16f0085cd8c37 10-Nov-2011 Kenny Root <kroot@google.com> Close file on exception as well

Bug: 5458045
Change-Id: I4c79b9c273ff69dda292e5cc7b2b60f8db2edbd9
om/android/server/pm/Settings.java
532147b308580ec6360dba4c19c41bf4708bfd93 10-Nov-2011 Chet Haase <chet@google.com> increase the rate at which we dispatch events.

Previously, the input dispatch rate was capped by default to 55.
This worked fine for systems with a refresh rate of 55 or lower. But on
devices with a higher frame rate (such as stingray at 60 fps), we do not
receive events as fast as the rendering system wants to redraw the frames, so
we would occasionally miss events between frames, resulting in a visual
stutter during drag operations where the dragged object would essentially
stay still for a frame.

This fix increases the default rate to 90, or 1.5 times the highest typical
refresh rate of our devices.

Change-Id: Id8622185b3da93f9f6505157d2e6f3f33e36bd04
om/android/server/wm/InputManager.java
acf8357f30d303995aea337b5673ffb72947571c 10-Nov-2011 satok <satok@google.com> am 34bd5969: Merge "Respect user settings for spell checking language if explicitly set" into ics-mr1

* commit '34bd596935ccd4574dbf6c6e7bfa24323e3e8e1f':
Respect user settings for spell checking language if explicitly set
05f24700613fb4dce95fb6d5f8fe460d7a30c128 02-Nov-2011 satok <satok@google.com> Respect user settings for spell checking language if explicitly set

Bug: 5554116
Change-Id: I8c16d732af1fe713d30d97dfe829ff16653c7f34
om/android/server/TextServicesManagerService.java
5cc8b1f0fda91f43346ef1ac293c027421f369d5 09-Nov-2011 Jeff Sharkey <jsharkey@android.com> am 33e3710a: am 630a13bd: Merge "Bootstrap stats before registering listeners." into ics-mr1

* commit '33e3710aafb68125f05ab30d61e324c894f0a3bb':
Bootstrap stats before registering listeners.
c592a57f3ff4f4e051eef57c7fb50b8643a653e5 09-Nov-2011 Jeff Sharkey <jsharkey@android.com> am 489b4312: am 4c48d2ff: Merge "Make operation counts monotonically increase." into ics-mr1

* commit '489b431273500db81d35ed43440915187c238f92':
Make operation counts monotonically increase.
e94d9e1e422dca728275eb02d5e725586e609232 09-Nov-2011 Jeff Sharkey <jsharkey@android.com> am 028fe5a7: am 2048789c: Merge "Dispatch alerts through background thread." into ics-mr1

* commit '028fe5a715d8f9d78154e482dc46b27f97f94e53':
Dispatch alerts through background thread.
629cb84fdaed33ea77f733ad748e27a03355cb49 09-Nov-2011 Jeff Sharkey <jsharkey@android.com> am cef1300e: am f3882914: Merge "Make policy data enabled flag static." into ics-mr1

* commit 'cef1300ebd6bc88e93ee1420e5fec359531533d2':
Make policy data enabled flag static.
e55418beaf43b52b91f53342be1475c0524dcbd6 09-Nov-2011 Mathias Agopian <mathias@google.com> am a508f056: am e4a1bafb: Merge "decrease the light-sensor rate to 1Hz (from ~15Hz) for ALS purposes." into ics-mr1

* commit 'a508f056d0b5a439b9436604824739049fd25be6':
decrease the light-sensor rate to 1Hz (from ~15Hz) for ALS purposes.
9aed14ef79fa5a6c525261a21238fe6f620b767f 09-Nov-2011 Jeff Sharkey <jsharkey@android.com> am 79c4ad17: am ccdeb428: Merge "Avoid inconsistent state when remove fails." into ics-mr1

* commit '79c4ad17f966d0ccf24d94fdcbc6d3f83e359604':
Avoid inconsistent state when remove fails.
97c9e987ba188ccb5212d3cfbac65ab26f4cfcb6 09-Nov-2011 Jeff Brown <jeffbrown@google.com> am 0816b0c8: am bc0b010e: Merge "Handle EXTRA_DOCK_STATE_LE_DESK and HE_DESK. Bug: 5569662" into ics-mr1

* commit '0816b0c871ea93ffbcd3c60151d067dcfcebc1ac':
Handle EXTRA_DOCK_STATE_LE_DESK and HE_DESK. Bug: 5569662
6238667682aba89cba7916fea49328ae4f1e648d 09-Nov-2011 Dianne Hackborn <hackbod@google.com> am 3b2681ba: am 3af8b88d: Merge "Add drop box reports of low memory." into ics-mr1

* commit '3b2681bad989013154f90c4b9c31f074af1f822c':
Add drop box reports of low memory.
af139db574d68f957740cccff74c0ef13bee84e8 09-Nov-2011 Irfan Sheriff <isheriff@google.com> am 1c9126c6: am 59c73b92: Merge "Convert soft ap config store to state machine" into ics-mr1

* commit '1c9126c64b56b6465fd551680461caed2e1ea20d':
Convert soft ap config store to state machine
75f9808e5544c69254ea6cf374469a3dd9042b7d 09-Nov-2011 Robert Greenwalt <rgreenwalt@google.com> am 604019c8: Merge "Fix build." into ics-mr1

* commit '604019c8d45b8c56cf48b03dbd92cfbdd29c48c1':
Fix build.
ba8352433889490a71b7b9deee645ce148dfa8fc 09-Nov-2011 Jeff Sharkey <jsharkey@android.com> am 630a13bd: Merge "Bootstrap stats before registering listeners." into ics-mr1

* commit '630a13bdd88723599a7617ca4df20ab923e7ffbb':
Bootstrap stats before registering listeners.
3c865c0a51c8536a64ae179ba2324108a74e4872 09-Nov-2011 Jeff Sharkey <jsharkey@android.com> am 4c48d2ff: Merge "Make operation counts monotonically increase." into ics-mr1

* commit '4c48d2ff6937e1e3a2fb93cc4cc29324b20542a5':
Make operation counts monotonically increase.
5d528576efdcd2414922725008842fe4da7929e2 09-Nov-2011 Jeff Sharkey <jsharkey@android.com> am 2048789c: Merge "Dispatch alerts through background thread." into ics-mr1

* commit '2048789c64d30b0d3c42c4df7e705f14b7295e10':
Dispatch alerts through background thread.
dcb3b6ad576fc8a03678409eee5bd34057161661 09-Nov-2011 Jeff Sharkey <jsharkey@android.com> am f3882914: Merge "Make policy data enabled flag static." into ics-mr1

* commit 'f3882914e668501ee1dabd42207ed18348050c14':
Make policy data enabled flag static.
21e3a16e346c3f632f697d2cfc2c9b9ee01141ee 09-Nov-2011 Mathias Agopian <mathias@google.com> am e4a1bafb: Merge "decrease the light-sensor rate to 1Hz (from ~15Hz) for ALS purposes." into ics-mr1

* commit 'e4a1bafba351a1b4cea18af3442412de03dd4d89':
decrease the light-sensor rate to 1Hz (from ~15Hz) for ALS purposes.
ebf32009ce21390751f204a589ff678a1669db54 09-Nov-2011 Jeff Sharkey <jsharkey@android.com> am ccdeb428: Merge "Avoid inconsistent state when remove fails." into ics-mr1

* commit 'ccdeb428ef541bab1bbc6ee3e33c4fb6ccbec42a':
Avoid inconsistent state when remove fails.
6f551dd14a30f4f65feea765070522a6f8be9eb2 09-Nov-2011 Jeff Brown <jeffbrown@google.com> am bc0b010e: Merge "Handle EXTRA_DOCK_STATE_LE_DESK and HE_DESK. Bug: 5569662" into ics-mr1

* commit 'bc0b010ecc7254b0e2c7a0268e5242557579b471':
Handle EXTRA_DOCK_STATE_LE_DESK and HE_DESK. Bug: 5569662
efae3d24bd6cd5d2916a898148192ed395b3b7b5 09-Nov-2011 Jason Simmons <jsimmons@google.com> Merge "resolved conflicts for merge of 3af8b88d to ics-aah" into ics-aah
43adbae8037540bee8fa7001b33d7d4e6f1d5770 09-Nov-2011 Mike Lockwood <lockwood@android.com> Merge "NetworkTimeUpdateService: Schedule NTP on ethernet connect as well as wifi" into ics-aah
0342a420a4a87f8d03d86e85f2f5aa85f28d75fd 09-Nov-2011 Mike Lockwood <lockwood@android.com> NetworkTimeUpdateService: Schedule NTP on ethernet connect as well as wifi

Change-Id: I936fd9a8119ee361ec0afde60f7931c58ffdd524
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/NetworkTimeUpdateService.java
f98168677929fe9e004d12645a5850551072395a 09-Nov-2011 Jason Simmons <jsimmons@google.com> resolved conflicts for merge of 3af8b88d to ics-aah

Change-Id: I2b68cd7c904e68a16565b7274560e7105c643c87
c1b3cbe1648cc606008522a667abe7fb766ff0c3 09-Nov-2011 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of ea54b760 to master

Change-Id: Ifcdfd6ffd82db1293936a8a3b5715dd767fb43f8
70b1999ad58e2e6284d8b0343c621c87898d7588 09-Nov-2011 Irfan Sheriff <isheriff@google.com> am 59c73b92: Merge "Convert soft ap config store to state machine" into ics-mr1

* commit '59c73b92a9ef8df5d4873bc36f05b776c3a476bc':
Convert soft ap config store to state machine
630a13bdd88723599a7617ca4df20ab923e7ffbb 09-Nov-2011 Jeff Sharkey <jsharkey@android.com> Merge "Bootstrap stats before registering listeners." into ics-mr1
4c48d2ff6937e1e3a2fb93cc4cc29324b20542a5 09-Nov-2011 Jeff Sharkey <jsharkey@android.com> Merge "Make operation counts monotonically increase." into ics-mr1
2048789c64d30b0d3c42c4df7e705f14b7295e10 09-Nov-2011 Jeff Sharkey <jsharkey@android.com> Merge "Dispatch alerts through background thread." into ics-mr1
f3882914e668501ee1dabd42207ed18348050c14 09-Nov-2011 Jeff Sharkey <jsharkey@android.com> Merge "Make policy data enabled flag static." into ics-mr1
3359aca7655a7d18615c1ada6cbabeff403947d1 09-Nov-2011 Jeff Sharkey <jsharkey@android.com> Bootstrap stats before registering listeners.

Also move ISE to handled NonMonotonicException.

Bug: 5570872
Change-Id: I793f349287ef5589185f117dfbec6f1fad73a661
om/android/server/net/NetworkStatsService.java
e4a1bafba351a1b4cea18af3442412de03dd4d89 09-Nov-2011 Mathias Agopian <mathias@google.com> Merge "decrease the light-sensor rate to 1Hz (from ~15Hz) for ALS purposes." into ics-mr1
7e25b0ea8891ffc0ac472d61f21610a9ac4e270a 09-Nov-2011 Jeff Sharkey <jsharkey@android.com> Dispatch alerts through background thread.

Bug: 5557659
Change-Id: Icc3ad476a98ec3430b33f915723ffcc36ccbfae7
om/android/server/net/NetworkPolicyManagerService.java
4abb1b8ef64dc4cd71966b59dc5d72a15055bf13 09-Nov-2011 Jeff Sharkey <jsharkey@android.com> Make operation counts monotonically increase.

Bug: 5585704
Change-Id: I5247a68acdb209a4ef0f5aac18944595c295e6ca
om/android/server/net/NetworkStatsService.java
ccdeb428ef541bab1bbc6ee3e33c4fb6ccbec42a 09-Nov-2011 Jeff Sharkey <jsharkey@android.com> Merge "Avoid inconsistent state when remove fails." into ics-mr1
bc0b010ecc7254b0e2c7a0268e5242557579b471 09-Nov-2011 Jeff Brown <jeffbrown@google.com> Merge "Handle EXTRA_DOCK_STATE_LE_DESK and HE_DESK. Bug: 5569662" into ics-mr1
47f1fe5285fcd9c1d880a1a71cb887e3400b614a 09-Nov-2011 Mathias Agopian <mathias@google.com> decrease the light-sensor rate to 1Hz (from ~15Hz) for ALS purposes.

the intent here is to save power.

Change-Id: I6cc1cae865cc46551afcfcec9ca03faaa5b6936f
om/android/server/PowerManagerService.java
3f3115b27733a822104385284b1ec1f39d91f839 09-Nov-2011 Jeff Sharkey <jsharkey@android.com> Make policy data enabled flag static.

For devices with both CDMA and GSM stack, ConnectivityService only
connects with the GSM variant. Making this flag static communicates
the policy state between all DCT.

Bug: 5586935
Change-Id: Iff0384027303470dd382d5173558d2d091ce4bf6
om/android/server/net/NetworkPolicyManagerService.java
3af8b88d032011fdbc6c498cf3f3881281cff999 09-Nov-2011 Dianne Hackborn <hackbod@google.com> Merge "Add drop box reports of low memory." into ics-mr1
59c73b92a9ef8df5d4873bc36f05b776c3a476bc 09-Nov-2011 Irfan Sheriff <isheriff@google.com> Merge "Convert soft ap config store to state machine" into ics-mr1
9575a1bea1787efe1686bd8562bcc70c72d01721 07-Nov-2011 Irfan Sheriff <isheriff@google.com> Convert soft ap config store to state machine

- Create thread when needed
- asynchronous interaction with wifi state machine

Bug: 5587391
Change-Id: Ie6d01b5a6b398a3fa12c384920a473e242443131
om/android/server/WifiService.java
e4d4fbc8c0257a79d9c6091cea2c264415bd2733 08-Nov-2011 Dianne Hackborn <hackbod@google.com> Add drop box reports of low memory.

We are tagging these as "watchdog" to make them visible in the
reporting tools.

Also new am command to kill all background processes, mostly to make
it easier to test this stuff.

Change-Id: Ib9dc4747cd8bd44156fdf11d6a087cd4272203eb
om/android/server/am/ActivityManagerService.java
1a693182669133c57eda91a4e465e6cd55718f63 08-Nov-2011 Jeff Brown <jeffbrown@google.com> Handle EXTRA_DOCK_STATE_LE_DESK and HE_DESK.
Bug: 5569662

Change-Id: Ib8cb9fb68a1a2d3520f34f7fbf6f002dfb91809d
om/android/server/DockObserver.java
5e99dbc85c741e7d22ea6db1bb0d45c5b175a97f 08-Nov-2011 Mike Lockwood <lockwood@android.com> Merge "Add support for disabling wallpaper service" into ics-aah
38ddeaa67e52810da5db42895edb74b79111ec53 08-Nov-2011 Jeff Sharkey <jsharkey@android.com> Avoid inconsistent state when remove fails.

Bug: 5433432
Change-Id: Ia388fda006cbda09b5947fc61cec6353f75a3805
om/android/server/NetworkManagementService.java
a74ebb6d08e691e1b5802f40b19b27dc0bbf24d5 08-Nov-2011 Robert Greenwalt <rgreenwalt@google.com> am 604019c8: Merge "Fix build." into ics-mr1

* commit '604019c8d45b8c56cf48b03dbd92cfbdd29c48c1':
Fix build.
604019c8d45b8c56cf48b03dbd92cfbdd29c48c1 08-Nov-2011 Robert Greenwalt <rgreenwalt@google.com> Merge "Fix build." into ics-mr1
b45a317b56fca32a3ae2adfca6e7803e945da581 08-Nov-2011 Robert Greenwalt <robdroid@android.com> am ea54b760: Merge "Wimax : wimax framework related open source." into ics-mr1

* commit 'ea54b7608584bc0535c9e89417778c3e95b50975':
Wimax : wimax framework related open source.
8588e47358878b7a1add2bd1df2ade95091cdb8d 08-Nov-2011 Robert Greenwalt <rgreenwalt@google.com> Fix build.

Missed a commit that fixed some issues.
bug:5237167

Change-Id: I61e44831e2c3f1cf613ca1387aa95d712b7d2ded
om/android/server/ConnectivityService.java
ea54b7608584bc0535c9e89417778c3e95b50975 08-Nov-2011 Robert Greenwalt <robdroid@android.com> Merge "Wimax : wimax framework related open source." into ics-mr1
147b601e99981e339df0be74a3dcda9f27fe73a0 08-Nov-2011 Mathias Agopian <mathias@google.com> am 7f1c94e1: Merge "Fix rotation displays frame N-1 briefly while rotating" into ics-mr1

* commit '7f1c94e198e051bf481fd2d286c7b33d00664f9d':
Fix rotation displays frame N-1 briefly while rotating
160b07cf0a68fadd61da1c6988df197108083a8c 08-Nov-2011 Mathias Agopian <mathias@google.com> am 7f1c94e1: Merge "Fix rotation displays frame N-1 briefly while rotating" into ics-mr1

* commit '7f1c94e198e051bf481fd2d286c7b33d00664f9d':
Fix rotation displays frame N-1 briefly while rotating
7f1c94e198e051bf481fd2d286c7b33d00664f9d 08-Nov-2011 Mathias Agopian <mathias@google.com> Merge "Fix rotation displays frame N-1 briefly while rotating" into ics-mr1
46bb0a1cf687e77f7f7338cf74d5ae4897fda9b0 08-Nov-2011 Robert Greenwalt <rgreenwalt@google.com> am 2d9ccdb4: am b445362b: Make upstream tether list threadsafe

* commit '2d9ccdb4abd393375c5ae99445afbb8b0855d25c':
Make upstream tether list threadsafe
e8df64880755306912d264de57846f329da155fb 08-Nov-2011 Robert Greenwalt <rgreenwalt@google.com> am 2d9ccdb4: am b445362b: Make upstream tether list threadsafe

* commit '2d9ccdb4abd393375c5ae99445afbb8b0855d25c':
Make upstream tether list threadsafe
2d9ccdb4abd393375c5ae99445afbb8b0855d25c 08-Nov-2011 Robert Greenwalt <rgreenwalt@google.com> am b445362b: Make upstream tether list threadsafe

* commit 'b445362bd67cf596cfdd39db2dbe8f42cf9a119a':
Make upstream tether list threadsafe
148c7d0de720a92632aa6ed10a39bfc38b427239 13-Oct-2011 tk.mun <tk.mun@samsung.com> Wimax : wimax framework related open source.

Integrate wimax network related changes into Android Framework.
- In Connectivity service, start wimax service.
- 4G icon display in StatusBarPolicy.
- DHCP renew add.
- Add radio for wiamx

Change-Id: I2d9012247edfdf49d71ca7e1414afd0006f330ca
Signed-off-by: tk.mun <tk.mun@samsung.com>
bug:5237167
om/android/server/ConnectivityService.java
b445362bd67cf596cfdd39db2dbe8f42cf9a119a 04-Nov-2011 Robert Greenwalt <rgreenwalt@google.com> Make upstream tether list threadsafe

Outsiders asking for this list may cause the list to change on another thread.
Fixing general synchronization issues.

bug:5531630
Change-Id: I7a3ee0bba3db40f45bcb0159491942fa4cf38c37
om/android/server/connectivity/Tethering.java
4f631bbf97fd02c9b33e5678149627ba2c9f1912 07-Nov-2011 Daniel Sandler <dsandler@android.com> am 010bb273: Merge changes I0da0f04f,I93197665 into ics-mr1

* commit '010bb273a58444f907bb82f62f8d7274f9637b49':
Offer the user an option to launch Dreams when docked.
Teach UiModeMgr about high-end and low-end desk docks.
795f1bf4c4c706e35ad9c95400d30de444eb97cb 07-Nov-2011 Daniel Sandler <dsandler@android.com> am 010bb273: Merge changes I0da0f04f,I93197665 into ics-mr1

* commit '010bb273a58444f907bb82f62f8d7274f9637b49':
Offer the user an option to launch Dreams when docked.
Teach UiModeMgr about high-end and low-end desk docks.
010bb273a58444f907bb82f62f8d7274f9637b49 07-Nov-2011 Daniel Sandler <dsandler@android.com> Merge changes I0da0f04f,I93197665 into ics-mr1

* changes:
Offer the user an option to launch Dreams when docked.
Teach UiModeMgr about high-end and low-end desk docks.
973f8f20c480453d0fbad1795225d1e34aafd739 07-Nov-2011 Dianne Hackborn <hackbod@google.com> am 6581043a: am 7311bd4b: Merge "Print out memory info when we get into a low memory situation." into ics-mr0

* commit '6581043a44ab46a47f09080eeb7c9fc9d0a2d0c0':
Print out memory info when we get into a low memory situation.
9e079d8fa0b3d82ed28bfc875fd9b70b590ea86f 07-Nov-2011 Mathias Agopian <mathias@google.com> am 3f24589e: Merge "workaround to set the WM refresh rate to 48 Hz for tuna devices only" into ics-mr1

* commit '3f24589edd860618ccf65d6653b002d13810e78b':
workaround to set the WM refresh rate to 48 Hz for tuna devices only
08d153fb8e3c92716405d9303cc700095308a8af 05-Nov-2011 Robert Greenwalt <rgreenwalt@google.com> am fd900f05: am 348297ab: Merge "Start using IP tool for advanced routing." into ics-mr0

* commit 'fd900f05fb67046b97701f20626f7fd408fd8990':
Start using IP tool for advanced routing.
4fa8f7f4acebe187765fedaacc82f4b379ea4244 05-Nov-2011 Dave Burke <daveburke@google.com> am a3af4c94: am 3ee47188: Frame rate to 48 fps

* commit 'a3af4c94dfbf3336004a38011f6453bfcd7fd638':
Frame rate to 48 fps
a4e1014d3658066516e6615f1dc78aecde6be291 05-Nov-2011 Irfan Sheriff <isheriff@google.com> am 45a04db3: Merge "Avoid quick shutdown after a driver start" into ics-mr1

* commit '45a04db3f95755829b24043d30d7da7182b4f33b':
Avoid quick shutdown after a driver start
23d1092a75737f8f5ca73f2b7d77294f2de92e44 05-Nov-2011 Dianne Hackborn <hackbod@google.com> am 6581043a: am 7311bd4b: Merge "Print out memory info when we get into a low memory situation." into ics-mr0

* commit '6581043a44ab46a47f09080eeb7c9fc9d0a2d0c0':
Print out memory info when we get into a low memory situation.
6581043a44ab46a47f09080eeb7c9fc9d0a2d0c0 05-Nov-2011 Dianne Hackborn <hackbod@google.com> am 7311bd4b: Merge "Print out memory info when we get into a low memory situation." into ics-mr0

* commit '7311bd4b709750384b058d8e988e2e983c97b3f2':
Print out memory info when we get into a low memory situation.
7311bd4b709750384b058d8e988e2e983c97b3f2 05-Nov-2011 Dianne Hackborn <hackbod@google.com> Merge "Print out memory info when we get into a low memory situation." into ics-mr0
04d6db380fa8f553256144cb2376d5f8e23a9843 05-Nov-2011 Dianne Hackborn <hackbod@google.com> Print out memory info when we get into a low memory situation.

Change-Id: I2c8b8847a0f38135d8bf9ff9b7198517c3b0262e
om/android/server/am/ActivityManagerService.java
308b327fb6aa01bf4b34a937d74d62ad7dcc0629 05-Nov-2011 Mathias Agopian <mathias@google.com> am 3f24589e: Merge "workaround to set the WM refresh rate to 48 Hz for tuna devices only" into ics-mr1

* commit '3f24589edd860618ccf65d6653b002d13810e78b':
workaround to set the WM refresh rate to 48 Hz for tuna devices only
222357f33a105ce08177b94334c7d14af29df8f6 05-Nov-2011 Mathias Agopian <mathias@google.com> workaround to set the WM refresh rate to 48 Hz for tuna devices only

this is TEMPORARY until we can do this properly.

Bug: 5572464
Change-Id: I6537706d636a83a4a50e2900d6b829dd89b6f245
om/android/server/wm/WindowManagerService.java
796ef0d0e1e58468be59094351b789616d30511f 04-Nov-2011 Robert Greenwalt <rgreenwalt@google.com> am fd900f05: am 348297ab: Merge "Start using IP tool for advanced routing." into ics-mr0

* commit 'fd900f05fb67046b97701f20626f7fd408fd8990':
Start using IP tool for advanced routing.
fd900f05fb67046b97701f20626f7fd408fd8990 04-Nov-2011 Robert Greenwalt <rgreenwalt@google.com> am 348297ab: Merge "Start using IP tool for advanced routing." into ics-mr0

* commit '348297abc0e03fb87a1d22465020b580d83fdd61':
Start using IP tool for advanced routing.
348297abc0e03fb87a1d22465020b580d83fdd61 04-Nov-2011 Robert Greenwalt <rgreenwalt@google.com> Merge "Start using IP tool for advanced routing." into ics-mr0
e65beaabe4be554683417839594dd41b6c979cbb 01-Nov-2011 Mathias Agopian <mathias@google.com> Fix rotation displays frame N-1 briefly while rotating

The ScreenShot layer is now created hidden. The screenshot itself
is aquired during the transaction when the layer is made visible.
This guarantees the screenshot and the layer happen atomically
with respect to screen updates.

Bug: 5534521
Change-Id: Ida23e1f13d5716ec83b78a15712e0646d6cf8729
om/android/server/wm/ScreenRotationAnimation.java
a243a6befe8f7d4352130edbfdec443366ba1ef1 04-Nov-2011 Dave Burke <daveburke@google.com> am a3af4c94: am 3ee47188: Frame rate to 48 fps

* commit 'a3af4c94dfbf3336004a38011f6453bfcd7fd638':
Frame rate to 48 fps
a3af4c94dfbf3336004a38011f6453bfcd7fd638 04-Nov-2011 Dave Burke <daveburke@google.com> am 3ee47188: Frame rate to 48 fps

* commit '3ee471889b09d90affddd00c409a515a64b6861b':
Frame rate to 48 fps
3ee471889b09d90affddd00c409a515a64b6861b 04-Nov-2011 Dave Burke <daveburke@google.com> Frame rate to 48 fps

Change-Id: I95645b3921db22dfeca97ad2743299ccda5de83b
om/android/server/wm/WindowManagerService.java
69a1da4ddec90db501a54f0c4de94e9557aebd2e 04-Nov-2011 Daniel Sandler <dsandler@android.com> Teach UiModeMgr about high-end and low-end desk docks.

Should fix dock mode on Stingray, since its docks advertise
themselves as EXTRA_DOCK_STATE_LE_DESK and
EXTRA_DOCK_STATE_HE_DESK but not EXTRA_DOCK_STATE_DESK.

Bug: 5569662
Change-Id: I93197665c0df8dea06ca8fadae97ec267c751c85
om/android/server/UiModeManagerService.java
c4eeed73129ca61fced1be819222a23c45a54616 04-Nov-2011 Irfan Sheriff <isheriff@google.com> am 45a04db3: Merge "Avoid quick shutdown after a driver start" into ics-mr1

* commit '45a04db3f95755829b24043d30d7da7182b4f33b':
Avoid quick shutdown after a driver start
45a04db3f95755829b24043d30d7da7182b4f33b 04-Nov-2011 Irfan Sheriff <isheriff@google.com> Merge "Avoid quick shutdown after a driver start" into ics-mr1
3b28e9a3daede9eac44faeb736ab4c8386ddd089 02-Nov-2011 Robert Greenwalt <rgreenwalt@google.com> Start using IP tool for advanced routing.

bug:5495862
bug:5396842
Change-Id: I5e31b352b14a4dc746cacce4d61cf8d9ad7382a0
om/android/server/ConnectivityService.java
om/android/server/NetworkManagementService.java
om/android/server/connectivity/Tethering.java
e6daca5f53dbb872d0ba6682d0f98831a99c5d9f 03-Nov-2011 Irfan Sheriff <isheriff@google.com> Avoid quick shutdown after a driver start

Causes problems on our wext driver and potentially on cfg
based driver as well.

NLP can trigger very quick acquire and release within seconds
leading to driver switching between start and stop state.

We now keep driver up for atleast couple of minutes after a start

Bug: 5478196
Change-Id: I1b261578252c5fb9a65446241b51e5686d4d9cc3
om/android/server/WifiService.java
f55ce39224d1547cad33fed92382a1248760fd45 03-Nov-2011 Jeff Sharkey <jsharkey@android.com> am 3f9ce4c2: Merge "Verify AppWidget ownership during update." into ics-mr1

* commit '3f9ce4c22ae9b4f0f2208c29f8c93d6ad652a1dc':
Verify AppWidget ownership during update.
7d6931583a8dc483e1e1deef637e346251409616 03-Nov-2011 Jeff Sharkey <jsharkey@android.com> am 3f9ce4c2: Merge "Verify AppWidget ownership during update." into ics-mr1

* commit '3f9ce4c22ae9b4f0f2208c29f8c93d6ad652a1dc':
Verify AppWidget ownership during update.
3f9ce4c22ae9b4f0f2208c29f8c93d6ad652a1dc 03-Nov-2011 Jeff Sharkey <jsharkey@android.com> Merge "Verify AppWidget ownership during update." into ics-mr1
933decaa5e9402099b1bfbbe1012633908c84d11 03-Nov-2011 Jeff Sharkey <jsharkey@android.com> Verify AppWidget ownership during update.

Bug: 5563081
Change-Id: I528ec944d404989bb21b32ef01feb3d35e23d3ad
om/android/server/AppWidgetService.java
4d81191dd377d30570d6c3294b0fb1f0ea681f46 03-Nov-2011 Jeff Sharkey <jsharkey@android.com> am 808ee95d: Merge "Correct proc file reader, optimizations." into ics-mr1

* commit '808ee95dd4244da6ae767d3ddd003ed7b48937d0':
Correct proc file reader, optimizations.
e5e0db8f3b7f90c920cb2dabb60270dc27a46457 03-Nov-2011 Jeff Sharkey <jsharkey@android.com> am 808ee95d: Merge "Correct proc file reader, optimizations." into ics-mr1

* commit '808ee95dd4244da6ae767d3ddd003ed7b48937d0':
Correct proc file reader, optimizations.
808ee95dd4244da6ae767d3ddd003ed7b48937d0 03-Nov-2011 Jeff Sharkey <jsharkey@android.com> Merge "Correct proc file reader, optimizations." into ics-mr1
92049f1d3e0367f817233a1f8217263e6aa43c8c 03-Nov-2011 Dianne Hackborn <hackbod@google.com> am 17bd9a22: Merge "More performance work:" into ics-mr1

* commit '17bd9a22ec993fc9eba060950bc5cecd1e06ffb1':
More performance work:
87aa95b18ca47c0090d71f4e3d33d3b822b5c749 03-Nov-2011 Dianne Hackborn <hackbod@google.com> am 17bd9a22: Merge "More performance work:" into ics-mr1

* commit '17bd9a22ec993fc9eba060950bc5cecd1e06ffb1':
More performance work:
17bd9a22ec993fc9eba060950bc5cecd1e06ffb1 03-Nov-2011 Dianne Hackborn <hackbod@google.com> Merge "More performance work:" into ics-mr1
28695e0c70db82e7ba0ce1c25ab10cc7fb04d40b 03-Nov-2011 Dianne Hackborn <hackbod@google.com> More performance work:

- ActivityManager now keeps track of previous app as you
move across the home app.
- Better debug info about why an activity is being destroyed.
- New performance tests.

Change-Id: I3a5ae7cb1b9f1624c6792a4f6184353f532b8f3b
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityStack.java
om/android/server/am/EventLogTags.logtags
e332aa1431406d5743c7c0f546a170df094fe9ce 03-Nov-2011 Joe Onorato <joeo@google.com> Make ActivityManagerService just kill apps when they crash on tungsten.

Change-Id: I62e6a7b5e0a9b19e4906219292eb0ac9b9774141
om/android/server/am/ActivityManagerService.java
163e6443f27884a9bfcb9a48ef606dc635852c23 01-Nov-2011 Jeff Sharkey <jsharkey@android.com> Correct proc file reader, optimizations.

Moved away from BufferedReader, which only reads the first 8KB of
some proc files because it aggresively fills its buffer. Optimized
proc parsing, now double the speed. Tests to cover.

Log when NetworkStats counters roll backwards when subtracting, and
optimizations around findIndex(). When system removes UID, also
remove from last stats snapshot to avoid xt counters from rolling
backwards.

Bug: 5472949, 5458380
Change-Id: I07c08fe5233156fac2b84450f6291868bf9bfaf2
om/android/server/net/NetworkPolicyManagerService.java
om/android/server/net/NetworkStatsService.java
45ded486211d7811d1003f19fd8aa27d40578c3b 02-Nov-2011 Robert Greenwalt <rgreenwalt@google.com> am 4a113251: am 451fa13e: Merge "Ignore errors when untethering" into ics-mr0

* commit '4a113251078ad028d1a071ebf5562185275c7039':
Ignore errors when untethering
7e7fe83cd0e31efb9377d0cb5b5e14064443b8c9 02-Nov-2011 Robert Greenwalt <rgreenwalt@google.com> am 4a113251: am 451fa13e: Merge "Ignore errors when untethering" into ics-mr0

* commit '4a113251078ad028d1a071ebf5562185275c7039':
Ignore errors when untethering
4a113251078ad028d1a071ebf5562185275c7039 02-Nov-2011 Robert Greenwalt <rgreenwalt@google.com> am 451fa13e: Merge "Ignore errors when untethering" into ics-mr0

* commit '451fa13e82ea1226895b41282fdb33bf9fea5d19':
Ignore errors when untethering
451fa13e82ea1226895b41282fdb33bf9fea5d19 02-Nov-2011 Robert Greenwalt <rgreenwalt@google.com> Merge "Ignore errors when untethering" into ics-mr0
731026c2df0daff1a2ff5a4c1cf44f3891995dd8 02-Nov-2011 Robert Greenwalt <rgreenwalt@google.com> Ignore errors when untethering

Sometimes the interface is removed before we can untether leading to
errors when cleanup up various rules (iptables). Do as much as we can
and then let a re-tether result in error if needed.

bug:5536516
Change-Id: Ib1d064ecc8e9022566f9b0e4678b33144906971c
om/android/server/connectivity/Tethering.java
1a9fedf4978855947c73aa2a87017b60c6f18348 02-Nov-2011 Jeff Sharkey <jsharkey@android.com> am 9427d688: am db0ab2e7: Merge "Process AMS events in NetworkPolicy handler." into ics-mr0

* commit '9427d688bda2d5b177112a58dcfdbcdfdfe98559':
Process AMS events in NetworkPolicy handler.
8f3818c71cdfee1fb8c410fd218585d1c4e08d73 02-Nov-2011 Dianne Hackborn <hackbod@google.com> am 39cec406: Merge "Add new OOM adjustment for the "previous" process." into ics-mr1

* commit '39cec40697ab3d1d106e0c0c21458b2085c96f00':
Add new OOM adjustment for the "previous" process.
9e9a64e87549cd668939c8edfb71b2d7866f5e74 02-Nov-2011 Dianne Hackborn <hackbod@google.com> am f136aa34: Merge "Various performance and other work." into ics-mr1

* commit 'f136aa341abaaf7fd6f7632d41a30b2989d93985':
Various performance and other work.
219e2c782189fae0cca625a1a44a774affe11fb9 02-Nov-2011 satok <satok@google.com> am ff93e417: Merge "Resolve memory leak in TextServicesManagerService" into ics-mr1

* commit 'ff93e417a217703a635d8601b835853e07233afd':
Resolve memory leak in TextServicesManagerService
615ea68a4ea14a8825ca4587d8c7abbf6b5001db 02-Nov-2011 Jeff Sharkey <jsharkey@android.com> am 9427d688: am db0ab2e7: Merge "Process AMS events in NetworkPolicy handler." into ics-mr0

* commit '9427d688bda2d5b177112a58dcfdbcdfdfe98559':
Process AMS events in NetworkPolicy handler.
9427d688bda2d5b177112a58dcfdbcdfdfe98559 02-Nov-2011 Jeff Sharkey <jsharkey@android.com> am db0ab2e7: Merge "Process AMS events in NetworkPolicy handler." into ics-mr0

* commit 'db0ab2e731d755f64583c5704fa406bc0e7a2af4':
Process AMS events in NetworkPolicy handler.
f30880d154b7f6e47da879483fe1ab6060b4239d 02-Nov-2011 Dianne Hackborn <hackbod@google.com> am 39cec406: Merge "Add new OOM adjustment for the "previous" process." into ics-mr1

* commit '39cec40697ab3d1d106e0c0c21458b2085c96f00':
Add new OOM adjustment for the "previous" process.
6f7af03cf13f76f48e63937e13e4a1c508d100d6 02-Nov-2011 Jeff Sharkey <jsharkey@android.com> Process AMS events in NetworkPolicy handler.

When a process changes foreground status or dies, NetworkPolicy
updates its internal state with a lock held. In cases where there
is contention, this can block the AMS handler and prevent other
events, such as broadcasts, from being dispatched.

This change moves the incoming AMS events to an existing internal
NetworkPolicy handler thread, where they can execute without
blocking AMS.

Bug: 5497544
Change-Id: Ie0c620a620fd9f0f4eb02af510bd819efa4deb6a
om/android/server/net/NetworkPolicyManagerService.java
f35fe23669aeeebd2db2acb6baacae503dba03a8 02-Nov-2011 Dianne Hackborn <hackbod@google.com> Add new OOM adjustment for the "previous" process.

This is the process that you had previously been interacting with
in the UI before the current one. Treating it specially should
allow us to improve the scenario of switching back and forth
between two apps.

Also add API constent for ICS MR1.

Change-Id: Ib3fe4df36b270be11dfd6b7e8d107c9994058a4d
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityStack.java
om/android/server/am/ProcessList.java
88175571f23ca7cff6d21cd1d5d6345cfacaa84a 01-Nov-2011 Dianne Hackborn <hackbod@google.com> am f136aa34: Merge "Various performance and other work." into ics-mr1

* commit 'f136aa341abaaf7fd6f7632d41a30b2989d93985':
Various performance and other work.
f136aa341abaaf7fd6f7632d41a30b2989d93985 01-Nov-2011 Dianne Hackborn <hackbod@google.com> Merge "Various performance and other work." into ics-mr1
1fd0109a11539804cb3399f95aefd57f610002d1 01-Nov-2011 satok <satok@google.com> am ff93e417: Merge "Resolve memory leak in TextServicesManagerService" into ics-mr1

* commit 'ff93e417a217703a635d8601b835853e07233afd':
Resolve memory leak in TextServicesManagerService
2c84cfc001fb92a71811bf7384b7f865ff31ff9d 31-Oct-2011 Dianne Hackborn <hackbod@google.com> Various performance and other work.

- IME service now switches between visible and perceptible depending on
whether it is being showm, allowing us to more aggressively free its
memory when not shown.

- The activity display time is no longer delayed by the activity
transition animation.

- New -R (repeat) option for launching activities with the am command.

- Improved some documentation on Loader to be clear about some methods
that apps should not normally call.

- FrameworkPerf test now allows you to select individual tests to run.

Change-Id: Id1f73de66dc93d63212183958a72119ad174318b
om/android/server/InputMethodManagerService.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityRecord.java
om/android/server/wm/AppWindowToken.java
om/android/server/wm/WindowManagerService.java
2a4ee16b71e58dfe5a8614e361d92676f5e351fe 31-Oct-2011 Mike Lockwood <lockwood@android.com> Add support for disabling wallpaper service

Change-Id: Icce40e11581afd4f5adfd02ef1a73c30c505e6ad
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/SystemServer.java
8e043cd5a42071064740b111cfe08eaf720476cf 31-Oct-2011 Mike Lockwood <lockwood@android.com> Fix merge problem

Change-Id: I8767e14c13760a9f3303fa31045d174ac9d73cd9
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/PowerManagerService.java
92537e6ff21d4b20738fae851c2174ea568eb843 31-Oct-2011 Ed Heyl <ed@google.com> merged by hand (services/java/com/android/server/PowerManagerService.java needs to be reviewed)

Change-Id: I86d1111d86cd1646ebc8a88d58aa393089e9f928
266d9ad1f87ffe2fd670897b3d053d3857b86ef0 31-Oct-2011 satok <satok@google.com> am f0fd595f: Merge "Hide ime switcher when the screen is turned off." into ics-mr1

* commit 'f0fd595f0f3203fb81cb39a367b2a06647db907d':
Hide ime switcher when the screen is turned off.
f82621dc3c62db55f8dce71e5d835cae1967bafb 31-Oct-2011 Dianne Hackborn <hackbod@google.com> am e02c88af: Work on process management.

* commit 'e02c88af7935c72fb90a478375e61e4a94465587':
Work on process management.
2520ed8cc3436df023a4f0ce3f436977b8ab3a99 31-Oct-2011 satok <satok@google.com> Resolve memory leak in TextServicesManagerService

Bug: 5499490
Change-Id: I3537b0d733a53d4783902a545cd9ecc7e4c2eac1
om/android/server/TextServicesManagerService.java
f0fd595f0f3203fb81cb39a367b2a06647db907d 29-Oct-2011 satok <satok@google.com> Merge "Hide ime switcher when the screen is turned off." into ics-mr1
e02c88af7935c72fb90a478375e61e4a94465587 28-Oct-2011 Dianne Hackborn <hackbod@google.com> Work on process management.

Introduce a new concept of "B" services. All running services are
classified as either A or B. B services are later in the LRU list.
Their oom_adj is after the home app. This allows us to better pick
services to kill based on how long they have running, and should
reduce the amount that we end up killing the home app.

This temporarly turns on a debug log when the oom_adj of a process
is changed. Sorry, I know it is noisy. This is needed to try to
track down why some processes are being killed.

Also add a flag to the SyncManager's service binding to allow the
syncing process to be more aggressively killed if it has done UI.
This is to address cases we have seen where sync is causing an 80MB
gmail process to be kept around, preventing other process from running.
Now what will happen is that the syncing process will aggressively be
killed by the system, and can then be restarted in a much lighter-weight
state.

Do a little tweak in the power manager to allow us to still do smooth
brightness changes even when the fancy TV off animation is in use.

And get rid of a debug log in the window manager that was accidentally
left in.

Change-Id: I64a8eeaaa1f096bab29c665fbff804c7f1d029e2
om/android/server/PowerManagerService.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/ProcessList.java
om/android/server/am/ProcessRecord.java
om/android/server/wm/WindowState.java
59d04a0ce4757aed0b3506f9700df9a83ec970f6 29-Oct-2011 Chet Haase <chet@google.com> am d568bba5: Merge "Optimize handling of scrolled wallpapers" into ics-mr1

* commit 'd568bba507b0f66d4d57c67b08ade894d2c75e53':
Optimize handling of scrolled wallpapers
195ffd3a1353a4d01fa5fc11f830d826bf066531 29-Oct-2011 Jeff Sharkey <jsharkey@android.com> am cc16024f: Merge "Differentiate between system_server and unknown." into ics-mr1

* commit 'cc16024f101c0fca211fcd069b3917becf7a3c00':
Differentiate between system_server and unknown.
d568bba507b0f66d4d57c67b08ade894d2c75e53 29-Oct-2011 Chet Haase <chet@google.com> Merge "Optimize handling of scrolled wallpapers" into ics-mr1
a8e5a2bcd6a0d35893187c6df42425c03be005da 28-Oct-2011 Chet Haase <chet@google.com> Optimize handling of scrolled wallpapers

Swiping the home screen causes the WindowManagerService to do
a bunch of work to keep the wallpapers in sync. First, it lays out
and places all windows. Also, it notifies the SystemUI process that
the wallpaper position has changed.

The layout/place operation is too much work - we only need to set
the position values for the wallpaper, not relayout the whole system.

The notification mechanism must exist, but should be optional. Most
wallpapers don't care (especially static ImageWallpapers). So we'll
give them a new API (WallpaperService.Engine.setWantsOffsets()) to
allow wallpapers to opt out of this process and avoid the performance
overhead.

Change-Id: I66c38375438937f14f6f5550565b28eb204b1e06
om/android/server/wm/WindowManagerService.java
cc16024f101c0fca211fcd069b3917becf7a3c00 28-Oct-2011 Jeff Sharkey <jsharkey@android.com> Merge "Differentiate between system_server and unknown." into ics-mr1
a353d2654a98b292469d2559cb4424b13d779924 28-Oct-2011 Jeff Sharkey <jsharkey@android.com> Differentiate between system_server and unknown.

Bug: 5531966
Change-Id: I2b64b04f3f5a8760a2314729e8b90e9dd6699cb4
om/android/server/Watchdog.java
om/android/server/am/ActivityManagerService.java
fc5b4f757f5de3c82b19f6eb854acd3e08f88473 19-Sep-2011 Mike Lockwood <lockwood@android.com> SystemServer: Don't start A2DP service if audio is not enabled

Change-Id: I95b8971cf79a99d8a98b48fd1337cc5cb4767e29
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/SystemServer.java
d070dca89fdd40b6abf0862af6c49538775905d1 13-Sep-2011 Mike Lockwood <lockwood@android.com> Fix problems dispatching media button events on headless devices

Change-Id: I57444f2b0b51b08fda561d5acecb66316fb3f4a7
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/am/ActivityManagerService.java
om/android/server/wm/WindowManagerService.java
bc06928ef3e3c1538755b7182856665c61ad7a7e 31-Aug-2011 Mike Lockwood <lockwood@android.com> ActivityManager: Make sure BOOT_COMPLETED Intent is sent when running headless

Change-Id: Ibf4ea989ef031a93d96ee0a0f7b24284edf2517c
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/am/ActivityManagerService.java
e0ded6710a9fe7cc4f1efd7dfe7af7de42e1b0f2 30-Aug-2011 Mike Lockwood <lockwood@android.com> New Serial Manager API:

SerialManager: provides access to serial ports
SerialPort: for reading and writing data to and from serial ports

IO with both array based and direct ByteBuffers is supported.

Accessing serial ports requires android.permission.SERIAL_PORT permission

Each platform must configure list of supported serial ports in the
config_serialPorts resource overlay
(this is needed to prevent apps from accidentally accessing the bluetooth
or other system UARTs).

In addition, the platform uevent.rc file must set the owner to the
/dev/tty* files to "system" so the framework can access the port.

Change-Id: I8d75ca7d6592223ea6c47f8a17fa180dfed1aad0
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/SerialService.java
om/android/server/SystemServer.java
7a7670a5200a79bd03287aad11a1a62a3fc8df70 18-Aug-2011 Mike Lockwood <lockwood@android.com> SystemServer: Add support for disabling AudioService and MountService

Using the same convention in system_init.cpp, you can disable these
services by setting system properties:

system_init.startaudioservice=0
system_init.startmountservice=0

Change-Id: If5acd19600d6f6165262c6ae0966d4028977d7a1
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/SystemServer.java
a0a8b249bcae9d05c4c973e7bfe23fcb40227f52 12-Aug-2011 Mike Lockwood <lockwood@android.com> Add headless mode for running the framework without the surface flinger

Enabled by setting system property ro.config.headless to 1
This will allow the framework to run without starting activities,
system UI and the keyguard.
Framework can still run services, content providers and broadcast receivers.

Change-Id: I96606609a4ede57a2c4c7fb2b6ff060ebf31e3b4
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/PowerManagerService.java
om/android/server/SystemServer.java
om/android/server/am/ActivityManagerService.java
om/android/server/wm/WindowManagerService.java
15452a487a4c0274f4217cd060aa54446f30a8f3 28-Oct-2011 satok <satok@google.com> Hide ime switcher when the screen is turned off.

Bug: 5481999
Change-Id: Ifc870f1350db2a67405c05f6de447a69dc050408
om/android/server/InputMethodManagerService.java
258f52fed38849d9150ff8ec6b5972f716a07939 28-Oct-2011 Robert Greenwalt <rgreenwalt@google.com> am 859bf0f2: am 81433a38: Merge "Temp disable Tethering if DUN is required" into ics-mr0

* commit '859bf0f2efb7b5518055893c17aa3a6437023633':
Temp disable Tethering if DUN is required
859bf0f2efb7b5518055893c17aa3a6437023633 28-Oct-2011 Robert Greenwalt <rgreenwalt@google.com> am 81433a38: Merge "Temp disable Tethering if DUN is required" into ics-mr0

* commit '81433a38784e64dbc155047a3915cf5eff32840b':
Temp disable Tethering if DUN is required
7962d2f129025a422001135d1b45ee7e82c13989 27-Oct-2011 Robert Greenwalt <rgreenwalt@google.com> am 52201ae5: am 8d059ac5: Merge "Fix Tethering settings." into ics-mr0

* commit '52201ae5421b1efed2568109f3fc37462fdb7c35':
Fix Tethering settings.
4efe58d8e7ff6186e5f0341174f22123e0934bee 27-Oct-2011 Robert Greenwalt <rgreenwalt@google.com> Temp disable Tethering if DUN is required

Getting source-based routing working is too risk for this point
in the project but tethering is broken otherwise, so disable
the tethering option if DUN is required until we can get a real
fix in.

bug:5495862
Change-Id: I5e852bf30c887599024a8b61af86ffec1d5333af
om/android/server/ConnectivityService.java
52201ae5421b1efed2568109f3fc37462fdb7c35 27-Oct-2011 Robert Greenwalt <rgreenwalt@google.com> am 8d059ac5: Merge "Fix Tethering settings." into ics-mr0

* commit '8d059ac5b186547a86bb92678c7d1cb13fd8ce1c':
Fix Tethering settings.
8d059ac5b186547a86bb92678c7d1cb13fd8ce1c 27-Oct-2011 Robert Greenwalt <rgreenwalt@google.com> Merge "Fix Tethering settings." into ics-mr0
b453daf952252a59718e55acd62a09c0736f5b80 27-Oct-2011 Mike Lockwood <lockwood@android.com> am d085df31: am aac4184a: Merge "Revert "PowerManagerService: Enable light sensor debug output"" into ics-mr0

* commit 'd085df318afc8b3485afdd81106ce93a13265ebb':
Revert "PowerManagerService: Enable light sensor debug output"
d085df318afc8b3485afdd81106ce93a13265ebb 27-Oct-2011 Mike Lockwood <lockwood@android.com> am aac4184a: Merge "Revert "PowerManagerService: Enable light sensor debug output"" into ics-mr0

* commit 'aac4184a5a0ab969140a11e1ef258fcb4cba07a9':
Revert "PowerManagerService: Enable light sensor debug output"
aac4184a5a0ab969140a11e1ef258fcb4cba07a9 27-Oct-2011 Mike Lockwood <lockwood@android.com> Merge "Revert "PowerManagerService: Enable light sensor debug output"" into ics-mr0
020098dd080b05ad14472696518b5742700eba54 26-Oct-2011 Dianne Hackborn <hackbod@google.com> am c6592d2e: am 67a1b7d6: Merge "Fix issue #5508024: Rotation jank seen in live wallpapers" into ics-mr0

* commit 'c6592d2eb808befedc3d9c842b61e21cc6bedbf3':
Fix issue #5508024: Rotation jank seen in live wallpapers
74768bd4768a03cb098d8bb294457642bc6b5442 26-Oct-2011 satok <satok@google.com> am 1bfe6e95: Merge "Fix a bug where surface crashes when the enter animation starts while the exit animation has not yet finished" into ics-mr1

* commit '1bfe6e95a175b45ee68921e3ffe2571b222864bf':
Fix a bug where surface crashes when the enter animation starts while the exit animation has not yet finished
c6592d2eb808befedc3d9c842b61e21cc6bedbf3 26-Oct-2011 Dianne Hackborn <hackbod@google.com> am 67a1b7d6: Merge "Fix issue #5508024: Rotation jank seen in live wallpapers" into ics-mr0

* commit '67a1b7d6e5857d0ecdd1aa9d50d10189e5776c11':
Fix issue #5508024: Rotation jank seen in live wallpapers
3ec891ae8067dd7afac5c0b5a8af0b726f4a4726 25-Oct-2011 Dianne Hackborn <hackbod@google.com> Fix issue #5508024: Rotation jank seen in live wallpapers

Fix a few places where we would unfreeze the screen too early.
Now that we are no longer relying on surface flinger freezing, we
can't depend on it keeping the screen frozen until surfaces get
drawn.

Change-Id: Icb03bf30c9599a5e2016817bfa5ca6458adc7249
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
e49cf107e2533b7ca71c500bc20a0f6dcdf9efdc 25-Oct-2011 Ed Heyl <ed@google.com> merge ics-mr0

Change-Id: I4f0b2bb1b1136c9467e9d55f57f5333153cae65d
1bfe6e95a175b45ee68921e3ffe2571b222864bf 25-Oct-2011 satok <satok@google.com> Merge "Fix a bug where surface crashes when the enter animation starts while the exit animation has not yet finished" into ics-mr1
ae92eb349668154221e1fa6ed2ecb8e4a9dee84c 25-Oct-2011 Mike Lockwood <lockwood@android.com> Revert "PowerManagerService: Enable light sensor debug output"

This reverts commit 22d12ab14cefa8d9a59e63945f57b4f809849c76.

Bug: 5505809
om/android/server/PowerManagerService.java
9dc20214f56136185489eeccc9254f2cd6c666e4 25-Oct-2011 Mike Lockwood <lockwood@android.com> Merge "Reset cached light sensor values when toggling auto-brightness mode" into ics-mr0
141fc9868bb56c498dad072a84a80dac8cdb85e5 25-Oct-2011 Mike Lockwood <lockwood@android.com> Merge "Revert "PowerManagerService: Remove assumption that light sensor will always send a value as soon as it is enabled."" into ics-mr0
2ffe0ad39127950074dc74bc5d15a284975da5ae 25-Oct-2011 Mike Lockwood <lockwood@android.com> Always use fresh NTP time for GPS

This is especially important when AGPS is disabled

Bug: 5355661

Change-Id: I072dbe1ddf43aa24c8fc39b750040504a1633c53
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/location/GpsLocationProvider.java
320a10ad8c595405a39dee3649d4057cbdb96eec 25-Oct-2011 Mike Lockwood <lockwood@android.com> Reset cached light sensor values when toggling auto-brightness mode

Now the screen brightness will readjust to ambient lighting when toggling
auto-brightness on and off in Settings or the Power Widget.

Bug: 5486091

Change-Id: Ic98939fe1c59cb8def0f84266e48ca00329d6b30
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/PowerManagerService.java
55174b663b4f01853a8a821bdf1ffe0fb910eab8 25-Oct-2011 Mike Lockwood <lockwood@android.com> Revert "PowerManagerService: Remove assumption that light sensor will always send a value as soon as it is enabled."

The correct behavior for the light sensor is to immediately report a value
when it is enabled, so this change should not be necessary.

Bug: 5426212

This reverts commit 5dca30affc517879315b3a928c78756cbc9cf689.
om/android/server/PowerManagerService.java
cef37fb481d16eda2b304887a8738ed599bc1b21 24-Oct-2011 satok <satok@google.com> Fix a bug where surface crashes when the enter animation starts while the exit animation has not yet finished

Bug: 5446482
Change-Id: I2e9f2e91ab5e8b22896d12e08fac76c72c997274
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
bddc835436f4ebaf902bfcb69715a736bcaa102a 24-Oct-2011 Svetoslav Ganov <svetoslavganov@google.com> Merge "Adding APIs to enable reporting virtual view hierarchies to accessibility serivces."
49348e77b69ec8b7ba17072bdce066d6ad842276 22-Oct-2011 Robert Greenwalt <rgreenwalt@google.com> Fix Tethering settings.

Two issues. A mcc/mnc-driven overlay means that the config at boot may not be
the config we wish to use - the sim card is read later which may switch the
config. Changed to read the configuration each time rather than once at boot.
Second, the secure-setting override was always trumping the resource config
as we weren't discriminating between a not-set default and a real setting.
This meant the config could never make DUN-required.

bug:5495862
Change-Id: Icd4e90ac1d32bbb704c0ff9cc69e954fb0a0b58c
om/android/server/connectivity/Tethering.java
6ec96ec4048ed71d5f07addb9605340d87829a9b 21-Oct-2011 Dianne Hackborn <hackbod@google.com> am 943da7b8: Merge "Fix issue #5342788: Setting wallpaper from gallery set default..." into ics-mr0

* commit '943da7b895b7cc69cdaed7979cff422a7dbaac19':
Fix issue #5342788: Setting wallpaper from gallery set default...
186e21d8fb698ff491db3378789ef59570f0a879 21-Oct-2011 Mike Lockwood <lockwood@android.com> am 6b6bfb18: Merge "PowerManagerService: Enable light sensor debug output" into ics-mr0

* commit '6b6bfb187412e4845c89d866eff0b87b6d0a5541':
PowerManagerService: Enable light sensor debug output
943da7b895b7cc69cdaed7979cff422a7dbaac19 21-Oct-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #5342788: Setting wallpaper from gallery set default..." into ics-mr0
3da318202f401583cef6d548266f67c365fd1805 21-Oct-2011 Dianne Hackborn <hackbod@google.com> Fix issue #5342788: Setting wallpaper from gallery set default...

...wallpaper first time IRK81.

We were monitoring for file creates when those are not needed, and
receiving the initial file create was causing us to be confused.

Change-Id: Iccd3b7492c82895dba87f25c4881c538f300d342
om/android/server/WallpaperManagerService.java
021078554b902179442a345a9d080a165c3b5139 04-Oct-2011 Svetoslav Ganov <svetoslavganov@google.com> Adding APIs to enable reporting virtual view hierarchies to accessibility serivces.

Added an interface that is the contract for a client to expose a virtual
view hierarchy to accessibility services. Clients impement this interface
and set it in the View that is the root of the virtual sub-tree. Adding
this finctionality via compostion as opposed to inheritance enables apps
to maintain backwards compatibility by setting the accessibility virtual
hierarchy provider on the View only if the API version is high enough.

bug:5382859

Change-Id: I7e3927b71a5517943c6cb071be2e87fba23132bf
om/android/server/accessibility/AccessibilityManagerService.java
22d12ab14cefa8d9a59e63945f57b4f809849c76 21-Oct-2011 Mike Lockwood <lockwood@android.com> PowerManagerService: Enable light sensor debug output

Bug: 5426212

Change-Id: I46ca01eee8d69f7bd6fc63e53506ba42c3fe537d
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/PowerManagerService.java
48019c65edb6ab8be8da6bfebe532a89bbf62c4f 21-Oct-2011 satok <satok@google.com> am 2cf1cf09: Fix possible NPE

* commit '2cf1cf098513807ffd3420ae106f438e943d0cd8':
Fix possible NPE
2cf1cf098513807ffd3420ae106f438e943d0cd8 21-Oct-2011 satok <satok@google.com> Fix possible NPE

Bug: 5494803
Change-Id: I6f9d0076405ab7c99076a1168198c2ee70ad5082
om/android/server/TextServicesManagerService.java
257e67e44c96a00316091535c90e820db3de6050 20-Oct-2011 Christopher Tate <ctate@google.com> Merge "Don't inappropriately kill ANRing drop recipients"
05e9c65a53002e39306a0581310b4b0fceed7433 20-Oct-2011 Christopher Tate <ctate@google.com> Don't inappropriately kill ANRing drop recipients

If an app takes the 5-second ANR timeout before responding to a
drop, but then recovers, we were inappropriately throwing an
exception back at it for having acknowledged the drop after we'd
abandoned the operation out from under it. Now we let such
responses slide without taking any punitive action: the app is
still okay, and the drag/drop operation was cleanly terminated
already anyway.

Bug 5045618

Change-Id: I0b7e76c61f0f8c97e41280b542a470a7d3c8d86f
om/android/server/wm/Session.java
e0d32a60da29e133e5b4ff46133628476d83872c 20-Oct-2011 Jean Chalard <jchalard@google.com> Fix a warning from the binder, step 3.

This patch fixes the following warning:
W/Binder: The following Binder class should be static or
leaks might occur: com.android.server
.InputMethodManagerService.MethodCallback

...in hope of removing a possible memory leaks.

Bugs: 5481376, 5461066
Change-Id: I1764090a7059d9bf9e5d90683d7ac190c83415de
om/android/server/InputMethodManagerService.java
22522289fc0fda5c5fdd8c74e72c9f1f84e421f1 20-Oct-2011 Daniel Sandler <dsandler@android.com> am 84e825a8: Merge "Add hasNavigationBar() to the window manager." into ics-mr0

* commit '84e825a84d7dde03042228c79638935c92d13c92':
Add hasNavigationBar() to the window manager.
84e825a84d7dde03042228c79638935c92d13c92 20-Oct-2011 Daniel Sandler <dsandler@android.com> Merge "Add hasNavigationBar() to the window manager." into ics-mr0
bf83971ba883e30e778558cf4df1e034233214c9 20-Oct-2011 Dianne Hackborn <hackbod@google.com> am 16362041: Merge "Fix issue #5484096: Device rebooted after turning WiFi tethering ON, IRL19 Crespo." into ics-mr0

* commit '163620417bc2980528e2079e3456c9600a92e165':
Fix issue #5484096: Device rebooted after turning WiFi tethering ON, IRL19 Crespo.
c7d233d93f84fce9877c3eb645bbb515baf0dc0a 20-Oct-2011 Dianne Hackborn <hackbod@google.com> Fix issue #5484096: Device rebooted after turning WiFi tethering ON, IRL19 Crespo.

Change-Id: Iee530ae4adac20eb9637cc1b933a2202f4beb373
om/android/server/TextServicesManagerService.java
0c4ccff36930ff4f0292b94ad51e164c9fa060a3 19-Oct-2011 Daniel Sandler <dsandler@android.com> Add hasNavigationBar() to the window manager.

It is no longer sufficient to check the value of
internal.R.bool.config_showNavigationBar to determine if a
navigation bar (separate from the status bar) is shown on a
device, because the emulator needs to be able to override
this value (now possible by setting qemu.hw.mainkeys to "1"
or "0", for navbar or no navbar, respectively).

This logic is now contained in PhoneWindowManager, and any
clients wishing to know whether the system has a software
nav bar should consult the new hasNavigationBar() method.

Bug: 5404945
Change-Id: I119d32a8c84b88b2ef46f63244e7f11dc5de0359
om/android/server/wm/WindowManagerService.java
667580b716b36a8afbf8d910e14f0249eccd44c9 19-Oct-2011 Ben Komalo <benkomalo@google.com> am 8408e516: Merge "Fix remote device wipe to not hang." into ics-mr0

* commit '8408e5165a74ddee7d2d8698314cfda521fbfc76':
Fix remote device wipe to not hang.
8408e5165a74ddee7d2d8698314cfda521fbfc76 19-Oct-2011 Ben Komalo <benkomalo@google.com> Merge "Fix remote device wipe to not hang." into ics-mr0
2696d0520f9b928264caa5f98c2e6b1e749f9a11 19-Oct-2011 Dave Burke <daveburke@google.com> am 70ac412b: Merge "Add a LayerScreenshot" into ics-mr0

* commit '70ac412b2fe7be2507189a9fdfb30c43b36d56ac':
Add a LayerScreenshot
70ac412b2fe7be2507189a9fdfb30c43b36d56ac 19-Oct-2011 Dave Burke <daveburke@google.com> Merge "Add a LayerScreenshot" into ics-mr0
3254774b923378116cc7f9706431bd56f08bdd38 19-Oct-2011 Dave Burke <daveburke@google.com> am d7035c58: Merge "Fix a hang in SF caused by invalid transform matrix from the WM" into ics-mr0

* commit 'd7035c58b006b62084232c8db6c4f7c4002170cc':
Fix a hang in SF caused by invalid transform matrix from the WM
d7035c58b006b62084232c8db6c4f7c4002170cc 19-Oct-2011 Dave Burke <daveburke@google.com> Merge "Fix a hang in SF caused by invalid transform matrix from the WM" into ics-mr0
0ab84ef507f23505a72798fbe25cf4bb2c507ea3 14-Oct-2011 Mathias Agopian <mathias@google.com> Add a LayerScreenshot

A LayerScreenshot is a special type of layer that contains a screenshot of
the screen acquired when its created. It works just like LayerDim.

Make sure to call compositionComplete() after rendering into a FBO.

Bug: 5446982, 5467587, 5466259
Change-Id: I5d8a1b4c327f9973d950cd4f4c0bca7f62825cd4
om/android/server/wm/ScreenRotationAnimation.java
526f0a0e158cf46c244edc57624c15ebce26c71f 19-Oct-2011 Mathias Agopian <mathias@google.com> Fix a hang in SF caused by invalid transform matrix from the WM

WindowManager could create by transforms because of divide by zero.

Bug: 5422468
Change-Id: I782f87ebb78b5ff23750e22837f36ca6cfed1f2f
om/android/server/wm/WindowState.java
06f3e84595d5eccff8e42ddf00b15186b5af7b0d 18-Oct-2011 Dianne Hackborn <hackbod@google.com> am 535f6eac: Merge "Fix issue #5461497: Landed on Welcome screen after a tap on \'Next\' in Screen 500" into ics-mr0

* commit '535f6eacb9bd508caac463a12ab69be1cd58c5a5':
Fix issue #5461497: Landed on Welcome screen after a tap on 'Next' in Screen 500
98cfebc6e871937e296fc1c6b89e07cdc8d5ba28 18-Oct-2011 Dianne Hackborn <hackbod@google.com> Fix issue #5461497: Landed on Welcome screen after a tap on 'Next' in Screen 500

The basic problem was that at some points during setup wizard, this would
happen:

1. The app's process is killed.
2. The app's process is restarted, but not to actually resume the
setup wizard activity, just to put it in the stopped state.
When doing this, the saved state is cleared but the app will
never provide a new one.
3. The app's process is killed again. At this point, because the
saved state is cleared, the activity is completely removed.
4. Eventually the entire activity stack becomes empty, and a new
setup wizard activity needs to be created as the home app.

There is a combination of bad stuff going on here.

First, why is the process being killed? At this point the setup
wizard is the home app, so it shouldn't be killed. There were two
reasons why this was happening:

- CryptKeeper still was not completely cleanly going away. To fix
this, I removed the check in the activity manager to not allow
an activity to finish if it is the only activity on the stack and
maybe-kindof looks like the home app. This really wasn't necessary
(we always take care of starting a new home activity if we find the
stack is empty), and outright dangerous with all of these things
purporting to be home but not.

- There was an issue in computing the oom_adj where the home app
would not be marked as "not hidden", and if we had to re-compute
its oom adj in the current sequence would then give it an
adjustment as a background process... and with all the processes
we spin through during boot, it quickly got down to background
#16 and killed.

Second, what is going on with the state? This is easier, the code
in the activity manager to create a new activity but put it in the
stopped state was still clearing the saved state. The saved state
should only be cleared when going in to the resumed state. When
going in to the stopped state, we can just keep holding the same
saved state.

Change-Id: I7d21cdcfa082d98ca70c79d9923e29605ee4353e
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityStack.java
12ca1fa78a22a9e84b69013297dc46b1c766d71b 18-Oct-2011 Svetoslav Ganov <svetoslavganov@google.com> am 601d5817: Merge "TouchExplorer crashes if there is incative pointer while dragging." into ics-mr0

* commit '601d5817301bc79c34c30e7b606fe872b2b76c31':
TouchExplorer crashes if there is incative pointer while dragging.
d8581c7a61a9db042b531ce4baca3c036316e066 18-Oct-2011 Svetoslav Ganov <svetoslavganov@google.com> TouchExplorer crashes if there is incative pointer while dragging.

The TouchExplorer was not taking into account the case with incative
pointers while dragging. If one puts a finger down and then perfroms
a dragging gestore the explorer tries to inject UP event for the end
of the gesture upon every of the two dragging pointers going up instead
only for one the first went up.

bug:5476098

Change-Id: I20d2dd7bde7e016b0678a35d14cd068d9ff37023
om/android/server/accessibility/TouchExplorer.java
ed48c8b4f50e060add50ad72a8d7af2fa547885b 18-Oct-2011 Ben Komalo <benkomalo@google.com> Fix remote device wipe to not hang.

The DPM seemed to always go through ExternalStorageFormatter to wipe the
device and SD card. For SD cards emulated on a fuse filesystem, this
seems to fail unless the device is wholly encrypted. Bypass
ExternalStorageFormatter in those cases and just wipe as normal.

Bug: 5458396
Change-Id: Iec759ef894c6bd3863cb4e7329f4de4584c60c1a
om/android/server/DevicePolicyManagerService.java
2789e257fcdf5947e00726bd7c7a1a88adde7e95 18-Oct-2011 Jeff Sharkey <jsharkey@android.com> am 31603aac: Merge "Validate commands and arguments." into ics-mr0

* commit '31603aacbb54b98cbee498412f6a5eb9dd4a2788':
Validate commands and arguments.
b0aec07f7462ff7563835c3107f4b46a28eae7a4 15-Oct-2011 Jeff Sharkey <jsharkey@android.com> Validate commands and arguments.

Bug: 5465176
Change-Id: I9402054c20ea6cae42781c35bfc2ade90aac31ce
om/android/server/NativeDaemonConnector.java
om/android/server/NetworkManagementService.java
88217fea8a070c319b216de06df7dcd2cd172acd 17-Oct-2011 Dianne Hackborn <hackbod@google.com> am c047f60d: Merge "Fix issue #5445666: bunch of com.android.server.TextServicesManagerService crashes" into ics-mr0

* commit 'c047f60db277252f8921b88c82df1a8812afb169':
Fix issue #5445666: bunch of com.android.server.TextServicesManagerService crashes
a3dca6fdaacf9ffea4a844848a53c1adeb089897 17-Oct-2011 Mathias Agopian <mathias@google.com> am 840b8a67: Revert "Add a LayerScreenshot"

* commit '840b8a678537519c27ddf2f818494eaa20a135d4':
Revert "Add a LayerScreenshot"
4b1415ebd9bf39fa3e4ee62eef14cf613ea37dec 17-Oct-2011 Mathias Agopian <mathias@google.com> am 57337eb7: Merge "Add a LayerScreenshot" into ics-mr0

* commit '57337eb78e65c160fb9c46a01e04c476d1bfdca1':
Add a LayerScreenshot
71e14da93c8fea512fedf1b5226d28cd2c330238 17-Oct-2011 Dianne Hackborn <hackbod@google.com> Fix issue #5445666: bunch of com.android.server.TextServicesManagerService crashes

Only unbind once.

Also protection from removing a SpellCheckerBindGroup from mSpellCheckerBindGroups
if it is no longer the current entry there.

Change-Id: Ic585295dfae77eae101a611afbf116bc681290ad
om/android/server/TextServicesManagerService.java
840b8a678537519c27ddf2f818494eaa20a135d4 17-Oct-2011 Mathias Agopian <mathias@google.com> Revert "Add a LayerScreenshot"

This reverts commit d6809f40cf61203573ec5dbc437f695cd132cc18.
om/android/server/wm/ScreenRotationAnimation.java
57337eb78e65c160fb9c46a01e04c476d1bfdca1 15-Oct-2011 Mathias Agopian <mathias@google.com> Merge "Add a LayerScreenshot" into ics-mr0
d6809f40cf61203573ec5dbc437f695cd132cc18 14-Oct-2011 Mathias Agopian <mathias@google.com> Add a LayerScreenshot

A LayerScreenshot is a special type of layer that contains a screenshot of
the screen acquired when its created. It works just like LayerDim.

Bug: 5446982
Change-Id: I7814aff2380e7e146937f2b641907be2a30c76cc
om/android/server/wm/ScreenRotationAnimation.java
8f4e49a8fe4f568b2be090768f3297655ecd6d34 14-Oct-2011 Christopher Tate <ctate@google.com> Merge "DO NOT MERGE - Require device encryption password for adb backup/restore" into ics-mr0
d54bcad4bbb02eec47b26f6466bc01ff4e24f449 14-Oct-2011 Wink Saville <wink@google.com> am 8a058cbf: Merge "In releaseWifiLockLocked call noteReleaseWifiLock." into ics-mr0

* commit '8a058cbf12c590db810fe8d9fab6f4f614909329':
In releaseWifiLockLocked call noteReleaseWifiLock.
8a058cbf12c590db810fe8d9fab6f4f614909329 14-Oct-2011 Wink Saville <wink@google.com> Merge "In releaseWifiLockLocked call noteReleaseWifiLock." into ics-mr0
b9c1acfb0b4a41ffb5a4d9c38ef298c3a1eb9599 10-Oct-2011 Christopher Tate <ctate@google.com> DO NOT MERGE - Require device encryption password for adb backup/restore

This supersedes any backup-password that the user might supply. Per
design, the device encryption password is also always used to encrypt
the backup archive.

The CL introduces two new strings, used for prompting the user for
their device encryption password rather than their settings-defined
"backup password" when confirming a full backup or restore operation.

Bug 5382487

Change-Id: I278737927a4ecbb765bfb5ecfd28a4cb8dae52ef
om/android/server/BackupManagerService.java
om/android/server/MountService.java
ce0ea1f2b92c0e47941f8ae777c676ff6fe50d22 14-Oct-2011 Wink Saville <wink@google.com> In releaseWifiLockLocked call noteReleaseWifiLock.

Bug: 5452027
Change-Id: I45786a9cfe752f02a9c2e75e5b6f35bc5dfed6ae
om/android/server/WifiService.java
d09289ed80a56864c74024f8a2266a0c34c00d0b 14-Oct-2011 Dianne Hackborn <hackbod@google.com> am 97e9ea98: Merge "Fix bug with CLEAR_TASK -- wouldn\'t clear the top activity." into ics-mr0

* commit '97e9ea98afac197722d7620d5fd09a8c06aafe3a':
Fix bug with CLEAR_TASK -- wouldn't clear the top activity.
97e9ea98afac197722d7620d5fd09a8c06aafe3a 14-Oct-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix bug with CLEAR_TASK -- wouldn't clear the top activity." into ics-mr0
eabd328deea453a31d6b8f738c5bf0c3974d48b1 14-Oct-2011 Dianne Hackborn <hackbod@google.com> Fix bug with CLEAR_TASK -- wouldn't clear the top activity.

Maybe this will also fix bug #5144065 as well.

I doubt I am so lucky, though.

Change-Id: I60bf595d3eff79353fdd94b0f2a089e81218bc30
om/android/server/am/ActivityStack.java
28e9046ed41a04562c34d37cad690aeebec36001 13-Oct-2011 Christopher Tate <ctate@google.com> Merge "Require device encryption password to perform adb backup/restore"
69828470626cf267829a4762f6b0f49b7b964322 13-Oct-2011 Mike Lockwood <lockwood@android.com> am ab9d5b11: Merge "PowerManagerService: Remove assumption that light sensor will always send a value as soon as it is enabled." into ics-mr0

* commit 'ab9d5b11737f8a460467657035186bcfa7085eb9':
PowerManagerService: Remove assumption that light sensor will always send a value as soon as it is enabled.
ab9d5b11737f8a460467657035186bcfa7085eb9 13-Oct-2011 Mike Lockwood <lockwood@android.com> Merge "PowerManagerService: Remove assumption that light sensor will always send a value as soon as it is enabled." into ics-mr0
1bbb92deed0d2ae1b40be5a9603b0fb16329de97 13-Oct-2011 Adam Cohen <adamcohen@google.com> am c408a5d5: Merge "Fixing issue where widgets file was getting blown away, issue: 5036321" into ics-mr0

* commit 'c408a5d5738c84160a7e9a8299c953ea638bcef4':
Fixing issue where widgets file was getting blown away, issue: 5036321
c408a5d5738c84160a7e9a8299c953ea638bcef4 13-Oct-2011 Adam Cohen <adamcohen@google.com> Merge "Fixing issue where widgets file was getting blown away, issue: 5036321" into ics-mr0
5dca30affc517879315b3a928c78756cbc9cf689 13-Oct-2011 Mike Lockwood <lockwood@android.com> PowerManagerService: Remove assumption that light sensor will always send a value as soon as it is enabled.

Bug: 5426212

Change-Id: Iebe51609233ef17c108bbec680369793abbae1be
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/PowerManagerService.java
7fdf356837d8ccd63f1c1ea254c315356d816894 13-Oct-2011 Dianne Hackborn <hackbod@google.com> am 97175bc3: Merge "Fix issue #5446988: WindowManager warns BOOT TIMEOUT,..." into ics-mr0

* commit '97175bc3277055047d4c3e6109824065f2abec5d':
Fix issue #5446988: WindowManager warns BOOT TIMEOUT,...
38cc8960cbe09f8cb028a0cf8798c8c6fc75df33 13-Oct-2011 Dianne Hackborn <hackbod@google.com> Fix issue #5446988: WindowManager warns BOOT TIMEOUT,...

...dev.bootcomplete flags is set before boot animation is out

Also:

- Fix crash in recent apps if the intent for an old app didn't
happen to have the new task flag set.
- Fix issue where a crash in system UI would cause the crash
dialog to be displayed below it, effectively locking the UI. Now
the crash dialog for persistent processes is shown above everything
else.

Change-Id: I0312001a92beeae5f644c7c3e5c5e19f6716df36
om/android/server/am/ActivityManagerService.java
om/android/server/am/AppErrorDialog.java
om/android/server/wm/WindowManagerService.java
32418be49e5b61c2e9281528cb8fb67939e301e8 10-Oct-2011 Christopher Tate <ctate@google.com> Require device encryption password to perform adb backup/restore

This supersedes any backup-password that the user might supply. Per
design, the device encryption password is also always used to encrypt
the backup archive.

The CL introduces two new strings, used for prompting the user for
their device encryption password rather than their settings-defined
"backup password" when confirming a full backup or restore operation.

Bug 5382487

Change-Id: I0b03881b45437c944eaf636b6209278e1bba7a9f
om/android/server/BackupManagerService.java
om/android/server/MountService.java
2c4d954ece25324dee2b5f4dc08bd8fb3f5e3dfb 13-Oct-2011 Dianne Hackborn <hackbod@google.com> am f4b40de6: Merge "Fix issue #5445966: WindowManager reporting -long on prime when it shouldn\'t be." into ics-mr0

* commit 'f4b40de684b3574475205542f22b2d49a75f31eb':
Fix issue #5445966: WindowManager reporting -long on prime when it shouldn't be.
f4b40de684b3574475205542f22b2d49a75f31eb 13-Oct-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #5445966: WindowManager reporting -long on prime when it shouldn't be." into ics-mr0
9730031f8af9f20f3e85fbb2b8925461c3980233 13-Oct-2011 Adam Cohen <adamcohen@google.com> Fixing issue where widgets file was getting blown away, issue: 5036321

Change-Id: If40a9c79f70e11eee935b2dd2614e723423ff3bf
om/android/server/AppWidgetService.java
36991744a221c30a47085442e6416bdde40b85e8 12-Oct-2011 Dianne Hackborn <hackbod@google.com> Fix issue #5445966: WindowManager reporting -long on prime when it shouldn't be.

The window manager now uses the app screen dimensions to compute
the various configuration properties, as it should.

This means that prime is official a "not long" device. Poor prime.
It probably feels inadequate now.

Because it is.

Oh and all that other stuff? Debugging logs. Turned off. And
why the heck not, debugging logs are great.

Change-Id: Iaaf8ef270d986d34fd046d699ef4c0ecea1981fc
om/android/server/wm/DragState.java
om/android/server/wm/ScreenRotationAnimation.java
om/android/server/wm/Session.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
d5bb82d18cbd95bb9e751d8315b9ed0b69595033 12-Oct-2011 Jeff Brown <jeffbrown@google.com> DO NOT MERGE. Improve screenshot chord debouncing.
Bug: 5011907

Introduce a 150ms delay in handling volume down keys
while waiting to see if a power key will follow.

Don't trigger the screenshot chord if both volume up and
volume down are pressed together.

Don't trigger the long-press power menu if volume keys are
also pressed.

Require the user to press both keys in the chord within
the debounce time and continue long-pressing them in order
to trigger the screenshot action.

Change-Id: I248968d37b73c09d6d08e7f62667c443eba32da0
om/android/server/wm/InputManager.java
om/android/server/wm/InputMonitor.java
2b5b83bda80253a6ff0925ae65da636ed2856def 12-Oct-2011 Jeff Brown <jeffbrown@google.com> Merge "Improve screenshot chord debouncing. Bug: 5011907"
905805ad7ce18a386076fff99264f821bbad9f83 12-Oct-2011 Jeff Brown <jeffbrown@google.com> Improve screenshot chord debouncing.
Bug: 5011907

Introduce a 150ms delay in handling volume down keys
while waiting to see if a power key will follow.

Don't trigger the screenshot chord if both volume up and
volume down are pressed together.

Don't trigger the long-press power menu if volume keys are
also pressed.

Require the user to press both keys in the chord within
the debounce time and continue long-pressing them in order
to trigger the screenshot action.

Change-Id: I248968d37b73c09d6d08e7f62667c443eba32da0
om/android/server/wm/InputManager.java
om/android/server/wm/InputMonitor.java
c2091130ae1a1b37956f49d0fe81fb82413cd2dd 12-Oct-2011 Jamie Gennis <jgennis@google.com> am 075e4c3d: Merge "SurfaceFlinger: update orientation via transactions" into ics-mr0

* commit '075e4c3d2e6a8a9eb3506dfedc8da938fb65fb65':
SurfaceFlinger: update orientation via transactions
075e4c3d2e6a8a9eb3506dfedc8da938fb65fb65 12-Oct-2011 Jamie Gennis <jgennis@google.com> Merge "SurfaceFlinger: update orientation via transactions" into ics-mr0
9dbe41432c1a580b33f8820a2712e0a4d1c9fad4 12-Oct-2011 Svetoslav Ganov <svetoslavganov@google.com> am 52763734: Merge "Dragging in touch explore mode should not become exploring." into ics-mr0

* commit '5276373430af24448324941af6b911d90a3ddd10':
Dragging in touch explore mode should not become exploring.
2e1c66bd53d30d2148afaa4b393b60cd59976d65 12-Oct-2011 Svetoslav Ganov <svetoslavganov@google.com> Dragging in touch explore mode should not become exploring.

In touch exploration two fingers in the same direction drag and if one of them
goes up the other starts to touch explore. This however causes inadvertent touch
exploring to happen on almost every scroll causing confusion. Now two finger
drag and they should both go up to allow exploring. This way the inadvertent
exploring is gone and user experience is much better.

bug:5440411

Change-Id: Id8aaece92e5dea1fc740400d2adc9dd63a1674e4
om/android/server/accessibility/TouchExplorer.java
69f364ae879cfde8716de07cc3358a4bc515a05b 11-Oct-2011 Jeff Sharkey <jsharkey@android.com> Merge "Update internal state when iface is removed."
e2909e121c45d58fe587849b1474c80745fcd2b9 11-Oct-2011 Jamie Gennis <jgennis@google.com> SurfaceFlinger: update orientation via transactions

This change merges the ISurfaceComposer::setOrientation functionality
into ISurfaceComposer::setTransactionState. It enables the window
manager to atomically update both the display orientation and the
position and size of the windows in a single transaction with
SurfaceFlinger.

Bug: 5439574
Change-Id: I18a8ccc564d7d760ef8afb2d015ccdb7a7963900
om/android/server/wm/WindowManagerService.java
89b8a2161ab6ad0211df305da1eebd6227a217e6 11-Oct-2011 Jeff Sharkey <jsharkey@android.com> Update internal state when iface is removed.

Bug: 5433432
Change-Id: I7eb0ffe3ae07f42d5c47fe4082f490478c5099bf
om/android/server/NetworkManagementService.java
9f4021d86a92355539844623b782331006926a4e 11-Oct-2011 Dianne Hackborn <hackbod@google.com> Merge "Keep screen brightness at 0 while waiting for the UI to be displayed."
474fd74b8828717820b303497fece32f0b0e5d44 11-Oct-2011 Dianne Hackborn <hackbod@google.com> Keep screen brightness at 0 while waiting for the UI to be displayed.

Change-Id: I957135c5423db6d83f4f30232481a1b6d77165fa
om/android/server/PowerManagerService.java
338140f7340a5471b5c5e8152405bc810fe56769 11-Oct-2011 Jeff Sharkey <jsharkey@android.com> Merge "Over-limit within handful of MTU's, update assets."
b765e45f007a97c5b624f27a9368164ad03a4fee 11-Oct-2011 Christopher Tate <ctate@google.com> Merge "Gracefully handle "needs init" transport errors at finish"
50e7e51d68e3b01c3362fe9ab7b3448132e48b43 11-Oct-2011 Jeff Sharkey <jsharkey@android.com> Over-limit within handful of MTU's, update assets.

Consider a network over-limit when it's measured usage is within a
handful of MTU's, since kernel completely drops packets that trigger
limit alert.

Update notification drawables.

Bug: 5433359, 5224629
Change-Id: I10b19cc34c34b47775904229829a25208cd85d25
om/android/server/net/NetworkPolicyManagerService.java
e659fb92750490807d5bb6f27ce01d2253bd7c70 11-Oct-2011 Christopher Tate <ctate@google.com> Gracefully handle "needs init" transport errors at finish

Although it's typical for a backup transport to report that it
needs an explicit initialization opportunity when the backup is
initiated, it can sometimes come to pass that the "needs init"
error condition is reported at backup *finish*. In this case the
framework side was failing to properly reset all of the relevant
state. The end result was to spin hard forever, holding wakelocks
and continually failing to actually perform the necessary init
operation, possibly continuing even after a reboot. Fixed.

Bug 5434579

Change-Id: If1d72c338526e4019ea524c48a11e71e44e77f71
om/android/server/BackupManagerService.java
58f42a59bda3bc912d0d2f81dc65a9d31d140eaa 10-Oct-2011 Dianne Hackborn <hackbod@google.com> Fix issue #5405788: Device continuously opening and closing...

...the "Complete action using" dialog

When an application goes idle, it sends back to the activity manager
the configuration it last used, to make sure the two don't get out
of sync. Fix a bunch of edge cases here in dealing with that, and
be sure to also send the current configuration when launching an
activity so the client is always up-to-date when launching.

Also a small fix to not show the upgrading dialog during first boot.

Change-Id: I14ed366a87cd689d1c78787369e052422290ac6f
om/android/server/SystemServer.java
om/android/server/am/ActivityStack.java
om/android/server/pm/PackageManagerService.java
om/android/server/pm/Settings.java
om/android/server/wm/WindowManagerService.java
af8139ee9b97c031e5b45ac9f1175ef4794c39ee 10-Oct-2011 satok <satok@google.com> Merge "Fix the behavior for choosing new default IME not to choose an auxiliary IME as the default IME"
dc9ddaee9a710cf6f5d7f37350650f82e706c706 05-Oct-2011 satok <satok@google.com> Fix the behavior for choosing new default IME not to choose an auxiliary IME as the default IME

Bug: 5420127

Change-Id: I3649de36806fc24e1c85c2b15db5e37acad1f120
om/android/server/InputMethodManagerService.java
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
om/android/server/ConnectivityService.java
om/android/server/NetworkManagementService.java
om/android/server/am/BatteryStatsService.java
ba8ecd206cc6f175767f952d380c88f70ece04cf 08-Oct-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix how we hide and show the nav bar."
df89e65bf0fcc651d20b208c8d8d0b848fb43418 07-Oct-2011 Dianne Hackborn <hackbod@google.com> Fix how we hide and show the nav bar.

The PhoneWindowManager is now responsible for hiding and showing
the nav bar.

For hiding, it just moves it off the screen (easy way to get a
nice slide animation on and off). At the same time, we use a
new WM facility to put up a fake input window to capture all
touch events.

When a touch event is received, we force the system UI to clear
the navigation hiding bit so it will be shown again.

This removes a bunch of code from the system UI for hiding and
showing the nav bar. Also removes the code calling from userActivity()
to the system UI, which was bad. (Also no longer using userActivity()
fixes bugs around re-showing the nav bar due to key presses and
other wrong things.)

Change-Id: I8c3174873b5bcaa36a92322a51e8f7993e88e551
om/android/server/StatusBarManagerService.java
om/android/server/wm/DragState.java
om/android/server/wm/FakeWindowImpl.java
om/android/server/wm/InputMonitor.java
om/android/server/wm/WindowManagerService.java
e47b89cabe38bb0a711c3b2a87be9696c7a1f074 07-Oct-2011 Christopher Tate <ctate@google.com> Merge "Fix wallpaper restore"
bf6ee4f509cbe7a44f4cc72f28e6150ca47c066d 07-Oct-2011 Christopher Tate <ctate@google.com> Fix wallpaper restore

Following a restore of the wallpaper data files, the settingsRestored()
method was binding the new wallpaper by passing null as the component,
because once upon a time that meant just use the configuration that had
just been loaded from the [newly restored] settings filed. However, at
some point this broke when the load from settings was made a staging
operation, not also the commitment of the changes.

This CL passes the newly-determined component configuration explicitly
to the bind, overriding the product default that may already have been
emplaced by the time the restore happens.

It also turns off the (minor) debugging that had been enabled in
WallpaperBackupHelper while digging into the issue.

Bug 5416839

Change-Id: I963893c236e24c75d10dde75836805295ea42cbb
om/android/server/WallpaperManagerService.java
31743d8cbbd0d54bfe8d2a43154a2b9615c8f282 07-Oct-2011 Svetoslav Ganov <svetoslavganov@google.com> Merge "Accessibility test automation API not working."
b74931559b9e95b22ea632c243acda19fe8ea82c 07-Oct-2011 Chia-chi Yeh <chiachi@android.com> Merge "VPN: temporarily disable the default proxy when VPN is active."
893783ed8768a98cbfea09c4e60093e2580dd22b 07-Oct-2011 Chia-chi Yeh <chiachi@android.com> Merge "ConnectivityService: detach the logic of global proxy."
85b9edf2da0534bc53d139bb88cda8866d265afe 07-Oct-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #5371530: SYSTEMUI_FLAG_HIDE_NAVIGATION reasserts itself immediately"
9a230e01a1237749a8a19a5de8d46531b0c8ca6a 06-Oct-2011 Dianne Hackborn <hackbod@google.com> Fix issue #5371530: SYSTEMUI_FLAG_HIDE_NAVIGATION reasserts itself immediately

This cleans up how ui flags are managed between the client and window manager.
It still reports the global UI mode state to the callback, but we now only clear
certain flags when the system goes out of a state (currently this just means the
hide nav bar mode), and don't corrupt other flags in the application when the
global state changes.

Also introduces a sequence number between the app and window manager, to avoid
using bad old data coming from the app during these transitions.

Change-Id: I40bbd12d9b7b69fc0ff1c7dc0cb58a933d4dfb23
om/android/server/wm/Session.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
b6eca6e6691d4563d8395b3c3843d9932a2a6560 27-Sep-2011 Svetoslav Ganov <svetoslavganov@google.com> Accessibility test automation API not working.

1. Due to a previous change that disabled accessibility if not enabled
and installed serivces are present the automation APIs stopped working
since they use fake automation service that is not installed.

2. Added clean up of death recipients when binders die.

bug:5374662
bug:5239044

Change-Id: I1f3c8cd1d1c79753a4a64e2b8b2963025abb2939
om/android/server/accessibility/AccessibilityManagerService.java
0ded8c8a563e07b080b8c133cfc81708c55e5bca 06-Oct-2011 Christopher Tate <ctate@google.com> Merge "Prevent concurrent backup operations"
ca35bc5acc80ad1380a9631770f13448677d0d34 06-Oct-2011 Jeff Sharkey <jsharkey@android.com> Merge "Refine random stats generation."
293779f9c63cbae0dde564449f0270b595593b0d 06-Oct-2011 Jeff Sharkey <jsharkey@android.com> Refine random stats generation.

Offer parameters to pick out specific list of packages, and to change
duration and total data.

Bug: 5416742
Change-Id: I6970a5e76f3198ef23a400c079037212b000ca6b
om/android/server/net/NetworkStatsService.java
7bb9883d0564e1d3f7303d4934418998d540c1b8 06-Oct-2011 Adam Cohen <adamcohen@google.com> Adding logging to debug widget deletions

Change-Id: I15a943650f930fd3fb6163c60af85abc2865e684
om/android/server/AppWidgetService.java
4dfce20cac7492882d366d053006795aefad59da 05-Oct-2011 Jeff Brown <jeffbrown@google.com> Make SENSOR orientation modes trump rotation lock.
Bug: 5371750

Change-Id: I4d18b6c8ba1de0afd5929ddb8d7123272e35fbe2
om/android/server/wm/WindowManagerService.java
336a649cd83dccc8a18125b8f3c0ce5cdd021602 06-Oct-2011 Christopher Tate <ctate@google.com> Prevent concurrent backup operations

We've seen cases (bug 5417779) where the transport kicked off an immediate
backup operation but then was perfectly content to allow the periodic
timer to start *another* pass concurrently while the first was still in
progress. This wound up with the backup manager getting mightily
confused and leaking wakelock acquisitions, which is Very Bad(tm).

This patch adds a little bookkeeping so that the backup manager is aware
of backups in flight, and refuses to kick off a new one until the ongoing
one has finished.

Change-Id: If12b54f4db3effc8af36d31c58d8f9b415ddc01e
om/android/server/BackupManagerService.java
edc633170fb28fd17395472d000875f19d157e18 05-Oct-2011 Dianne Hackborn <hackbod@google.com> Merge "Always unfreeze display."
161dc80ea754d987a905bc5814872168d581040d 05-Oct-2011 Dianne Hackborn <hackbod@google.com> Always unfreeze display.

Change-Id: I7a0f3be49fe723fe59cf6268861bc5fe7f49bc62
om/android/server/wm/WindowManagerService.java
59ba98565d82fe7542569d1dd0847b47f30655d6 05-Oct-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #5388352: font size change back to normal"
09e5b9daf3c675b8943015abb3b420fd45f19fe8 05-Oct-2011 Dianne Hackborn <hackbod@google.com> Fix issue #5388352: font size change back to normal

This is another place where we are messed up by the stupid default
Configuration having a 1.0 font scale. Argh.

Change-Id: Iaa2550d4edab92fb8a52f98fbb9fd8ef5fab94b5
om/android/server/wm/WindowManagerService.java
b5de598554a97c557a3e0c20c28bbe5454164a6d 05-Oct-2011 Christopher Tate <ctate@google.com> Merge "Add -nosystem flag to adb backup"
240c7d2d1fb2944ee6a6f1dee41c7bbd766f8f0d 04-Oct-2011 Christopher Tate <ctate@google.com> Add -nosystem flag to adb backup

This makes it easy to back up everything that belongs to 3rd party apps, but
nothing that comes with the system per se. If any system packages are
explicitly named on the command line they will be included in the backup
even if -nosystem was passed. So, for example, this will back up all 3rd
party apps as well as system settings, but nothing else belonging to
system-deployed apps:

adb backup -all -nosystem com.android.provider.settings

Bug 5361503

Change-Id: Iebe04b7d7027ca58b9f55e8eb7f219d6cca69269
om/android/server/BackupManagerService.java
50a2f8ea9d855c58f589cfaa12235a742185021d 04-Oct-2011 Jeff Sharkey <jsharkey@android.com> Merge "Read iface stats from single proc file."
ae2c1810839430c84e4a1172580d9c4b18f568ca 04-Oct-2011 Jeff Sharkey <jsharkey@android.com> Read iface stats from single proc file.

When available, use single "iface_stat_all" file instead of reading
values from dozens of files scattered across proc. Tests to verify.

Bug: 5397840
Change-Id: I0247be518436c1f79b32c4b72216739f49a9e8cc
om/android/server/NetworkManagementService.java
c58111b307018da66bc227ed5ca019f7d8143b9a 04-Oct-2011 Jeff Sharkey <jsharkey@android.com> Merge "Track xtables summary, move tether stats, time."
afb119c5e19fe74bc99fd7ad2c4bcc21612872a5 04-Oct-2011 Kenny Root <kroot@google.com> Merge "Add explicit mimetype for verifier calls"
905b5891d2aa802f447ac2ce5d77b6c5ba06277a 01-Oct-2011 Jeff Sharkey <jsharkey@android.com> Track xtables summary, move tether stats, time.

Begin tracking xtables summary of data usage to compare with values
reported from /proc/net/dev. Roll tethering directly into UID stats
to trigger UID stats persisting when crossing threshold.

Include xtables summary and authoritative time in samples.

Bug: 5373561, 5397882, 5381980
Change-Id: Ib7945522caadfbe0864fdf391582dc820f4f371e
om/android/server/EventLogTags.logtags
om/android/server/NetworkManagementService.java
om/android/server/net/NetworkStatsService.java
4c12a47bffc51868285b17db9f00d40affc7c9e3 04-Oct-2011 Chia-chi Yeh <chiachi@android.com> VPN: temporarily disable the default proxy when VPN is active.

Bug: 5361858
Change-Id: I99e84cce9c99ff1f5fdccbfd3bfb9cf496ac541c
om/android/server/ConnectivityService.java
a503a0f5d407fd10528e26b6eaed0e4e1d3badc1 03-Oct-2011 Kenny Root <kroot@google.com> Add explicit mimetype for verifier calls

Change-Id: I29ffb216680aa24fd9ca3fb4d190038f6d724cb9
om/android/server/pm/PackageManagerService.java
e4474c3b7098a13bc81b0dba35bacd93b8a22f79 29-Sep-2011 Chia-chi Yeh <chiachi@android.com> ConnectivityService: detach the logic of global proxy.

The current implementation of global proxy is dead,
and it will be removed completely in separate changes.

Change-Id: I54f6b3960f761483d28d808e99db4c71c9c0348d
om/android/server/ConnectivityService.java
774f9856d31d42741660c07d24a1bb86c754365e 03-Oct-2011 Irfan Sheriff <isheriff@google.com> Merge "Remember wifi disable due to airplane"
31b92e28a577f2f36f30b8a95147155fec038e30 03-Oct-2011 Irfan Sheriff <isheriff@google.com> Remember wifi disable due to airplane

Add the wifi disabled due to airplane mode as a seperate settings so
that wifi is restored after a reboot when airplane mode is turned off

Bug: 5365718
Change-Id: I36a9694bbcacd5bb5f89498e4adc47c81e611da6
om/android/server/WifiService.java
4a553e3a70d26fac5d7b7ec1142e0cabfdd66670 03-Oct-2011 satok <satok@google.com> Prioritize the order of subtypes in method.xml for implicitly enabled subtypes

Bug: 5401115
Change-Id: I6d9229cd266e27b68a6b9a2892aabfba4fe4de00
om/android/server/InputMethodManagerService.java
82afa6e61e6e8df57b71096a9f07eda956442fec 30-Sep-2011 repo sync <isheriff@google.com> Merge "Fix IPv6 on wifi"
83a5926ee349a3daf33cd8efd21e312fc0b1621e 30-Sep-2011 Kenny Root <kroot@google.com> Merge "Add DUMP permission checks to services"
3e21c99f10de1acdd373fbb166a7618bebfceba0 30-Sep-2011 satok <satok@google.com> Merge "Fix a logic to recconect IME in InputMethodManagerService"
59b424c3b6121c9579fc5efcc785ba084072a5ca 30-Sep-2011 satok <satok@google.com> Fix a logic to recconect IME in InputMethodManagerService

Bug: 5380216

Change-Id: I7af67265eebbd28f002210d7ac90dd18f1858f66
om/android/server/InputMethodManagerService.java
70deff4c107963164f8b88365909fd30ab5e6526 30-Sep-2011 satok <satok@google.com> Use user's settings for the spell check language instead of the system locale

Bug: 5390462
Change-Id: Ia2a3981cb93f451646debe5ee6b037313825cf9f
om/android/server/TextServicesManagerService.java
7960d9f888e31602e17b8856c77a3826bf8c841e 29-Sep-2011 repo sync <isheriff@google.com> Fix IPv6 on wifi

Bug: 5388757
Change-Id: I3c8c776c26dad1daa9801d0455fde749c0206401
om/android/server/NetworkManagementService.java
b8491bb75fec622862166e1b0ba3dc60d38bfff5 30-Sep-2011 Christopher Tate <ctate@google.com> Enforce DUMP permission on BackupManagerService's dump() method

The text of the dumped output can potentially include an email address;
we don't want random code to be able to read it.

Bug 5389201

Change-Id: If84886357a36b7015878e4d72017abba83b4c511
om/android/server/BackupManagerService.java
3abd75ba3a981850cac43a401d0014a836559cb0 29-Sep-2011 Kenny Root <kroot@google.com> Add DUMP permission checks to services

Some services have info that is not readily available any other way. Add
a permission check to those services.

Bug: 5389201
Change-Id: I5a9724ec89e1c11ef7813eeb52a6a05b3ea92af5
om/android/server/am/ActivityManagerService.java
om/android/server/am/BatteryStatsService.java
om/android/server/am/UsageStatsService.java
c1358b240c28443496249a5483afaccfc93f8d97 29-Sep-2011 Lorenzo Colitti <lorenzo@google.com> Revert "Tell the resolver what protocols to use."

Change Ife82a8d8 broke IPv6 on wifi. Change I4e3a69ea is
an alternate approach that does not require any framework
changes.

Bug: 5284168
Change-Id: Ib6e002aa23700adc71051cf6b76860545497dbf4
om/android/server/ConnectivityService.java
d7208b98e97abcbc728cb748cc6ff99332b6750f 27-Sep-2011 Christopher Tate <ctate@google.com> am 7462251b: Merge "Don\'t hang in restore if the transport reports failure" into ics-factoryrom

* commit '7462251b0a3f2601236b599bcabf54451143b704':
Don't hang in restore if the transport reports failure
7462251b0a3f2601236b599bcabf54451143b704 27-Sep-2011 Christopher Tate <ctate@google.com> Merge "Don't hang in restore if the transport reports failure" into ics-factoryrom
84da4e47e723bd27165da8dff735bd508e909610 27-Sep-2011 Christopher Tate <ctate@google.com> Merge "Use the new INSTALL_FROM_ADB Package Manager flag..."
ab63aa87c1a8ce4e7bb831b3de4e357028ac2fba 27-Sep-2011 Christopher Tate <ctate@google.com> Use the new INSTALL_FROM_ADB Package Manager flag...

...when installing an apk in the course of an 'adb restore' operation.

Fixes bug 5374597.

Change-Id: I8ddce0e015e3bab79432e82709d841887667c346
om/android/server/BackupManagerService.java
1867a3cde6411cfa27d0339c973d94fe0287d1a8 27-Sep-2011 Romain Guy <romainguy@google.com> Merge "Do not blend opaque windows."
7036fdd099fe035f7052828aa730e304e760cc39 27-Sep-2011 Romain Guy <romainguy@google.com> Do not blend opaque windows.

This change ensures the wallpaper is rendered into an opaque surface
which avoids a glClear() in SurfaceFlinger. This should save quite
a bit of work on every frame when panning the workspace in launcher.

Change-Id: Id43d3498a54c2d60ec4ee3377c92ef79bff55bc1
om/android/server/wm/WindowState.java
4941dea00a3167addf14ac6bb962cf5bc3590466 27-Sep-2011 Romain Guy <romainguy@google.com> Do not blend opaque windows.

This change ensures the wallpaper is rendered into an opaque surface
which avoids a glClear() in SurfaceFlinger. This should save quite
a bit of work on every frame when panning the workspace in launcher.

Change-Id: I9c1b8c324edf29826d5dbb1fb39d883e43375310
om/android/server/wm/WindowState.java
5f2f41350ec127c16ea05722687201ad7a227658 26-Sep-2011 Christopher Tate <ctate@google.com> Don't hang in restore if the transport reports failure

Casualty of the recent refactoring: in this particular error case,
the restore sequence wasn't being directed into the finalization
state. Fixes bug 5336295.

Change-Id: Ibf5570cd1003e123da8b561685de8479663340ce
om/android/server/BackupManagerService.java
8154495fc7b09938709ded2d07e8f9419cc94be7 26-Sep-2011 Ben Komalo <benkomalo@google.com> am 69a6d537: Merge "Enter minimal boot mode when booting encrypted" into ics-factoryrom

* commit '69a6d537e6f29683f685ecb688f0b06b1c0b2b15':
Enter minimal boot mode when booting encrypted
8a663c89a3b5bda4e749a58d0434b130260eabb2 26-Sep-2011 Kenny Root <kroot@google.com> Merge "Allow non-required package verifiers"
61c0818f2425691e67921ee41ca80e62d2cb9004 26-Sep-2011 Jeff Sharkey <jsharkey@android.com> Merge "Watch network subtype, tethering teardown, empty."
4c253119db0ce753e46ec3809b54b9e357d363db 24-Sep-2011 Jeff Brown <jeffbrown@google.com> Merge "Prevent unintended rotations. Bug: 4981385"
c0347aa19f354a8e1ff4fcd5372b134c0c7c16ad 24-Sep-2011 Jeff Brown <jeffbrown@google.com> Prevent unintended rotations.
Bug: 4981385

Changed the orientation listener to notify the policy whenever
its proposed orientation changes, and changes the window manager
to notify the orientation listener when the actual orientation
changes. This allows us to better handle the case where the
policy has rejected a given proposal at one time (because the
current application forced orientation) but might choose
to accept the same proposal at another time.

It's important that the proposal always be up to date. A proposal
becomes irrelevant as soon as the phone posture changes such
that we can no longer determine the orientation with confidence
(such as when a device is placed flat on a table).

Simplified the orientation filtering. Now we just wait 200ms
for the device to be still before issuing a proposal. The idea
is that if the device is moving around a lot, we assume that
the device is being picked up or put down or otherwise in
the process of being moved. We don't want to change the rotation
until that's all settled down. However, we do want to tolerate
a certain amount of environmental noise.

(The previous confidence algorithm was also designed along
these lines but it was less direct about waiting for things
to settle. Instead it simply made orientation changes take
longer than usual while unsettled, but the extra delay was often
too much or too little. This one should be easier to tune.)

Change-Id: I09e6befea1f0994b6b15d424f3182859c0d9a530
om/android/server/wm/WindowManagerService.java
05ca4c90644921df9193d92b2abdc81ef77e4a62 15-Sep-2011 Kenny Root <kroot@google.com> Allow non-required package verifiers

* Verifiers can be specified in the AndroidManifest.xml

* Those verifiers can respond to the new Intent action

* PackageManager API for those verifiers: verifyPendingInstall

Change-Id: I4892bce2e6984871e6e93c60a1ca0dae145f5df5
om/android/server/pm/PackageManagerService.java
om/android/server/pm/PackageVerificationResponse.java
om/android/server/pm/PackageVerificationState.java
3573d400a5940a53747425139e9f7cbe7e9fe114 24-Sep-2011 Ben Komalo <benkomalo@google.com> Enter minimal boot mode when booting encrypted

Bug: 5233488
Change-Id: Iba7a41c69af2387594d2be562d587918cd17a348
om/android/server/SystemServer.java
90c52de28691ca0bbbf7c039ef20f85ce46882cc 23-Sep-2011 Dianne Hackborn <hackbod@google.com> Fix issue #5173952: Opening a Notification From Lock Screen...

...Should Skip Unsecure Lockscreen (ICS)

Also while I am in there, clean up logging of intent objects to include
even less sensitive information, while showing the true Intent in dump
output (since apps can't get to that).

Change-Id: I35fed714645b21e4304ba38a11ebb9c4c963538e
om/android/server/AlarmManagerService.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityRecord.java
om/android/server/am/ActivityStack.java
om/android/server/am/IntentBindRecord.java
om/android/server/am/PendingIntentRecord.java
om/android/server/am/ServiceRecord.java
om/android/server/am/TaskRecord.java
om/android/server/wm/WindowManagerService.java
67c5b1251178532726964c2e0f4229d079ff0a3e 23-Sep-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #5321282: Force Stop Button in Battery Screen Not disabled correctly"
fec5e75c96e8a35a7a6e55c40d435f72a80c97df 23-Sep-2011 Kenny Root <kroot@google.com> Less verbose message when dexopt non-APK

The message when something is not an APK that is submitted for dexopt is
not extremely helpful. Make it more precise and remove the useless
traceback.

Change-Id: Ibb34b2b2c10ee28ea98662c3f6fd070529cf8c4f
om/android/server/pm/PackageManagerService.java
511ecc8cf9f1b0660c4284f667cbc3807d2ebf82 23-Sep-2011 Robert Greenwalt <rgreenwalt@google.com> am b849074c: Merge "Tell the resolver what protocols to use." into ics-factoryrom

* commit 'b849074cb58edc15b0764afdde0326c0b6d5b147':
Tell the resolver what protocols to use.
80a7ac10634dabb39644004f3edfc648a2c036f7 23-Sep-2011 Dianne Hackborn <hackbod@google.com> Fix issue #5321282: Force Stop Button in Battery Screen Not disabled correctly

If the app had activities still finishing, when we checked whether it was
now stopped we would get told no. Also some other improvements:

- Schedule an idle as part of the force stop, to get any finishing
activities out of the stack soon rather than waiting for some activity
to idle.
- Don't filter out stopped system apps. This is dangerous because
system apps may have no way for the user to explicitly launch them,
so they could get put into a stopped state for which there is no way
to get them out. Also if the user really wants a system app to not
run, the new disabling mechanism is more appropriate.

Change-Id: I34003f21dac29e2ca0f66a23b88c710de41bab99
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityStack.java
om/android/server/pm/PackageManagerService.java
b849074cb58edc15b0764afdde0326c0b6d5b147 23-Sep-2011 Robert Greenwalt <rgreenwalt@google.com> Merge "Tell the resolver what protocols to use." into ics-factoryrom
d90c611a59d955d4a2e849d98070a6564df2fe4b 14-Sep-2011 Robert Greenwalt <rgreenwalt@google.com> Tell the resolver what protocols to use.

Stop guessing based on the connectivity of the default route and use the correct
v4/v6 proto for your pid.

bug:5284168
Change-Id: Ife82a8d8e54c0ace2bc9e8a624b11d29a4e285e2
om/android/server/ConnectivityService.java
367d15ab1a33b6159447fa8542d4fa8ff148371c 22-Sep-2011 Jeff Sharkey <jsharkey@android.com> Watch network subtype, tethering teardown, empty.

Watch for changes to telephony network subtype, and update iface
mapping to persist stats under correct type. Update network stats
before removing tethering NAT rules.

Skip recording that would create empty historical buckets. Query UID
stats before iface stats to always skew positive when counters are
actively rolling forward.

Bug: 5360042, 5359860, 5335674, 5334448
Change-Id: I8aa37b568e8ffb70647218aa1aff5195d3e44d5a
om/android/server/ConnectivityService.java
om/android/server/SystemServer.java
om/android/server/connectivity/Tethering.java
om/android/server/net/NetworkStatsService.java
fb49cd9539908c1d00fefbcaaac05b05f4f38726 23-Sep-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #5355844: PowerManager does not call screenTurningOn after boot."
400110902e1680eebe70aed583789870e31758f6 22-Sep-2011 Dianne Hackborn <hackbod@google.com> Fix issue #5355844: PowerManager does not call screenTurningOn after boot.

Be more explicit about initialization -- power manager never sends
screen update when first initializing, phone window manager retreives
current screen state and applies that itself when initializing.

Change-Id: I8294ed36d700e186c1637754df8c8183721c15dd
om/android/server/PowerManagerService.java
94097b44b86f15d2581af5f3df21b5afcab27d01 22-Sep-2011 Wink Saville <wink@google.com> am 904fb9d7: Merge "Notify people of empty proxies too." into ics-factoryrom

* commit '904fb9d79cc72879e4c6767c219ec78feda8e62b':
Notify people of empty proxies too.
904fb9d79cc72879e4c6767c219ec78feda8e62b 22-Sep-2011 Wink Saville <wink@google.com> Merge "Notify people of empty proxies too." into ics-factoryrom
a829e16681903e6a41901145195f88bf9d952f88 22-Sep-2011 Jeff Brown <jeffbrown@google.com> Merge "Handle orientation changes more systematically. Bug: 4981385"
01a98ddbdfbaf1f0d2bc602537e6e314364902a3 21-Sep-2011 Jeff Brown <jeffbrown@google.com> Handle orientation changes more systematically.
Bug: 4981385

Simplify the orientation changing code path in the
WindowManager. Instead of the policy calling setRotation()
when the sensor determined orientation changes, it calls
updateRotation(), which figures everything out. For the most
part, the rotation actually passed to setRotation() was
more or less ignored and just added confusion, particularly
when handling deferred orientation changes.

Ensure that 180 degree rotations are disallowed even when
the application specifies SCREEN_ORIENTATION_SENSOR_*.
These rotations are only enabled when docked upside-down for
some reason or when the application specifies
SCREEN_ORIENTATION_FULL_SENSOR.

Ensure that special modes like HDMI connected, lid switch,
dock and rotation lock all cause the sensor to be ignored
even when the application asks for sensor-based orientation
changes. The sensor is not relevant in these modes because
some external factor (or the user) is determining the
preferred rotation.

Currently, applications can still override the preferred
rotation even when there are special modes in play that
might say otherwise. We could tweak this so that some
special modes trump application choices completely
(resulting in a letter-boxed application, perhaps).
I tested this sort of tweak (not included in the patch)
and it seems to work fine, including transitions between
applications with varying orientation.

Delete dead code related to animFlags.

Handle pausing/resuming orientation changes more precisely.
Ensure that a deferred orientation change is performed when
a drag completes, even if endDragLw() is not called because the
drag was aborted before the drop happened. We pause
the orientation change in register() and resume in unregister()
because those methods appear to always be called as needed.

Change-Id: If0a31de3d057251e581fdee64819f2b19e676e9a
om/android/server/wm/DragState.java
om/android/server/wm/WindowManagerService.java
0d3647dc00849872ec5e18cce8ffe0e6ae02dd47 22-Sep-2011 Kenny Root <kroot@google.com> am 9c711282: Merge "Unhide new PackageManager APIs for API 14" into ics-factoryrom

* commit '9c711282ad234e104c34eb4408d85fc1bb149ded':
Unhide new PackageManager APIs for API 14
0e09082559885528a37e48ab0a865ac6754d2fd5 22-Sep-2011 Robert Greenwalt <rgreenwalt@google.com> Notify people of empty proxies too.

We were telling people when the proxy changed, except if it was changed to null.
bug:5263946

Change-Id: I83416dac8fe992168a8aafd5676f9faee4e484d0
om/android/server/ConnectivityService.java
9c711282ad234e104c34eb4408d85fc1bb149ded 22-Sep-2011 Kenny Root <kroot@google.com> Merge "Unhide new PackageManager APIs for API 14" into ics-factoryrom
04ef5b8dd7262ee90b56df9c992f103695d0a21c 22-Sep-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #5253941: ICS ignoring provider's android:process flag"
6bba4afaa45dbf1613a7ef11a50968b00e9ef4c3 22-Sep-2011 Dianne Hackborn <hackbod@google.com> Merge "Improvements to power manager turning on screen."
2a6bcda03b7811cbe181ac789e16e779cbedc330 22-Sep-2011 Dianne Hackborn <hackbod@google.com> Fix issue #5253941: ICS ignoring provider's android:process flag

Provider was not being removed from the class map because it was using
the wrong key. D'oh.

Also a little cleanup.

Change-Id: I318e8b1a265318ac1474e0a7f14f27f89f357505
om/android/server/am/ActivityManagerService.java
om/android/server/am/ContentProviderRecord.java
d30f73725bf6f7b668244a0e51245a85005c3e9f 21-Sep-2011 Wink Saville <wink@google.com> am 4aa8d943: Merge "Reduce connectivity logging" into ics-factoryrom

* commit '4aa8d943a970008915b703758743b107927d96fa':
Reduce connectivity logging
4aa8d943a970008915b703758743b107927d96fa 21-Sep-2011 Wink Saville <wink@google.com> Merge "Reduce connectivity logging" into ics-factoryrom
beae3bd6d34472d27ac5698f8d9bcbc12d0cf4f0 21-Sep-2011 Dianne Hackborn <hackbod@google.com> Improvements to power manager turning on screen.

The keyguard/window manager recently got a facility to report when it is
okay to turn the screen on, when it knows the lock screen is displayed.

The power manager was using this wrong, just using it to drive the
flags given to the input system. Duh.

This change now uses the information to determine when to turn the screen
brightness up from 0. For an OLED screen, this is the time when the
user can actually see anything on the screen.

For LCD screens this may not be optimal, because the LCD may start running
before its backlight is turned on, so if you look carefully you may see
stuff before it is lit up. On the other hand, it is good to turn on the
display as early as possible (before waiting for the keyguard) because it
can take a little bit of time to get that and the touch screen going. By
only waiting on the display brightness, we allow turning on the screen
in the kernel to proceed in parallel with ensuring the keyguard is displayed.

Change-Id: I7ee4ce19fd4efd5b51872b855af6263f53cd6c30
om/android/server/PowerManagerService.java
c9acde9aa6cf21598640aeebb7d908f1926a48dd 21-Sep-2011 Wink Saville <wink@google.com> Reduce connectivity logging

Change-Id: I5d45b8fbcd01e42df7f2b1cf02fb5b226128abb8
om/android/server/ConnectivityService.java
om/android/server/NetworkManagementService.java
om/android/server/TelephonyRegistry.java
om/android/server/connectivity/Tethering.java
fb528820c7adeb6390ba80ddbe5ae306f3dbd52e 21-Sep-2011 Amith Yamasani <yamasani@google.com> am 9fdba999: Merge "If "Pulse notification light" is off, don\'t flash the LED even once." into ics-factoryrom

* commit '9fdba9997df17d2ae6d7ddc44513f67f12f81c88':
If "Pulse notification light" is off, don't flash the LED even once.
4a03e91aa0d1033261290d11b00ca5a269bb92f6 21-Sep-2011 Svetoslav Ganov <svetoslavganov@google.com> Merge "System not checking if enabled services are installed when disabling accessibility."
6a8d3ab9410d20ea8f4812665ac6852401c31f17 21-Sep-2011 Irfan Sheriff <isheriff@google.com> Merge "Change hostname format to conform to specification"
1e741b2705023be64389ac3e31c5f63d330470a5 21-Sep-2011 Svetoslav Ganov <svetoslavganov@google.com> System not checking if enabled services are installed when disabling accessibility.

The system is didabling accessiblity if no accessibility serivces are enabled
to avoid sending events across processes if no recipients are present. The
check considers enabled services which may not have been installed. Now the
check is made against enabled and installed serivces.

bug:5347273

Change-Id: Iad391a1a5bf0bbca470584bc8392f35821ba768c
om/android/server/accessibility/AccessibilityManagerService.java
a10a3ad35afc0b2a97cd72afceebd8e3db9b7db4 21-Sep-2011 Irfan Sheriff <isheriff@google.com> Change hostname format to conform to specification

Underscore is not allowed as per RFC 952

Bug: 5348537
Change-Id: I618c137fd54ecf36cece3b9eba39c51cda3aeac3
om/android/server/ConnectivityService.java
ebfc0e5d702abd4fa0f4d4fac0db49faebc957f1 20-Sep-2011 Amith Yamasani <yamasani@google.com> If "Pulse notification light" is off, don't flash the LED even once.

If it is on, flash repeatedly.

Bug: 5242350
Change-Id: I7da195a7c49c68c0a1fca12eecfc4a4e06dd0b61
om/android/server/NotificationManagerService.java
3a9b5fbb97e65019abec97f172b4cbf2100d1225 20-Sep-2011 Kenny Root <kroot@google.com> Unhide new PackageManager APIs for API 14

Change-Id: I83110285ccee39a4cd872a1c2af8357f541833d4
om/android/server/pm/PackageManagerService.java
0799e951a68de6da496752975fb1c3a5bd61ce28 20-Sep-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #5312624: Lock screen very flickery"
bc1aa7bbc753ebcd32da4507fa23215489b6d314 20-Sep-2011 Dianne Hackborn <hackbod@google.com> Fix issue #5312624: Lock screen very flickery

The key thing was to fix isVisibleOrBehindKeyguardLw() so that it
wouldn't count a window as not visible if it was just currently
in the process of drawing due to an orientation change.

Also improve logic in deciding when to turn screen on to better ensure
the screen is in a stable state, in particular treating screen off
as a frozen screen and not allowing it to turn on until the
update of the screen due to any config change is done.

Change-Id: If82199f3773270b2d07f9c7de9da2dad8c7b28d7
om/android/server/wm/AppWindowToken.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
7c349b1d97d3d657cdf556619d942b4bf6ece365 20-Sep-2011 Jeff Sharkey <jsharkey@android.com> am 88b18eb8: Merge "Upload correct txPackets count." into ics-factoryrom

* commit '88b18eb8c2034e9de35482cc737ef8d608d55867':
Upload correct txPackets count.
88b18eb8c2034e9de35482cc737ef8d608d55867 20-Sep-2011 Jeff Sharkey <jsharkey@android.com> Merge "Upload correct txPackets count." into ics-factoryrom
92cefaeb319b2642d119abb8640828ff0bbf2ac7 20-Sep-2011 Jeff Sharkey <jsharkey@android.com> Upload correct txPackets count.

Bug: 5321340
Change-Id: Ie4dc7a91bf1cdc4d64c75ff09ae0cdd0fb141b5d
om/android/server/net/NetworkStatsService.java
70a85687b5fae5a28bc786aa5729e87202447fa3 20-Sep-2011 Ben Komalo <benkomalo@google.com> am 85a61c4d: Merge "Only run "core" apps when encrypting device." into ics-factoryrom

* commit '85a61c4d6fedff2f1539e4cfff4b173ce0a28a3f':
Only run "core" apps when encrypting device.
553acf0409619ccde09332fb8af3e0b5c7cc4752 19-Sep-2011 Ben Komalo <benkomalo@google.com> Only run "core" apps when encrypting device.

This forces the package manager to only read packages that have
coreApp="true" in their manifest when encrypting the device, since no
non-essential processes or applications should run in that time.

Bug: 5031399
Change-Id: I87e8b27703e42553940167858db9473705d5d843
om/android/server/SystemServer.java
34c73acf88c8190b8cd51d8b8f2b9c22aa7f7941 18-Sep-2011 Jeff Sharkey <jsharkey@android.com> Sample atomic network stats buckets, full poll.

When sampling network stats, always use atomic buckets instead of
interpolating. Always poll iface and UID together so we distribute
into buckets equally. Move stale bucket trimming to just before
writing stats.

Bug: 5321340
Change-Id: I78a2226778a79c875f3668336e39ea24a7b4d5c4
om/android/server/net/NetworkStatsService.java
1f0b13b9d64085dd8342ba942f39b6063b6d534d 18-Sep-2011 Jeff Sharkey <jsharkey@android.com> DO NOT MERGE: Sample atomic network stats buckets, full poll.

When sampling network stats, always use atomic buckets instead of
interpolating. Always poll iface and UID together so we distribute
into buckets equally. Move stale bucket trimming to just before
writing stats.

Bug: 5321340
Change-Id: I78a2226778a79c875f3668336e39ea24a7b4d5c4
om/android/server/EventLogTags.logtags
om/android/server/net/NetworkStatsService.java
ff2aff2ac18daa758e5d51a4fd58976ce5f66d46 19-Sep-2011 Jeff Sharkey <jsharkey@android.com> am 3d1d57dc: Merge "Collect and persist tethering stats." into ics-factoryrom

* commit '3d1d57dcdb02ace6af5810bd4ec3f8fad5fc1799':
Collect and persist tethering stats.
38e29a61d0c87fe3e391d24e2eb11dd1800d107d 18-Sep-2011 Dianne Hackborn <hackbod@google.com> Fix issue #5242779: Device not responding to touch on unlock screen

Rework how we decide when it is okay to turn on the screen by having
the policy call back to the power manager when it knows the lock screen
has been drawn.

Change-Id: Ie8f3f72111dcf7f168723e6dce24e0343b4afe5d
om/android/server/PowerManagerService.java
om/android/server/wm/WindowManagerService.java
cdd02c5d76d3dd4e21b5bb922d7fcfb86efec85f 16-Sep-2011 Jeff Sharkey <jsharkey@android.com> Collect and persist tethering stats.

Use new "gettetherstats" netd command to retrieve statistics for
active tethering connections. Keep tethering poll events separate
from UID poll, even though they end up same historical structures.

Bug: 5244846
Change-Id: Ia0c5165f6712c12b51586f86c331a2aad4ad6afb
om/android/server/ConnectivityService.java
om/android/server/NetworkManagementService.java
om/android/server/connectivity/Tethering.java
om/android/server/net/NetworkStatsService.java
73db0d802ee4e1355d400329084eee6f5cff02a3 16-Sep-2011 Dianne Hackborn <hackbod@google.com> "Fix" issue #5276520: Noise on edges of rotation animation

I have no shame.

Change-Id: I9f40df670bba0f848097aad8afb978a29e42f85a
om/android/server/wm/WindowState.java
09bd49a8a74cafe7f03aee769bfe0748bf3c2b51 16-Sep-2011 Dianne Hackborn <hackbod@google.com> Fix issue #5328235: Wrong values for smallestScreenWidthDp

Maybe.

Change-Id: I88dfde1626376b3003bdd7a8068c55545255851e
om/android/server/wm/WindowManagerService.java
c5fccd01258715597227bc44a3e0a4f69dd8971a 16-Sep-2011 Svetoslav Ganov <svetoslavganov@google.com> am 2a6798ad: Merge "Touch explorer does not perform tap with the right pointer." into ics-factoryrom

* commit '2a6798ada499dc1dc33db36a15a6ce07e72968ae':
Touch explorer does not perform tap with the right pointer.
bd206d129fdd1777b9f9646a834d7fc342a8941e 16-Sep-2011 Svetoslav Ganov <svetoslavganov@google.com> Touch explorer does not perform tap with the right pointer.

The touch explorer was using the id of the last pointer that
went up while injecting up and down to tap through the last
touch explore event incorrectly assuming that the last up
pointer did touch explore. This was leading to a system crash.

bug:5319315

Change-Id: Iffe8ef753795ad685abe6f493cc09adac8bfea94
om/android/server/accessibility/TouchExplorer.java
b59d270df74b6be49ea6a1ae2155e3deeb0f74d7 16-Sep-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #5317970: Removing active wallpaper from manifest crashes phone"
b851f15ee22222569bfbda1a017c12dcc89ec3ab 16-Sep-2011 Christopher Tate <ctate@google.com> Merge "Don't do full backup/restore before setup"
d2c0cd4313896924886c3be03b28d092c51eb522 16-Sep-2011 Christopher Tate <ctate@google.com> Don't do full backup/restore before setup

On the restore side, there's a bunch of one-time setup, device
provisioning, etc that we're very much not prepared to do in
lieu of running setup wizard, at least at this time.

On the backup side, it simply doesn't make sense to back up
stuff before the device has been set up.

Part of bug 5290261

Change-Id: If1c65e88e2da589d6204232d2b59c3e994f4ed3f
om/android/server/BackupManagerService.java
80b902ffbe2fd5b5d3719b6fc2a8f629374968dd 16-Sep-2011 Dianne Hackborn <hackbod@google.com> Fix issue #5317970: Removing active wallpaper from manifest crashes phone

Clean up a bunch of stuff about dealing with failures in applying
the wallpaper.

Change-Id: Ib0c7ec6cc00936dd00c752991be068dc75fc24c9
om/android/server/WallpaperManagerService.java
2e4a560f294cd8bb278335c3053d5d1d34918214 15-Sep-2011 Ashish Sharma <ashishsharma@google.com> Merge "Add packet counts to uid and iface stats. Needed to add Ethernet overhead to uid_stats (IP level) to compare with interface stats (Ethernet level)."
baf4c857237b1905d4b8035337997160a93430bd 15-Sep-2011 Ashish Sharma <ashishsharma@google.com> Add packet counts to uid and iface stats.
Needed to add Ethernet overhead to uid_stats (IP level)
to compare with interface stats (Ethernet level).

Change-Id: Ia6324c21a868eea5ad3b67f546c9d10c7fb64172
om/android/server/EventLogTags.logtags
om/android/server/net/NetworkStatsService.java
df82905cf3ceb9192dc8087f934081f809d99bcf 15-Sep-2011 Dianne Hackborn <hackbod@google.com> Merge "Update the public APIs for finding views by text to optionally use content description."
fc0ab4c065babdda912d0a1b9fce9ab59140482a 15-Sep-2011 Jeff Sharkey <jsharkey@android.com> Merge "Network stats flag to force complete poll."
6f13746633e089d3468dbb8620f222ce6c140bd3 15-Sep-2011 Jeff Sharkey <jsharkey@android.com> Merge "Change data usage warning notification wording."
8ca953da93eb8679574abba535f75f72d50016f2 15-Sep-2011 Jeff Sharkey <jsharkey@android.com> Change data usage warning notification wording.

Bug: 5308710
Change-Id: Ic807640a031a3edb03897634e638473d5a039ecc
om/android/server/net/NetworkPolicyManagerService.java
991d1b1b3f303ad247a959881b1d5b57766f678b 15-Sep-2011 Jeff Sharkey <jsharkey@android.com> Network stats flag to force complete poll.

Devices currently delay collecting UID stats during common operations
like global alerts to reduce parsing load. Here we introduce a flag
to always collect UID and iface stats together to aid debugging.

Bug: 5321340
Change-Id: Ia8e1daf1a6f9d5f5cf1f64a04b6b6766ee965ab6
om/android/server/net/NetworkStatsService.java
ea515aeafa01de6f50c854ee381b972ef2478284 15-Sep-2011 Svetoslav Ganov <svetoslavganov@google.com> Update the public APIs for finding views by text to optionally use content description.

1. Added flags to the search method to specify whether to match text or
content description or both.

2. Added test case for the seach by content description.

3. Updated the code in AccessibilityManager service to reflect the latest
changes there so test automation service works - this is the fake
service used for UI automation.

Change-Id: I14a6779a920ff0430e78947ea5aaf876c2e66076
om/android/server/accessibility/AccessibilityManagerService.java
1f903c3b577d20f7db7e3d5875cafe577d0d845f 14-Sep-2011 Dianne Hackborn <hackbod@google.com> Fix issue #5283365: Rotating the device to portrait mode, hides the keyboard partly

PhoneWindowManager now takes full responsibility for deciding where the
navigation bar goes. This gets rid of a bunch of race conditions with
determining layout while the nav bar is moving itself at the same time
the window manager is computing a new configuration.

Note that this breaks the "nav bar on left" option. The current nav
bar code could also be cleaned up some more to completely drive its
behavior based on onSizeChanged() happening during relayout.

Change-Id: I1651d74c3464ba0d588aab3049e099c78420146a
om/android/server/wm/WindowManagerService.java
4e2134b76e64b6c4bab599b2f069624e0556a858 15-Sep-2011 Svetoslav Ganov <svetoslavganov@google.com> Merge "AccessibilityManagerService not registered for removed packages."
62e61d73f2f4edc480c1e6ab2110ff54ce699020 15-Sep-2011 Irfan Sheriff <isheriff@google.com> Merge "Add support to change IPv6 privacy extensions"
7329361cdce711775542b112663bf71a6e0d5cef 14-Sep-2011 Irfan Sheriff <isheriff@google.com> Add support to change IPv6 privacy extensions

Bug: 3360737
Change-Id: I9136992d05f7abf15bdfd92aad3a3e0c0fe3bee2
om/android/server/NetworkManagementService.java
d07d60b9bc0fd2e88f58d6e68dbfadad1bdd31cf 14-Sep-2011 Svetoslav Ganov <svetoslavganov@google.com> AccessibilityManagerService not registered for removed packages.

The pakcage monitor in the AccessibilityManagerService was not
watching for packages that are removed. This is needes since
1) we need to remove the package from the enabled accessibility
serivces and clean up after the removed serivice; 2) we need to
disable accessibility if the last access serivices went away.

Change-Id: I06d33b411ce60703e5a2843107323ffc87046c16
om/android/server/accessibility/AccessibilityManagerService.java
311fac7ea58a5fc92ea4a04fab36ee9386759fab 14-Sep-2011 Svetoslav Ganov <svetoslavganov@google.com> Merge "Disable accessibility if all accessibility serivces are disbaled."
37fedf8b78dea969b97188fd3079fea5e71704be 14-Sep-2011 Svetoslav Ganov <svetoslavganov@google.com> Disable accessibility if all accessibility serivces are disbaled.

Accessibility was kept enabled even if all accessibility services
are disabled (explicitly by the user or removed) which was causing
the system to fire accessibility events that will never be consumed.

Change-Id: Ifb03e786ac0106687252bd1979725ffd724ad1c5
om/android/server/accessibility/AccessibilityManagerService.java
6b5a752130ff35a2029309854b1680dc33bf186f 14-Sep-2011 Mike Lockwood <lockwood@android.com> Merge "Move Power Manager minimum screen brightness to a framework resource"
c924fbd6933f6a96588b6e78d385082155cfd236 14-Sep-2011 Kenny Root <kroot@google.com> Merge "Add verifier device identity"
651cdfcbac6245f570475991588ddc2d30265e8d 07-Sep-2011 Irfan Sheriff <isheriff@google.com> Unhide wifi p2p API

Bug: 5247957
Change-Id: Id93e30c0cb60f361ba13a840de8f843415777336
om/android/server/WifiService.java
0aaa0d931716e9f57a1d84d795fab2df75092756 13-Sep-2011 Kenny Root <kroot@google.com> Add verifier device identity

This adds a special device identifier that is usable only for device
validation. The user will be presented with this number encoded in
easily-transcribable Base32 in the Developer options of Settings.

Change-Id: I4843f55ee90d689a51d0269b22454ca04c1be7ec
om/android/server/pm/PackageManagerService.java
om/android/server/pm/Settings.java
f809870f118663055dc0f8b626204e7bb1133fb5 13-Sep-2011 Dianne Hackborn <hackbod@google.com> Fix issue #4280324: Returning to Fullscreen Layout with WebView...

...Leads to Shifted Layout

Change-Id: I6cf3fd0dd066f73cd1ec6fce3d994f7e3eead293
om/android/server/wm/WindowState.java
eb6456b31e059cf4961260d1e40cce3a423f2a7e 13-Sep-2011 Mike Lockwood <lockwood@android.com> Move Power Manager minimum screen brightness to a framework resource

Bug: 5279179

Change-Id: I445e78c774ad08be6582fa8870487a5210465a08
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/PowerManagerService.java
83f9dfe0f085a01ebaa9f3ba6205af20e20bbe78 13-Sep-2011 Dianne Hackborn <hackbod@google.com> Merge "Add boot mode where only "core apps" are started."
1cd955b01d8ea72009be56f4c4a93d4d79e902df 12-Sep-2011 Dianne Hackborn <hackbod@google.com> Merge "Get rid of some animation flickers and other bad things."
d30b89799c010ad91b9d98fb0c3ddb45b152f71e 12-Sep-2011 Christopher Tate <ctate@google.com> Merge "Move full backup/restore onto dedicated threads"
d02a9e95f4cf6295f1a060b4e31c6fbe41123649 12-Sep-2011 Dianne Hackborn <hackbod@google.com> Get rid of some animation flickers and other bad things.

Change-Id: If7606286bf0bd01cf023d57719ccb27e39d5564c
om/android/server/wm/DimSurface.java
om/android/server/wm/WindowManagerService.java
a28e854683a732696b5d6b414e1a16c4c90d0294 12-Sep-2011 Christopher Tate <ctate@google.com> Move full backup/restore onto dedicated threads

Running full backup/restore on the Backup Manager looper thread causes problems.
It not only interfered with the delayed-Message timeout processing; in the case
of installing apks during restore it also interfered fatally with the interaction
between the Package Manager and install-time restore of data from the cloud.

The long-term right thing to do here will be a refactoring of full backup and
restore to be structured as the sort of state-machine process that incremental
backup and restore now use. This is particularly thorny in the case of full
restore (due to the Package Manager interactions), and full backup/restore are
considered experimental at this point, so that refactoring is deferred to a
future release. The current process is essentially standalone, so the bug is
fixed here pro tem by letting it run to completion on its own thread, freeing
the looper for normal work.

Fixes bug 5173450

Change-Id: I659a61afa18ffe7fde1a07f7fa0e860d5e8d5a89
om/android/server/BackupManagerService.java
d2509fd83597595914ef0627685e917380863eb6 12-Sep-2011 Dianne Hackborn <hackbod@google.com> Add boot mode where only "core apps" are started.

A core app is one that has coreApp="true" in its manifest tag.

The system can successfully boot (though a little painfully) with
only framework-res.apk, SettingsProvider.apk, SystemUI.apk,
DefaultContainerService.apk, and Launcher2.apk set as core apps.

Currently this boot mode is always turned off.

Change-Id: Ieaa4a8031c2c391a12996aa8d8b1d65fc2b09d6b
om/android/server/SystemServer.java
om/android/server/pm/PackageManagerService.java
45caa44717d047e0aa0a066c352eee00a6ea2f11 12-Sep-2011 Irfan Sheriff <isheriff@google.com> Merge "Emergency callback mode handling"
9747f8977c55013e656a1e666a1647bb331954ce 12-Sep-2011 satok <satok@google.com> Fix the visiblity of the ime switcher icon.

Bug: 5288866
Change-Id: I99b4aee36c337b2fab1116e9245ddecd826c840c
om/android/server/InputMethodManagerService.java
616f3173e08ec6110cf5766c70f84c9e031fb7d7 12-Sep-2011 Irfan Sheriff <isheriff@google.com> Emergency callback mode handling

For wifi, track ECM and shut down and restart when device
goes in ECM and out

For p2p, simply turn off when in ECM mode

Bug: 5185246
Change-Id: I5f5bf75fac3e27db1d7c412135c796f2b137263d
om/android/server/WifiService.java
6c048260f30d9bba1a83c4f79388cd6b3109be7d 12-Sep-2011 Ben Komalo <benkomalo@google.com> Merge "Revert encryption mapping for device wipes."
8962028b6e2f4176e6ceded281e584d223e44982 11-Sep-2011 Dianne Hackborn <hackbod@google.com> Fix inflating of animations.

Need to define attributes for animation set, to have correct indices.

Also small fixes elsewhere.

Change-Id: If596147e8aee4ebffe4e184872070341eff6df73
om/android/server/wm/ScreenRotationAnimation.java
om/android/server/wm/WindowManagerService.java
e123612c08719352d3313005d0b792f17bbe090d 09-Sep-2011 Dianne Hackborn <hackbod@google.com> Merge "Work on issue #5144065: Tap on Music icon from Home screen - a different app opens"
e5ba16a7afd55e3b36d6124e9fce368bca9b7e67 09-Sep-2011 Dianne Hackborn <hackbod@google.com> Work on issue #5144065: Tap on Music icon from Home screen - a different app opens

When force stopping an app, when removing its activities also finish any
activities from other apps above it in the task. This avoids some situations
where the task gets into a bad state where its root becomes a different app.

Change-Id: I79e5cd520ae321bec80adefd2ccc2b0370ace372
om/android/server/am/ActivityManagerService.java
13c7197da8a16f77f6398708a6314c80cb01e0d1 08-Sep-2011 Ben Komalo <benkomalo@google.com> Revert encryption mapping for device wipes.

External storage volumes that were emulated+encrypted needed to have
their encryption mapping removed so that it doesn't try to encrypt the
volume after formatting them.

This just wires through an argument through vold, and assumes that vold
will do the right thing even if there is no encryption mapping set.

Bug: 5017638
Change-Id: I858fae3d12cb415bc34637f520f71220ad9daaad
om/android/server/MountService.java
40e8b4118fb03a0499b4383ff0d6d582b6d1cf64 09-Sep-2011 JP Abgrall <jpa@google.com> Merge "NetworkManagementService: adjust the qtaguid idx to new kernel"
1a4cbba932bc5da29a8933ddf8d6fe8d5a0826b8 09-Sep-2011 Eric Laurent <elaurent@google.com> Merge "Fixed digital audio output detection"
944301e0828d07daec90f1e4351dc5e7276fa44c 09-Sep-2011 Eric Laurent <elaurent@google.com> Fixed digital audio output detection

Fixed bug in WiredAccessoryObserver preventing correct detection of
docks with digital audio connection (S/PDIF)

Change-Id: I96eeebc53952625d75133ce0af68f4f219bce41d
om/android/server/WiredAccessoryObserver.java
6acf39b3c6b67c2d302b6a01a213bd40a8192909 09-Sep-2011 JP Abgrall <jpa@google.com> NetworkManagementService: adjust the qtaguid idx to new kernel

https://partner.source.android.com/g/#/c/8968/ introduced

idx iface acct_tag_hex uid_tag_int cnt_set ...
2 wlan0 0x0 10022 0 ...
3 wlan0 0x0 10022 1 ...
4 wlan0 0x3010000000000000 10022 0 ...
5 wlan0 0x3010000000000000 10022 1 ...

so treat it as monotonic starting a idx 1 for header line.

Change-Id: Ie1d0ec9a0b7103620a93b0ef0b01c13fe4162616
om/android/server/NetworkManagementService.java
4ef6d2ea215169c2c0cbab14228e5073e986392b 09-Sep-2011 Robert Greenwalt <rgreenwalt@google.com> Merge "Pass roaming info to ConnectivityService."
53df60b81eac34445389ae05a6b664077d27cbd7 09-Sep-2011 Svetoslav Ganov <svetoslavganov@google.com> Merge "Touch explorer does not cancel long press correctly causing system crash."
b0d89922b186b62701aa7ee1ed8f808fac2c1d9b 09-Sep-2011 Jeff Sharkey <jsharkey@android.com> Merge "Always disable() through SBMS; watch date."
406970b06c8472cbd44ecc278d643a12589c6b38 08-Sep-2011 Svetoslav Ganov <svetoslavganov@google.com> Touch explorer does not cancel long press correctly causing system crash.

1. The touch explorer was not canceling long press runnable when a finger
goes down. This was causing system crash in the scenario of one pointer
down and not moving followed by another pointer down. Since the long press
runnable posed when the first pointer went down was not removed it was
sending events with wrong pointer id leading to a crash.

bug:5271592

Change-Id: I40dd7dd21d465ecedd9413f00b3cedc6066fa22d
om/android/server/accessibility/TouchExplorer.java
eeb1dca3935b14b12f8a563ce6887dc4b842684b 08-Sep-2011 Dianne Hackborn <hackbod@google.com> Fix issue #5139085: Some Recents items can't be killed

Change-Id: Ib4fa413266c4aa2223576ce0299be743358fdc26
om/android/server/am/ActivityManagerService.java
4519a02608b9e02a2c0dbc7dff37c21167db8f24 08-Sep-2011 Jeff Sharkey <jsharkey@android.com> Always disable() through SBMS; watch date.

Touching StatusBar.disable() directly can make the cached value over
in StatusBarManagerService stale. Instead, dispatch DISABLE_BACK
through setSystemUiVisibility() on tablets; it's unused on phones.

Also DISABLE_NOTIFICATION_TICKER when showing secure lockscreen, and
watch for TIME_CHANGED in DateView.

Bug: 5255469
Bug: 5242677
Change-Id: I4efaf9799b2f229f49d7024da5dafceacd5e08bb
om/android/server/StatusBarManagerService.java
a6d4248e21bd62a51ac4aaadaa67fdb55b666d98 03-Sep-2011 Robert Greenwalt <rgreenwalt@google.com> Pass roaming info to ConnectivityService.

bug:5215657
Change-Id: I77024141a7bbaa47eae021009e16b283699be53e
om/android/server/TelephonyRegistry.java
4ee366690111e5f71a248a2af10301db425162d5 08-Sep-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #5263361: Browser instance not created in application picker"
905577f6345c014fc2489a8068ea967ba8c18012 08-Sep-2011 Dianne Hackborn <hackbod@google.com> Fix issue #5263361: Browser instance not created in application picker

The resolver activity was hiding the following activity from recents.

Also some other fixes: a little better memory use debugging, removed
some unneeded code from window manager, moved some system activities
into their own process, added some more running process information for
manage apps.

Change-Id: I66687d16989ff965d524b92dc360f37c19199717
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityStack.java
om/android/server/am/ProcessRecord.java
om/android/server/wm/WindowManagerService.java
66b10a1cf77e1dd767508930a950b1584143ee9b 08-Sep-2011 Jeff Sharkey <jsharkey@android.com> Merge "Poll UID stats during iface changes, enforce idx."
b3d5957604f8fcaafe72bd76052bc76b682bf443 08-Sep-2011 Jeff Sharkey <jsharkey@android.com> Poll UID stats during iface changes, enforce idx.

When ifaces change, poll UID stats without persisting, since they
depend on knowing active iface to store correctly. Log dropped UID
stats when iface is unknown. Switch to using flags when calling
performPoll().

Enforce that "idx" values are consistent from xt_qtaguid. Transition
to using Log.wtf() for important checks, mostly around file I/O,
kernel stats parsing, and kernel module control. Increase stats
persist threshold to 2MB to reduce churn.

Bug: 5269476, 5270106
Change-Id: I721215bfb65127f95775c71cf135e907cd567e92
om/android/server/NetworkManagementService.java
om/android/server/net/NetworkPolicyManagerService.java
om/android/server/net/NetworkStatsService.java
b1543a960f2118707f4a851043fa75dab0f922c4 07-Sep-2011 Christopher Tate <ctate@google.com> Turn off MORE_DEBUG logspam

Down with logspam!

Change-Id: Idadad3531cee53afd3cb5cbeb68ced2d348311eb
om/android/server/BackupManagerService.java
d16d57b45e63f8230fdee08c1a798e8f3eb62671 07-Sep-2011 Christopher Tate <ctate@google.com> Merge "Fix restore-agent timeouts"
da7caf0a3c5076203ac21092c9ea4b7215277517 07-Sep-2011 Christopher Tate <ctate@google.com> Merge "Fix backup-agent timeouts"
7a1204ac2c9c0aabadcd6a7eac8f1fd7772c9ce9 07-Sep-2011 Irfan Sheriff <isheriff@google.com> Merge "Rename WpsConfiguration to Wps"
489a9d81fd1458940e1ec01ba0cef36843732479 07-Sep-2011 Irfan Sheriff <isheriff@google.com> Rename WpsConfiguration to Wps

For the purpose of exposing the class as a storage for Wps
info with p2p, it is better to just call it Wps

Bug: 5247957
Change-Id: Iaebef958dd8f08fdbeb4b9d7fa5ad5527400710d
om/android/server/WifiService.java
2982d06b7caacb4fba5fc141469c1ac48130d0a6 07-Sep-2011 Christopher Tate <ctate@google.com> Fix restore-agent timeouts

This patch parallels the previous one that fixed backup timeouts.
It establishes the same sort of state-machine process for walking
through the restore steps solely as events posted to the backup
manager's HandlerThread.

Fixes the rest of bug 5074923

Change-Id: I122a021cb1e9bb1342de0b71e5d4bc84cc630c58
om/android/server/BackupManagerService.java
8e147b29377cab139515d17fba6ef00c868e87b6 07-Sep-2011 Ben Komalo <benkomalo@google.com> Merge "Expose getting encryptstate through IMountService"
1b2d5edac8eecae2f2bb7a029ba3a796a7092a52 06-Sep-2011 Svetoslav Ganov <svetoslavganov@google.com> Merge "Tuning the TouchExplorer"
444eca232964dbf27d0c4d01447c1493f89186e0 02-Sep-2011 Ben Komalo <benkomalo@google.com> Expose getting encryptstate through IMountService

- this really just calls cryptfs cryptocomplete
- needed so that UI logic can present a factory reset option if
encryption screwed up

Bug: 3384231
Change-Id: I553de87f0d03a65851030c9c5266e85866d30fa6
om/android/server/MountService.java
38aac047431ea370509f956ad16224b39a71e586 06-Sep-2011 satok <satok@google.com> Do not show the label for auto subtypes

Change-Id: Ie62d0b83f2fcb2c93d3935bcaa5121d2adc56b7d
om/android/server/InputMethodManagerService.java
05dbb65dfa3b81a4b70069ca6aa0a343b56565f9 22-Aug-2011 Ken Wakasa <kwakasa@google.com> Two line item for the IME switcher dialog.

bug: 5098770
Change-Id: I2b955973e7f223d8c98d8dac6aaa657a7a31b555
om/android/server/InputMethodManagerService.java
12a024ca681d877fe16b7e087356f7aff175a218 04-Sep-2011 Svetoslav Ganov <svetoslavganov@google.com> Tuning the TouchExplorer

1. Tuned the max angle between two moving fingers in touch
exploration mode for a gesture to be considered a drag.
The previous value was too aggressive and it was fairly
easy for the user to get out of dragging state if she
ingreases the distance between her fingers.

bug:5223787

2. Before clicking the explorer was sending hover enter and
exit resulting in firing the corresponding accessibility
events which leads to announcement of the content under
the tap that triggered the click. However, the click is
actually performed on the last touch explored location
(if in the distance slop of course) instead of the actual
tapping pointer location. Before fixing that the user was
confused since he was hearing announcement of one content
but actually was clicking on something else.

bug:5225721

Change-Id: I79fec704878f98c95f181bf8a9647e0bb1bd10ef
om/android/server/accessibility/TouchExplorer.java
fead8f976700906101714b3265e64e30c0a80180 03-Sep-2011 Adam Cohen <adamcohen@google.com> Merge "Ensure appwidgets are loaded before usage."
8e294d45570b62a39ae972b146f0023c6beb00cb 01-Sep-2011 Christopher Tate <ctate@google.com> Fix backup-agent timeouts

Away in the misty span of very-long-ago, it was suggested that spinning
a separate thread to run the backup process was wasteful, and that it
could just run it inline on the dedicated HandlerThread that the
backup manager uses for its own operations. That was indeed true,
except that the timeout management was also using delayed messages
to that handler. You see where this is going: timeouts were never
actually being processed, with the effect that a badly-behaving
app's backup agent could lock up the entire backup / restore system
until the device was rebooted.

This is bad.

Backup operations are now driven as an asynchronous state machine:
each step (init, call one agent to obtain data, send resulting
data to the transport, finalize the backup) is handled as a formal
state transition on-looper. No synchronous wait-for-completion
or -timeout is performed on any thread.

As an additional effect this greatly tightens up the serialization
and locking semantics. We no longer have to worry about an in-
flight operation involving a standalone thread spinning off on
its own; everything is on the HandlerThread and can be coherently
manipulated from that perspective.

Along the way, this CL tightens up the per-agent error handling
logic. Previously a single failed agent would abort the entire
backup process, tantamount to a transport-level failure. This could
mean that the aforesaid badly-behaving app's agent could in effect
starve out other apps whose agents were routinely showing up later
in the queue. There's some nondeterminism involved, but in practice
it could and did happen. Furthermore, the failure case would
reschedule *immediately* in this case, because the transport itself
would see that all is well and sure, why not run a backup soon?
This, as you might imagine, causes battery-life issues.

Now we note that the single agent has failed, mark it for a future
repeat attempt, and process the rest of the queue normally, pretending
success at the transport level even though we didn't actually send
any data for that app. This means that (a) we now finish running
backups for everything in the queue, (b) reschedule backups only for
those apps whose agents individually failed during this run, and
(c) perform the retry after the normal interval [typically on the
order of an hour] rather than immediately.

NOTE: this CL does not retool the restore code path, just backup.
Restore is similarly vulnerable to misbehaving apps, though, so a
future CL will address that bug vector.

Addresses bug 5074923

Change-Id: I67e3f8d06f322607881eaa4093de6d675b85ff2c
om/android/server/BackupManagerService.java
6b0c11da5a7a7ea236fd9dc409d1ce7a33bff9c2 03-Sep-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #5150899: Call activity takes 15MB we never get back."
5d927c2d8e832fcfcb0154c8741f896001141ef4 02-Sep-2011 Dianne Hackborn <hackbod@google.com> Fix issue #5150899: Call activity takes 15MB we never get back.

Persistent process can no longer use hardware acclerated drawing
when running on a low-memory device.

Change-Id: I3110335617af1c98fcede9bf41f4a1d0c20d0e87
om/android/server/am/ActivityManagerService.java
db97f60054b6011fbcc1baf29a68b940b53046c0 02-Sep-2011 Mike Lockwood <lockwood@android.com> Fix logic for power button overridding the "wait for prox negative state" after a call

When in a phone call, we keep the screen off while the prox sensor returns positive
and the device is oriented in a vertical position.
If the call is terminated on the other end, we keep the screen off
until the proximity sensor returns negative.
We do this to avoid having the screen turn on as soon as the other end
hangs up while the phone is still next to your head.

However, we allow the power button to wake the screen while waiting for the proximity
sensor to go negative as a precaution in case there is a problem with the proximity sensor.
But unfortunately that logic broke due to a change in the call path used to turn the screen
on from the power button (it previously called userActivity, now it uses a wake lock).
This change adds code to handle the new code path so the power button will wake the screen
while we are waiting for the proximity sensor to go negative after a call.

Bug: 5184524

Change-Id: I7d1e0f0d1f78680c552a05d68a392647823250ab
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/PowerManagerService.java
bffb83e96c2f3d01bf42490737201ab4de79c91b 02-Sep-2011 satok <satok@google.com> Merge "Add an option for the implicitly selected subtype"
a86f5e448cd6d29340ca6cbe509bc6384bc0d711 02-Sep-2011 satok <satok@google.com> Add an option for the implicitly selected subtype

Bug: 5057886
Change-Id: Iddde4724891501b4f18cade6a3d2c64b6124e58a
om/android/server/InputMethodManagerService.java
ee5e77cafec2eae70890abdcc1646ed39b06eddd 02-Sep-2011 satok <satok@google.com> Make setAdditionalInputMethodSubtypes async

Bug: 5120261
Change-Id: Ic7869cfaa5361531e08d58d7dfa5ba0feab0613e
om/android/server/InputMethodManagerService.java
15d161f61bd97e937e95fe8a8e520a947113c7b1 02-Sep-2011 Jeff Sharkey <jsharkey@android.com> Ensure appwidgets are loaded before usage.

Before accessing appwidget details, always ensure that configuration
is loaded from disk.

Change-Id: Ic71dd62fcdb1d1e5f7bae397efa8dce787434ba5
om/android/server/AppWidgetService.java
9b69a04e24e70a8e82e1820c877c8f4df0c7a980 02-Sep-2011 Jeff Sharkey <jsharkey@android.com> Merge "Sample network statistics for sanity check."
c7f159e29f1522a8c362145f8d454c21fc1e920e 02-Sep-2011 Jeff Sharkey <jsharkey@android.com> Merge "Selectively add stats based on iface active state."
7de6578f1c4bf97c9f856f819d4985d25163012a 02-Sep-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #4974633: Block the HOME button using TYPE_KEYGUARD"
69666e078152362b19d02d9ee79bbd5fc69e09c3 02-Sep-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #5229575: Youtube link shared through messaging is not..."
0fea823673e9cab24bd16a1c80a9bd689fc7a6f9 01-Sep-2011 Jeff Sharkey <jsharkey@android.com> Selectively add stats based on iface active state.

Only combine /proc/net/dev and xt_qtaguid stats when iface is marked
as active. When inactive, only return xt_qtaguid stats. When iface
is unknown to xt_qtaguid, always pass through /proc/net/dev stats.

Bug: 5242730
Change-Id: I469fc6abe45309f794afebca814cbb39e4f13af5
om/android/server/NetworkManagementService.java
07b0dd9a092273f0451cd9881312cb9b22a7af3f 01-Sep-2011 Jeff Sharkey <jsharkey@android.com> Sample network statistics for sanity check.

After detailed poll events, sample high-level network statistics to
sanity check iface totals against UID totals.

Bug: 5248382
Change-Id: I1c1fbb7c094c9ff0c9dde416467c563dda68f478
om/android/server/EventLogTags.logtags
om/android/server/net/NetworkStatsService.java
ba24e4d8bbeb60e96d74f05e21691dad61ce497e 01-Sep-2011 Dianne Hackborn <hackbod@google.com> Fix issue #5229575: Youtube link shared through messaging is not...

...opening after selecting option "Youtube" as a luncher.

Also:

* Tweak window animations so that the wallpaper exist animations do not
stop too early (causing the wallpaper to suddenly disappear).
* Make sure no input is being processed while booting, to avoid
accidentally doing things especially in the upgrade dialog.
* Some other small cleanup.

Change-Id: I40a6b53731991d4e31ac4502e3d85f0e47507481
om/android/server/pm/PackageManagerService.java
om/android/server/wm/WindowManagerService.java
0e60db221c80bb1c57eaa7989b7079e5ba5a27a4 01-Sep-2011 Dianne Hackborn <hackbod@google.com> Fix issue #4974633: Block the HOME button using TYPE_KEYGUARD

Applications shouldn't be able to change their window type after
the window is added to the window manager.

Change-Id: Iac63da65f96fb30683f68f8d89c3fd29199a750c
om/android/server/wm/WindowManagerService.java
2d012c128fda793be3bf443f0b8596fbe23ca323 01-Sep-2011 Robert Greenwalt <rgreenwalt@google.com> Merge "Create new isNetworkSupported API"
9b2886e24301e5d4e7052ec4a6eaff273d3f516c 31-Aug-2011 Robert Greenwalt <rgreenwalt@google.com> Create new isNetworkSupported API

Useful for checking if on a wifi-only device.
Similar to asking for NetworkInfo for a network type and checking for
null, though here the intent is explicit.

bug:5087537
Change-Id: Ia3ddd09b6b735b8b3ceb7a347891e015fd96b218
om/android/server/ConnectivityService.java
om/android/server/SystemServer.java
d040edbae968d826aa2c82d382345811a45c646b 31-Aug-2011 Dianne Hackborn <hackbod@google.com> Use floating point window positions.

Gets rid of gapps between windows during animations.

Change-Id: I17d2ef0af214008f0eabd7eb19268f145fe83b39
om/android/server/wm/BlackFrame.java
om/android/server/wm/DragState.java
om/android/server/wm/ScreenRotationAnimation.java
om/android/server/wm/Session.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
dcc882edfe530e1bbd61e776a7d2c8b874768e1d 31-Aug-2011 Romain Guy <romainguy@google.com> Merge "Make ViewServer more quiet Bug #5231539"
cbe67d5b33a2b183266e4398b1797db65aba9403 31-Aug-2011 Romain Guy <romainguy@google.com> Make ViewServer more quiet
Bug #5231539

Change-Id: Ib1f3e0d7592b4af802efe4e9630a220c23450521
om/android/server/wm/ViewServer.java
9d4bc852ea459c2a4347a87ce0357b3328a25db8 31-Aug-2011 Jeff Brown <jeffbrown@google.com> Merge "Fix input channel leak. Bug: 5156144"
c593380d1bccbfbd45c404954b2670b65acc287f 31-Aug-2011 satok <satok@google.com> Fix crash in setAdditionalInputMethodSubtypes

Bug: 5142455
Change-Id: I5eca4c1a3d9a964db04c819fc671670ef1b81817
om/android/server/InputMethodManagerService.java
ed2b24ecc7842b27178fc584a9e5bd5b1ab07635 31-Aug-2011 satok <satok@google.com> Fix set additional subtypes.

Bug: 5102787
Change-Id: Ic38db8c33b6496a083e8158cd79fb54c21187b04
om/android/server/InputMethodManagerService.java
c7b60f72dda5c5f222342a9d60435ec353a8a19b 31-Aug-2011 satok <satok@google.com> Fix DeadObjectException of the spell checker

Bug: 5119646
Change-Id: I2938a2206b79645c13a54cc7200f64c2c0aa3836
om/android/server/TextServicesManagerService.java
cc4f7db698f88b633a286d8ab1105b28a474cd09 31-Aug-2011 Jeff Brown <jeffbrown@google.com> Fix input channel leak.
Bug: 5156144

Input channels could leak or simply live longer than they should
in some cases.

1. Monitor channels (used by the pointer location overlay) are never
unregistered, so they would leak.

Added code to handle failures in the receive callback by closing
the input channel.

2. The DragState held onto its input window and application handles
even after the input channel was disposed.

Added code to null these handles out when they are no longer needed.

3. Input channels previously used as input event targets would stick
around until the targets were cleared (usually on the next
event).

Added code to detect when the input dispatcher is in
an idle state and to proactively clear the targets then
to ensure that resources are released promptly.

4. Native input window handles held onto the input channel even
after the input window was removed from the input dispatcher.
Consequently, the input channel would not be disposed until
the input window handle itself was freed. Since the input
window handle is held from managed code, this meant that the
window's input channel could stick around until the next GC.

Refactored the input window handle to separate the properties
(info) and identify (handle) state into different objects.
Then modified the dispatcher to release the properties (info)
when no longer needed, including the input channel.

7. The pointer location overlay does not actually use its
standard input channel, only the monitor input channel.

Added INPUT_FEATURE_NO_INPUT_CHANNEL to allow windows to
request that they not be provided with an input channel
at all.

Improved some of the error handling logic to emit the status
code as part of the exception message.

Change-Id: I01988d4391a70c6678c8b0e936ca051af680b1a5
om/android/server/wm/DragState.java
om/android/server/wm/InputApplicationHandle.java
om/android/server/wm/InputMonitor.java
om/android/server/wm/InputWindowHandle.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
cc55f8136e1c4f5cb404a18c7553929c23bd52ca 17-Aug-2011 Christopher Tate <ctate@google.com> Properly handle PACKAGE_REPLACED in addition to _ADDED and _REMOVED

Certain kinds of application update generate this broadcast regime rather
than the REMOVE / ADD sequence that results from e.g. using the -r option
when invoking 'adb install'.

We also push the agent classname lookup to the last moment before
actually running the backup, rather than caching it as part of the
record of what apps need a backup pass in the future. This was causing
a bug in which a package reinstall that renamed the app's agent class
would wind up with a crash at backup time, trying to load the wrong
class.

Fixes bug 5156094 / bug 4308977

Change-Id: I4e3e12d86e6ee40809f14fd12ab762116dbee0b5
om/android/server/BackupManagerService.java
9e4e727b4a164c17944e8ae6eb2d2532a98737f8 30-Aug-2011 Dianne Hackborn <hackbod@google.com> Fix issues #5233826 and #5209847 -- live wallpapers.

5233826 when a live wallpaper starts, it does so regardless of its visibility

The WallpaperService is now very forceful about telling a wallpaper it is
not visible when it first starts.

5209847 Make launcher turn off the wallpaper in all apps.

Fix a bug in the window manager that would not correctly handle the wallpaper
flag changing.

Change-Id: Ie3314043a84664be72a1304a1705408efd789a15
om/android/server/wm/WindowManagerService.java
63b5ad9e173796e2923d5ea58d7c7349d94d75e1 30-Aug-2011 Mike Lockwood <lockwood@android.com> Extinguish notification LED when user passes through lock screen

Also do not blink for notifications received when the screen is on.

Bug: 5233071

Change-Id: I15675ca317007d4b900ef74e60d11a5bca3d7333
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/NotificationManagerService.java
4107beecaab18b393e56a0c34b333f0a6e15be2f 30-Aug-2011 Jeff Sharkey <jsharkey@android.com> Merge "Introduce immediate CONNECTIVITY_ACTION variant."
961e30458319cfd50e1892ba7dd14a1d0ebe4cc7 30-Aug-2011 Jeff Sharkey <jsharkey@android.com> Introduce immediate CONNECTIVITY_ACTION variant.

New broadcast that is dispatched immediately after connectivity
changes have been handled by ConnectivityService, bypassing any
applicable CONNECTIVITY_CHANGE_DELAY.

Also protect CONNECTIVITY_CHANGE broadcasts, since they should only
be sent by system.

Bug: 5198167
Change-Id: I75f1fb44b21da1879f0ab960bcaa481126d70fde
om/android/server/ConnectivityService.java
om/android/server/net/NetworkPolicyManagerService.java
om/android/server/net/NetworkStatsService.java
8d3feb6292ba7e87adeb4982e8cf27114a8ee2e4 29-Aug-2011 Jeff Brown <jeffbrown@google.com> Merge "Add a "show touches" option for demos and presentations. Bug: 4569045"
6537b003b7b616d4babde4b69a3d5e68459c555a 29-Aug-2011 Svetoslav Ganov <svetoslavganov@google.com> Merge "Clean up and bug fixes in the TouchExplorer."
f804420d6e37748b75478406e989c69303756980 27-Aug-2011 Svetoslav Ganov <svetoslavganov@google.com> Clean up and bug fixes in the TouchExplorer.

1. The downTime of the first down event was zero but it should the event time.

2. Hover exit events were not injected while transitioning to delegating
state and when tapping.

3. Differentiation between dragging and delagating state based on
two moving pointer direction and distance is now based only on
the direction. Hence, two pointers moving in the same direction
are dragging, otherwise the event stream is delegated unmodified.
The reason for that is the blind people cannot easily determine
and control the distance between their fingers resulting in
different behavior for gestures which the user thinks are the same
which creates confusion. Also in some cases the delegation and
draggig yield the same result, for example in list view, further
adding to the confusion. This was also causing the status bar to
be opened closed inreliably creating frustration.

4. Refactored the code such that now there is only one method that
injects motion events and all request go through it. Some bugs
were introduced by inconsistent implementation in the different
injection methods.

5. Fixed a couple of event stream inconsistencies reported by the
event consistency verifier.

bug:5224183
bug:5223787
bug:5214829

Change-Id: I16c9be3562ad093017af5b974a41ab525b73453f
om/android/server/accessibility/TouchExplorer.java
67ed6c7224b902ae56a109701a241210e18cf721 28-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5133509 - Align holo menu panel windows along the bottom of
the screen

Alter preferred options panel gravity policy.

Integrate new menu panel assets for holo apps.

Change-Id: I9fa98ed9359148ea6d1f1d1e727ddcd437b16e2f
om/android/server/wm/WindowManagerService.java
daf4a127ba2af82a3fb477044b872719a0ab1827 27-Aug-2011 Jeff Brown <jeffbrown@google.com> Add a "show touches" option for demos and presentations.
Bug: 4569045

Change-Id: I8726ea292dd7def790a5e40d7d7e58968974f896
om/android/server/wm/InputManager.java
e598cd0143c0c79b0f6c6f557269ed5f5100e78b 27-Aug-2011 Jeff Sharkey <jsharkey@android.com> Merge "Always splice historical data stats, debug info."
47eb102b40cd1324d89816a7fb0fecd14fd7a408 26-Aug-2011 Jeff Sharkey <jsharkey@android.com> Always splice historical data stats, debug info.

When reading network counters, always splice in xt_qtaguid values
to avoid counting backwards. Test to verify.

Remove verbose logging around global alerts, and add dumpsys debug
info for NMS and MDST. Also fix subtle bug around stats persisting
and dumping.

Bug: 5212893, 5211028
Change-Id: I783e5286637a67ee2dd2b09878198711a926d0cb
om/android/server/NetworkManagementService.java
om/android/server/net/NetworkPolicyManagerService.java
om/android/server/net/NetworkStatsService.java
f39daef102f2dff7517e257eb25c2e3677247e83 26-Aug-2011 satok <satok@google.com> Reset subtype when the current spell checker was changed.

Change-Id: I79099695337dbc5577871458b24c6710fc0ecca7
om/android/server/TextServicesManagerService.java
ca6d29da777cffd40d9f3e38f95663ba1a2002c5 26-Aug-2011 satok <satok@google.com> Merge "Support system locale as the locale of the spell checkers"
b387954a92eb6f15b7f49d5b946745f492a26363 26-Aug-2011 satok <satok@google.com> Support system locale as the locale of the spell checkers

Bug: 5212035

Change-Id: I18d27e54b936cc7f4d6cc3c7100bce57f77f8f9f
om/android/server/TextServicesManagerService.java
bc81b692d51a9cd6f9d61584aacd8308ac3366ea 26-Aug-2011 satok <satok@google.com> Do not show auxiliary subtypes on the lock screen

Change-Id: Id7cf5d122968790ba6d75d3b047d45ea99e4d0f6
om/android/server/InputMethodManagerService.java
fbedf1a3978d5dfc4a886e4c7107d4bc1923f740 26-Aug-2011 satok <satok@google.com> Fix NPE in setCurrentSpellCheckerSubtype

Change-Id: I9fce999f91dcccd2f877a0326c4f2e3ac9024f85
om/android/server/TextServicesManagerService.java
4bc554b37165dbee8d805a6f73ac5e946f2769ae 26-Aug-2011 satok <satok@google.com> Merge "Fix setCurrentSpellCheckerSubtype"
3cb5b39a0e63d98c4e7b47e9a5b5758e9d4024bd 26-Aug-2011 satok <satok@google.com> Fix setCurrentSpellCheckerSubtype

Change-Id: Ib42a3b4377b8700ceaf4b7e13150848464d073c1
om/android/server/TextServicesManagerService.java
97c46181c7089cb937cfe3fab536049d2d99ad72 26-Aug-2011 Mathias Agopian <mathias@google.com> Merge "put the watchdog values back to what they should be"
cf2317ef13e35cf1bcd5ba27be686c7f2609ac38 26-Aug-2011 Mathias Agopian <mathias@google.com> put the watchdog values back to what they should be

Change-Id: I4f394248c2f4c514f74b66fde3cb69bbed9ec796
om/android/server/Watchdog.java
6683eb2d8d4323ac21ad42b3f7646c761968c75f 26-Aug-2011 Paul Westbrook <pwestbro@google.com> Merge "Use ELAPSE_REALTIME alarm for tick event"
8228e68becda68bee31c85796f08396b58370f6f 26-Aug-2011 Mathias Agopian <mathias@google.com> Merge changes I083c4133,If904634e

* changes:
make sure to re-initialize SurfaceTexture to its default state on disconnect
Fix screenshots
2370d0a14f09d4fb5133ff48e28459ce8343bf80 26-Aug-2011 Mathias Agopian <mathias@google.com> make sure to re-initialize SurfaceTexture to its default state on disconnect

this caused problems where the NavigationBar would disapear or be
drawn in the wrong orientation.

Change-Id: I083c41338db83a4afd14f427caec2f31c180d734
om/android/server/Watchdog.java
f60ac6307e07b409faea9f2506aa8c7162d11a4f 26-Aug-2011 John Huang <jsh@google.com> Merge "Notify overall state instead of current changed state"
e6fa120275d9f6715783cf608b4fed742fd7161b 21-Aug-2011 yoonsung.nam <yoonsung.nam@samsung.com> Notify overall state instead of current changed state

TelephonyRegistry notifies wrong state thourgh onDataConnectionStateChanged().
As a result, browser works even though there is no data icon in status bar.
The issue is reproducible as following senario:
1. There are two connections.
2. Network type is changed and one of the connections is disconnected
at the same time.
3. TelephonyRegisitry notifies disconnect state to apps which are listening
PhoneStateLinstener.

Change-Id: Iac1e2b14e41715a63ea0d842cb44d232447e814a
Signed-off-by: yoonsung.nam <yoonsung.nam@samsung.com>
om/android/server/TelephonyRegistry.java
7b2a582a277494643e123c71683cff47156b303c 25-Aug-2011 Dianne Hackborn <hackbod@google.com> Merge "Whoops, remove this."
51608a53040cd4bc3694dac2bf67dc18a4b5b235 25-Aug-2011 Paul Westbrook <pwestbro@google.com> Use ELAPSE_REALTIME alarm for tick event

Change to use a real item alarm for scheduling ACTION_TIME_TICK
intents for the case where time goes backwards after the tick intent
is schedule, and where the time change is not noticed from the call
to waitForAlarm().

Bug: 5166877
Change-Id: I46b9a1c80146d27becedc341c4af977fcdf47352
om/android/server/AlarmManagerService.java
8795b60dfc2a9baba9776777f62e5fd1ba48e8d7 25-Aug-2011 Dianne Hackborn <hackbod@google.com> Whoops, remove this.

Change-Id: I863d4739e918de1b4177ec8bb17063597f1ff3dc
om/android/server/SystemServer.java
123adee398361809beaeddf2f3c073c0283b1e62 25-Aug-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #5214105 and work on issue #5109947."
295e3c27e4e3762a002382fc1657f5f0070a3410 25-Aug-2011 Dianne Hackborn <hackbod@google.com> Fix issue #5214105 and work on issue #5109947.

Change-Id: Iff2cfec5280a314989d915aa830c16124f921611
5214105: taking a screenshot while "Android is upgrading..." crashes device
5109947: Race condition between retrieving a content provider and updating its oom adj
om/android/server/SystemServer.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/ProcessList.java
ed191e1fae0f860323f6ed76ea982287c42ec83e 25-Aug-2011 Jeff Sharkey <jsharkey@android.com> Merge "Data usage buckets active time, parsing ISE."
235c47ff3edc9228609e82d2201275e70889921f 25-Aug-2011 Jeff Sharkey <jsharkey@android.com> Merge "Register for kernel global data usage alerts."
12bde60b39affbfdcb7ef6317e0a5f99c3f41b10 25-Aug-2011 Svetoslav Ganov <svetoslavganov@google.com> Merge "Intra-process view hierarchy interrogation does not work."
1e3fac8bc62a2495eb9bb79cc208573b5782cedc 25-Aug-2011 satok <satok@google.com> Merge "Add functions to enable / disable spell checker"
a33c4fc5bed76727f1e06e522e0136101a2304cd 25-Aug-2011 satok <satok@google.com> Add functions to enable / disable spell checker

Bug: 5057977

Change-Id: I2b27bd5f55feb305368034d7e95f83257ac4b3e6
om/android/server/TextServicesManagerService.java
47d0e48197c566be5d4c11534ceabc8a38a18cec 25-Aug-2011 satok <satok@google.com> Merge "Dismiss the ime switch notification properly"
dbf2950781ab0c4c0fc4ad9bd71b13c55ae6f471 25-Aug-2011 satok <satok@google.com> Dismiss the ime switch notification properly

Bug: 5159818

Change-Id: I606294dd453d3cc105714c62b945fcf1fa11164d
om/android/server/InputMethodManagerService.java
6ff0037792619c4441d9d3caa4f9ab4f45c11236 25-Aug-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix to show the correct HW accel background in the preview window."
07213e6d8895af10951851435adf96a779863f6c 25-Aug-2011 Dianne Hackborn <hackbod@google.com> Fix to show the correct HW accel background in the preview window.

Also tweak wallpaper service to do a cleaner transition to a
static wallpaper.

Change-Id: I876a32091f92dd5a529d7fd809d3b8e730bb7d2a
om/android/server/WallpaperManagerService.java
b26db260ae91a335fcee4f67df9341d002fbe1b0 25-Aug-2011 Brett Chabot <brettchabot@android.com> Merge "Disable package verification by default."
ae05e8655d173d61169d9659ef1e9818d2cfc36b 25-Aug-2011 Brett Chabot <brettchabot@android.com> Disable package verification by default.

Change-Id: I0e02cd177dbb99fc97e964ac87251a900d915b95
om/android/server/pm/PackageManagerService.java
c39e8e89eb370ed66f552da3be258e57f1aabeb9 25-Aug-2011 Romain Guy <romainguy@google.com> Merge "Add OpenGL backend to ImageWallpaper Bug #5204874"
19bc995e9ae4ec9ea48c183758759e2b68ec964b 25-Aug-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix animation scale to also scale start offset."
407ec78b828173257b0c5dae221649a4ccd8b058 25-Aug-2011 Romain Guy <romainguy@google.com> Add OpenGL backend to ImageWallpaper
Bug #5204874

Currently disabled.

Change-Id: I5e7b35dce2981b0691f107e39c6394b260466543
om/android/server/WallpaperManagerService.java
8bd69610aafc6995126965d1d23b771fe02a9084 23-Aug-2011 Svetoslav Ganov <svetoslavganov@google.com> Intra-process view hierarchy interrogation does not work.

The content retrieval APIs are synchronous from a client's
perspective but internally they are asynchronous. The client thread
calls into the system requesting an action and providing a callback
to receive the result after which it waits up to a timeout for that
result. The system enforces security and then delegates the request
to a given view hierarchy where a message is posted (from a binder
thread) describing what to be performed by the main UI thread the
result of which it delivered via the mentioned callback. However,
the blocked client thread and the main UI thread of the target view
hierarchy can be the same one, for example an accessibility service
and an activity run in the same process, thus they are executed on the
same main thread. In such a case the retrieval will fail since the UI
thread that has to process the message describing the work to be done
is blocked waiting for a result is has to compute! To avoid this scenario
when making a call the client also passes its process and thread ids so
the accessed view hierarchy can detect if the client making the request
is running in its main UI thread. In such a case the view hierarchy,
specifically the binder thread performing the IPC to it, does not post a
message to be run on the UI thread but passes it to the singleton
interaction client through which all interactions occur and the latter is
responsible to execute the message before starting to wait for the
asynchronous result delivered via the callback. In this case the expected
result is already received so no waiting is performed.

bug:5138933

Change-Id: I382e2d8689f5189110226613c2387f553df98bd3
om/android/server/accessibility/AccessibilityManagerService.java
558a23200697d306b75750cf4612cf0717e73537 25-Aug-2011 Jeff Sharkey <jsharkey@android.com> Data usage buckets active time, parsing ISE.

When recording data usage, measure the actual active time, since
buckets can be quite long. Offer incrementOperationCount() version
that reads thread stats tag for caller. Rethrow any NPE as ISE
during stats parsing, which callers already handle.

Bug: 5171812, 5184508, 5180659
Change-Id: I6da80ccc0162be68bee279529e3a23b6f98ebd87
om/android/server/NetworkManagementService.java
om/android/server/ThrottleService.java
a4bacb8b74adf7908ac382024dc9183144793217 25-Aug-2011 Dianne Hackborn <hackbod@google.com> Fix animation scale to also scale start offset.

Also more better info in meminfo dump.

Change-Id: I45ab41821cd8dd81b61605de6a0cf7074e76c71a
om/android/server/am/ActivityManagerService.java
1c424f86c634a8c27ef1bbb82938ae64b4f3a385 24-Aug-2011 Christopher Tate <ctate@google.com> Merge "Make sure to go to the right Settings panel when tapping a notification"
765f97d5e608031bc1de4156c6e681e4d178c7ee 24-Aug-2011 Christopher Tate <ctate@google.com> Make sure to go to the right Settings panel when tapping a notification

We now use Intent.makeRestartActivityTask() to build the notification
PendingIntent objects, so that when tapped they restart the activity
in the desired state.

Fixes bug 5011926

Change-Id: Ie1ec3543cc0f49d1bd407622a617316cf53a078c
om/android/server/usb/UsbDeviceManager.java
42577560fb0a1aead62a378caa267734e9d91207 24-Aug-2011 Chia-chi Yeh <chiachi@android.com> Merge "VPN: stop daemons by closing the control sockets."
2da59ffbda80594e6312f400341810f91e1d333a 24-Aug-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #5192141: systemui asplodes after enough tapping on the windowlist button"
cfb9f2bca39772aecd072e2a30342a67b6319bbb 24-Aug-2011 Dianne Hackborn <hackbod@google.com> Fix issue #5192141: systemui asplodes after enough tapping on the windowlist button

Change-Id: I5afb2d54b531d9eac9435660616579324f239812
om/android/server/am/TaskRecord.java
om/android/server/wm/WindowManagerService.java
d0bf536fd6618414bb9c84424a931865e62e6876 24-Aug-2011 Mike Lockwood <lockwood@android.com> Merge "No longer disable notification lights when screen turns on"
cfc0f2c206af24350245f83b36e0032a7d4de49a 24-Aug-2011 satok <satok@google.com> Merge "Add functions to set / get SpellCheckerSubtype"
ada8c4e6a3da96a795f39a1028d448eb7aebfab3 23-Aug-2011 satok <satok@google.com> Add functions to set / get SpellCheckerSubtype

Change-Id: I977326879fe201c4dee4a87da361217175eb6041
om/android/server/TextServicesManagerService.java
006efb24706378293a2faa137c7c7ca34a2e15cd 24-Aug-2011 Jeff Sharkey <jsharkey@android.com> Merge "Proactively disable data when over policy limit."
8e9992ae5053a3ac52d28a5a892aed0a0798c7ab 24-Aug-2011 Jeff Sharkey <jsharkey@android.com> Register for kernel global data usage alerts.

Instead of polling every 15 minutes, register for alerts that trigger
when system-wide traffic passes a threshold. Still mixed with polling
to persist UID stats, but relaxed to 30 minutes. Currently watches
for every 512kB.

Make persistence decision separately for network versus UID, and use
total delta bytes when making decision. Use light bootstrap during
systemReady() instead of heavy poll, which had been force-loading all
UID data unnecessarily.

Bug: 5023631
Change-Id: I04b723d6c4bf872fb1028071122dba66a8e1b576
om/android/server/NetworkManagementService.java
om/android/server/net/NetworkPolicyManagerService.java
om/android/server/net/NetworkStatsService.java
8e28b7d78232f6cf08739ca0d129cc7f9e650801 19-Aug-2011 Jeff Sharkey <jsharkey@android.com> Proactively disable data when over policy limit.

Add policy controls to NetworkStateTracker which are combined with
other user preference and internal flags to decide if data connection
should be established. Better locking around enabled flags.

When data network would be over limit, proactively disable data on
that network. Enable when policy is snoozed or when cycle resets.

Track and dismiss notifications from now-stale policies.

Bug: 4587023, 5178147
Change-Id: Ibfcc9f73cda7c369209af701b46eddd3d1943f2d
om/android/server/ConnectivityService.java
om/android/server/net/NetworkPolicyManagerService.java
b0626b53adceb3de0b85c1865655e74e7e964e08 23-Aug-2011 Mike Lockwood <lockwood@android.com> No longer disable notification lights when screen turns on

The new specification calls for LED to continue blinking until the user
pulls down the notification shade in the status bar.

Bug: 5143247

Change-Id: Id004cc3d1d9d76108329e57c6fbd8a8100068e0a
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/NotificationManagerService.java
29aae6f36e565b8f2a99f2193597b964bb800ee8 19-Aug-2011 Dianne Hackborn <hackbod@google.com> Fix issue #4279860: previous UI flashes before showing lock screen...

...(when turning display on after recently turning it off)

Also clean up when we decide to turn the screen on to improve that
transition. There are still problems here with turning it on
before the wallpaper gets dispayed.

Change-Id: I2bc56c12e5ad75a1ce5a0546f43a845bf0823e66
om/android/server/PowerManagerService.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityStack.java
om/android/server/wm/WindowManagerService.java
661cd52e0e1d527132eb1cae604d3e64da7ec0cb 22-Aug-2011 Dianne Hackborn <hackbod@google.com> Add progress dialog for booting after an upgrade.

This introduces a new facility for code during the boot process
to display messages to the user through a progress dialog. This
is only for use when performing longer-than-usual post-upgrade
operations such as running dexopt on applications or upgrading
databases.

Change-Id: I0e78439ccec3850fb67872c22f235bf12a158dae
om/android/server/DropBoxManagerService.java
om/android/server/InputMethodManagerService.java
om/android/server/SystemServer.java
om/android/server/am/ActivityManagerService.java
om/android/server/pm/PackageManagerService.java
om/android/server/wm/WindowManagerService.java
5317f034bacaab19af3181da8e9752cbb5b09a08 22-Aug-2011 Chia-chi Yeh <chiachi@android.com> VPN: stop daemons by closing the control sockets.

As init now uses SIGKILL to stop daemons, performing graceful shutdown
becomes impossible. Here we implement our own solution by asking daemons
to monitor the control socket and terminate when it is closed.

Change-Id: I07a28807173a81b7f95e70f4193e974317acf88a
om/android/server/connectivity/Vpn.java
0191bba17cf78285aa38e0a91acbce112774d348 21-Aug-2011 Jim Miller <jaggies@google.com> Fix 4993068: Don't check password history when dpm sets the password

This fixes a crash caused by permission problems when we try to update
the password history and discover there's no password salt. The code
attempts to create the salt, which triggers the exception.

This could be fixed by wrapping the call with a clearCallingIdentity()/
restoreCallingIdentity(ident). However, while looking at it, it occurred to me
that this can cause unexpected failures if the DPM tries to set the
password twice or happens to set it to something in the password history.

Instead, we should *always* allow the DPM to reset the password to whatever it wants,
provided it passes the minimum password criteria.

Change-Id: I1505b24f9c097ee5c2c44e4bf378ba90095b113b
om/android/server/DevicePolicyManagerService.java
d6a2be3ef75892d223bddc82db8a4b4f22d0ec20 20-Aug-2011 Christopher Tate <ctate@google.com> Merge "Allow Instrumentation to kill even persistent processes"
3dacd8470a55804fe267a901c6b9f243431e39e2 19-Aug-2011 Christopher Tate <ctate@google.com> Allow Instrumentation to kill even persistent processes

Fixes bug 5117630

Change-Id: Iff40145fbbdc1d81a60cf2ecc5b24321162f7897
om/android/server/am/ActivityManagerService.java
1c9b260cf5af68ef06288eadc3b7d31dd05b28f7 19-Aug-2011 Dianne Hackborn <hackbod@google.com> Fix issue #5187844: Query is misrouted to wrong content provider

Change-Id: I56834f41844990d67edc8af83273036b3d755e37
om/android/server/am/ActivityManagerService.java
937ffc174c742c56d33f64c6f1129403445193fd 19-Aug-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #5180553: permission RECEIVE_BOOT_COMPLETED is not checked"
d99b293d5f11b784d7406f5398bc654920b42482 18-Aug-2011 Dianne Hackborn <hackbod@google.com> Fix issue #5180553: permission RECEIVE_BOOT_COMPLETED is not checked

Change-Id: I069673f2fbdf05e409c5e9ed99ccd1e15b4fe3ed
om/android/server/am/ActivityManagerService.java
om/android/server/am/BroadcastRecord.java
om/android/server/pm/PackageManagerService.java
9a20fa54c9ba4bd19f2afd6e8cc6e9954e7cb739 19-Aug-2011 Jeff Sharkey <jsharkey@android.com> Merge "Background data notification, API clean up."
d1106fc9bff66ac4f93f9d6291f0d0136bb544e7 18-Aug-2011 Kenny Root <kroot@google.com> Merge "Default disable watchdog for vold connection"
e8c88e6f764a77d94b0051ea169a82a61fcc0d0e 18-Aug-2011 Dianne Hackborn <hackbod@google.com> Fix issue #5163456: logspam/tight loop in BatteryStatsImpl

No longer use the old history code.

Change-Id: I878ffe16e0014453c46db6a4f7228a81468d8cb9
om/android/server/am/ActivityManagerService.java
07714d41e57ef9d8e2e6b40d8764e42053cce1bd 18-Aug-2011 Kenny Root <kroot@google.com> Default disable watchdog for vold connection

cryptfs has long-running operations that cause the Watchdog to fire
reliably when encrypting the filesystem. Disable Watchdog on
MountService for this reason.

Change-Id: Id03f5f60c704dcd74a8696ad9f32b5fba5381731
om/android/server/MountService.java
3a844fcf5a0e70a19c38dc500306b9ebe4e1413b 16-Aug-2011 Jeff Sharkey <jsharkey@android.com> Background data notification, API clean up.

When restricting background data, show ongoing notification to give
easy access to re-enable. Deprecate getBackgroundDataSetting() API
to always return true, since NetworkInfo.isConnected() is new source
of truth. Handle upgrade path by reading from existing secure value,
and kick one last broadcast when changing value. Remove background
data code from ConnectivityService.

Remove warning alerts, since they push ifaces into restricted list;
should only happen when iface has limit.

Bug: 5163559, 5129421
Change-Id: I0064d9d643656a4d32aaae51d4a58bce49fe295f
om/android/server/ConnectivityService.java
om/android/server/net/NetworkPolicyManagerService.java
842d9de74f9eaaf8a7b89dbe8475faf014ddafb8 17-Aug-2011 Adam Cohen <adamcohen@google.com> Merge "Getting rid of the (hidden) oldName parameter for widgets"
bac26a1205883ad30343f1d1f64a039dcdda9f63 17-Aug-2011 Adam Cohen <adamcohen@google.com> Getting rid of the (hidden) oldName parameter for widgets

Change-Id: I191cf64ed045fd7cb53e106f337cbeab5a914336
om/android/server/AppWidgetService.java
e518be3085c7457f3451a64fbea3f9499ae39bf5 17-Aug-2011 Dianne Hackborn <hackbod@android.com> am 51beb81a: am ee93fd5c: am 7a0d746b: am baaf3ce6: Merge "Handle stopping of services with still bound applications."

* commit '51beb81a8e901020293b7a30a68b405bca71d258':
Handle stopping of services with still bound applications.
51beb81a8e901020293b7a30a68b405bca71d258 17-Aug-2011 Dianne Hackborn <hackbod@android.com> am ee93fd5c: am 7a0d746b: am baaf3ce6: Merge "Handle stopping of services with still bound applications."

* commit 'ee93fd5c0d7b0296fca17363ec00dc2ee63a0841':
Handle stopping of services with still bound applications.
baaf3ce6385da0f9f5ff6e2195e26c339ee9949e 17-Aug-2011 Dianne Hackborn <hackbod@android.com> Merge "Handle stopping of services with still bound applications."
755bd67a5081727ae1bbee2d39863b464a8b4f35 17-Aug-2011 Christopher Tate <ctate@google.com> Merge "Don't crash if a drag recipient throws an uncaught exception"
d9be36c897680361da2daadba9bbc9da3c16329b 17-Aug-2011 Christopher Tate <ctate@google.com> Don't crash if a drag recipient throws an uncaught exception

There turn out to be two distinct bugs leading to runtime restarts.

The first, dating from at least Android 3.1, is that following certain kinds
of app crashes we properly clean up the drag-state bookkeeping, but aren't
prepared in the case of the drag-target timeout clock firing with a now-
null drag state in effect. We now catch that edge condition and don't NPE
(and note that there was already similar code around the separate timeout
when an app is *starting* the drag process).

The second bug is that some new-in-ICS code in the input channel management
wasn't prepared for certain cases where the current touch window could have
become unusable and its input channel torn down summarily in the case of the
aforesaid app crash during drag. The code now makes sure that there really
is an input channel that needs to be flushed / cancelled prior to attempting
that operation.

Fixes bug 5173534

Change-Id: Idaae158ecfb4b93456ab1425769b669962893c00
om/android/server/wm/WindowManagerService.java
4a56c437b6fd02dce06fa8565953964b01d21b5d 16-Aug-2011 repo sync <isheriff@google.com> Merge "P2p enhancements"
1db7f7940e24ad359a02aac07eb6b8b03f3f9804 16-Aug-2011 Chia-chi Yeh <chiachi@android.com> Merge "VPN: reset legacy VPN when resetting IPv4 addresses."
fadd2b8e0ffea0d5b4bf3ca16af4d5cea001b561 16-Aug-2011 Mike Lockwood <lockwood@android.com> UsbManager: Use resource IDs for notification IDs

to avoid ID collisions with other system services.

Bug: 5161005

Change-Id: I069fbc40a8764bc85cceeacd04264abd32b62668
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/usb/UsbDeviceManager.java
e81740442f94aefe7dd3f061dfbd20a6fdeb667d 16-Aug-2011 Mike Lockwood <lockwood@android.com> dumpsys: fix problems with -a option in battery and batteryinfo services

Now the dumpsys battery output will show up in bugreports again.

Change-Id: Id36e87d27e9d3c06dcc17671c81aa1d3fe260d1e
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/BatteryService.java
om/android/server/am/BatteryStatsService.java
0c074e68437f1a705a8e73ac32e8e4dec370ec43 16-Aug-2011 Chia-chi Yeh <chiachi@android.com> VPN: reset legacy VPN when resetting IPv4 addresses.

Currently legacy VPN only works on IPv4, and it should always
turn down when the addresses are changed. It assumed that the
interface will be brought down and up, so the event can be
detected via interfaceStatusChanged(). However, the assumption
was incorrect and the event is actually driver-dependent. To
fix this issue, ConnectivityService now tells VPN that the
interface is down when resetting IPv4 addresses.

Change-Id: I76d15e56552d86635c5b274ca980be5da905a6fb
om/android/server/ConnectivityService.java
om/android/server/connectivity/Vpn.java
8e99d183345391cddec70e18d3c41cf21f9f67cb 16-Aug-2011 Robert Greenwalt <rgreenwalt@google.com> Merge "Flush central DNS cache when things change."
46d2545db48e6b8565ef7beedf6486ef5d7f4507 16-Aug-2011 Kenny Root <kroot@google.com> Merge "Infrastructure to support package verifier"
bcc2d40a11432736e94c1dd3c64abd1aac476c20 16-Aug-2011 Kenny Root <kroot@google.com> Merge "Throw exception on odd length Signatures"
34c788096f0f7c8f2b4b19c15fef65d0c4aef61d 16-Aug-2011 Dianne Hackborn <hackbod@google.com> Merge "Add new am option to profile the launching of an activity."
b51645ee2c7608f0b1a50d09f203cf5323b0b02d 16-Aug-2011 Jeff Sharkey <jsharkey@android.com> Merge "Foreground/background network stats using sets."
a06cb342836d02fe1e176c16f83c4d0a55e00f8b 16-Aug-2011 Jeff Sharkey <jsharkey@android.com> Merge "Add NativeDaemonConnector users to watchdog."
62f20ecf492d2b29881bba307c79ff55e68760e6 16-Aug-2011 Dianne Hackborn <hackbod@google.com> Add new am option to profile the launching of an activity.

Change-Id: Ie71a8043eafe41f53a0b3dbb5170276d87acbc9b
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityStack.java
b5d55e302d2253e4bfb233ea705caf258cdc4cb9 11-Aug-2011 Jeff Sharkey <jsharkey@android.com> Foreground/background network stats using sets.

Teach NetworkStats about "counter sets" coming from kernel, and use
them to track usage in foreground/background. Add AID_NET_BW_ACCT to
system_server so it can control counter sets.

Move to composite key of NetworkIdentitySet, UID, set, and tag when
recording historical usage. Persisting still clusters by identity,
since that is heaviest object.

Request async stats poll during systemReady() to bootstrap later
delta calculations. Reset kernel counters when UID removed. Update
various tests.

Bug: 5105592, 5146067
Change-Id: Idabec9e3ffcaf212879821515602ecde0a03de8c
om/android/server/NetworkManagementService.java
om/android/server/ThrottleService.java
om/android/server/net/NetworkPolicyManagerService.java
om/android/server/net/NetworkStatsService.java
5ab2157bf1f105b02d3e2913cd3a33f9765b74ca 27-Jul-2011 Kenny Root <kroot@google.com> Infrastructure to support package verifier

Allow a package verifier to approve or disapprove of a package being
installed.

Change-Id: Ibfea0f2b1aaa4ab1589a4e59f96144702b9bf94b
om/android/server/pm/PackageManagerService.java
f125a093636ef22c81a9d90397407f9ef05a6e9a 15-Aug-2011 Robert Greenwalt <rgreenwalt@google.com> Flush central DNS cache when things change.

Flushes the cache for an interface when
either routes or DNS servers change.

Change-Id: I021305f781be669aaa12074dc1cc21511f49eac4
om/android/server/ConnectivityService.java
8b65c902ee25e9c38f64eef9f7af0cf9e86491e3 15-Aug-2011 Jeff Brown <jeffbrown@google.com> Merge "Use PARCELABLE_WIRTE_RETURN_VALUE flag in InputChannel. Bug: 5161290"
40a9784d48211048fa3731a3ffdccda475750090 15-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5154361 - New force close dialog text breaks button order rules

Reorder the force close/ANR dialog buttons to better match the new
rules/intent from UX.

Change-Id: I30fed56aabd0cc91d07852807347057176d82aaa
om/android/server/am/AppErrorDialog.java
om/android/server/am/AppNotRespondingDialog.java
0a0ab128a65900a23f1018a14f5cbecec6443dd3 13-Aug-2011 Jeff Brown <jeffbrown@google.com> Use PARCELABLE_WIRTE_RETURN_VALUE flag in InputChannel.
Bug: 5161290

Replace mDisposeAfterWriteToParcel with code that takes advantage
of the standard Parcel API support for releasing resources after
writing a Binder reply.

This change makes it less likely that InputChannels will leak
accidentally when passed across a Binder.

Change-Id: Id37706e7b88d074e8e4ac687c88f0db8963200f2
om/android/server/wm/WindowManagerService.java
7c0d8472d003334fafd14f7c1e7d95dbd213088b 13-Aug-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix some crashes that are happening in the system process."
8e8d65ff5fdef12c6af3d003dfef19aadc39bea9 12-Aug-2011 Dianne Hackborn <hackbod@google.com> Fix some crashes that are happening in the system process.

- When shutting down, if the screen goes to sleep there is code
that tries to do a notifyAll without holding the lock:

java.lang.IllegalMonitorStateException: object not locked by thread before notifyAll()
at java.lang.Object.notifyAll(Native Method)
at com.android.server.am.ActivityStack.checkReadyForSleepLocked(ActivityStack.java:776)
at com.android.server.am.ActivityStack$1.handleMessage(ActivityStack.java:282)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at com.android.server.ServerThread.run(SystemServer.java:603)

- If an invalid Uri object is sent to the system process it can crash because
the Uri class throws an assertion while unmarshalling. Change this to an
IllegalArgumentException so it gets sent back to the caller:

java.lang.AssertionError
at android.net.Uri$PathPart.readFrom(Uri.java:2224)
at android.net.Uri$HierarchicalUri.readFrom(Uri.java:1106)
at android.net.Uri$1.createFromParcel(Uri.java:1689)
at android.net.Uri$1.createFromParcel(Uri.java:1681)
at android.content.IContentService$Stub.onTransact(IContentService.java:53)
at android.content.ContentService.onTransact(ContentService.java:120)
at android.os.Binder.execTransact(Binder.java:338)
at dalvik.system.NativeStart.run(Native Method)

- StrictMode can try to access the first index in the stack crawl of a stack crawl
array of length 0. Not sure why this happens, but make the code more robust:

java.lang.ArrayIndexOutOfBoundsException: length=0; index=0
at android.app.ApplicationErrorReport$CrashInfo.<init>(ApplicationErrorReport.java:341)
at android.os.StrictMode$ViolationInfo.<init>(StrictMode.java:1978)
at android.os.StrictMode$AndroidBlockGuardPolicy.startHandlingViolationException(StrictMode.java:1097)
at android.os.StrictMode$AndroidBlockGuardPolicy.onReadFromDisk(StrictMode.java:1068)
at libcore.io.BlockGuardOs.read(BlockGuardOs.java:137)
at libcore.io.IoBridge.read(IoBridge.java:426)
at java.io.FileInputStream.read(FileInputStream.java:179)
at java.io.InputStream.read(InputStream.java:148)
at com.android.internal.os.ProcessStats.readFile(ProcessStats.java:804)
at com.android.internal.os.ProcessStats.getCpuSpeedTimes(ProcessStats.java:564)
at com.android.internal.os.ProcessStats.getLastCpuSpeedTimes(ProcessStats.java:545)
at com.android.server.am.ActivityManagerService.updateCpuStatsNow(ActivityManagerService.java:1470)
at com.android.server.am.ActivityManagerService.batteryNeedsCpuUpdate(ActivityManagerService.java:1522)
at com.android.internal.os.BatteryStatsImpl$MyHandler.handleMessage(BatteryStatsImpl.java:110)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at com.android.server.am.ActivityManagerService$AThread.run(ActivityManagerService.java:1302)

(Also fix this code to not cause strict mode to trigger at all, because there is
no need, because this is just reading stuff from /proc.)

- The system seems to crash during boot if it thinks it needs to rotate
the screen, when it is trying to take the freeze snapshot way too early.
There is no need to freeze the screen during boot or if the screen is off:

java.lang.NullPointerException
at android.view.Surface.init(Native Method)
at android.view.Surface.<init>(Surface.java:256)
at com.android.server.wm.ScreenRotationAnimation.<init>(ScreenRotationAnimation.java:91)
at com.android.server.wm.WindowManagerService.startFreezingDisplayLocked(WindowManagerService.java:8758)
at com.android.server.wm.WindowManagerService.startAppFreezingScreenLocked(WindowManagerService.java:3971)
at com.android.server.wm.WindowManagerService.startAppFreezingScreen(WindowManagerService.java:4003)
at com.android.server.am.ActivityRecord.startFreezingScreenLocked(ActivityRecord.java:515)
at com.android.server.am.ActivityStack.ensureActivityConfigurationLocked(ActivityStack.java:3997)
at com.android.server.am.ActivityManagerService.updateConfigurationLocked(ActivityManagerService.java:12535)
at com.android.server.am.ActivityManagerService.updateConfiguration(ActivityManagerService.java:12439)
at com.android.server.wm.WindowManagerService.systemReady(WindowManagerService.java:6161)
at com.android.server.ServerThread.run(SystemServer.java:521)

Change-Id: I85062bb5f6b0909a0f52feedaa75e7611d9d7fbd
om/android/server/am/ActivityStack.java
om/android/server/wm/WindowManagerService.java
b858ec559e8c6a13f6d2212a11f3f952e43259f6 12-Aug-2011 Michael Jurka <mikejurka@google.com> Merge "On device startup, be in touch mode"
e99adc70c8e0a64cb8d13a2ec4c125adaf18904d 12-Aug-2011 Michael Jurka <mikejurka@google.com> On device startup, be in touch mode

- Solves bug where an icon showed focus state on startup in Launcher. Once the keyboard arrows are used, Launcher enters non-touch mode as usual

Change-Id: I0080f3b72f6c22833c600a1026af0abc35024510
om/android/server/wm/WindowManagerService.java
7bc4827e364c49c5d516d5b50ad59c842be6b0bf 12-Aug-2011 Christopher Tate <ctate@google.com> Merge "Fix partial-read handling during restore"
e342551e56e422a4409caaa51d225e750eb7c7b0 11-Aug-2011 Kenny Root <kroot@google.com> Merge "Better errors from copyResource"
e09cd7914c117e84bf78676d0e760c51aa147eb8 11-Aug-2011 Dianne Hackborn <hackbod@google.com> Merge "New broadcast telling when an app is fully removed."
bde7a61a06beca0966f60c909c98ecc0979d3130 11-Aug-2011 Robert Greenwalt <rgreenwalt@google.com> Merge "Remove default routes for non-default networks."
6853fcf53f119d82cddc4742a0c34e7a2f43431c 11-Aug-2011 Christopher Tate <ctate@google.com> Fix partial-read handling during restore

...by once and for all making all of the code deal appropriately with
expected partial reads. We also now produce a properly conformant
underlying 'tar' EOF sequence [which will be compressed to almost
nothing] to doubly bulletproof the end-of-archive logic.

Fixes bug 5133658

Change-Id: I24a785574861d64ef10fc727b9f6b235575696b0
om/android/server/BackupManagerService.java
c269dc55f160762c78e6360472630ef33b5061cf 11-Aug-2011 Jeff Brown <jeffbrown@google.com> Merge "Add input system to Watchdog. Bug: 5094994"
f9abb405903cab1fcd379388a96925524840c607 11-Aug-2011 Dianne Hackborn <hackbod@google.com> New broadcast telling when an app is fully removed.

Change-Id: Ia516d826f302a01881fa92d9ffdc0adfbf669a4b
om/android/server/pm/PackageManagerService.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
om/android/server/pm/PackageManagerService.java
89ef0720ee8e0ac6ae1758faa917e4d6c9606fb4 11-Aug-2011 Jeff Brown <jeffbrown@google.com> Add input system to Watchdog.
Bug: 5094994

Change-Id: I153866958efc64ac19bda8b997c1c9f6ad425ec4
om/android/server/wm/InputManager.java
aea743aaa43a833fd8ff3dc56205197583152d5f 30-Jul-2011 repo sync <isheriff@google.com> P2p enhancements

- ConnectivityService interaction and support for running dhcp server
and client

- State machine enhancements for connectivity interaction

Change-Id: Iba3beb8c87554ffd67a7b7e852bbb4dd8666a4f5
om/android/server/ConnectivityService.java
om/android/server/SystemServer.java
7244c977ecbc1f73e4cfd9d824fc2b68aa886139 06-Aug-2011 Irfan Sheriff <isheriff@google.com> Ensure interface down before wpa_supplicant start

Now that the driver is built into the kernel, a runtime crash
followed by a driver unload and reload does not reset the interface.

Ensure interface is down before bringing up supplicant

Bug: 5032635
Change-Id: Ib8f3d47617e587139a8a91a82146ee3a2f329700
om/android/server/NetworkManagementService.java
fa23c5ae226c1a1d39f89c5c87d4f340e91d90e0 10-Aug-2011 Jeff Sharkey <jsharkey@android.com> Add NativeDaemonConnector users to watchdog.

To catch instances where NativeDaemonConnector hangs while executing
commands, add users to system_server watchdog. Also moved qtaguid
enabler to separate thread to prevent blocking systemReady().

Bug: 5145437
Change-Id: I4c6c1dc09864a1c05f9486a31faa1b366548e911
om/android/server/MountService.java
om/android/server/NativeDaemonConnector.java
om/android/server/NetworkManagementService.java
dbff91077ddf437b62794e077d2ce9e10fff8170 10-Aug-2011 Jeff Brown <jeffbrown@google.com> Merge "Support wrapping app processes to inject debug instrumentation. Bug: 4437846"
cb30b22ff507a5a9a5d9c584f8b082f5e96c4d02 30-Jul-2011 Irfan Sheriff <isheriff@google.com> Add firmware reload support for P2P

Refactor firmware reload call to support various modes - AP, STA & P2P

Bug: 5002384
Change-Id: I10d20fe5a7842437cf80861bc8a834990db87db5
om/android/server/NetworkManagementService.java
om/android/server/SystemServer.java
e6b2429cf719f30259a3eae61b94524b5cff4fab 10-Aug-2011 Robert Greenwalt <rgreenwalt@google.com> Remove default routes for non-default networks.

Recoding/port of a change that existed in GB but got dropped
in the shuffle.

bug:5036222
Change-Id: I87e819d255c0c46f3ec8fe0fe18d27ae9df1ae36
om/android/server/ConnectivityService.java
05355c3eb69ef2cd8d08260be059be006a2883b9 09-Aug-2011 Jeff Sharkey <jsharkey@android.com> Enable network stats module by default.

Bug: 5138315
Change-Id: Id4cffdc126bf14a005fc2d3aece87ea036a51999
om/android/server/NetworkManagementService.java
e13e48d6fc98d8fdf3b366f1f4eb5086b240df6d 09-Aug-2011 Kenny Root <kroot@google.com> Merge "Add security checks for new API"
461ff1f03c803a9a0a01f6a834101f811ea85c61 09-Aug-2011 Kenny Root <kroot@google.com> Add security checks for new API

Bug: 5137679
Change-Id: Ic0c1e0cf2960a7062ba318b60ee2c92506f6aab6
om/android/server/pm/PackageManagerService.java
a44abeb125a0c8a8e5a065f868d316e41354286a 09-Aug-2011 Dianne Hackborn <hackbod@google.com> Improve window manager debug output.

Cleaned this up while I was debugging another issue.

Change-Id: I0663b9ed581c6868b59655a0f994d870971ec1a6
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
880f64ac1080ccec111de91a4af026cca3d1bb25 08-Aug-2011 Chia-chi Yeh <chiachi@android.com> Merge "VPN: introduce VpnService as the base class for user space VPN."
199ed6ef89bd356895534ba09ac43ed340cd9a1a 04-Aug-2011 Chia-chi Yeh <chiachi@android.com> VPN: introduce VpnService as the base class for user space VPN.

Change-Id: I4793a6eb51b33f669fc6d39e1a16cf5eb9e3d851
om/android/server/connectivity/Vpn.java
c63502720e7b7c72e823589cf9afeb16f08c7c7d 05-Aug-2011 Mark Brophy <mbrophy@google.com> Store last-resume times in a separate XML file.

In UsageStatsService, separate last-resume times from the rest of
the statistics, and serialize them to an XML file daily.

This way, ApplicationsProvider will still be able to acces this data,
even thoguh other statistics are flushed to disk and discarded each day.

Bug: 5108745
Change-Id: Id3df3c98243ba02cde16b31e5e29bd9ff3602108
om/android/server/am/ActivityManagerService.java
om/android/server/am/UsageStatsService.java
74b551aae5dfee977917f8ab967d4e191bc4b50e 08-Aug-2011 Svetoslav Ganov <svetoslavganov@google.com> Merge "Turning off accessibility feature reboots the device"
03b2ea1102d9e3e9f189173878706ab04533eea3 03-Aug-2011 satok <satok@google.com> Support xml configuration file for the spell checker and add the spell checker subtype

Change-Id: I74715855525fc0a1282238d593ad37aefd42bfc3
om/android/server/TextServicesManagerService.java
7d608423b721e0153f37bfd5eba78fcd2489562d 08-Aug-2011 Dianne Hackborn <hackbod@google.com> Move OOM kernel settings to activity manager.

The activity manager now take care of plugging the correct settings
into the OOM killer in the kernel. This is a lot cleaner because
it is really central to how the activity manager works, and nobody
else cares about them.

Taking advantage of this, the activity manager computes what it
thinks are appropriate OOM levels based on the RAM and display
size of the device.

Also a small optization to the package manager to keep a binding
to the package install helper for a bit after done using it, to
avoid thrashing on it.

And some new APIs that are now needed by Settings.

Change-Id: I2b2d379194445d8305bde331c19bde91c8f24751
om/android/server/am/ActivityManagerService.java
om/android/server/am/ProcessList.java
om/android/server/am/ProcessRecord.java
om/android/server/pm/PackageManagerService.java
om/android/server/wm/WindowManagerService.java
dfee59afb3e4cdcde38f6338f9360655de76da92 06-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5011824 - New Holo overflow menu for physical menu key devices

The new Holo-style overflow menu now appears from the edge of the screen
where the device's physical menu key can be found. The policy determining
this lives in getPreferredOptionsPanelGravity() in WindowManagerService.

Change-Id: I8851a2265547156591e82044e50b5cfc58d3eefa
om/android/server/wm/WindowManagerService.java
ffbf1756f64844c9f0c916a4d3fb6766a191d459 07-Aug-2011 Daniel Sandler <dsandler@android.com> Merge "Remove notifications when an app is disabled."
aac0eb08bb2fdb32b2f2e045d74343abe6ae6bf8 07-Aug-2011 Daniel Sandler <dsandler@android.com> Remove notifications when an app is disabled.

Bug: 4998840
Change-Id: Ic0c14105924d815aed78da1f5510c98a2fe1dd77
om/android/server/NotificationManagerService.java
8dc6a1b2823f374a176fb21b8a174664a5f825fa 27-Jul-2011 Isaac Levy <ilevy@google.com> Watchdog notify on explicit connect

Notifies when user explicitly clicks on wifi dialog.

Change-Id: I5eee37d68b422d748d41e9384d5006482a223dc5
om/android/server/WifiService.java
9ea31639738e8d2c90dc3a4fcd535d09a0b7209a 05-Aug-2011 Dianne Hackborn <hackbod@google.com> Fix issue #5108980 Wallpaper is not restored after upgrade from IRK32B to IRK33B

Take care of updating from old component name, and don't let this happen
again.

Also tweak how we switch between static wallpapers to avoid introducing
a 4MB allocation in the system UI process when this happens -- we now
stop the current wallpaper service and start a new one, so we get a
brand new surface that we can draw only one time in to.

Change-Id: I6fc8a42b8a46bba79759bd68fb7d0684b5d897b7
om/android/server/WallpaperManagerService.java
9c181ffbda73beb0a6d14529693896945af30591 06-Aug-2011 Dianne Hackborn <hackbod@google.com> Merge "Improved memory use reporting."
b437e090ec03a2bab10bdfcb9484577a7f34e157 06-Aug-2011 Dianne Hackborn <hackbod@google.com> Improved memory use reporting.

Change-Id: I38e53e6228bba92a142bafeedb5af8df4e4e5724
om/android/server/am/ActivityManagerService.java
d37dbc7c96aa78ba297b46de04a4c565b8a2e71a 06-Aug-2011 Christopher Tate <ctate@google.com> Merge "Fix bug where sometimes the full backup pw would not be validated"
fb87cf606a22ab1056fd7caf9bf1f6d9f9190f51 05-Aug-2011 Wink Saville <wink@google.com> Merge "resolved conflicts for merge of 7bb2d942 to master"
eef4ae44b308350e669b829da75610058ff4d328 05-Aug-2011 Christopher Tate <ctate@google.com> Fix bug where sometimes the full backup pw would not be validated

There was a hole where if no backup pw was supplied and the current
pw authentication field was also left blank, it wound up not verifying
and just proceeding with the backup.

Change-Id: I857d8e83cbb2b3bf6b6b04848c5696ef0cf393a1
om/android/server/BackupManagerService.java
2b30afdbad5e79c5775ac9756f3b986268d90f1f 05-Aug-2011 Wink Saville <wink@google.com> resolved conflicts for merge of 7bb2d942 to master

Change-Id: I026b01805c81d8b26d22e4a195e5e38655a34d32
d0c3f7e770d776808ea78fded3e0fb44e1b9d898 05-Aug-2011 Irfan Sheriff <isheriff@google.com> Merge "Update scanresult capability check"
3e4e4af45216aee4d4b009fe842c0324610918eb 05-Aug-2011 Svetoslav Ganov <svetoslavganov@google.com> Turning off accessibility feature reboots the device

1. The touch explorer uses delayed injection of events
which can happen after its hosting accessibility
input filer has been unregistered, thus the explorer
was trying to inject events when this is not allowed.
Now upon unregistration of the accessibility explorer
it resets the state of the touch explorer it hosts.

bug:5105956

Change-Id: I720682abf93382aedf4f431eaac90fd2c781e442
om/android/server/accessibility/AccessibilityInputFilter.java
om/android/server/accessibility/TouchExplorer.java
9fbceea01da9d802f2f03b559f78989d2ae50881 05-Aug-2011 Svetoslav Ganov <svetoslavganov@google.com> Merge "ACTION_HOVER_EXIT sometimes not delivered during touch exploration."
0dc8bb25d21963528bfd0fc05ccbc01663b9fc5a 05-Aug-2011 satok <satok@google.com> Merge "API cleanup for the spell checker framework"
fdd5f95a817820c8e3e240718c6ef2f0d0d96613 05-Aug-2011 Irfan Sheriff <isheriff@google.com> Update scanresult capability check

Scan results now have [ESS], [IBSS] & [P2P] to represent an
access point, ad-hoc network & p2p network.

Fix open network check.

Bug: 4998496
Change-Id: I0bf3f168677b0cd8cb27297427b539e768210995
om/android/server/WifiService.java
7bb2d942498dea702f2020d7b81f0e13c2623500 05-Aug-2011 Wink Saville <wink@google.com> am 090df1dc: Merge "Delay connectivity change notifications." into honeycomb-LTE

* commit '090df1dc4188e5b9ef10a0aca5081a196085ff56':
Delay connectivity change notifications.
fe313490fb64746d4042934f77ac19d8d00d6a25 05-Aug-2011 Jeff Sharkey <jsharkey@android.com> Merge "Network stats with varint, omit parcel fields."
628b08530a50bddbe3d65088a8b621c0950e0c19 05-Aug-2011 Wink Saville <wink@google.com> Delay connectivity change notifications.

Because changes to the route tables take time to propagate
we add a delay when sending out change notifications. This allows
applications, such as GTalk, to create sockets without encountering
a 3 minute timeout.

Bug: 5008488
Change-Id: I0eefb03a5d6358a58ea6ae5b4f697ff302b5511d
om/android/server/ConnectivityService.java
b234636105317942bdf2daf4f5581c2218847084 04-Aug-2011 Chia-chi Yeh <chiachi@android.com> Merge "VPN: move away from the VPN permission."
1137341885d8dc451dddc2e01319fb0fab00bbc3 29-Jul-2011 Kenny Root <kroot@google.com> Throw exception on odd length Signatures

The old version of this code would silently truncate odd-length
Signatures. However, this masks some bugs. Add a throw of
IllegalArgumentException so users can easily see where they're getting
bad input for Signatures.

Also, go through the existing code and catch this exception or
pre-check the input strings so system_server doesn't crash later.

Bug: 5092338
Change-Id: I8c672c5eaeb738a92c4581ce0df09baf719980ef
om/android/server/BackupManagerService.java
om/android/server/pm/PackageSignatures.java
aead35a850ea7246aa93d40026fd8120dd1582f6 04-Aug-2011 Irfan Sheriff <isheriff@google.com> Merge "Fix p2p package paths"
2b15cb21b313f83f7cccdc6f9116ba31ddc190ad 04-Aug-2011 Mike Lockwood <lockwood@android.com> Resolve merge conflict for '75f1fdec':

GPS Provider Service changes

GPS engine needs to receive network state changes from Android fw.

Added db query for the current APN, also added a new parameter
between JNI / HAL to the new method in AGpsRilInterface struct
for gps engine to receive APN from GPSLocationService

Conflicts:
services/java/com/android/server/location/GpsLocationProvider.java

Change-Id: I33c45027f1571493d3525324f62d199517c4960c
Signed-off-by: Mike Lockwood <lockwood@android.com>
75f1fdec3e95e9c8b5add02ba6e9b14913058f22 04-Aug-2011 Mike Lockwood <lockwood%android.com@gtempaccount.com> am 0b3af353: am a82ee49a: am 8f5dd9ad: Merge "GPS Provider Service changes"

* commit '0b3af353dcf61177158934a11404cf2914038696':
GPS Provider Service changes
a5fe6b2efee02ab11c35e80ec50fec62be227273 05-Jun-2011 Kevin Tang <zhikait@codeaurora.org> GPS Provider Service changes

GPS engine needs to receive network state changes from Android fw.

Added db query for the current APN, also added a new parameter
between JNI / HAL to the new method in AGpsRilInterface struct
for gps engine to receive APN from GPSLocationService

Change-Id: I62e35c948d2ac1961771d1a10581a3b8e695c05a
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/location/GpsLocationProvider.java
47e02711d78ecac9112aa7f66e5664cdc46fb3d1 01-Aug-2011 Svetoslav Ganov <svetoslavganov@google.com> ACTION_HOVER_EXIT sometimes not delivered during touch exploration.

1. The code for detecting the end of a touch exploration gesture
was not injecting the hover exit event upon detection of the
gesture end.

bug:5091758:

Change-Id: I468164617d6677cd2a2a2815e1756c826d49f3a9
om/android/server/accessibility/TouchExplorer.java
f6d09845be2d58b1de7af9f6edc8b9ee216520a5 04-Aug-2011 Irfan Sheriff <isheriff@google.com> Fix p2p package paths

Split change Iba3beb8c which will not go in master to fix package paths

Bug: 5002384
Change-Id: I15072b65422fcdfe17c3f130d169258d60748012
om/android/server/SystemServer.java
5357806980269d846a15c845a6fcc0384fb18860 03-Aug-2011 satok <satok@google.com> API cleanup for the spell checker framework

Bug: 5110151

- Add a bundle to an argment of newSpellCheckerSession
- Expose SpellCheckerSessionImpl in SpellCheckerService
- Fix function names
- etc

Change-Id: Ia8ec783b7b4d5fcd18389854b445fc10fc502297
om/android/server/TextServicesManagerService.java
5564334aa5401e22fb1afc8fe5e55d4d3e7f53c3 04-Aug-2011 Mike Lockwood <lockwood@android.com> Merge "UsbDeviceManager: Fix typo that broke adb on/off setting persistence"
63d27a9233fed934340231f438493746084a681d 04-Aug-2011 Jeff Sharkey <jsharkey@android.com> Network stats with varint, omit parcel fields.

Persist NetworkStatsHistory using variable-length encoding; since
most buckets have small numbers, we can encode them tighter. Initial
test showed 44% space savings. Also persist packet and operation
counters.

Let NetworkStatsHistory consumers request which fields they actually
need to reduce parcel overhead.

Tests for verify varint and history field requests, also verify end-
to-end by persisting history into byte[] and restoring. Expose
bandwidth control enabled state. Extend random generation to create
packet and operation counts. Moved operation counts to long.

Fix bug that miscalculated bytes since last persist, which would
cause partial stats loss when battery pulled.

Bug: 4581977, 5023706, 5023635, 5096903
Change-Id: If61e89f681ffa11fe5711471fd9f7c238d3d37b0
om/android/server/NetworkManagementService.java
om/android/server/net/NetworkStatsService.java
01704e76fa52805f6e739fc0d8e63f403e74bfa8 04-Aug-2011 Kenny Root <kroot@google.com> Merge "Better error codes for missing files"
a841e524013c4bff360f2280cb5d2fbb1895d043 04-Aug-2011 Jeff Sharkey <jsharkey@android.com> Merge "Expose quota status for active network."
1ebd74acf9977daa42133507e970dab88e08f0ef 04-Aug-2011 Kenny Root <kroot@google.com> Better error codes for missing files

Make sure that files that don't exist aren't returning bogus 'out of
space' error codes.

Add some Javadoc so I can remember what each thing does in an IDE.

Add copyright header to NativeLibraryHelper

Bug: 3375299
Change-Id: Iac46019160921daca65b21d38897e5165063316e
om/android/server/pm/PackageManagerService.java
fcc1b41b663c1a0cb551344c4a16a5ad9ce36d60 04-Aug-2011 Chia-chi Yeh <chiachi@android.com> VPN: move away from the VPN permission.

VpnBuilder will be replaced by VpnService in the next change.

Change-Id: I2dea67a1616b74d17b372f7b214d207f1617198e
om/android/server/connectivity/Vpn.java
e5750a344a9c1a83a63d5119d39d2ea4897bc312 03-Aug-2011 Chia-chi Yeh <chiachi@android.com> NativeDaemonConnector: offload callbacks to another thread.

Now callbacks can communicate to the same daemon without causing a
deadlock. This also improves the latency of calls because they no
longer need to wait for the callbacks for the pending events.

Change-Id: I153fcf16bd64de79ee1c1a57d3cfdb12b354cf47
om/android/server/NativeDaemonConnector.java
1984e79d1593b80adf46b16666862f5787157aed 03-Aug-2011 Mike Lockwood <lockwood@android.com> UsbDeviceManager: Fix typo that broke adb on/off setting persistence

Bug: 5108784

Change-Id: I68ed4d442ce4d3f4651cb618902fb226ac5a3673
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/usb/UsbDeviceManager.java
f0ceede8fff5df24e5c98701d81c2b71eb138aa9 03-Aug-2011 Jeff Sharkey <jsharkey@android.com> Expose quota status for active network.

Create API to expose quota status derived from underlying network
policy. This is designed to support applications making informed
decisions when performing network requests.

Fix bug with random stats generation, and write policy when changing
restrict background data flag. Deprecate EXTRA_NETWORK_INFO, since
it varies based on UID.

Bug: 4517283, 5088603
Change-Id: Ic6893a8967f69937e466be226ba7bb86ef5a5d2d
om/android/server/ConnectivityService.java
om/android/server/net/NetworkPolicyManagerService.java
baef393241c7adfbb731cd3d29d3b984fba10a85 03-Aug-2011 Robert Greenwalt <rgreenwalt@google.com> Merge "Reduce ConnectivityService logging"
58d4c595818de0d1b7edf382fee6ed1a4bd70e7f 03-Aug-2011 Robert Greenwalt <rgreenwalt@google.com> Reduce ConnectivityService logging

bug:5106520
Change-Id: I4a7a5cac51c09e9e2275b30b7b2c053f94b9088d
om/android/server/ConnectivityService.java
f5348d82117f8d2a1b73d0e7f9b44de2b705f4d6 03-Aug-2011 Kenny Root <kroot@google.com> Merge "Parent's canonical path; not parent of canonical"
5857bceaeae70aa93f2a428a6d1c6ec8851c1b9b 03-Aug-2011 Dianne Hackborn <hackbod@google.com> Merge "Clear the bitmap from the canvas in a lot of places."
6311d0a079702b29984c0d31937345be105e1a5e 03-Aug-2011 Dianne Hackborn <hackbod@google.com> Clear the bitmap from the canvas in a lot of places.

Change-Id: I6b2071ac7b348c473b9bdd1b972d095aebbb4fb3
om/android/server/connectivity/Vpn.java
om/android/server/wm/WindowManagerService.java
5832ead89a6cfab83d4ed07e7ca20bc52eea923c 03-Aug-2011 Kenny Root <kroot@google.com> Parent's canonical path; not parent of canonical

When moving from SD card to internal, the PackageManager should check if
the native library directory parent's canonical path matches the
canonical data directory.

However, it was checking the canonical native library directory's
parent matches the data directory which makes tests concerning moving
from SD card to internal storage fail.

Change-Id: I16420efbb6f52fd6877a8f62ad060f8a1b8b0033
om/android/server/pm/PackageManagerService.java
8a32c6333ab44c79a55ffa4ad9de93a7e6df2bda 03-Aug-2011 Mike Lockwood <lockwood@android.com> Merge "USB: Fix NPE that occurred when restoring default function in UsbManager.setEnabledFunctions"
8b4d36e8661e25fcb893e00be15ba02da0950055 03-Aug-2011 Mike Lockwood <lockwood@android.com> USB: Fix NPE that occurred when restoring default function in UsbManager.setEnabledFunctions

Bug: 5110020

Change-Id: I5e4b5c27e4675fa6830823832ae51411dc448191
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/usb/UsbDeviceManager.java
7374d9728bd0e8847bab723608ebab3542e8157e 02-Aug-2011 repo sync <isheriff@google.com> Merge "Fix networktype on per process DNS setting"
8935696a19822283212591917f04e4b91b5b9219 02-Aug-2011 repo sync <isheriff@google.com> Fix networktype on per process DNS setting

This potentially has no impact on mobile due to DNS settings being the same. Seperate this change out of the p2p change

Change-Id: I70fff9b1e13015956793b19732785037adb0af24
om/android/server/ConnectivityService.java
94761d396d2308bfd93ed03d86c55e7a2b46a59e 02-Aug-2011 Christopher Tate <ctate@google.com> Merge "Reduce backup manager logspew"
5b9b5a9553a0276dc6b7f1f458c8d4ed03227988 01-Aug-2011 satok <satok@google.com> Change SpellCheckerInfo IPC inputs to String

Change-Id: I4c3f3c7aa7587e3f2582b43702108fa78f37ec54
om/android/server/TextServicesManagerService.java
c58efa6052ea6274c93b760e05dc8158e4834a8c 02-Aug-2011 Christopher Tate <ctate@google.com> Reduce backup manager logspew

...with particular attention to boot-time logging. In particular, the
following kinds of messages are now cut unless someone turns on the new
MORE_DEBUG flag in their local build:

08-01 11:25:32.203 155 223 V BackupManagerService: starting timeout: token=4f52ccd1 interval=30000
08-01 11:25:32.211 155 223 V BackupManagerService: opComplete: 4f52ccd1
08-01 11:25:32.211 155 223 V BackupManagerService: operation 4f52ccd1 complete: finalState=1
08-01 11:25:32.211 155 223 V PerformBackupThread: doBackup() success

and

01-01 00:00:19.710 148 162 V BackupManagerService: Adding 9 backup participants:
01-01 00:00:19.710 148 162 V BackupManagerService: PackageInfo{41af0380 android} agent=com.android.server.SystemBackupAgent uid=1000 killAfterRestore=false
01-01 00:00:19.710 148 162 V BackupManagerService: PackageInfo{41aa5068 com.android.browser} agent=com.android.browser.BrowserBackupAgent uid=10005 killAfterRestore=true
01-01 00:00:19.710 148 162 V BackupManagerService: PackageInfo{4199ce28 com.android.nfc3} agent=com.android.nfc.NfcBackupAgent uid=1025 killAfterRestore=true
01-01 00:00:19.710 148 162 V BackupManagerService: PackageInfo{41a6e170 com.android.providers.settings} agent=com.android.providers.settings.SettingsBackupAgent uid=1000 killAfterRestore=false
01-01 00:00:19.710 148 162 V BackupManagerService: PackageInfo{4198ba90 com.android.providers.userdictionary} agent=com.android.providers.userdictionary.DictionaryBackupAgent uid=10000 killAfterRestore=false
01-01 00:00:19.710 148 162 V BackupManagerService: PackageInfo{41a80190 com.android.vending} agent=com.android.vending.VendingBackupAgent uid=10042 killAfterRestore=false
01-01 00:00:19.710 148 162 V BackupManagerService: PackageInfo{41ac2980 com.google.android.calendar} agent=com.android.calendar.CalendarBackupAgent uid=10007 killAfterRestore=true
01-01 00:00:19.710 148 162 V BackupManagerService: PackageInfo{41b14fb8 com.google.android.gm} agent=com.google.android.gm.persistence.GmailBackupAgent uid=10020 killAfterRestore=true
01-01 00:00:19.710 148 162 V BackupManagerService: PackageInfo{41af89b8 com.google.android.inputmethod.latin} agent=com.android.inputmethod.latin.BackupAgent uid=10028 killAfterRestore=false

and

01-01 00:00:20.000 148 162 D BackupManagerService: Now awaiting backup for 1 participants:
01-01 00:00:20.000 148 162 D BackupManagerService: + BackupRequest{app=ApplicationInfo{41b15110 android}} agent=com.android.server.SystemBackupAgent
01-01 00:00:20.000 148 162 I BackupManagerService: New app com.android.browser never backed up; scheduling
01-01 00:00:20.015 148 162 D BackupManagerService: Now awaiting backup for 2 participants:
01-01 00:00:20.015 148 162 D BackupManagerService: + BackupRequest{app=ApplicationInfo{41b15110 android}} agent=com.android.server.SystemBackupAgent
01-01 00:00:20.015 148 162 D BackupManagerService: + BackupRequest{app=ApplicationInfo{41ae5cf8 com.android.browser}} agent=com.android.browser.BrowserBackupAgent
01-01 00:00:20.015 148 162 I BackupManagerService: New app com.android.nfc3 never backed up; scheduling
01-01 00:00:20.031 148 162 D BackupManagerService: Now awaiting backup for 3 participants:
01-01 00:00:20.031 148 162 D BackupManagerService: + BackupRequest{app=ApplicationInfo{41b15110 android}} agent=com.android.server.SystemBackupAgent
01-01 00:00:20.031 148 162 D BackupManagerService: + BackupRequest{app=ApplicationInfo{41ae5cf8 com.android.browser}} agent=com.android.browser.BrowserBackupAgent
01-01 00:00:20.031 148 162 D BackupManagerService: + BackupRequest{app=ApplicationInfo{41a47d88 com.android.nfc3}} agent=com.android.nfc.NfcBackupAgent
... [N times]

and various other overly-chatty messages that aren't useful for the midrange
debugging needs of early testing.

Bug 5104300

Change-Id: I2b2afb5ba68059cb1f4cccc07f2833e43cd6fe94
om/android/server/BackupManagerService.java
ba39839444532af0ed3766f736582413f6d7a40b 02-Aug-2011 Dianne Hackborn <hackbod@google.com> Move ImageWallpaper to SystemUI process.

Nice to not load 4MB bitmaps in the system process.

Also, hey, with how we are now scrolling the surface instead of
the bitmap, there is no reason to keep that 4MB bitmap loaded in
to memory. So don't.

Unfortunately it looks like for some reason the VM is still
holding on to the bitmap. I'll need to figure out why. Later.

Change-Id: Ib3503756144502fc5c8d5e294248c2417c4fe8c8
om/android/server/WallpaperManagerService.java
d20482de2f8fb0045c69c7065221923a72d13303 02-Aug-2011 Jeff Sharkey <jsharkey@android.com> Merge "Add operation counts to network statistics."
a63ba59260cd1bb3f5c16e395ace45a61f1d4461 20-Jul-2011 Jeff Sharkey <jsharkey@android.com> Add operation counts to network statistics.

Provide API to increment "operation counts" for a UID and tag, used
to eventually derive bytes/operation stats. Internally is stored at
network layer, but should belong at data layer. Switch profiling
to use data layer stats, which are emulated by summarizing network
layer details.

Read packet counts from new /proc/ columns and collect them into
NetworkStatsHistory. Prevent double-counting by ignoring values from
first snapshot. Watch for duplicate /proc/ entries. Update tests
to verify packet and operation counters.

Bug: 5052136, 5097392
Change-Id: I1832f65a2b8a9188f8088f253474a667c21a2f09
om/android/server/NetworkManagementService.java
om/android/server/net/NetworkStatsService.java
5c5db7c0f082d3d4ebd71f5a8f3cea08dfe33bac 29-Jul-2011 Mike Lockwood <lockwood@android.com> Merge "Clean up USB configuration switching logic and beef up error handling"
68736cbf938935f7d7e1eb2b3f9ec911fcb0da72 29-Jul-2011 Mike Lockwood <lockwood@android.com> Clean up USB configuration switching logic and beef up error handling

Bug: 5050853

Change-Id: Ia00698e2adbb8a7d7698e2ae306413f6c715fbdb
om/android/server/usb/UsbDeviceManager.java
b07dbeb57273291204fcabe700e1d1464c7958ea 29-Jul-2011 Svetoslav Ganov <svetoslavganov@google.com> Merge "InputFilter not updated on global accessibility change."
e0fe39387aa8f591b196bcb42b027012b655af04 29-Jul-2011 Christopher Tate <ctate@google.com> Merge "Require the current backup pw in all backup/restore operations"
f9665221aaa229dc8a7cac6fbd1d9ea165c42068 29-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> am a128f5f8: am 1a230885: Merge "Fix NPE when going from proxy to no proxy." into honeycomb-LTE

* commit 'a128f5f8c952d7f519f64882792e832a4e75e2c8':
Fix NPE when going from proxy to no proxy.
a128f5f8c952d7f519f64882792e832a4e75e2c8 29-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> am 1a230885: Merge "Fix NPE when going from proxy to no proxy." into honeycomb-LTE

* commit '1a230885b356256e91b3bf006ec72213ba6f8f76':
Fix NPE when going from proxy to no proxy.
bb96bf6e479e00064b287c952a72362a2ee4cb4e 29-Jul-2011 Dianne Hackborn <hackbod@google.com> Merge "Various work on out of memory managment."
fde1eb7cf88e488d619d3168f83fb2e740d39296 29-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> Fix NPE when going from proxy to no proxy.

bug:5081431
Change-Id: I68a8cca94e4612bd9ee2faf1123e0b63dc25b833
om/android/server/ConnectivityService.java
53f2531ba7bc72489d03fd17b6ce29c811fad8b5 29-Jul-2011 Daniel Sandler <dsandler@google.com> Merge "The fullest of fullscreen modes."
6d9a14c08398c58305e831d394280830bb798ee4 29-Jul-2011 satok <satok@google.com> Merge "Fix issues in TextServicesManagerService"
df5659d3d317b5cf351baffe3e0d4876e89678bf 29-Jul-2011 satok <satok@google.com> Fix issues in TextServicesManagerService

Change-Id: I48c81226d824e8aad42e01e87fcf9a5b466d2321
om/android/server/TextServicesManagerService.java
c68c913d357e2955d4bd7ca52829071e531c7825 29-Jul-2011 Dianne Hackborn <hackbod@google.com> Various work on out of memory managment.

- Improve how we handle processes that have shown UI, to take care
of more cases where we want to push them into the background LRU
list.
- New trim memory level for when an application that has done UI
is no longer visible to the user.
- Add APIs to get new trim memory callback.
- Add a host of new bind flags to tweak how the system will adjust
the OOM level of the target process.

Change-Id: I23ba354112f411a9f8773a67426b4dff85fa2439
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityStack.java
om/android/server/am/AppBindRecord.java
om/android/server/am/ProcessRecord.java
a31f5e63743f3fc788acbd85474ec80eaf5c8b4d 28-Jul-2011 Svetoslav Ganov <svetoslavganov@google.com> InputFilter not updated on global accessibility change.

Change-Id: I35fd5fa078840abf62a3d5eac66b2eae1a79d01d
om/android/server/accessibility/AccessibilityManagerService.java
f7be31ee1062722855602c6b0227f01bdb7c0b80 29-Jul-2011 satok <satok@google.com> Merge "Handle the existing binds to spell checkers correctly."
728a1c4d5ed3b808172013a7f5bb5065d1e964f6 29-Jul-2011 Christopher Tate <ctate@google.com> Require the current backup pw in all backup/restore operations

Specifically, we now also require the current password to confirm any
restore operation.

Bug 4901637

Change-Id: I39ecce7837f70cd05778cb7e0e6390ad8f6fe3f3
om/android/server/BackupManagerService.java
6be6d7548fb7c29a4d46dc985318ab2adf69f95f 28-Jul-2011 satok <satok@google.com> Handle the existing binds to spell checkers correctly.

Change-Id: I32efce9f8c09b5a829b0431e8c444fc54b03b440
om/android/server/TextServicesManagerService.java
2efd2dbbac9eac89620683696c6076463c3a1cd6 20-Jul-2011 Christopher Tate <ctate@google.com> Support full-backup encryption and global backup password

If the user has supplied a backup password in Settings, that password
is validated during the full backup process and is used as an encryption
key for encoding the backed-up data itself. This is the fundamental
mechanism whereby users can secure their data even against malicious
parties getting physical unlocked access to their device.

Technically the user-supplied password is not used as the encryption
key for the backed-up data itself. What is actually done is that a
random key is generated to use as the raw encryption key. THAT key,
in turn, is encrypted with the user-supplied password (after random
salting and key expansion with PBKDF2). The encrypted master key
and a checksum are stored in the backup header. At restore time,
the user supplies their password, which allows the system to decrypt
the master key, which in turn allows the decryption of the backup
data itself.

The checksum is part of the archive in order to permit validation
of the user-supplied password. The checksum is the result of running
the user-supplied password through PBKDF2 with a randomly selected
salt. At restore time, the proposed password is run through PBKDF2
with the salt described by the archive header. If the result does
not match the archive's stated checksum, then the user has supplied
the wrong decryption password.

Also, suppress backup consideration for a few packages whose
data is either nonexistent or inapplicable across devices or
factory reset operations.

Bug 4901637

Change-Id: Id0cc9d0fdfc046602b129f273d48e23b7a14df36
om/android/server/BackupManagerService.java
om/android/server/SystemBackupAgent.java
b7d95a46dfacf04896d5b084f13bcbe6eab33633 28-Jul-2011 Mike Lockwood <lockwood%android.com@gtempaccount.com> am 21700fed: am 5f7203eb: am 5a27a754: am bd1dee94: Merge "gps: Adding ip address for AGps"

* commit '21700fedfe29f6a0a752d2bea46142038e69136c':
gps: Adding ip address for AGps
21700fedfe29f6a0a752d2bea46142038e69136c 28-Jul-2011 Mike Lockwood <lockwood%android.com@gtempaccount.com> am 5f7203eb: am 5a27a754: am bd1dee94: Merge "gps: Adding ip address for AGps"

* commit '5f7203eb258503bc5d2ba29176bdf483a68a93b8':
gps: Adding ip address for AGps
036fc921cab766fd674aed260d5c87273ad6da55 28-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> Merge "Stop sending tethering broadcasts during boot."
d5d7e164d316e595a64faf1555839d1939da0863 17-May-2011 Jeff Brown <jeffbrown@google.com> Support wrapping app processes to inject debug instrumentation.
Bug: 4437846

Change-Id: Ib0559e5224b0fa0df074e485787307b6634e8654
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityRecord.java
om/android/server/am/ProcessRecord.java
8efd74dbedb65f69734318d9d6be70767f30b57a 02-Mar-2011 Stephen Li <stephenl@codeaurora.org> gps: Adding ip address for AGps

Change-Id: Ic590187d159853de2f1bd2912e159f0a00d8fb10
om/android/server/location/GpsLocationProvider.java
3885228457bc61a86fe4e91ff18fb331fc3ee777 28-Jul-2011 Mike Lockwood <lockwood%android.com@gtempaccount.com> am f8d13e53: am bf676d46: am 7083ed44: am 0ff79e88: Merge "GPS: Changes to enable on-demand data call flow for CDMA connections"

* commit 'f8d13e535c3e6166c2386adac3b3a2f115d2b79d':
GPS: Changes to enable on-demand data call flow for CDMA connections
f8d13e535c3e6166c2386adac3b3a2f115d2b79d 28-Jul-2011 Mike Lockwood <lockwood%android.com@gtempaccount.com> am bf676d46: am 7083ed44: am 0ff79e88: Merge "GPS: Changes to enable on-demand data call flow for CDMA connections"

* commit 'bf676d460d1d1fc8923982006c38d0f6785daea8':
GPS: Changes to enable on-demand data call flow for CDMA connections
0ff79e88e2d90f80d0346e0485abe773ca85c44d 28-Jul-2011 Mike Lockwood <lockwood%android.com@gtempaccount.com> Merge "GPS: Changes to enable on-demand data call flow for CDMA connections"
60ee25643e0a7b8841063a4e97b0f18c51807e91 22-Jul-2011 Daniel Sandler <dsandler@google.com> The fullest of fullscreen modes.

View.setSystemUiVisibility() now properly accepts a
bitfield, including:

* SYSTEM_UI_FLAG_LOW_PROFILE: "lights out mode"
(previously known, erroneously, as STATUS_BAR_HIDDEN)

* SYSTEM_UI_FLAG_HIDE_NAVIGATION: for when you need every
single pixel on a device that also has a navigation bar

These flags are painstakingly aggregated across the entire
view hierarchy and carefully delivered to the status bar
service, which in turn gently passes them along to the bar
implementation.

To really get access to the whole screen, you need to use
HIDE_NAVIGATION in conjunction with FLAG_FULLSCREEN and
FLAG_LAYOUT_IN_SCREEN. See development/samples/Overscan for
an example of how to do this.

Change-Id: I5fbfe009d9ceebbbf71db73f14a7008ea7c1d4da
om/android/server/StatusBarManagerService.java
98c79e53c0f24e98910a1ab130ec77d2ae707ed4 28-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> Stop sending tethering broadcasts during boot.

Well, actually they do go out, but they won't try to start anybody now
until after boot.

bug:5088272
Change-Id: Iaaf7a1e4b300e0afc3901ecfd225a77084bd0954
om/android/server/connectivity/Tethering.java
2043b01b207aae3458da395bc6d501d76e59425c 28-Jul-2011 Jeff Sharkey <jsharkey@android.com> Merge "Maintain separate "restrict background data" flag."
4664500de0c1b270bce4991a400ab439ff2ef77b 28-Jul-2011 Jeff Sharkey <jsharkey@android.com> Maintain separate "restrict background data" flag.

Since "restrict background" depends on active networks, separate its
definition from setBackgroundDataSetting().

Bug: 4979025
Change-Id: I12bfe3a2e606375b39c67706270caa7a1bb0214e
om/android/server/net/NetworkPolicyManagerService.java
4f35092af55d569975e6931ee6e8c0343f749d1e 28-Jul-2011 Kenny Root <kroot@google.com> Merge "Move extract native libraries to JNI code"
3d5a703db83265f7914eed8580de986106abfad2 28-Jul-2011 Jeff Brown <jeffbrown@google.com> Merge "Report the external display size to the input reader."
d02fa35e8c80a7171c7556743b09dda2fbcc96b2 28-Jul-2011 Jeff Sharkey <jsharkey@android.com> Merge "Revise data limit notifs, watch kernel alerts."
ccc83629f993eec7844ad7f6b214666e9410a610 28-Jul-2011 Mike Lockwood <lockwood@android.com> Merge "UsbDeviceManager: Don't show USB notification for RNDIS"
e1b925919096b27a1592665ed09fb8ac874273e3 28-Jul-2011 Svetoslav Ganov <svetoslavganov@google.com> Merge "Not user generated accessibility events can change the interrogation allowing window."
3c6c3ddb6a53ebffb00987ae6b7fdcdbfdb36dad 27-Jul-2011 Christopher Tate <ctate@google.com> Merge "Don't actually try to stop processes marked 'persistent'"
f2fa907e1f815f2fe1add2cb8fb0e159d0f38edb 27-Jul-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #4466531: onServiceConnected() not called after..."
636250028d2e88718220fb180eb2afecb27f5911 27-Jul-2011 Mike Lockwood <lockwood@android.com> Merge "Fix USB tethering again"
485861c409f9aaca2dac97ea82a66c2cb380ebad 27-Jul-2011 Mike Lockwood <lockwood@android.com> Fix USB tethering again

The kernel sends an interface down event for usb0 when RNDIS is enabled.
Ignore this and only remove USB interfaces when we receive the
interface removed event.

Change-Id: I1458f259b96c9fab4d3a69a5692e630123fad136
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/connectivity/Tethering.java
c59c6da9ae14097c77eee69285c6eacc8130936c 27-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of af75fdb1 to master

Change-Id: Ib7f3521b0af6df9346cf940d69f2988b1c87e129
41ff7ec82422a5b6d00892afdb3232bc0e53d851 26-Jul-2011 Jeff Sharkey <jsharkey@android.com> Revise data limit notifs, watch kernel alerts.

Teach NetworkPolicy limits to "snooze" when requested by user, and
notify with both dialog and notification. Register for network alerts
through NMS to trigger updates immediately instead of waiting for
next stats update.

Enforce that all NetworkPolicy are unique on a template basis, and
move SCREEN_ON/OFF broadcasts to background thread. Launch SystemUI
and Settings directly instead of using actions, and include full
NetworkTemplate in extras.

Tests to verify notification and snooze behavior.

Bug: 5057979, 5023579, 4723336, 5045721
Change-Id: I03724beff94a7c0547cb5220431ba8d4cd44d077
om/android/server/NetworkManagementService.java
om/android/server/net/NetworkAlertObserver.java
om/android/server/net/NetworkPolicyManagerService.java
af75fdb16566c3011284afaa7d12bcf6126dd4f3 27-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of 41394a36 to honeycomb-plus-aosp

Change-Id: Ic839eb7bd8081b94802dbbf9140b9d1fa0cf7df3
a5010431bfcdff88ac9d96e68d8308071c13472b 27-Jul-2011 Mike Lockwood <lockwood@android.com> UsbDeviceManager: Don't show USB notification for RNDIS

since USB tethering already has a notification.

Bug: 4988511

Change-Id: I928cb1e1d191c77340f7f05edfa80a74cdabe6ed
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/usb/UsbDeviceManager.java
130b0d2b2629bdd8fc415e0f3da947f965a3f29d 27-Jul-2011 Dianne Hackborn <hackbod@google.com> Fix issue #4466531: onServiceConnected() not called after...

...apk reinstall; affects user privacy

Disconnecting a ServiceConnection after an app is torn down could
impact the bookkeeping of the same service if it has been started
for the app.

Also address issue #5073927: GSF process can't be killed

A new flag allows the systems location manager service to tell
the activity manager to not pull bound services up forever into
the visible adj level.

Change-Id: I2557eca0e4bd48f3b10007c40ec878e769fd96a8
om/android/server/am/ActivityManagerService.java
om/android/server/am/ConnectionRecord.java
om/android/server/location/GeocoderProxy.java
om/android/server/location/LocationProviderProxy.java
4e2a762eae1f6981d32e6098a95498865ad7f795 27-Jul-2011 Svetoslav Ganov <svetoslavganov@google.com> Not user generated accessibility events can change the interrogation allowing window.

1. Events not generated by the user can change the interrogation allowing window
unpredicatably. For example when a ListView lays out its children it fires an
accessibility events and changes the currently active window while the user
interaction may be happening in another window say a dialog. Now the interrogation
allowing window is changed when a new window is shown or the user has touch
explored it.

bug:5074116

Change-Id: I8dde12bbec807d32445a781eedced9b95312b3e2
om/android/server/accessibility/AccessibilityManagerService.java
064d842ead23c53f1ec639a73966fe9bd9827c40 27-Jul-2011 Christopher Tate <ctate@google.com> Don't actually try to stop processes marked 'persistent'

A later CL will introduce an API for querying whether a given package
runs in a persistent process; UIs such as Settings will be able to use
that to determine whether to disable the 'force stop' action.

Change-Id: Iab47c2300fdce285da7d83e02263c9a5f69edd70
om/android/server/am/ActivityManagerService.java
22d93a0d71d965970f581cd9aa1cbf2efbb5998f 27-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of 41394a36 to honeycomb-plus-aosp

Change-Id: If4dc99c558dc45c9a7ff8d3ea5be69578b4ee793
41394a361020e9f58524f23d6831bb8e63063856 26-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> Merge "Use dns proxy a bit." into honeycomb-LTE
66269ea6f68f2f25888ce1080c94ac782742fafc 12-Jul-2011 Kenny Root <kroot@google.com> Move extract native libraries to JNI code

The built-in ZipFile class was quite a long time to find an unpack
libraries. Move everything to using the libutils ZipFileRO class that
goes quite a bit faster. Initial measurements are 6 times faster than
the Java code.

Also, read files off the disk and compare their CRC against the APK's
CRC to see if we need to write the new file to disk. This also cuts down
the bootup time by up to a second per APK that has native files.

Change-Id: Ic464a7969a17368fb6a6b81d026888c4136c7603
om/android/server/pm/PackageManagerService.java
bc68a59c024bdb745dac8e2ec7408a9f30595f1a 25-Jul-2011 Jeff Brown <jeffbrown@google.com> Report the external display size to the input reader.

The input reader needs this information so that it knows how to
interpolate touches on an external touch screen.

Changed Display so that it asks the WindowManager what the real
display size is (as opposed to the raw display size). This means
it now takes into the forced display size set by
adb shell am display-size.

Replaced all calls to getRealWidth() / getRealHeight() /
getRealMetrics() in the WindowManager and replaced them with direct
usages of the mCurDisplayWidth / mCurDisplayHeight so that the WM
doesn't end up making a reentrant Binder call into itself.

Fixed the table status bar HeightReceiver so that it updates the
height on all configuration changes since it is possible that the
display size changed independently of an external HDMI display
being plugged / unplugged.

Improved the Display class documentation to make the distinctions
betweeen the various sizes clearer.

Change-Id: I3f75de559d3ebffed532ab46c4ae52c5e7f1da2b
om/android/server/wm/DragState.java
om/android/server/wm/InputManager.java
om/android/server/wm/ScreenRotationAnimation.java
om/android/server/wm/StrictModeFlash.java
om/android/server/wm/Watermark.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
6c454c3225fd47422024af915fa28d5210d1e82e 26-Jul-2011 satok <satok@google.com> Merge "[step9] Add logging code for text services"
da317ef68603dc7649f98bda495267973825e7fa 26-Jul-2011 satok <satok@google.com> [step9] Add logging code for text services

Change-Id: I4dae847951848cca85bcb73f47c509ce23327334
om/android/server/TextServicesManagerService.java
68454aa049b3dbadc60662e82c4c931fc970c20e 26-Jul-2011 Dianne Hackborn <hackbod@android.com> am 1b20abd3: am 20bf46af: am b0878223: am 6800a801: Merge "frameworks/base: Cap the number of toasts that a package can post."

* commit '1b20abd30c2757132b7a2d319ae73f420b864ed4':
frameworks/base: Cap the number of toasts that a package can post.
b4913b8754653d0c9b3bdb88a0e4d971d9830c69 26-Jul-2011 Dianne Hackborn <hackbod@android.com> am 6d21aee8: am 9ce1ecdf: am 1a2fcea1: am 2f4698fd: Merge "frameworks/base: unlink death notifications of Vibrate requests"

* commit '6d21aee882215e8a17408f6ae1fbfba5cf8e440f':
frameworks/base: unlink death notifications of Vibrate requests
572b7048a6ed6cf6c5f6bc6c9d542dc377d601ff 26-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> Use dns proxy a bit.

Sets the current default interface and sets the dns per interface.
port of changes 23041 and 22098 from opensource.
bug:5060618

Change-Id: I80e7ef88727eeb8ff2b48059f69b270e5a6b5c16
om/android/server/ConnectivityService.java
om/android/server/NetworkManagementService.java
a10b7fd2239668a87be690a57ef7b3bc39b6bfd3 26-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of a7f68230 to master

Change-Id: I9e8faaa94f9b251a9c003dc6b9a3e2a97c4564a9
b243d5bc7db88396f0da304553687e7a0bccfa3d 25-Jul-2011 Kenny Root <kroot@google.com> Merge "Change user 0 directory back for compatibility"
1b20abd30c2757132b7a2d319ae73f420b864ed4 25-Jul-2011 Dianne Hackborn <hackbod@android.com> am 20bf46af: am b0878223: am 6800a801: Merge "frameworks/base: Cap the number of toasts that a package can post."

* commit '20bf46af14130314ae1aeb1e5482c38556c8f0f8':
frameworks/base: Cap the number of toasts that a package can post.
6d21aee882215e8a17408f6ae1fbfba5cf8e440f 25-Jul-2011 Dianne Hackborn <hackbod@android.com> am 9ce1ecdf: am 1a2fcea1: am 2f4698fd: Merge "frameworks/base: unlink death notifications of Vibrate requests"

* commit '9ce1ecdfde98c7b5b5ec346b883df0a50d9722e1':
frameworks/base: unlink death notifications of Vibrate requests
940dabfc669ef5973c54dcc62e38b4a095d1ff9f 25-Jul-2011 Svetoslav Ganov <svetoslavganov@google.com> Merge "TouchExplorer long press not working and activation tap not respecting distance slop."
a7f68230be1ac025dbeada77e2ff3f16bb2ac04c 25-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of 26ecc31f to honeycomb-plus-aosp

Change-Id: I23f42e247884f0c9d5ae4d3466213592dd3433d9
71f14a4e23c0b6eb60a81fd9a1be86dc441d051a 25-Jul-2011 Svetoslav Ganov <svetoslavganov@google.com> Merge "Touch exploration state set to clients asynchronously and depended on talking service being enabled."
9c8625ead8acd695909d14e3cbda659622848873 25-Jul-2011 Kenny Root <kroot@google.com> Change user 0 directory back for compatibility

The PackageManagerTests aren't designed for multiple users yet, so they
fail. Since multiple users aren't supported yet, just change the default
data directory for user 0 back to how it was previously. This fixes the
existing tests and doesn't get anyone's hopes up since they won't see
/data/user/0/pacakge when we don't support multiple users yet.

Bug: 4380006
Change-Id: Iedcc3115b000759c0013ba6878e13cd2358897da
om/android/server/pm/PackageManagerService.java
f5a07905a3e025f95472a3f8d9935263e49ad6d3 25-Jul-2011 Svetoslav Ganov <svetoslavganov@google.com> TouchExplorer long press not working and activation tap not respecting distance slop.

1. The first problem is manifested on Prime. Apparently the Prime screen driver
is very aggresive in filtering move events that origin from almost the same
location. Hence, the framework doesn't see a constant stream of events. However,
the TouchExplorer implementation was assuming a constant event stream to detect
long press. Refactored the code such that no assumptions for the event stream
are made.

2. Touch exploring an item and then tapping far away from that item was activating
it, hence not respecting the distance slop. This was due to incorrect check of
the latter.

bug:5070917

Change-Id: I3627a2feeb3712133f58f8f8f1ab7a2ec50cdc9a
om/android/server/accessibility/TouchExplorer.java
54e677ffb026eb838237b8a5e6581833f616e32a 25-Jul-2011 satok <satok@google.com> Merge "[Step 2] Add apis for spell checker settings"
562ab585f9e413d9696ee250e5ec02f95889a157 25-Jul-2011 satok <satok@google.com> [Step 2] Add apis for spell checker settings

Bug: 5057977

Change-Id: I4617b7f1487349c5de385e7392dbc39c69fa2ebc
om/android/server/TextServicesManagerService.java
55bc5f3e0408bcb5a39a6732de0b2d1aa99a55be 24-Jun-2011 repo sync <isheriff@google.com> Updated: Wi-Fi p2p framework

First stage. Get the bones in right now even though
we are not ready on the native side.

Once, we have things underneath working - we will further update the
framework

Change-Id: I4a7dab5cd4267373dc5f8989ae4122f91c384ed5
om/android/server/SystemServer.java
e30c1307fbb8f5421515e26ede403e0f6adc2612 24-Jul-2011 Irfan Sheriff <isheriff@google.com> Merge "Handle hostapd and tether interface changes"
23eb297c771bd996fe8559178feb1a07be43ad72 23-Jul-2011 Irfan Sheriff <isheriff@google.com> Handle hostapd and tether interface changes

The set config will only update hostapd config file right now and we need to restart after that happens.

Also, softap interface is changed to be the regular interface

Bug: 5069108
Change-Id: Ibe80129b58e5339f06f186870bcd8f37569c6db3
om/android/server/NetworkManagementService.java
om/android/server/connectivity/Tethering.java
5db7af968a5b57ad9f8e5a61534cafe46c344b85 24-Jul-2011 Mike Lockwood <lockwood@android.com> Merge "Fix USB tethering"
6c2260b3af3a9243aa7f04cf03106f31817cb4c1 19-Jul-2011 Mike Lockwood <lockwood@android.com> Fix USB tethering

The previous approach no longer works with the new USB drivers, since the usb0
interface is no longer enabled by default.
This introduced a chicken & egg problem - usb0 will not be enabled until the
user tries to start tethering, but Settings will not enable the checkbox unless
usb0 is enabled.
To fix this we add an explicit call to start USB tethering in the connectivity manager.
This will enable RNDIS if necessary and then bring up tethering once usb0 is enabled.

Change-Id: Iae1f733366aa6b0dafa66d4c97207794173ef54b
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/ConnectivityService.java
om/android/server/connectivity/Tethering.java
b54ac4ab5b4c50ea09182e0bb19c4af08b0e0730 23-Jul-2011 satok <satok@google.com> Merge "Display the current ime and subtype name in the ongoing notification"
5bc8e732bd831a308a5bc1720b0e4c9300d32f67 22-Jul-2011 satok <satok@google.com> Display the current ime and subtype name in the ongoing notification

Bug: 4903422
Change-Id: I3eaeb3decb75f687ad2af0d80340b819229c3ebe
om/android/server/InputMethodManagerService.java
00aabf7d187bc05408199bd687a538b2e68bdc17 21-Jul-2011 Svetoslav Ganov <svetoslavganov@google.com> Touch exploration state set to clients asynchronously and depended on talking service being enabled.

1. Upon registration of an accessibility client the latter received only
the accessiiblity state and waiting for the touch exploration state
to be sent by the system in async manner. This led the very first
check of touch exploration state is checked a wrong value to be reported.
Now a state of the accessibility layer is returned to the client
upon registration.

2. Removing the dependency on talking accessibility service to be enabled
for getting into touch exploration mode. What if the user wants to use
an accessibility service that shows a dialog with the text of the touched
view?

bug:5051546

Change-Id: Ib377babb3f560929ee73bd3d8b0d277341ba23f7
om/android/server/accessibility/AccessibilityManagerService.java
7ef8611b5f3a893a46c7b9e22bdd8ab252e373ff 23-Jul-2011 Chia-chi Yeh <chiachi@android.com> VPN: increase timeout period to 60 seconds for legacy VPN.

Some VPN needs more time than others in order to create the secure tunnel.
For example, L2TP/IPSec PSK on average needs 15 seconds on WiFi. On mobile
connection, variation gets larger, and it sometimes needs more than 30
seconds. This change increases timeout period from 30 to 60 seconds.

Change-Id: I6006fd254a7bc91c22f63d2f3f20ea79ee9b05e2
om/android/server/connectivity/Vpn.java
6dcf2d77767f73608caa316db534a1df64a2b272 22-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> am 19933916: am ad55d351: Add better routes for secondary DNS

* commit '199339169476d0d6d0ecaa8ed3bff3a9e9a0f430':
Add better routes for secondary DNS
199339169476d0d6d0ecaa8ed3bff3a9e9a0f430 22-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> am ad55d351: Add better routes for secondary DNS

* commit 'ad55d35114237071133eb28ded93a014185d4e35':
Add better routes for secondary DNS
ad55d35114237071133eb28ded93a014185d4e35 22-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> Add better routes for secondary DNS

We'd been doing no-gateway hostroutes for dns servers on secondary nets, but on
some devices (multi-homed stingray) this is a problem. Add gateway-ed hostroutes
instead so the BP can do it's nonstandard "magical" demultiplexing.

bug:5011392
Change-Id: Ia48f69c8ddf2a37cfb8f014f078f96bf601d2ddb
om/android/server/ConnectivityService.java
06d6c1d2289972f253f9c30994562e3ab8a7d7a1 22-Jul-2011 Adam Cohen <adamcohen@google.com> Merge "Fixing new minResizeWidth/Height API"
324afba161ae5b802e38f89c9015d8306ea3ddd1 22-Jul-2011 Adam Cohen <adamcohen@google.com> Fixing new minResizeWidth/Height API

Change-Id: I6b57cca32ed7678597e7c0d81dc483ee294537a9
om/android/server/AppWidgetService.java
8cbe6e9cef46adc14b6c3e0f3ea303b78232a8b9 22-Jul-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #5050039: Launcher is sometimes rendering..."
91c9ac05efd7425565b5c8f0f3f8b7b9658ce143 22-Jul-2011 Dianne Hackborn <hackbod@google.com> Fix issue #5050039: Launcher is sometimes rendering...

...underneath the system/status bar

Change-Id: If65aba64df9362d4721051846a6da6d096a3dc9b
om/android/server/wm/BlackFrame.java
b858c732f665fe9610f2d913230ae625f44a8caa 22-Jul-2011 satok <satok@google.com> Delay load the settings for the ongoing ime swither

Bug: 5029803
Change-Id: I488ff7804a986b71bf01b3dfad0e65fd4707965d
om/android/server/InputMethodManagerService.java
7793719ca97571f5b3636d5a89cb067c71d627bd 22-Jul-2011 satok <satok@google.com> Merge "Create TextServiceManager and SpellCheckerService"
988323c57bd25a58f05dfa492d9b9c8ab62c5153 22-Jun-2011 satok <satok@google.com> Create TextServiceManager and SpellCheckerService

Bug: 4176026

This CL inherits https://android-git.corp.google.com/g/112600

Spec of TextServiceManager
- Chooses the most applicable TextService(e.g. SpellCheckerService, WordBreakIteratorService..)
for each locale

Spec of SpellCheckerService
- Returns whether the given string is a correct word or not
- Returns Suggestions for the given string

Change-Id: Iaa425c7915fe70767ad0b17bf6c6fbcd2a1200b2
om/android/server/SystemServer.java
om/android/server/TextServicesManagerService.java
b0878223db87700cdc988a6d9197ca4e3c4772db 22-Jul-2011 Dianne Hackborn <hackbod@android.com> am 6800a801: Merge "frameworks/base: Cap the number of toasts that a package can post."

* commit '6800a80199477c90fc64af7211a177de06478a02':
frameworks/base: Cap the number of toasts that a package can post.
1a2fcea1a28074f15126471daa5a8650cb5e2ecc 22-Jul-2011 Dianne Hackborn <hackbod@android.com> am 2f4698fd: Merge "frameworks/base: unlink death notifications of Vibrate requests"

* commit '2f4698fda46a3d2a6e78019588d77bae1cfa7193':
frameworks/base: unlink death notifications of Vibrate requests
6800a80199477c90fc64af7211a177de06478a02 22-Jul-2011 Dianne Hackborn <hackbod@android.com> Merge "frameworks/base: Cap the number of toasts that a package can post."
2f4698fda46a3d2a6e78019588d77bae1cfa7193 22-Jul-2011 Dianne Hackborn <hackbod@android.com> Merge "frameworks/base: unlink death notifications of Vibrate requests"
b6055fe7472f16901f0d06f405ac512d5cdafec4 22-Jul-2011 JP Abgrall <jpa@google.com> Merge "NetworkManagementService: receive bandwidth controller events"
a5e9bab0e4f86149e62b99e4d230b6006bf7f9a2 22-Jul-2011 Mike Lockwood <lockwood@android.com> Merge "UsbDeviceManager: Add USB notification string for USB accessory mode"
ae1294cb6b75f571236f98ecf23987d09bda91f4 22-Jul-2011 Mike Lockwood <lockwood@android.com> Merge "USB: Fix handling USB accessory attached when device is booting"
c09bd156b74a3e366beb26cf1eb15a2912e8e02d 22-Jul-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix bug where memory trim was not being delivered with correct level."
f0754f5ba7a45b517cffcb3c2c96f2a32aeac06d 22-Jul-2011 Dianne Hackborn <hackbod@google.com> Fix bug where memory trim was not being delivered with correct level.

Also improve how we handle services, keeping track of whether they showed
UI and if so putting them immediately on the LRU list.

Change-Id: I816834668722fc67071863acdb4a7f427a982a08
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityStack.java
om/android/server/am/ProcessRecord.java
6e680dea3bc9e2d4ba1a09f428c303cd2a59c051 22-Jul-2011 Mike Lockwood <lockwood@android.com> UsbDeviceManager: Add USB notification string for USB accessory mode

Bug: 5062341

Change-Id: I93af8274e538009dd8f00d1cea782b62334e43f1
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/usb/UsbDeviceManager.java
6ee8c2495dd444ed4687489325b61ec6ebd75cba 22-Jul-2011 Romain Guy <romainguy@google.com> Merge "Add looper profiling to adb shell am"
7eabe55db6b113f83c2cefcd06812648927de877 21-Jul-2011 Romain Guy <romainguy@google.com> Add looper profiling to adb shell am

To profile the looper, run the following command:

adb shell am profile looper start <process> <file>
adb shell am profile looper stop <process>

Change-Id: I781f156e473d7bdbb6d13aaffeeaae88bc01a69f
om/android/server/am/ActivityManagerService.java
d462ecf8f82076d21c85bdeeefbd16a1a91d2805 21-Jul-2011 Mike Lockwood <lockwood@android.com> USB: Fix handling USB accessory attached when device is booting

Also defer anything that could start an activity from "system ready"
to "boot completed" time.

Bug: 5051683

Change-Id: I69db751cb991dd247bd0ac3c70a0d84c0d71f365
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/usb/UsbDeviceManager.java
d7a374f6f8f52a88d7e9a4660d9bf9037cf0b659 21-Jul-2011 Irfan Sheriff <isheriff@google.com> Merge "Fix multicast API"
b0c1b80f471bd49af60e7b78161d814e355a6972 20-Jul-2011 Irfan Sheriff <isheriff@google.com> Fix multicast API

Fix multicast API and disable mutlicast V6 packets at driver start

Bug: 5016558
Change-Id: I1e04a905a36045e52c785c1dc702cc246a381a57
om/android/server/WifiService.java
6179ea3196e9306d3f14361fe9ef14191b1edba6 28-Jun-2011 Svetoslav Ganov <svetoslavganov@google.com> Adding accessibility support to the Status Bar.

1. Added content description to pretty much all animals
in the zoo including buttons in the navigation bar,
notifications and status icons for battery, signal,
data, etc.

2. Rectored to avoid ovelaying views since they block
touch exploratino. In general overlaying views
cause trouble for touch exploration and accessibility
in general.

3. Avoid sending accessibility events in case the user is
touching outside of the StatauBAr panels to avoid
confusion.

4. Added records to accessibility events in the places where
this would help the presentation. So the event comes from
a given "leaf" view and its predecessor is adding a record
to the event for itself to provide more cotext. It is up
to the accessiiblity service to choose how to present that.

bug:4686943

Change-Id: I1c1bd123d828fb10911bca92130e9a05c1f020b3
om/android/server/InputMethodManagerService.java
om/android/server/StatusBarManagerService.java
526ebf9b1001910fa1e957086102ed697170cb2f 21-Jul-2011 Jaikumar Ganesh <jaikumar@google.com> Merge "Fix notification manager delete intent."
594745abefe53abe7f577bbb3cc176d52ee00ba1 21-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> am b9f87f19: Merge "First pass tying into per-interface DNS cache"

* commit 'b9f87f1970217d24213c8e3dd7755a0e4d82f8eb':
First pass tying into per-interface DNS cache
1efe4d5cfd3913b3c4efa7aee4bf9fea262c0ad2 20-May-2011 Robert Greenwalt <rgreenwalt@google.com> First pass tying into per-interface DNS cache

Change-Id: Iacce225d392786e37fa2dbf9647045fca0b70e64
om/android/server/ConnectivityService.java
b503b85491cf165c8d098e2ae08a7e9f4db0bd03 20-Jul-2011 Chia-chi Yeh <chiachi@android.com> Merge "ConnectivityService: Implement VPN callbacks to update DNS servers."
47d4caf41b052ab88f747ccc789754be5f44f8af 20-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> Merge "Start default connections on startup."
cf4cfc6fc88f204e2e496e37337f7e70809bbf6f 20-Jul-2011 Adam Cohen <adamcohen@google.com> Merge "Adding resizeMinWidth/Height to AppWidgetProviderInfo"
1bfaf561b7c09388311f1834f17e057739cf587a 20-Jul-2011 Adam Cohen <adamcohen@google.com> Adding resizeMinWidth/Height to AppWidgetProviderInfo

Change-Id: I17dc27829938a3f25a664d8255965cf9b67cb17e
om/android/server/AppWidgetService.java
62ea5e80bf63b0b2ad87ca731fbaac8b1e195247 20-Jul-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #4999574: Disabled system app not listed in Settings after reboot"
116b208b3a1712b1f4b205f8aca8dc0d5491458e 20-Jul-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #4976176: Font size setting does not persist"
44bb251be76894967ea57a3c904377e32325bc3e 15-Jul-2011 Chia-chi Yeh <chiachi@android.com> ConnectivityService: Implement VPN callbacks to update DNS servers.

Change-Id: I7b5063f0344a2a5c2754600386982e870adc1161
om/android/server/ConnectivityService.java
b8f400020b201cc40f5e16277af0dbafec38b8a3 20-Jul-2011 Dianne Hackborn <hackbod@google.com> Fix issue #4999574: Disabled system app not listed in Settings after reboot

Change-Id: I1a0a0724f72adcfa6aedffdcd3112bd4faa909d3
om/android/server/pm/Settings.java
31ca854cdba31ec6ab089af743a8701a6192e07e 19-Jul-2011 Dianne Hackborn <hackbod@google.com> Fix issue #4976176: Font size setting does not persist

Change-Id: Id58caf990bdd3aac5ea97aaba45652ffad1f678a
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityStack.java
9d29d155c51a26d789cce2c4c24c659487c63554 19-Jul-2011 Doug Zongker <dougz@android.com> Merge "add rebootWipeCache call to RecoverySystem API"
33651201375d3670672964503994c410b8eeed7b 19-Jul-2011 Doug Zongker <dougz@android.com> add rebootWipeCache call to RecoverySystem API

Also remove the never-used encrypted-filesystem-via-recovery stuff
that was stripped out of recovery a while ago.

Change-Id: I3349cba83daa9bc4765bd9b3f96d15000a801824
om/android/server/MasterClearReceiver.java
782ed09f2f37123081541bee3f809ef92959e316 19-Jul-2011 Wink Saville <wink@google.com> am 57aebc61: am f679d4cb: Merge "Fix FeatureUser leak in ConnectivityService" into honeycomb-LTE

* commit '57aebc6109f2059ba335a02bf95928a494cff4ba':
Fix FeatureUser leak in ConnectivityService
57aebc6109f2059ba335a02bf95928a494cff4ba 19-Jul-2011 Wink Saville <wink@google.com> am f679d4cb: Merge "Fix FeatureUser leak in ConnectivityService" into honeycomb-LTE

* commit 'f679d4cb92b6d1c193a154abb5ae8fb3a786fc43':
Fix FeatureUser leak in ConnectivityService
3bed4c9f50b3601e2ceec249e2ee83f39192f5db 19-Jul-2011 Kazuhiro Ondo <kazuhiro.ondo@motorola.com> Fix FeatureUser leak in ConnectivityService

In case infinite restoral timer is used for a network feature,
FeatureUser could be keep added but never released if a user
is keep calling "startUsingNetworkFeature".

This patch will add duplication check when adding a FeatureUser
into the list in case infinite restoral timer is used.

Bug: 5043513
Change-Id: I47e7076e217f201454fae33ce596ecdc63cf7908
om/android/server/ConnectivityService.java
35be3dee17fed3036ad40b9dd2ea3ee7504b3dc3 19-Jul-2011 satok <satok@google.com> Merge "Hide "Configure input method" button when the screen is locked."
4273ed652ae9ea2af0a77b6d59a183ebce53a680 19-Jul-2011 satok <satok@google.com> Merge "Enable IMEs to set additional subtypes in background"
f90a33e92a7c8d4040c0e660a62336eb7293d785 19-Jul-2011 satok <satok@google.com> Hide "Configure input method" button when the screen is locked.

Bug: 5022109

Change-Id: I5c6b59044d03b3f0335de1f602d1c3749b038c75
om/android/server/InputMethodManagerService.java
ea4265512c3a2c352f6b99b65094138b96f6de75 19-Jul-2011 Jeff Brown <jeffbrown@google.com> Fix drag and drop regression.
Bug: 5032496

Change-Id: I6504df1261f563092dadc84155d413f43e921ab8
om/android/server/wm/DragState.java
om/android/server/wm/InputMonitor.java
395765a9cb502929db6fd799fb3a9847b9e72495 19-Jul-2011 Mike Lockwood <lockwood@android.com> Merge "UsbManager: document that passing null setCurrentFunction restores default function"
91e88122cf28a48fd2e2260da7d3d87dd437227a 18-Jul-2011 satok <satok@google.com> Enable IMEs to set additional subtypes in background

Bug: 4591792

Change-Id: I7e61a576c56d1a3a56001bdf2fd51ad3801add01
om/android/server/InputMethodManagerService.java
35bfedeaba724aeadc6f6c890269cb6bf7ef42f5 15-Jul-2011 Svetoslav Ganov <svetoslavganov@google.com> Touch exploration separate setting and API to poll the latter state.

1. Seperated touch exploration to be a seperate setting rather being
magically enabled by the system of accessiiblity is on the there
is at leas one accessibility service that speaks enabled. Now
there is a setting for requesting touch exploration but still the
system will enabled it only if that makes sense i.e. accessibility
is on and one accessibility service that speaks is enabled.

2. Added public API for checking of touch exploration is enabled.

3. Added description attribute in accessibility service declaration
which will be shown to the user before enabling the service.

4. Added API for quick cloning of AccessibilityNodeInfo.

5. Added clone functionality to SparseArray, SparseIntArray, and
SparseBooleanArray.

bug:5034010
bug:5033928

Change-Id: Ia442edbe55c20309244061cd9d24e0545c01b54f
om/android/server/accessibility/AccessibilityManagerService.java
d94b71de3b465c9c113f5b09c7cd5f221370af23 18-Jul-2011 Dianne Hackborn <hackbod@google.com> Merge "Work on death recipient leaks in Activity Manager and Content Service."
875c24b897919a80a711dc79cf625006f1ff366d 18-Jul-2011 Mike Lockwood <lockwood@android.com> UsbManager: document that passing null setCurrentFunction restores default function

Change-Id: I4340b336f3e91b3b8242f2a66c34a7a7f5c3021f
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/usb/UsbDeviceManager.java
1b64e0d8657463c0f7ce9b068a16a522cdfe7d28 18-Jul-2011 Dianne Hackborn <hackbod@google.com> Work on death recipient leaks in Activity Manager and Content Service.

This should fix a leak of process death recipients in the activity manager.

Also add debugging of content observers to try to track down what looks
like a leak of them in the content service.

Change-Id: Id6823679493ef0cde5307bb66490ebe31b878556
om/android/server/am/ActivityManagerService.java
om/android/server/am/ProcessRecord.java
bd029f64f2c695d49ea169f4c5c107e8172a1de5 18-Jul-2011 Jeff Sharkey <jsharkey@android.com> Merge "Data usage notifs, newly installed apps, defaults."
02e21d6a5b5117d494777a36783909854854f751 18-Jul-2011 Jeff Sharkey <jsharkey@android.com> Data usage notifs, newly installed apps, defaults.

Only show warning/limit notifications for active networks, since they
aren't actionable for inactive IMSI. Include IMSI in debug output on
engineering builds.

Move default policy warning to be configured through overlay. Watch
for newly installed packages to enforce global policy.

Bug: 5038729, 5038541, 4979026, 5023634
Change-Id: I8fc8ab4c23c440a3091504ea16133ed6ababf58e
om/android/server/net/NetworkPolicyManagerService.java
0e3328fbdd3845b0e2bec364e951498eaee6b079 17-Jul-2011 Dianne Hackborn <hackbod@google.com> Rework and fix "adb shell dumpsys meminfo"

We now collect more detailed information splitting the maps into
additional useful categories.

Fixed some bugs in account, such as not correctly handling all of
the current dalvik allocations.

The activity manager now prints a final summary of all pss organized
by the apps and the categories.

Change-Id: Iafc5f27c998095812b1483c6803b8e0f0587aeae
om/android/server/am/ActivityManagerService.java
9cbf8e270d4fd581c2e8bc7d9fc913de766bf242 17-Jul-2011 Jeff Sharkey <jsharkey@android.com> Merge "Acquire wakelock during network stats collection."
6248926e199dca9bde3c76c5f82c486c293cdcdd 17-Jul-2011 Jeff Sharkey <jsharkey@android.com> Acquire wakelock during network stats collection.

Bug: 4517275
Change-Id: I01dfe3b13d7aca84605446e9e9927d0648623552
om/android/server/net/NetworkStatsService.java
8eb89cc7789314ea28f899def3fa34529724f80f 17-Jul-2011 Svetoslav Ganov <svetoslavganov@google.com> Merge "Throw an exception if accessibility service has not requested to retrieve window content."
4a49d9fe52a76c7f91f81113e0a8e9f97ac3f24c 17-Jul-2011 Svetoslav Ganov <svetoslavganov@google.com> Throw an exception if accessibility service has not requested to retrieve window content.

1. If an accessibility service does not request access to the window
content and does so, an exception is thrown to point the developer
to the reason.

bug:5038284

Change-Id: Ibf08f4d2c8ad8939c4f4c2e288048a4f8ff1e31b
om/android/server/accessibility/AccessibilityManagerService.java
d53f8a86d3a483d96b9d87fd89b09942d40e0a41 17-Jul-2011 Ken Sumrall <ksumrall@android.com> Merge "During encryption, don't throw exceptions for unknown vold state"
ea80b2d02f836214b175ac24a7b4315053a86f06 16-Jul-2011 Svetoslav Ganov <svetoslavganov@google.com> Exception in TouchExplorer due to invalid pointer id.

Change-Id: Iec5d3b3b0d3ae5676e16384ed2b12352fe4a7f3c
om/android/server/accessibility/TouchExplorer.java
18db5c5690472f9da6ce2d580067307378675809 14-Jul-2011 Ken Sumrall <ksumrall@android.com> During encryption, don't throw exceptions for unknown vold state

This is a temporary fix until we get something better. During the
encryption process, vold does not respond to commands because it is
blocked doing the encryption. Because it doesn't respond, this code
times out, sets the state to null, and thows an exception. For now,
just don't throw an exception if the device is encrypting.

Change-Id: I7e821ec2addd60475fb10834df533beccb2650fe
om/android/server/MountService.java
755c7dc48d009914feae01ba8c79c3b0b911b932 16-Jul-2011 Christopher Tate <ctate@google.com> Merge "Support for compressed backups"
7bdb096289d10983f6fe711ecd598e350c9a9587 14-Jul-2011 Christopher Tate <ctate@google.com> Support for compressed backups

The backup format now includes a stream header. That header begins with
a magic string and version number, then includes a flag stating whether
the archive data is compressed, and then in the case of encrypted archives
states the password salt used during encryption key stretching.

When compression is used, everything following the header is run through
a standard zlib "deflate" compressor before being sent downstream.

Change-Id: Ica72753e4ef2c3d13e63b45e7722a00652940a55
om/android/server/BackupManagerService.java
75683d59db7d2c34093081ed6ca1f269192c550f 15-Jul-2011 Irfan Sheriff <isheriff@google.com> Merge "WifiWatchdog rewrite to formal statemachine"
654f5090754e4e1bf4c1736d0a24769a15a6037e 14-Jul-2011 Isaac Levy <ilevy@google.com> WifiWatchdog rewrite to formal statemachine

Rewrote wifiwatchdog service to use net.statemachine

Change-Id: Id6fd42b13192ac2e99f842ff50e9edff1696675d
om/android/server/WifiService.java
2e448f75c0392969792032461b2f90017aebba7c 13-Jul-2011 jhtop.kim <jhtop.kim@samsung.com> Fix notification manager delete intent.

Notification manager was sending the delete intent even when
the notification was clicked and not just when cleared.

Change-Id: I9f8ae973b7972bc34cd15d213e58a961138fa7e5
Signed-off-by: jhtop.kim <jhtop.kim@samsung.com>
om/android/server/NotificationManagerService.java
c96e6ccec9c41dee75f54e0db418df345e2a9bd9 15-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> Start default connections on startup.

On devices with mobile data we were kind of doing this in Telephony.
Devices without could use this.

bug:5030831
Change-Id: I9940561e88e43917bc8e638f5c3b15fced3821ae
om/android/server/ConnectivityService.java
ef75edaf0fd226bba37fe304d3395c8e5a59ccf7 15-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> am e1635197: am 476f5525: Small fix to 5008973 fix.

* commit 'e1635197bb6e6471b333d194855bb399da419957':
Small fix to 5008973 fix.
d9212d3088d2ecb794933c2f96392ea160b857eb 15-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of 8550f3b8 to master

Change-Id: If2881b8b7faea5139af83a37cba04ccac5904f81
e1635197bb6e6471b333d194855bb399da419957 15-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> am 476f5525: Small fix to 5008973 fix.

* commit '476f55253adc670d7290ad8c90b5adc9e4f58d3b':
Small fix to 5008973 fix.
8550f3b86aabe04e149866839bde78b335cc1104 15-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of 0a46db5d to honeycomb-plus-aosp

Change-Id: I0f1bea54d999ab3ef10400ee67bd4d3b2a5d1783
476f55253adc670d7290ad8c90b5adc9e4f58d3b 15-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> Small fix to 5008973 fix.

Removed redundent log.
Cleaned some logic.
Will try to modify route even if recursive operation had an error.

bug: 5008973
Change-Id: Ie2ca51cc39cfac027a8a2e2eaddcb7d6c378c4da
om/android/server/ConnectivityService.java
4e814c348ce205fcc1a273427f95ef1d100ed60c 15-Jul-2011 Jeff Sharkey <jsharkey@android.com> Hide NetworkTemplate details, buffered stats I/O.

Move template matching to builder methods instead of exposing the
internal constants. Also rule to match Ethernet usage. Buffer
reading and writing of network stats, making operations 5x faster.

Change-Id: Iedb2d0ab3b26a976811c050f84a164e909eb74b6
om/android/server/net/NetworkPolicyManagerService.java
om/android/server/net/NetworkStatsService.java
aa1727fe0cbb902c5f53a3fae601b4e15da0a2f4 15-Jul-2011 Chia-chi Yeh <chiachi@android.com> VPN: tear down VPN when the dependent interface is down.

Change-Id: I1eaf8e39ee7aed1f4ecbd4c36c2a81a68ad2f9d1
om/android/server/connectivity/Vpn.java
0a46db5d88461d9a6c85bb2e95982ac4c511d57e 14-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> Apply the dns and route diff which we get a change

bug:5008973
Change-Id: Ib99e43d9d852452cc1f2aea6bef07bbd194f28cc
om/android/server/ConnectivityService.java
12b933d0d9252decaae9fee2456bb1e1cd94c085 15-Jul-2011 JP Abgrall <jpa@google.com> NetworkManagementService: receive bandwidth controller events

This is a 1st pass at receiving events that indicate
some quota has been reached e.g. warning quota, data collection quota,
cutoff quota,...

It needs:
- new kernel with quota2 logging support
- new net:bandwidthcontroller that supports
. quota2,
. setting alerts.
- new NetlinkEvent/NetlinkManager/NetlinkHandler to process
NETLINK NFLOG messages.

Change-Id: Ibfbb13512c5350cdee0e544ec14caa6f59812409
om/android/server/NetworkManagementService.java
om/android/server/ThrottleService.java
om/android/server/connectivity/Tethering.java
om/android/server/connectivity/Vpn.java
b3a26f4d94f390d4baeac0fc11ccb9d451b67dbd 15-Jul-2011 Dianne Hackborn <hackbod@google.com> Merge "Move LoadAverageService to the SystemUI apk."
5779c9c2d9f1f7a28279fe907aebbb43981286fd 15-Jul-2011 Chia-chi Yeh <chiachi@android.com> VPN: close the socket in protectVpn() to avoid leaking descriptors.

Change-Id: Idda0c2ea1770abc490566e894711bcb08f60b354
om/android/server/ConnectivityService.java
om/android/server/connectivity/Vpn.java
45ce864ef41ce90938cc34d42a8e1075f69e7a61 15-Jul-2011 Dianne Hackborn <hackbod@google.com> Move LoadAverageService to the SystemUI apk.

Change-Id: I442e264802d1e35cd7d27bae121ae75f932595b6
om/android/server/BootReceiver.java
om/android/server/LoadAverageService.java
om/android/server/ProcessStats.java
om/android/server/am/ActivityManagerService.java
eb2591f8f71907ded8bac947ba98ae6c24192e5f 15-Jul-2011 Chia-chi Yeh <chiachi@android.com> Merge "VPN: Hook up the new control protocol and network state."
97a61565ea95472e65899070e64853f8c147bb11 15-Jul-2011 Chia-chi Yeh <chiachi@android.com> VPN: Hook up the new control protocol and network state.

1. No more End-Of-Arguments.
2. Daemons close the control socket after they are initialized.
3. No more system properties.
4. ip-up-vpn now creates state to pass the configuration.
5. JNI methods are split again for legacy VPN.

Change-Id: I02fafdf01d425c965345ef712b2bd5fdee3a0cab
om/android/server/connectivity/Vpn.java
c9822c5aeae833bb4a586c7af8a7b2641e8c17ae 14-Jul-2011 Wink Saville <wink@google.com> Fix build.

Changes in ConnectivityService in hc-LTE when merged with changes
happening in Master caused the build to break.

Change-Id: I92a0b782ae58e9789b1e950c94ef966234fa94af
om/android/server/ConnectivityService.java
76326a9d7da1e1726142be4e9c6b770aae7a90ca 14-Jul-2011 Wink Saville <wink@google.com> am 3810361e: am 6d1d16c3: Merge "Remove STOPSHIP but allow seamless Handoff when possible." into honeycomb-LTE

* commit '3810361e4a3e93d3c8a10aaeec54f65dfcc2d03d':
Remove STOPSHIP but allow seamless Handoff when possible.
cadaa3a9839d152cdbdb8c3d5070d315910da5dd 14-Jul-2011 Dianne Hackborn <hackbod@google.com> Merge "Improve handling of low memory."
ce86ba86df61de8b34b226a4eb6c23ec33e866e0 14-Jul-2011 Dianne Hackborn <hackbod@google.com> Improve handling of low memory.

Now classify background processes into a set of bins of how much
memory they should try to clear. The last bin also involves
destroying all activities in that process.

Removed the old code for the simulator that is no longer needed
(yay). The debugging features it had are now integrated into the
regular oom adj code.

Small fixes to load average service.

Change-Id: Ic8df401714b188c73b50dbc8f8e6345b58f1f3a0
om/android/server/LoadAverageService.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityStack.java
om/android/server/am/ProcessRecord.java
9302c8796fc4dcda08d4bd1e11733848fd4fafaf 14-Jul-2011 Jeff Brown <jeffbrown@google.com> Refactor input dispatcher use of window/app handles.

This change moves the cached window and application input state
into the handle objects themselves. It simplifies the dispatcher
somewhat because it no longer needs to fix up references to
transient InputWindow objects each time the window list is updated.

This change will also make it easier to optimize setInputWindows
to avoid doing a lot of redundant data copying. In principle, only
the modified fields need to be updated. However, for now we
continue to update all fields in unison as before.

It turns out that the input dispatcher was inappropriately retaining
pointers to InputWindow objects within the mWindows InputWindow
vector. This vector is copy-on-write so it is possible and the
item pointers to change if an editing operation is performed on
the vector when it does not exclusively own the underlying
SharedBuffer. This bug was uncovered by a previous change that
replaced calls to clear() and appendVector() with a simple use
of operator= which caused the buffer to be shared. Consequently
after editItemAt was called (which it shouldn't have, actually)
the buffer was copied and the cached InputWindow pointers became
invalid. Oops. This change fixes the problem.

Change-Id: I0a259339a6015fcf9113dc4081a6875e047fd425
om/android/server/wm/AppWindowToken.java
om/android/server/wm/InputApplication.java
om/android/server/wm/InputApplicationHandle.java
om/android/server/wm/InputManager.java
om/android/server/wm/InputMonitor.java
om/android/server/wm/InputWindow.java
om/android/server/wm/InputWindowHandle.java
om/android/server/wm/InputWindowList.java
om/android/server/wm/WindowState.java
f382dc2d97e22f6bcce7aa8250d797edc616719e 14-Jul-2011 Svetoslav Ganov <svetoslavganov@google.com> Merge "Touch exploration gesture events change the window id."
63c04eeb00dd71380d5ebba701014793d8f9a2ea 14-Jul-2011 Svetoslav Ganov <svetoslavganov@google.com> Touch exploration gesture events change the window id.

1. Touch exploration start and end events are generated
by the sytstem to provide additional information for
accessibility services. Since such events do not come
from any particular window they whould not change the
id of the window that currently allows exploring its
content.

2. Touch exploration start and end events were lealing the
touch explorer class wich is private.

bug:5026258

Change-Id: Icaf3e2bd9566716f2afb876cf8e0d50813b0c76e
om/android/server/accessibility/AccessibilityManagerService.java
om/android/server/accessibility/TouchExplorer.java
a1b68687de9d0048631ade3d5f4da6f08b6fe508 14-Jul-2011 Kenny Root <kroot@google.com> Merge "Add StorageVolume list to MountService dump"
9a79cda53b1cdb6b281fa8e8cc257f1671aba202 14-Jul-2011 Christopher Tate <ctate@google.com> Merge "Compress the backup output stream"
7926a693c4a4f4d2a2d352343bca23e189c7420d 11-Jul-2011 Christopher Tate <ctate@google.com> Compress the backup output stream

Zlib compression, with a full flush between each application's
data. Encryption will be performed on the already-compressed data
once that's implemented.

On restore, the streamed data is similarly uncompressed on the fly.

Change-Id: I19b65c88e759a66527d10913d18fffa9df0bc011
om/android/server/BackupManagerService.java
19d2c0b0c0f7e010b885492c83cd76cb90d2416a 14-Jul-2011 Jeff Sharkey <jsharkey@android.com> Merge "Control socket tagging through Settings.Secure."
62a2c8fed9cc74e9fa03871e0022205560a681a1 14-Jul-2011 Jeff Sharkey <jsharkey@android.com> Control socket tagging through Settings.Secure.

When NetworkManagementService starts, it determines if qtaguid
should be enabled. The changes pushes the enabled state to a system
property to control socket tagging.

Change-Id: I5697a990dbaad4b220a2fb055931b18077d07a74
om/android/server/NetworkManagementService.java
3810361e4a3e93d3c8a10aaeec54f65dfcc2d03d 13-Jul-2011 Wink Saville <wink@google.com> am 6d1d16c3: Merge "Remove STOPSHIP but allow seamless Handoff when possible." into honeycomb-LTE

* commit '6d1d16c324a681dd966d47497a71a02eac512234':
Remove STOPSHIP but allow seamless Handoff when possible.
e822225f7a01ef088ff01f7613f953d5d89945ed 13-Jul-2011 Wink Saville <wink@google.com> Remove STOPSHIP but allow seamless Handoff when possible.

If an address is removed we must reset the connection but
only for the connections associated with that address. For
now we're doing the "all" addresses for a type (IPv6 or IPv4)
in the future we only need to reset a particular addresses
connections.


Bug: 4981919
Change-Id: I97f8071a3ed6f827ed22f32216ca5011bfe6c1d9
om/android/server/ConnectivityService.java
4161f9b30329e558868bb2b16c3e83c0b9cd26fd 13-Jul-2011 Kenny Root <kroot@google.com> Add StorageVolume list to MountService dump

Change-Id: If2be6e420d9671032d2e7a66c71a6733e6e48ac8
om/android/server/MountService.java
de033beae43567c2a2d1f3b1cac4770f38de7ea3 13-Jul-2011 Mike Lockwood <lockwood@android.com> Merge "UsbDeviceManager: clean up HandlerThread creation"
3fd13eb6322e09f1ffe5476e28d55732da391151 13-Jul-2011 Mike Lockwood <lockwood@android.com> UsbDeviceManager: clean up HandlerThread creation

Change-Id: I84683b1753fcf3c3b501f8a506d6d890edf2eb37
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/usb/UsbDeviceManager.java
434962e44ea93b1c4d216c55f636a435bf54aa54 13-Jul-2011 Jeff Sharkey <jsharkey@android.com> Include full network history around current time.

When requesting historical values with time ranges, always include
full values for buckets that span current time. (It doesn't make
sense to interpolate partial data.) Move getTotalData() to return
full Entry objects to prepare for packet counts.

Bug: 4691901
Change-Id: I717bd721be9f1d4a47c4121e46e07a56cb15bbf1
om/android/server/net/NetworkStatsService.java
d37948f6ed1667d077e0e3a38808f42f981ddcc2 12-Jul-2011 Jeff Sharkey <jsharkey@android.com> Hide NetworkStatsHistory internals.

Instead of exposing internal storage details, offer getValues()
accessor which populates values into a recycled structure.

Change-Id: I5228d7099a8f61b2018a435a813435a67dae49b4
om/android/server/ThrottleService.java
om/android/server/net/NetworkPolicyManagerService.java
om/android/server/net/NetworkStatsService.java
1ea4cc64643afb987ad42630eb146b4585647d0a 12-Jul-2011 Jeff Sharkey <jsharkey@android.com> Merge "Return stats from inactive ifaces, packet counts."
622c03e6cfdd37c05f225434e5b07f8db7d4521e 12-Jul-2011 Mark Brophy <mbrophy@google.com> Merge "Expose app resume times to the ApplicationProvider."
6df76aa9f12b8c12dcf0c11d7bd03df66dae112e 12-Jul-2011 satok <satok@google.com> Merge "Change IME picker dialog from Activity to Broadcast"
0870e814679b4cb4e2c74c7225a9414650a1c7c8 12-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> Merge "Fix wifi tethering."
683e2383c8549f95e00bade15daed3dbddf13950 12-Jul-2011 satok <satok@google.com> Change IME picker dialog from Activity to Broadcast

Change-Id: I4822899f34a2951d2f2a1258d1adcc7d8fccbb12
om/android/server/InputMethodManagerService.java
9f845cff9b72b27eadb55298bdcf0104599f9385 12-Jul-2011 Jeff Brown <jeffbrown@google.com> Merge "Increase activity timeouts when using a wrapper process."
3f9dd287b99340efaaa257759e71a8f81b2ed113 09-Jul-2011 Jeff Brown <jeffbrown@google.com> Increase activity timeouts when using a wrapper process.

This patch enables the Zygote to tell the ActivityManager when
it has started a process with a wrapper attached so that the
ActivityManager can allow it extra time to start up or process
events.

This is useful when wrapping an app with Valgrind or other tools
which add significant runtime overhead.

Bug: 4584468
Change-Id: I5db6f2f15cd30b0ec40f547d2fadfa216de2926d
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityRecord.java
om/android/server/am/ProcessRecord.java
801525ceccf3b8d68b9b561116a734598c52c547 12-Jul-2011 Mike Lockwood <lockwood@android.com> Merge "UsbDeviceManager: Include kernel USB state in dumpsys output"
8f540d4d02fa32833dbb96410ffec797ae7841b7 12-Jul-2011 Mike Lockwood <lockwood@android.com> Merge "UsbDeviceManager: Initialize state based on persist.sys.usb.config rather than current kernel state"
7c34f29c8a8abb91da09cdc426d8466eb954713a 12-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> Fix wifi tethering.

The new link-status netlink monitor is a bit chatty and we were getting race conditions.
The wl0.1 soft-ap interface was getting created, but in the off state. We would report
it available (link-added always reports it) causing wifi to start tethering, but then
we'd sometimes get a link-status-down notification and a link-status-up, causing wifi
to freak out with these two requests.

The simple fix was to not listen to the new link-status notifications. This should be
redesigned in the future.
bug:4983942

Change-Id: Ica4f34d8bf2a07fc19b35a1e15283a7f8022165e
om/android/server/connectivity/Tethering.java
6ea146c239f2468563b4e8766b446d14ae4a1ff5 10-Jul-2011 Mike Lockwood <lockwood@android.com> UsbDeviceManager: Include kernel USB state in dumpsys output

Change-Id: Ia7f015057e24f376e285a40e583644f9d0b9213e
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/usb/UsbDeviceManager.java
c264afeb5528733a215a472e761b51cc59bba454 10-Jul-2011 Mike Lockwood <lockwood@android.com> UsbDeviceManager: Initialize state based on persist.sys.usb.config rather than current kernel state

This makes it more robust when recovering from runtime restarts

Bug: 4986841

Change-Id: I54b94213447130ca881c66da2d0ce490242f0c96
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/usb/UsbDeviceManager.java
fd8be3e5e7420f3cca591daeec8a44487f5f65aa 11-Jul-2011 Jeff Sharkey <jsharkey@android.com> Return stats from inactive ifaces, packet counts.

When an iface goes inactive, xt_qtaguid maintains historical counters
instead of discarding. Now reading and returning those values in
NetworkManagementService summary calls. Tests to verify stats are
returned.

Modify NetworkStats to include rxPackets and txPackets values, and
move to Entry to eventually hide internal storage details.

Bug: 4984539
Change-Id: I1ba0bb5580c62e946d9dff2cc2a6f64aff403efc
om/android/server/NetworkManagementService.java
f25a8ce4a6a1025156d2977c7ddd37d4a01a5e71 11-Jul-2011 Jeff Brown <jeffbrown@google.com> Merge "Remove more simulator support code. Bug: 5010576"
501c4671e73a484c1f01d94f4f5fff124c05f197 11-Jul-2011 Jeff Brown <jeffbrown@google.com> Merge "Eliminate single-process mode. Bug: 5010576"
5d6d90fac8fa646521081c7b67aabaadb5db946b 11-Jul-2011 Jeff Brown <jeffbrown@google.com> Remove more simulator support code.
Bug: 5010576

Change-Id: Ie6c8665306bf4e822693b76f25c3a0f05c12d42d
om/android/server/pm/PackageManagerService.java
ce060f722a65b379805e81b5292253265d823ed1 11-Jul-2011 Mike Lockwood <lockwood@android.com> Merge "UsbDeviceManager: Fix indentation"
e6d24ab6a96549940cf832fe8c86710f2f07631c 11-Jul-2011 Mike Lockwood <lockwood@android.com> Merge "MTP: Return error if user tries to copy a file >= 4GB to a FAT32 file system"
abc4ac6d48c52bd8b69026441bf261e5c68c24f4 11-Jul-2011 Mike Lockwood <lockwood@android.com> UsbDeviceManager: Fix indentation

Change-Id: I3eb1d407bdb4bf885d1765eedbfb30555f558b3b
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/usb/UsbDeviceManager.java
7a59dd2ce33b46cbc73eef964ddb4272ea1da8d1 11-Jul-2011 Mike Lockwood <lockwood@android.com> MTP: Return error if user tries to copy a file >= 4GB to a FAT32 file system

Bug: 4561836

Change-Id: I2bffb93b032038f6c220c24c752ccd7ca66c23a0
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/MountService.java
104344e507610be42fb70c7deda3c422c543bfcb 10-Jul-2011 Jeff Sharkey <jsharkey@android.com> Cached NTP time for system services.

Uses NTP server and timeout from secure settings, or fallback to
defaults in resources. Update various system services to use cached
NTP time when fresh enough, or force updates as needed.

Bug: 4517273
Change-Id: Ie1c4c4883836013d02ca0bbd850cf8949f93b34b
om/android/server/NetworkTimeUpdateService.java
om/android/server/ThrottleService.java
om/android/server/location/GpsLocationProvider.java
om/android/server/net/NetworkPolicyManagerService.java
om/android/server/net/NetworkStatsService.java
9fc033083267d0c7f01e083400721b6cddb3a398 01-Jul-2011 Mark Brophy <mbrophy@google.com> Expose app resume times to the ApplicationProvider.

Add ActivityManager.getAllPackageUsageStats which returns
the PkgUsageStats object for all packages.

In UsageStatsService, remember the last resume time of each component, and
add that info to PkgUsageStats instances.

ApplicationProvider will use getAllPackageUsageStats and the new field
in PkgUsageStats to set the new SearchManager column
SUGGEST_COLUMN_LAST_USAGE_HINT for requests with the GLOBAL_SEARCH
permission.

Change-Id: I80e9b127410ed0d528515d2256787f30a953e9b0
om/android/server/am/UsageStatsService.java
10e89712863f5b91a2982dc1783fbdfe39c1485d 09-Jul-2011 Jeff Brown <jeffbrown@google.com> Eliminate single-process mode.
Bug: 5010576

Change-Id: Id450dc83efed4897d1e4ff451530fed14457aace
om/android/server/AppWidgetService.java
om/android/server/am/ActivityManagerService.java
om/android/server/pm/PackageManagerService.java
b7440a140b650932bf31cf51d3b87c3249e3b682 09-Jul-2011 Elliott Hughes <enh@google.com> Merge "Pass the targetSdkVersion through to the zygote-forked dalvik."
0d171a66a4e14fad006e6dc8bd82d58c2e331d3d 09-Jul-2011 Wink Saville <wink@google.com> Merge "resolved conflicts for merge of e4a56a32 to master"
e1dfcb7ab01fb991079ec1f70f75281a0ca9073e 08-Jul-2011 Elliott Hughes <enh@google.com> Pass the targetSdkVersion through to the zygote-forked dalvik.

This will let dalvik implement backwards-compatibile behaviors based on
an app's targetSdkVersion.

Bug: 4772166
Change-Id: I935c5ea9144e8b4e6e21089547287486e2234b7f
om/android/server/am/ActivityManagerService.java
ae367419df6e5f55b081fa793b535cc84b55d6ed 08-Jul-2011 Wink Saville <wink@google.com> resolved conflicts for merge of e4a56a32 to master

Change-Id: I50f8fe61303efa78f5d450ddda1483e0ecb81d12
284f1bb4daf77f7e6b688c0936dd4a31ec2e7c74 07-Jul-2011 Christopher Tate <ctate@google.com> Can now restore a subset of apps from historical dataset

Adds the ability to filter a restore of an historical dataset so that it
only restores certain apps' data regardless of what is actually present
in the dataset. This is currently only used by the bmgr command-line tool,
for debugging / developer support.

Bug 2021590

Change-Id: I7685e5d609b0f5506f71d70c26410602bb387659
om/android/server/BackupManagerService.java
e4a56a32ac243dad5e7fa33c5de4777d9a4b8162 08-Jul-2011 Wink Saville <wink@google.com> am 8171e6f6: Use resetConnections with resetMask.

* commit '8171e6f690cca1bad354e7e352823d79d420daf3':
Use resetConnections with resetMask.
8171e6f690cca1bad354e7e352823d79d420daf3 08-Jul-2011 Wink Saville <wink@google.com> Use resetConnections with resetMask.

Bug: 4981919
Change-Id: I5dec2da0756d5083bc81494fd583672704537694
om/android/server/ConnectivityService.java
cb925e7a563d06dde5273b73033822a3bae0d4db 07-Jul-2011 Jim Miller <jaggies@google.com> Merge "Fix 4689527: Fix rendering issue with thumbnails on phones"
28637bacfdde4b2b110462c97fdd52854c5288d5 07-Jul-2011 Jim Miller <jaggies@google.com> Fix 4689527: Fix rendering issue with thumbnails on phones

This fixes a bug where the phone thumbnail scale was being miscalculated
for the square aspect of thumbnails on phones. The code now constrains
thumbnails to fit the smaller of screen width and screen height.

Change-Id: I174abacd4cf3dcf124e10fe8980fb01fe299ec6a
om/android/server/wm/WindowManagerService.java
d5299ff39aa7532c0213978fc0a95e08c3a77deb 07-Jul-2011 Jean-Baptiste Queru <jbq@google.com> Merge 37dbfcaf

Change-Id: Iae55ecada8dc231c88bb87b32e8bd5e7b6a47bd0
6d815e9dd00a5cb36554acb7b2f76f47c03cd7cf 07-Jul-2011 Irfan Sheriff <isheriff@google.com> Merge "Moved WifiWatchdogService and DnsPinger"
ed61ee1fae260011ebfdb4e61e5edd319debb6c2 07-Jul-2011 Elliott Hughes <enh@google.com> Merge "Add the "debug.jni.logging" property so third-party developers can debug their JNI problems."
269318760f1719bccd2f810226e6755b170d4213 07-Jul-2011 Mike Lockwood <lockwood@android.com> Merge "UsbDeviceManager: Initialize RNDIS ethernet address based on device serial number"
ae07ecf3766c38af1c12822458b98036b28bd4c0 07-Jul-2011 Elliott Hughes <enh@google.com> Add the "debug.jni.logging" property so third-party developers can debug their JNI problems.

This turns on the super-verbose but indispensible logging of all native method
calls and all calls to JNI functions (for third-party code only). In particular,
if you have a local reference bug, you can search for the reference given in
the crash and see exactly where it came from. In every case I've seen so far,
that's pinpointed the bug exactly.

Change-Id: Ifb7ba02ae637bdd53cd8500febdcb9d4d7799bda
om/android/server/am/ActivityManagerService.java
c59214ff3ef2fbb2d069305f8b52ade6346f4609 07-Jul-2011 Svetoslav Ganov <svetoslavganov@google.com> Merge "Addressing comments during security review of the interrogation feature."
e8f95352cf4fd2bb38fd124bf5fcefddddeb0692 07-Jul-2011 Svetoslav Ganov <svetoslavganov@google.com> Addressing comments during security review of the interrogation feature.

1. Pretty much minor fixes for improving readability.

Change-Id: I76efdcc574af9a277b54eeb9fb5caf34948fcfde
om/android/server/accessibility/AccessibilityManagerService.java
79ec80db70d788f35aa13346e4684ecbd401bd84 24-Jun-2011 Christopher Tate <ctate@google.com> Make full backup API available to apps

New methods for full backup/restore have been added to BackupAgent
(still hidden): onFullBackup() and onRestoreFile(). The former is the
entry point for a full app backup to adb/socket/etc: the app then writes
all of its files, entire, to the output. During restore, the latter
new callback is invoked, once for each file being restored.

The full backup/restore interface does not use the previously-defined
BackupDataInput / BackupDataOutput classes, because those classes
provide an API designed for incremental key/value data structuring.
Instead, a new FullBackupDataOutput class has been introduced, through
which we restrict apps' abilities to write data during a full backup
operation to *only* writing entire on-disk files via a new BackupAgent
method called fullBackupFile().

"FullBackupAgent" exists now solely as a concrete shell class that
can be instantiated in the case of apps that do not have their own
BackupAgent implementations.

Along with the API change, responsibility for backing up the .apk
file and OBB container has been moved into the framework rather than
have the application side of the transaction do it.

Change-Id: I12849b06b1a6e4c44d080587c1e9828a52b70dae
om/android/server/BackupManagerService.java
om/android/server/SystemBackupAgent.java
a7bc1135c270fd4a84ab7ad45b7194e9b580300e 06-Jul-2011 Isaac Levy <ilevy@google.com> Moved WifiWatchdogService and DnsPinger

- Moved WWS and DnsPinger in prep for StateMachine rewrite
intent.

Change-Id: I912ca80d31ee2ded99eb345a2e5a55d01bd9910c
om/android/server/DnsPinger.java
om/android/server/WifiService.java
om/android/server/WifiWatchdogService.java
629b149ff584bc247f68014a676101d1d5787d27 06-Jul-2011 Mike Lockwood <lockwood@android.com> UsbDeviceManager: Initialize RNDIS ethernet address based on device serial number

Change-Id: I4775e5d8350385777f70f1b28ac00aa22dbd9487
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/usb/UsbDeviceManager.java
2776f6975d135a2eb5ae043f5ef6a4faa14ab520 06-Jul-2011 Mike Lockwood <lockwood@android.com> Merge "UsbService: USB connected notification now redirects to USB screen in Settings"
37dbfcaf836cf37d1e404cd2cf25f4ed670bc80f 06-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> am 7022db4c: am 2b62c4fb: am 38bb0123: Merge "Added methods to support dns cache per interface"

* commit '7022db4cd2ca3721631595d7379eabb2cc77f6a9':
Added methods to support dns cache per interface
2b62c4fbfeb7df0988bf216c50cd4a24f05add9f 06-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> am 38bb0123: Merge "Added methods to support dns cache per interface"

* commit '38bb0123b8b9857c3119fd359739daf872f619d6':
Added methods to support dns cache per interface
0e7d7d632309409e2bc51d5317cf7a92a7541433 05-Jul-2011 satok <satok@google.com> Fix NPE in getLastInputMethodSubtype

Bug: 4991393
Change-Id: I4ced2a2ca4815c7cee84a72dc6131fb8c4ee7216
om/android/server/InputMethodManagerService.java
2e46764a707bd14cad22bc179669eeecb2d7c647 04-Jul-2011 Chia-chi Yeh <chiachi@android.com> VPN: implement status report for legacy VPN.

Change-Id: I81c28dafd9588572df76cbc303b0d6a0f41f9bc6
om/android/server/ConnectivityService.java
om/android/server/connectivity/Vpn.java
c2b8aa0b4c822b0e307f62131650f4a6ee89bb66 04-Jul-2011 Chia-chi Yeh <chiachi@android.com> VPN: rename some variables.

Change-Id: I7f15b5ab30f591e26242fca27af25f578809534c
om/android/server/connectivity/Vpn.java
100155a310fbb5028fc48e359bdfb7c4d3531843 04-Jul-2011 Chia-chi Yeh <chiachi@android.com> VPN: convert prepare() into a form which helps solve race conditions.

When someone tries to revoke packageA, it is possible that packageA is
already revoked by packageB. In this case packageB should not be revoked,
and the new prepare() can help solve this problem.

Change-Id: Iee056a191dd99467b8ad1b5379a17b02d404bad1
om/android/server/ConnectivityService.java
om/android/server/connectivity/Vpn.java
34e7813e962de99df9813014678ef5901227c5f1 03-Jul-2011 Chia-chi Yeh <chiachi@android.com> VPN: minor refinement.

Change-Id: I2b59cbe8554b6c6f8da48c465252489394f32653
om/android/server/connectivity/Vpn.java
44e27b5c74b5f441973561a4f945cb58e0cc45a4 03-Jul-2011 Chia-chi Yeh <chiachi@android.com> VPN: remove the old VpnService.

Now VPN is (kind of) integrated into ConnectivityService.

Change-Id: If98e456e779f8e97f562d99c57d909b1f5d9db55
om/android/server/ConnectivityService.java
c50bff85281fa9661310465e88fd62890ccc9240 30-Jun-2011 Mike Lockwood <lockwood@android.com> UsbService: USB connected notification now redirects to USB screen in Settings

Change-Id: I2dc6d1294da53acfa7589ba5b693ec671695cd21
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/usb/UsbDeviceManager.java
0c6bb2737e231c365656befe1d4ce44557de939a 03-Jul-2011 Chia-chi Yeh <chiachi@android.com> Merge "VPN: export legacy VPN in IConnectivityManager."
77fd485c2ff780d1e6ef0ba1e3e811370ecbc528 03-Jul-2011 Chia-chi Yeh <chiachi@android.com> VPN: export legacy VPN in IConnectivityManager.

Change-Id: I016fe056ceab39ffc36aa235d14b30a9f094a2e1
om/android/server/ConnectivityService.java
8bc003e2f6668c5b6b855593a3a5e3828750fe9a 03-Jul-2011 Chia-chi Yeh <chiachi@android.com> Merge "VPN: merge JNI methods."
3281034c1c458b4eecd867d20b64dc5edd68ec14 03-Jul-2011 Chia-chi Yeh <chiachi@android.com> VPN: merge JNI methods.

Legacy VPN needs to change routes by itself.

Change-Id: I4cf6639f2b00225810f49704ae05797fc70921d9
om/android/server/connectivity/Vpn.java
d6315c0ebb6ebbc67f0c669e92f92be70b49ba2c 02-Jul-2011 Chia-chi Yeh <chiachi@android.com> Merge "VPN: give legacy VPN a fake package name."
e9107901ae264de4ff5603d3cfc63a03ca4117d4 02-Jul-2011 Chia-chi Yeh <chiachi@android.com> VPN: give legacy VPN a fake package name.

And add more comments.

Change-Id: I0cbc495fcb2c8dd105e16a841619b3b9bd227eae
om/android/server/connectivity/Vpn.java
b4c5fbff77af4110d846c0ddf4d4d57c30d20972 02-Jul-2011 Jeff Brown <jeffbrown@google.com> Merge "Drop obsolete touch screen hacks."
a4d1bc517207d7ca8d56f0004cd04f0f1dd4567d 02-Jul-2011 Jeff Brown <jeffbrown@google.com> Drop obsolete touch screen hacks.

Change-Id: I47354c37ee2cc2b36340eb709bb5043b3ba78ed9
om/android/server/wm/InputManager.java
f58e09e5ac81cbc2d526bc163a633e2d51f1ff73 02-Jul-2011 Dianne Hackborn <hackbod@google.com> Merge "Don't crash when the load average service is started."
2ed9946441a2913fb7aa8ca1fa24262205da9f23 02-Jul-2011 Dianne Hackborn <hackbod@google.com> Don't crash when the load average service is started.

Change-Id: Ie40f549d50942793c940f8728ce9c392c25f4c60
om/android/server/LoadAverageService.java
63acea6ad4a9316e1450dea47840f45df4aaed25 02-Jul-2011 Dianne Hackborn <hackbod@google.com> Merge "When removing a task, also kill its processes."
8894cc5ed4bacb72ef8158459fe7760903d135b8 02-Jul-2011 Dianne Hackborn <hackbod@google.com> When removing a task, also kill its processes.

Change-Id: I5945fef21ad6f028e71e36d3cb55d35e0b6401a6
om/android/server/am/ActivityManagerService.java
f91040e2df1a52dc41fd62a82afc0b214abc1c8d 01-Jul-2011 Brian Carlstrom <bdc@google.com> Merge "Revert "Add keychain user with special keystore access permissions""
de296f64483713fdf164f3e8bf41dc12d1cff59e 01-Jul-2011 Mike Lockwood <lockwood@android.com> UsbDeviceManager: Reset sys.usb.config if it is "none" at boot

This will allow us to recover if we crash while changing USB configurations

Change-Id: I22ba9a1ff0a8bcbfd4a0f18af0c95a3b66b99060
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/usb/UsbDeviceManager.java
fdc0c2984d05e32954608f46514c4cbe3a5a9424 01-Jul-2011 Mike Lockwood <lockwood@android.com> UsbService: Use Slog instead of Log, and disable some logging

Change-Id: I094ab99919055848a9fa76363eae6d0df51de9fd
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/usb/UsbDeviceManager.java
om/android/server/usb/UsbHostManager.java
om/android/server/usb/UsbSettingsManager.java
d8404d2fdd7036435748548a6791063fb6d6c909 23-Jun-2011 Mike Lockwood <lockwood@android.com> USB: Update strings for USB connected notifications

We now have different strings depending on the current USB mode.

Change-Id: Icc6392d5700a6fee008b75287d8eb0f06db1d880
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/usb/UsbDeviceManager.java
38bb0123b8b9857c3119fd359739daf872f619d6 01-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> Merge "Added methods to support dns cache per interface"
41d1685a22ba8038517d6fdb57006023e03f12e1 01-Jul-2011 Chia-chi Yeh <chiachi@android.com> VPN: integrate legacy VPN.

Change-Id: I00e77664354c05e0edfcd5fb2e3da2ca434ed521
om/android/server/connectivity/Vpn.java
8909b10175303bd5e2ca82b7ba12cd0017050ef3 01-Jul-2011 Chia-chi Yeh <chiachi@android.com> VPN: Use List<String> instead for dnsServers and searchDomains.

Change-Id: I5d72c182ad47f59121a04b68ec6c2d164e2d00a8
om/android/server/ConnectivityService.java
om/android/server/connectivity/Vpn.java
1f7746b39b94be1149228751e45a40ea39603611 01-Jul-2011 Chia-chi Yeh <chiachi@android.com> VPN: rename service(s) to daemon(s) to reduce confusion.

Change-Id: I9739e63c8e41e8b63d024dc4f17283c76bb4ff97
om/android/server/connectivity/Vpn.java
383e0524726d64302322abeba16d87faf66bae99 01-Jul-2011 Chia-chi Yeh <chiachi@android.com> VPN: fix the build.

Change-Id: Ibeaa067cf95636e09746d16f402c78c99d7cb681
om/android/server/connectivity/Vpn.java
2e46061cd2ff93e04461fdae4198c1d40d660e08 01-Jul-2011 Chia-chi Yeh <chiachi@android.com> Merge "VPN: refactor a little bit for the upcoming integration of legacy VPN."
a4b87b5e980ffa52e9bc5549688b588b1b99a1eb 01-Jul-2011 Chia-chi Yeh <chiachi@android.com> VPN: refactor a little bit for the upcoming integration of legacy VPN.

Change-Id: I0fe0dffe59d8d9c9a0fdd05e07b07aa6c8da0a80
om/android/server/connectivity/Vpn.java
072d39e079aad0a92c9f9ada91968e955f2c3bd1 01-Jul-2011 Jeff Sharkey <jsharkey@android.com> Merge "Migrate bandwidth control to NMS, omit history."
f4b92ec567477fcdea24fdd18116b045dfcf9852 01-Jul-2011 Brian Carlstrom <bdc@google.com> Revert "Add keychain user with special keystore access permissions"

This reverts commit 8c2a1a90a81f04573bfa578eab32f5fd4a30eafb.

Conflicts:

cmds/keystore/keystore.c

Bug:4970237
Change-Id: I626023d695becfada47e5f319b18e0889b766563
om/android/server/pm/PackageManagerService.java
350083e36b9db6062e165954403ef921ff3dfdad 29-Jun-2011 Jeff Sharkey <jsharkey@android.com> Migrate bandwidth control to NMS, omit history.

Both stats and policy make NMS calls that depend on bandwidth control
being enabled, so move enable/disable into NMS and drop calls when
disabled. This avoids throwing heavy ISE exceptions when disabled.

Only include recent data when writing NetworkStatsHistory as part of
dumpsys call. Introduce manual poll event for Settings UI.

Bug: 4982115, 4770435, 4515856
Change-Id: I257820b057af2f0f99c736fb4f61e55b9fdc3e66
om/android/server/NetworkManagementService.java
om/android/server/SystemServer.java
om/android/server/net/NetworkPolicyManagerService.java
om/android/server/net/NetworkStatsService.java
e6b3af24c4a0119f05c12a284dd1cc9c2c023766 30-Jun-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #4902856: Don't let apps register non-explicit PendingIntents"
7d1279b30911ed1e5d8f7e195176fd98ee64454d 30-Jun-2011 Chia-chi Yeh <chiachi@android.com> Merge "VPN: refactor few JNI methods for the usage of legacy VPN."
f4e3bf892e593d8c74290739446ac205fe8c66b2 30-Jun-2011 Chia-chi Yeh <chiachi@android.com> VPN: refactor few JNI methods for the usage of legacy VPN.

Now default routes are handled in JNI instead of VpnBuilder.

Change-Id: Ib026bba6793b64aae0f8356df3d2aaae489d08b4
om/android/server/connectivity/Vpn.java
6c418d585e0a91054b168fde3130188afd006c98 29-Jun-2011 Dianne Hackborn <hackbod@google.com> Fix issue #4902856: Don't let apps register non-explicit PendingIntents

Location manager now checks for such intents, and logs a warning when
they are given to it. Nothing thrown yet, it needs to check the
targetSdkVersion of the caller somehow.

When sending the pending intent, we require that the recipient hold the
appropriate permission. This should pretty much close the security hole.

Includes a bunch of infrastructure in the activity manager needed to
support all this.

Change-Id: I4dba7a98a7b8bbb9e347666451aa9cb1efad1848
om/android/server/IntentResolver.java
om/android/server/LocationManagerService.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityStack.java
om/android/server/am/BroadcastFilter.java
om/android/server/am/PendingIntentRecord.java
c9d394601801aadfd5d6afbaff1ce4b4eb773aef 30-Jun-2011 Irfan Sheriff <isheriff@google.com> Merge "DnsPinger changes incl. binding"
b3f19ca36c8c1301893c621d8f2150e06210722c 30-Jun-2011 Jeff Sharkey <jsharkey@android.com> Enforce background data flag, rules through netd.

Connect up netd penalty box through NMS, and enforce the existing
background data flag by putting all UIDs in penalty box. Allow
platform applications to have policy applied. Only dispatch unique
rules to netd, avoiding any repeats.

Bug: 4598463, 4965677
Change-Id: Ibf9beff998ba7a1ea92f5e2f7eeba7b483d4b918
om/android/server/NetworkManagementService.java
om/android/server/net/NetworkPolicyManagerService.java
3ee9d05d971cbf0c720057aec54ffac289af40fe 28-Jun-2011 Isaac Levy <ilevy@google.com> DnsPinger changes incl. binding

- Now attempting to bind the socket
- Now pinging google.com rather than android.com

Change-Id: I7fb6522ef66068a6e2faca43d3af12c9f1d0585b
om/android/server/DnsPinger.java
5231b0af515db51c722d4764ecf9412c145c93b6 30-Jun-2011 Chia-chi Yeh <chiachi@android.com> Merge "VPN: add a method to handle requests of legacy VPNs."
85a7ce02c8b53e1efaa5a3a32f0a5ec7b549f758 30-Jun-2011 Chia-chi Yeh <chiachi@android.com> VPN: add a method to handle requests of legacy VPNs.

The code is working but not complete yet.

Change-Id: Id8c8f137665373ad52c626b9d34e5a2cad028597
om/android/server/connectivity/Vpn.java
2c22882181e867c9ba4e74ee973b87a71db3389f 29-Jun-2011 Dianne Hackborn <hackbod@google.com> Merge "Plumb information from the framework about asec container size."
0ccdc9247d6cb47cdef74224be476236491d33d7 29-Jun-2011 Mike Lockwood <lockwood@android.com> Merge "GPS: Support for on-demand NTP time injection"
9b9fb5cc08eaa0b66a80eba2f03168531544f65a 29-Jun-2011 Mike Lockwood <lockwood@android.com> GPS: Support for on-demand NTP time injection

Change-Id: I83db0249c13598070ed70b9f90207305b60b468f
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/location/GpsLocationProvider.java
afb60c36b7879c4ed195fb19cc4334175be28c92 29-Jun-2011 Jeff Sharkey <jsharkey@android.com> Merge "Push interface quota rules from NetworkPolicyManager to kernel."
50fd36d7c38c40b087c8f3e3172478abe0c051d9 16-Jun-2011 Ashish Sharma <ashishsharma@google.com> Push interface quota rules from NetworkPolicyManager to kernel.

Change-Id: Id2b758f561820b44839f69bf5fbd676cae771fe3
om/android/server/NetworkManagementService.java
om/android/server/SystemServer.java
om/android/server/net/NetworkPolicyManagerService.java
cbd9752e53f960f518dccb806e336bf961f34d8e 29-Jun-2011 satok <satok@google.com> Merge "Fix setAdditionalSubtypes"
4a28bde70e23b2ed151d52690da702da7f23cf5e 29-Jun-2011 satok <satok@google.com> Fix setAdditionalSubtypes

Change-Id: I01685c5fedf3b0c35a0dd7cb84ec3147ad32529a
om/android/server/InputMethodManagerService.java
f3cb9ed2657fd9ca93ac336a42ef26eee7f080d2 29-Jun-2011 satok <satok@google.com> Merge "Show aux ime in the selection dialog if a keyboard is shown."
7dca6cd82d0ca7110c09fe66c8eb4205b05e2688 29-Jun-2011 satok <satok@google.com> Show aux ime in the selection dialog if a keyboard is shown.

Bug: 4968819

Change-Id: If4ac4549f179637fe3ecd313edcb44d5eb89349f
om/android/server/InputMethodManagerService.java
b0b713f25b5cf6bf4b855cbcef3ce42cb030ab8e 29-Jun-2011 Jesse Wilson <jessewilson@google.com> Merge "Move socket tagging from libcore."
8568db534118fc14cc28100306d51626464ff319 29-Jun-2011 Jesse Wilson <jessewilson@google.com> Move socket tagging from libcore.

Change-Id: I7515896936c5bbd212c88e2801b831914219a925
om/android/server/NetworkManagementService.java
f1bfa84ccf61cad2b6ea9f2e6a612a54a38b79bc 29-Jun-2011 Irfan Sheriff <isheriff@google.com> Merge "Ping through default dns & ping settings changes"
4414cea13908b8230640f84ef39603d68ff9c377 25-Jun-2011 Jeff Sharkey <jsharkey@android.com> Better network stats parsing, integer tags, async.

Change NMS parsing to handle extended /proc/ stats formats by pairing
values with header keys. Move TrafficStats to integer tags to match
kernel internals, and offer well-known tags for system services.

Async policy event dispatch from NPMS, and update tests to block for
event dispatch. Narrow app policy to exclude apps signed with system
key, which are usually critical.

Bug: 4948913, 4903489, 4585280

Change-Id: Idb357227ccaa617906411f309371cea18d7bc519
om/android/server/NetworkManagementService.java
om/android/server/net/NetworkPolicyManagerService.java
om/android/server/net/NetworkStatsService.java
3541ce04ddb1b559ac9e79b5067c93b910f22955 29-Jun-2011 Isaac Levy <ilevy@google.com> Ping through default dns & ping settings changes

Changed DnsPinger to use the system default DNS if linkprops doesn't
have a dns. This mirrors the behavior of the system overall.

Minor changes to wifiWatchdogService settings.

Change-Id: I8de73cf5bd24bc69343c7d9dc999d198195ec0ec
om/android/server/DnsPinger.java
om/android/server/WifiWatchdogService.java
292f8bc9d1b790ab975a87a842c7fabc908b97e0 28-Jun-2011 Dianne Hackborn <hackbod@google.com> Plumb information from the framework about asec container size.

Change-Id: Ie0ec3cb6d463aefa341a8cbea80be790451ba5e3
om/android/server/MountService.java
om/android/server/pm/Installer.java
om/android/server/pm/PackageManagerService.java
61b9fae046bd766dc951262f728a12784e5ec6ff 28-Jun-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix battery history management."
ae3844527a305cef8bbd1c895b79be45a6c51dbc 28-Jun-2011 Dianne Hackborn <hackbod@google.com> Fix battery history management.

When rebooting the history time offset was not being handled
correctly, causing garbage data.

Change-Id: Ieca5a72c4c7c374bfe7f8673eed87354af148ef0
om/android/server/am/BatteryStatsService.java
7654b20e6c517ad7aab04b5361b4821e54424f7f 28-Jun-2011 satok <satok@google.com> Merge "Fix the visibility of ongoing IME switcher"
b6359414adabab2d64acc8ccc9e3b9c1b800b303 28-Jun-2011 satok <satok@google.com> Fix the visibility of ongoing IME switcher

Change-Id: Ifbfda4b0a54b9fc6ff36a14d5e493d9272dfed0f
om/android/server/InputMethodManagerService.java
b96a41136a9afd8e719c19488094f641f9673362 28-Jun-2011 Svetoslav Ganov <svetoslavganov@google.com> Fatal system crash due to NullPointerException

1. Due to thread interleaving it was possible that
two messages are sent for requesting dispatch of
the same accessibility event and since the first
one sends the event and removes it from the pending
list the second message pulls null during the event
lookup. Look at the patch's comments for a detailed
scenario and rationale of the fix.

bug:4886129

Change-Id: If8b272ceaec7709c659ae502c3a730e63c939172
om/android/server/accessibility/AccessibilityManagerService.java
82155cfc88c9396de9159659cf246caeb08b5f43 28-Jun-2011 JP Abgrall <jpa@google.com> Merge "NetworkStatsService: disabled by default"
d94585279f0903259c4434aabe0dbdd141b6dbab 28-Jun-2011 JP Abgrall <jpa@google.com> NetworkStatsService: disabled by default

For now, there is still too much breakage around the kernel's new
qtaguid netfilter.
So no netstats up front.

But enable on the device until wiped:

./vendor/google/tools/override-gservices secure:netstats_enabled=1
adb reboot


Bug: 4903513

Change-Id: I230bd2d4efab85cac5c9abaa7d638c94f5e0c7d6
Signed-off-by: JP Abgrall <jpa@google.com>
om/android/server/net/NetworkStatsService.java
ed0afe71f7002e050eb7da62da8104c02ce05dcc 28-Jun-2011 Irfan Sheriff <isheriff@google.com> Merge "Fixing null pointer b/4962091"
aa6bd940f07f4552eb8f43869194616660877fd4 28-Jun-2011 Jake Hamby <jhamby@google.com> Don't enable Bluetooth when booting into airplane mode.

When airplane mode is enabled and the phone is rebooted, Bluetooth
should not turn on. Previously the airplane mode setting was ignored
and only the Bluetooth enabled setting was used to determine whether
to enable Bluetooth at boot time. Now, both settings are checked.

Bug: 3404790
Change-Id: I5e3095a94e50825dd469addebef97a7c85041fca
om/android/server/SystemServer.java
b1ef292b3d0c2b4b4c77bb7b442df8e73d1fbb5e 27-Jun-2011 Isaac Levy <ilevy@google.com> Fixing null pointer b/4962091

Fixing watchdog service bug, adding some extra dump logs.

Change-Id: I03d94a46fade6974f21931803f87fdd065750612
om/android/server/DnsPinger.java
om/android/server/WifiWatchdogService.java
bf731e7f905b0de85887d076867a499af640b5d1 27-Jun-2011 Wink Saville <wink@google.com> am 7eff4bb3: am f49e4d3f: Merge "Temporary re-enabling iface name change handling on HO" into honeycomb-LTE

* commit '7eff4bb3f9c0cf0335dd1b2769bcb352b137dbaa':
Temporary re-enabling iface name change handling on HO
04b9cafb321af43e3844c640e38860ca60a3a36d 27-Jun-2011 Mike J. Chen <mjchen@google.com> Merge changes I0077e5e5,I42cbed69

* changes:
Hookup interface status to other clients
Revert "Revert "Propagate new link-status-change message to any NetworkManagementService""
cf15bb6197c02f5a6893344ba551b96732bcc559 27-Jun-2011 Svetoslav Ganov <svetoslavganov@google.com> Merge "ArrayIndexOutOfBounds exception in TouchExplorer."
51cccf0845b36539d42503495f0689d487712b3a 27-Jun-2011 Svetoslav Ganov <svetoslavganov@google.com> ArrayIndexOutOfBounds exception in TouchExplorer.

1. The explorer was injecting up/down touch events to
click with the id of the last pointer that went up
but the prototype i.e. last touch explore event may
not contain this pointer. Since we click on the last
touch explored location then using the action pointer
index of that event is the right approach.

bug:4551506

Change-Id: I73428b09dc014417096a52e667f58768a2871dc8
om/android/server/accessibility/TouchExplorer.java
a0156177cdc809795dd8bc5a19943dd2b6f82b66 27-Jun-2011 Svetoslav Ganov <svetoslavganov@google.com> Added scroll and text selection change accessibility events.

1. Added scrolling accessibility event to provicde feedback
when a view is scrolled.

Note: We need scroll events for ICS since even though we have
touch exploration the user does not know when something
is scrollable and not feedback is provided while scrolling.

bug:4902097

2. Added a text selection change event to provide feedback
for selection changes including cursor movement.

Note: We need the text selection change events for ICS since
even though the IME supports navigation in text fields
the user receives no feedback for the current selection/
cursor position.

bug:4586186

3. Added a scrollable property to both AccessibilityEvent and
AccessibilityNodeInfo. The info has to describe the source
in terms of all properties that make sense for accessibility
purposes and the event has this property (kinda duplicated)
since clients will aways want to know if the source is
scrollable to provided clue to the user and we want to avoid
pulling the info of the source for every accessibility event.

Change-Id: I232d6825da78e6a12d52125f51320217e6fadb11
om/android/server/accessibility/AccessibilityManagerService.java
dde052f4ba57d74af25a513853bacc035368240e 25-Jun-2011 Irfan Sheriff <isheriff@google.com> Merge "WifiWatchdogService - disable bad connections"
86994c1fc16f87658c2fd88537a7374777ecc67d 25-Jun-2011 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of 40717996 to master

Change-Id: Ie5c0f1f20c313d6c568b3b06f778f75223914ada
bc7dfb58bffea133ccf6d94470a26f8d193f4890 07-Jun-2011 Isaac Levy <ilevy@google.com> WifiWatchdogService - disable bad connections

Complete rewrite of WifiWatchdogService.java. Checking for connectivity and managing wifi upon failure detection.

Change-Id: Ifcb8b5d7e0112cbc2f2282d76fdc93ea15527a44
om/android/server/ConnectivityService.java
om/android/server/DnsPinger.java
om/android/server/WifiService.java
om/android/server/WifiWatchdogService.java
f59c7d0f2ac8d489b6d8118543a57ea4a603eacf 24-Jun-2011 Mike J. Chen <mjchen@google.com> Hookup interface status to other clients

After unreverting the linkstate change patch, hook up notification handlers
that didn't exist when the first patch was created, like
EthernetDataTracker.java and Vpn.java.

For the observers that handle interfaceStatusChanged(), I made
interfaceLinkStatusChanged() call it so they both do the same thing.

Change-Id: I0077e5e5f48f3932ba98f5bf363243892f2de6cc
Signed-off-by: Mike J. Chen <mjchen@google.com>
om/android/server/NetworkManagementService.java
om/android/server/ThrottleService.java
om/android/server/connectivity/Tethering.java
om/android/server/connectivity/Vpn.java
06ca9b90e664235d79304a4611529c09256d060e 24-Jun-2011 Dianne Hackborn <hackbod@google.com> am fa5e3b65: am 2dafe771: Merge "DO NOT MERGE. Fix density compat mode." into honeycomb-mr2

* commit 'fa5e3b658f3f42eabec82c9f8e44d8a4cc565249':
DO NOT MERGE. Fix density compat mode.
fa5e3b658f3f42eabec82c9f8e44d8a4cc565249 24-Jun-2011 Dianne Hackborn <hackbod@google.com> am 2dafe771: Merge "DO NOT MERGE. Fix density compat mode." into honeycomb-mr2

* commit '2dafe771bb7ad4b15db6b740fd3ccb8f0fae836d':
DO NOT MERGE. Fix density compat mode.
6143f5f7392fb0d3e5702a46a2415bd0ecb6efb4 24-Jun-2011 Mike J. Chen <mjchen@google.com> Revert "Revert "Propagate new link-status-change message to any NetworkManagementService""

This reverts commit 1a7e67190228a8ff3b92e7e5496a8db8ff306cca.

Bring back the changes from Stan Chesnutt regarding link-status-change
notifications. The comment from the original patch was:

Propagate new link-status-change message to any NetworkManagementService
observers. Also fix the syntax of the "interface-status-change" message. Add
a null handler in the ThrottleService and Tethering classes (plus fix names).

Change-Id: I42cbed692024de32275cad234f42ff23ab7e9d8d
Signed-off-by: Mike J. Chen <mjchen@google.com>
om/android/server/NetworkManagementService.java
om/android/server/ThrottleService.java
om/android/server/connectivity/Tethering.java
7eff4bb3f9c0cf0335dd1b2769bcb352b137dbaa 24-Jun-2011 Wink Saville <wink@google.com> am f49e4d3f: Merge "Temporary re-enabling iface name change handling on HO" into honeycomb-LTE

* commit 'f49e4d3f182071081537dba3387db20cae27c427':
Temporary re-enabling iface name change handling on HO
40e44467e2a32e77f6d874281a1c8185794850ff 24-Jun-2011 JP Abgrall <jpa@google.com> Merge "NetworkStatsService: check kernel bandwidth support before enabling"
1ccb10e25d5af8ef1d997b0ed2291dbbcaacf44e 23-Jun-2011 Kazuhiro Ondo <kazuhiro.ondo@motorola.com> Temporary re-enabling iface name change handling on HO

Temporary accept interface name change in ConnectivityService.
See bug/4455071.

Bug: 4903011
Change-Id: I7f06c2ca83535b981f047cb671e08550aed7df1a
om/android/server/ConnectivityService.java
om/android/server/connectivity/Tethering.java
b851cc23c80761f19ebd2839a35be49be30d9b14 23-Jun-2011 JP Abgrall <jpa@google.com> NetworkStatsService: check kernel bandwidth support before enabling

And catch the actual errors reported by the other side of NetworkManager.


Change-Id: I9a9393b659d6f896ee1bf40a8deaca7853ef8f94
Signed-off-by: JP Abgrall <jpa@google.com>
om/android/server/net/NetworkStatsService.java
83e0bc18e03868295f8358d875f2b67cb78f16a8 23-Jun-2011 Dianne Hackborn <hackbod@google.com> DO NOT MERGE. Fix density compat mode.

Fix issue #4770360: older app compatibility mode is really tiny on ICS phones

We were applying the density compat mode scaling multiple times to
display metrics, causing bad values.

Change-Id: Iafafd9a5e94b9d774cd2715bf968e91602a1bd82
om/android/server/wm/WindowManagerService.java
58b868417755805ebdfe4feb65664ad98c00bf35 23-Jun-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #4770360: older app compatibility mode is really tiny on ICS phones"
3187632e0acd426b8be9576e149bdfd427956c25 23-Jun-2011 Adam Powell <adamp@google.com> Fix bug 4904520 - Swap force close/report buttons

Make the force close dialogs consistent with both the new rules for
wizardy-button bar UI flows and the previous arrangement that people
are used to. Force close = negative/back/cancel, Report =
positive/next/ok.

Change-Id: I212ba172f8076238a1833100b025b6e25a538a65
om/android/server/am/AppErrorDialog.java
om/android/server/am/AppNotRespondingDialog.java
2b31d53161789358de57fd396716a6503855c5da 23-Jun-2011 Dianne Hackborn <hackbod@google.com> Fix issue #4770360: older app compatibility mode is really tiny on ICS phones

We were applying the density compat mode scaling multiple times to
display metrics, causing bad values.

Change-Id: Iafafd9a5e94b9d774cd2715bf968e91602a1bd82
om/android/server/wm/WindowManagerService.java
0e0a7597343b4f030be17788006006c93c85759c 23-Jun-2011 Robert Greenwalt <rgreenwalt@google.com> am 1d6ffd73: Merge "Restrict access to protected networks." into honeycomb-LTE

* commit '1d6ffd7339c3dfa53de19e27ca09e57233cc25ef':
Restrict access to protected networks.
ea5f51909be34bdaec9d17320aaf25ffa56e76e9 23-Jun-2011 Jeff Sharkey <jsharkey@android.com> Merge "Enable bandwidth module from stats service."
0a9ee1272b59ad350cea591f931b52290a5e0998 23-Jun-2011 Jeff Sharkey <jsharkey@android.com> Enable bandwidth module from stats service.

During systemReady(), tell netd to enable bandwidth tracking module,
which is used to provide detailed stats and controls.

Change-Id: Iecfd8b17a3b90f5a817d731fbe1c71777681ed6e
om/android/server/NetworkManagementService.java
om/android/server/net/NetworkStatsService.java
1c5d9dec7b161e8e0f508bddf4ef08012cd0b5b4 23-Jun-2011 Conley Owens <cco3@android.com> am 587e9563: am c1b62e3b: am bf5adfa5: Merge "Check if we are in daylight time when calculating timezone"

* commit '587e9563d61beaaa67090eddd99b737847561eb9':
Check if we are in daylight time when calculating timezone
50393202f3ae0ab9114075ecc5b4c92faaf96251 22-Jun-2011 Robert Greenwalt <rgreenwalt@google.com> Restrict access to protected networks.

Some networks should only be brought up and controlled by system apps.

bug: 4585677
Change-Id: I61b1ee3dcfca0ee54387cecffe5198a0b010d98b
om/android/server/ConnectivityService.java
7af34ab8366b2fcddfea1ddc90a89746aaaab856 22-Jun-2011 Robert Greenwalt <rgreenwalt@google.com> Merge "resolved conflicts for merge of 7a652bc8 to master"
bd67cddd0d7b1f6e971228eeb883291875ba721f 22-Jun-2011 Dianne Hackborn <hackbod@google.com> Merge "Don't report a resize unless the window's surface actually changed."
5ff886e5319c519a6b644a999680ea651e208981 22-Jun-2011 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of 7a652bc8 to master

Change-Id: Id0a41cae36f5a3b30f2fe8a202c934153b9cd03f
181735a8d5db7f0ce53b00f6de2ee006a3f24e20 22-Jun-2011 Mike Lockwood <lockwood@android.com> Merge changes I9851299e,I4160e73a

* changes:
Combine UsbManager.setPrimaryFunction and setDefaultFunction
Fix window leak in UsbPreferenceActivity
f59717ddb5ef324ee3fdb12b83e7d1b709793d28 22-Jun-2011 Mike Lockwood <lockwood@android.com> Combine UsbManager.setPrimaryFunction and setDefaultFunction

Due to the property trigger on persist.sys.usb.config,
setting the default function also sets the current function.
Now we combine both of these methods into setCurrentFunction, which has
a "makeDefault" option to make the new function the default.

This change should eliminate some problems with setting properties due to
multiple property triggers happening at the same time.

Change-Id: I9851299e9c2ee20475eada1a8104c0d50bf5a9e1
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/connectivity/Tethering.java
om/android/server/usb/UsbDeviceManager.java
om/android/server/usb/UsbService.java
b961cd2c80abf1d2834e5ad690904da4fe56d755 21-Jun-2011 Dianne Hackborn <hackbod@google.com> Don't report a resize unless the window's surface actually changed.

Change-Id: I133cf8e417753dba60d23a3bfc1c84ace983b335
om/android/server/am/ActivityStack.java
om/android/server/wm/InputMonitor.java
om/android/server/wm/Session.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
5df21a184366a5d2e6b0ed7badce5d3019df21ae 22-Jun-2011 Svetoslav Ganov <svetoslavganov@google.com> Merge "Minor tweak I forgot in the presious change."
1ecc1e098a531f57707218b0b38a73f6fa2759d8 22-Jun-2011 Svetoslav Ganov <svetoslavganov@google.com> Minor tweak I forgot in the presious change.

Change-Id: I17854e3c824bea5b6c0ffeea45f986f0b5297054
om/android/server/accessibility/AccessibilityManagerService.java
b5d578fbdb425df2bbd906bb624a5c92040fbd7b 22-Jun-2011 Svetoslav Ganov <svetoslavganov@google.com> Merge "AccessibilityNodeInfo bounds inconsistent with compatibility mode."
8969d9924c662ab4cdacc342bbdc33756db730be 22-Jun-2011 satok <satok@google.com> Revert "Create TextServiceManager and SpellCheckerService"

This reverts commit eaddb894865a804279659b4aad6364a34ab50beb.
om/android/server/SystemServer.java
om/android/server/TextServiceManagerService.java
f86ee14f6a53d409489261415901c6397877ce3d 22-Jun-2011 satok <satok@google.com> Merge "Create TextServiceManager and SpellCheckerService"
c6080b3cc5dc8b3d5911399aec8df8895eeec07b 22-Jun-2011 satok <satok@google.com> Merge "Add an ongoing notification to switch IME"
7cfc0ed21a3fafabafb40b38a8589808ad1517af 20-Jun-2011 satok <satok@google.com> Add an ongoing notification to switch IME

Bug: 4671417
Change-Id: I2b9e955003c1f6703978824c947d5f322a039714
om/android/server/InputMethodManagerService.java
7961be75f4161769f620e44dec3f5911e50ebe03 21-Jun-2011 Svetoslav Ganov <svetoslavganov@google.com> AccessibilityNodeInfo bounds inconsistent with compatibility mode.

1. In compatibility mode a window wide scaling is applied to stretch
the content. However, AccessibilityNodeInfos retrieved from that
window contain bounds in application's view of the world and need
to be scaled to properly relect what a sighted user sees.

Change-Id: Iebbb99526fc327f45b5cede89ba8c32e6ebd8845
om/android/server/accessibility/AccessibilityManagerService.java
om/android/server/wm/WindowManagerService.java
463e433f090ed1ed57b8d7d9349f24d72cbc1044 21-Jun-2011 Mike Lockwood <lockwood@android.com> Merge "Tethering: Use UsbManager to enable/disable RNDIS"
587e9563d61beaaa67090eddd99b737847561eb9 20-Jun-2011 Conley Owens <cco3@android.com> am c1b62e3b: am bf5adfa5: Merge "Check if we are in daylight time when calculating timezone"

* commit 'c1b62e3ba91d69dd75569b480aec55be8f808331':
Check if we are in daylight time when calculating timezone
c1b62e3ba91d69dd75569b480aec55be8f808331 20-Jun-2011 Conley Owens <cco3@android.com> am bf5adfa5: Merge "Check if we are in daylight time when calculating timezone"

* commit 'bf5adfa5e558827fbb4771720433887bb3cbaefd':
Check if we are in daylight time when calculating timezone
7a652bc86a5c7a2b201a48d5c1cfcc9af5d6624f 20-Jun-2011 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of b427f0e6 to honeycomb-plus-aosp

Change-Id: I8e287fd814b4a3ca72014ea060a1de043d1b4713
ccf83af1017b7b1eaf12f6ec3d2cb2137a7cdda9 03-Jun-2011 Robert Greenwalt <rgreenwalt@google.com> Fix tethering upstream determination.

Used to use iface names, but on mobile ifaces are multipurpose.
Refined to use ConnectivityService types.
bug:4530116

Change-Id: Iaa632d5f540d27ffff683bd7d94f8004bf422e71
om/android/server/ConnectivityService.java
om/android/server/connectivity/Tethering.java
bf5adfa5e558827fbb4771720433887bb3cbaefd 20-Jun-2011 Conley Owens <cco3@android.com> Merge "Check if we are in daylight time when calculating timezone"
eaddb894865a804279659b4aad6364a34ab50beb 01-Jun-2011 satok <satok@google.com> Create TextServiceManager and SpellCheckerService

Bug: 4176026

Spec of TextServiceManager
- Chooses the most applicable TextService(e.g. SpellCheckerService, WordBreakIteratorService..)
for each locale

Spec of SpellCheckerService
- Returns whether the given string is a correct word or not
- Returns Suggestions for the given string

Change-Id: Ia25e7b4f308778891929e31b8cbd741f6848cce4
om/android/server/SystemServer.java
om/android/server/TextServiceManagerService.java
79b1046f4eec356ac3191bf7c96e0209e46f4297 20-Jun-2011 Jeff Sharkey <jsharkey@android.com> Merge "Teach NetworkIdentity about roaming."
5dc0c26cffbbc62ff84f9f4c8a451e68e2c05d2d 20-Jun-2011 Jeff Sharkey <jsharkey@android.com> Teach NetworkIdentity about roaming.

And correctly upgrade NetworkIdentitySet written to disk, assuming
that old values aren't roaming.

Bug: 4724762
Change-Id: Ic25897ebbaf43be2390174d8e5fd08386bc8a345
om/android/server/net/NetworkIdentitySet.java
om/android/server/net/NetworkPolicyManagerService.java
7553ecbe5be1dc6c5c577d568bc1ff4f198beb33 20-Jun-2011 Jeff Sharkey <jsharkey@android.com> Merge "Persist "tagged" network stats along with UIDs."
d03fd3f004e3ba8aaa1692ee0e92e8ae171d2a04 20-Jun-2011 Jeff Sharkey <jsharkey@android.com> Persist "tagged" network stats along with UIDs.

Now stores tags other than TAG_NONE (0x0), which are useful for app
debugging. Combine UID and tag together into single long key, and
expose tag data through AIDL when requested. Change NMS to track
TAG_NONE as total UID traffic, matching the kernel definition.

Added TAG_MAX_HISTORY to control how long tag-granularity statistics
are stored; overall UID usage is still kept for UID_MAX_HISTORY. Fix
bug to trim NetworkStatsHistory outside normal polling loops to catch
non-active networks and UIDs.

Test to verify UID and tag packing, and to verify that UID traffic on
two networks are combined to match MOBILE_ALL template.

Change-Id: If0e039416d9e7f63b1a39e04cddfb1133b5a78ee
om/android/server/NetworkManagementService.java
om/android/server/net/NetworkStatsService.java
3c2a2f6789ee257e3838ffb0f3f117e08825ad5f 09-Jun-2011 Mike Lockwood <lockwood@android.com> Tethering: Use UsbManager to enable/disable RNDIS

Remove obsolete RNDIS support from NetworkManagementService

This change fixes USB tethering, which broke after the new USB gadget driver
changes went in.

Change-Id: Idd987fb2c39c40e81ebc92e6d8dae9fe77ed4ddc
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/NetworkManagementService.java
om/android/server/connectivity/Tethering.java
75a0e9c0f076093368ca50ac7e905a48af919f8b 19-Jun-2011 Jeff Sharkey <jsharkey@android.com> Merge "Handle removed UIDs in network stats and policy."
b09540f33a6cabe50edec0ef32d0b1d0b0d96fff 19-Jun-2011 Jeff Sharkey <jsharkey@android.com> Handle removed UIDs in network stats and policy.

When UID_REMOVED, clean up any existing UID network policy so it
doesn't linger for future apps. Also move any NetworkStatsHistory
to special UID_REMOVED tracking bucket.

Tests for new removal code. Also test detailed UID stats, including
network changes to verify template matching logic.

Bug: 4584212
Change-Id: I9faadf6b6f3830eb45d86c7f1980a27cdbcdb11e
om/android/server/net/NetworkPolicyManagerService.java
om/android/server/net/NetworkStatsService.java
13e7d3fa07f9f1aee3f0e8b4e118dccfe89558ee 19-Jun-2011 Jeff Sharkey <jsharkey@android.com> Merge "Read "qtaguid" network stats, refactor templates."
1b5a2a96f793211bfbd39aa29cc41031dfa23950 19-Jun-2011 Jeff Sharkey <jsharkey@android.com> Read "qtaguid" network stats, refactor templates.

Teach NMS to read qtaguid stats from kernel, but fall back to older
stats when kernel doesn't support. Add "tags" to NetworkStats entries
to support qtaguid. To work around double-reporting bug, subtract
tagged stats from TAG_NONE entry.

Flesh out stronger NetworkTemplate. All NetworkStatsService requests
now require a template, and moved matching logic into template.

Record UID stats keyed on complete NetworkIdentitySet definition,
similar to how interface stats are stored. Since previous UID stats
didn't have iface breakdown, discard during file format upgrade.

Change-Id: I0447b5e7d205d73d28e71c889c568e536e91b8e4
om/android/server/NetworkManagementService.java
om/android/server/ThrottleService.java
om/android/server/net/InterfaceIdentity.java
om/android/server/net/NetworkIdentity.java
om/android/server/net/NetworkIdentitySet.java
om/android/server/net/NetworkPolicyManagerService.java
om/android/server/net/NetworkStatsService.java
17b90780e2c06940a784aa276b834f12c7c7f286 18-Jun-2011 Mike Lockwood <lockwood@android.com> Merge "USB connected notification and temporary USB options dialog"
32b807b8ec223c5c66dfdfd1ee9a45b1e428f342 18-Jun-2011 Mike Lockwood <lockwood@android.com> Merge "MountService: Use UsbManager to monitor USB state for mass storage"
78452b4b4afbdc7d707cc4728b515131b529025d 18-Jun-2011 Mike Lockwood <lockwood@android.com> Merge "USB: Support for new USB gadget drivers"
1a81a16a967173729839d3802a5527ff074f9af9 18-Jun-2011 Jeff Sharkey <jsharkey@android.com> Merge "Notify policy listeners about metered ifaces."
fdfef57f498e3021a34342538aef9f1c7ccbae78 17-Jun-2011 Jeff Sharkey <jsharkey@android.com> Notify policy listeners about metered ifaces.

Currently, kernel definition of metered networks is applied at the
interface level. This change maintain list of those metered ifaces
and notifies policy listeners, like ConnectivityService. (This gives
us a consistent picture of when a network would be blocked.)

Bug: 4601393
Change-Id: I277d5ca96ab967a1c1c3f1da8f9587557cd6d74c
om/android/server/ConnectivityService.java
om/android/server/net/NetworkPolicyManagerService.java
5787a2d5b4e5bd60087eb7fbb13c97c7d0ba113e 17-Jun-2011 Mike Lockwood <lockwood@android.com> USB connected notification and temporary USB options dialog

This change adds a notification when USB is connected.
Selecting the notification brings up a dialog to allow switching between
MTP and PTP modes, and also allows mounting a CD image for installing AFT.
The UI design is not final - this is a temporary implementation of the UI.

Change-Id: Idd678537aba595fd4cb183ea755bf437f372d826
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/usb/UsbDeviceManager.java
ecedfdc7794048cd539e3df92b641a18a05acdf7 09-Jun-2011 Mike Lockwood <lockwood@android.com> MountService: Use UsbManager to monitor USB state for mass storage

Change-Id: I50c15c1dc8a1ee4f41cac7de8df9529ff5da1053
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/MountService.java
02e4569b5f126ca916a7473117ddd17d4f2ccbbb 14-Jun-2011 Mike Lockwood <lockwood@android.com> USB: Support for new USB gadget drivers

Change-Id: Id08df50acb873a94f4765a991ee6a6f5b898ddf5
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/SystemServer.java
om/android/server/usb/UsbDeviceManager.java
om/android/server/usb/UsbService.java
3f3337a662e9916bbf14502ef3b32dedaa7adfa4 18-Jun-2011 Chia-chi Yeh <chiachi@android.com> VPN: avoid leaking file descriptors.

Change-Id: If70f5af3529d79bddb9d72675cf6eb038ff3ff70
om/android/server/connectivity/Vpn.java
11c41fbaf16b9d56614cdea59f8e3f1e9a64ff8d 18-Jun-2011 Elliott Hughes <enh@google.com> Merge "Make debuggable="true" imply CheckJNI."
ca1e210dd6d8d46bc672cca4da827b77205f285d 17-Jun-2011 Dianne Hackborn <hackbod@google.com> Merge "Implement remaining infrastructure for user disabling apps."
0ac3031c159a0904e73eb4439cdc724d8df4a6e6 17-Jun-2011 Dianne Hackborn <hackbod@google.com> Implement remaining infrastructure for user disabling apps.

Change-Id: If8135eb0e27ec36f8f159eb7b6397add7acd0299
om/android/server/pm/PackageManagerService.java
om/android/server/pm/Settings.java
fa36aee60d353b76c14eafb63368658d9c2db96b 17-Jun-2011 Elliott Hughes <enh@google.com> Make debuggable="true" imply CheckJNI.

This should help third-party developers debug their apps.

Tested by adding logging to dalvik and launching a debuggable app.

Change-Id: Icec66825709e399e238b4ff00f2bc596485a3a60
om/android/server/am/ActivityManagerService.java
72fba1caea8778d4e0a5693b188873c6faab4dbb 17-Jun-2011 Chia-chi Yeh <chiachi@android.com> Merge "VPN: move VpnDialogs related methods into VpnConfig."
7b0b834c3d12564c44ac134879a6dbc70e74be6e 17-Jun-2011 Chia-chi Yeh <chiachi@android.com> VPN: move VpnDialogs related methods into VpnConfig.

This might not be the best place for the glue code, but it is
known that choosing VpnBuilder will introduce a dependency
cycle of VpnBuilder, ConnectivityService, and the Vpn class.

Change-Id: I3f03617d1fe1a0b8fb3705c23265676fff51a75c
om/android/server/connectivity/Vpn.java
5bfa752f71cf7e6a5e7490d48eaef4054f99bebc 17-Jun-2011 Jeff Sharkey <jsharkey@android.com> Merge "Avoid clobbering UID stats when not yet loaded."
af8339374fbf1e2f57b0be918c7fc772f4250f13 17-Jun-2011 Jeff Sharkey <jsharkey@android.com> Avoid clobbering UID stats when not yet loaded.

Bug: 4690822
Change-Id: Ia6c9e8f89e89739cf3380c4b98b9da6f52db48fa
om/android/server/net/NetworkStatsService.java
f2288c960cce22ea3971d79f6aa13ed61c699176 17-Jun-2011 Irfan Sheriff <isheriff@google.com> Merge "Fix IP address cleanup on network disconnect"
f5600618df153d9c51388562ebf3524e3bdc8b7d 16-Jun-2011 Irfan Sheriff <isheriff@google.com> Fix IP address cleanup on network disconnect

We used to bring down the interface on network disconnect
which would in turn clean up all the IP addresses.

The interface bringup/shutdown is now handled by wpa_supplicant.
Add netd interface for clearing all IP addresses

Bug: 4676254
Change-Id: I7e24c0ab2e4a412b8d61e9c33ce028966913aaf6
om/android/server/NetworkManagementService.java
63eeff7427a2d0266659066bf1286eb1eb578d35 17-Jun-2011 Svetoslav Ganov <svetoslavganov@google.com> Merge "Accessiiblity in right state upon connection of a test agent."
9dc98e3d1764dbcf7828599b70e7a71a3c82a407 17-Jun-2011 Svetoslav Ganov <svetoslavganov@google.com> Accessiiblity in right state upon connection of a test agent.

1. Enabling accessibility and disabling all enabled
accessibility service when a test client connects
the the AccessibilityManagerService.

Change-Id: I2f40cccaa0035ac1454d8c5ac84678c1542a0229
om/android/server/accessibility/AccessibilityManagerService.java
ad4c9ed7de1c3c3b7781db9c46503263c5bf8464 16-Jun-2011 Jeff Sharkey <jsharkey@android.com> Merge "DownloadManager flags for network policy."
1a303953589fdddf21d88b8fa660136f5b060d0d 16-Jun-2011 Jeff Sharkey <jsharkey@android.com> DownloadManager flags for network policy.

Handful of DownloadManager flags to record when a download was paused
because of NetworkPolicyManager rules.

Change-Id: I99fc47f529cb6c8a42dbeca049e0cd0f1556eac4
om/android/server/ConnectivityService.java
om/android/server/net/NetworkPolicyManagerService.java
4f1f7d3158b1576b72eabbb05f8ab8cfb25cd403 16-Jun-2011 Robert Greenwalt <rgreenwalt@google.com> am 241b65ac: am 5f350512: Merge "Reset connections AFTER we take down the network." into honeycomb-LTE

* commit '241b65aca93e263f0869c5bec4ad1dbda0dec6db':
Reset connections AFTER we take down the network.
241b65aca93e263f0869c5bec4ad1dbda0dec6db 16-Jun-2011 Robert Greenwalt <rgreenwalt@google.com> am 5f350512: Merge "Reset connections AFTER we take down the network." into honeycomb-LTE

* commit '5f3505121b761dbd3bba62d1603fbab49de139b9':
Reset connections AFTER we take down the network.
5f3505121b761dbd3bba62d1603fbab49de139b9 16-Jun-2011 Robert Greenwalt <rgreenwalt@google.com> Merge "Reset connections AFTER we take down the network." into honeycomb-LTE
ec896c6a863b3cc0a55538a19879e2112b5b8658 15-Jun-2011 Robert Greenwalt <rgreenwalt@google.com> Reset connections AFTER we take down the network.

If you do it before you have a race condition and some apps will
manage to reconnect on the dieing network before it goes and then
get no notification when it goes.

bug: 3408025
Change-Id: I5386ff313c759b3f687bc38731454ab43dbe76b8
om/android/server/ConnectivityService.java
d6f69d0e5235a5adce5226d2144ef08d05b1889c 16-Jun-2011 Chia-chi Yeh <chiachi@android.com> Merge "VPN: migrate from generic Bundle to our own Parcelable VpnConfig."
c1972e1f65722283a96847c175980c586f8246f3 16-Jun-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix to clear calling identity when binding a widget."
4912f160875441927d012fc17b04fe7cc6567ef8 16-Jun-2011 Dianne Hackborn <hackbod@google.com> Fix to clear calling identity when binding a widget.

Change-Id: Id66abc50ec9ee69317b9838f302c4153995664f7
om/android/server/AppWidgetService.java
04ba25c418bc4538e9dc0f047cfb9608d358f679 16-Jun-2011 Chia-chi Yeh <chiachi@android.com> VPN: migrate from generic Bundle to our own Parcelable VpnConfig.

Note that VpnConfig is for internal use only.
Also remove hidden methods from ConnectivityManager.

Change-Id: Ic298c4dc9a2c6c452bd8f4be6fa84e7ac489c0c4
om/android/server/ConnectivityService.java
om/android/server/connectivity/Vpn.java
3b1fc47d004f6b29af8f40d181baa3460b1e3b15 13-Jun-2011 Michael Jurka <mikejurka@google.com> Port recent apps from tablet to phone

- wire up to long press on home
- remove unused recents activity
- remove duplicate recents resources in -large directories (using -sw600dp instead)
- fix issue with zoom/scale translation when recents was brought up

Change-Id: I45538ccaff49b46ac3659c4828f9e2b0cd075241
om/android/server/StatusBarManagerService.java
f8905fd13da0bfd6049daebc1cf4f8af286a04de 15-Jun-2011 Chia-chi Yeh <chiachi@android.com> VPN: change some strings in VPN notifications.

Also remove a small piece of dead code.

Change-Id: Idd10f3d72a92228951278bf360d08ba9bede02d2
om/android/server/connectivity/Vpn.java
14711eb5b6a45b587222ae71c57a381beb7b1a7e 15-Jun-2011 Jeff Sharkey <jsharkey@android.com> Include template in data warning/limit intents.

When launching warning/limit UI, include the template that triggered
the notification. Also move actions and extra into contract class.

Change-Id: Id2e63fd2d2e36a137a3fd8f889c7256038ca5f2e
om/android/server/net/NetworkPolicyManagerService.java
497e4437af386930dff3bd55296d128bd4520959 15-Jun-2011 Jeff Sharkey <jsharkey@android.com> Data usage warning and limit notifications.

Watch for network statistics to cross NetworkPolicy warning or limit,
and show notifications to user as needed. Currently checks during
any statistics update, but will eventually move to event registration
through netd when kernel supports.

Fixed accounting bug in getSummaryForNetwork(). Only apply UID policy
to applications; applying to system processes could break critical
services like RIL.

Change-Id: Iac0f20e910e205f3cbc54ec96395ff268b1aa379
om/android/server/SystemServer.java
om/android/server/net/NetworkPolicyManagerService.java
om/android/server/net/NetworkStatsService.java
5ab3cbc9d817587ad5ded30828dc3b05892862e7 15-Jun-2011 Jeff Brown <jeffbrown@google.com> Merge "Add support for disabling pointer gestures."
474dcb5c3ddff737c4ac9fc44a1f7be569605e5f 15-Jun-2011 Jeff Brown <jeffbrown@google.com> Add support for disabling pointer gestures.

Made it possible for individual windows to disable pointer gestures
while the window has focus using a private API.

Cleaned up the InputReader configuration code to enable in-place
reconfiguration of input devices without having to reopen them all.
This change makes changing the pointer speed somewhat nicer since the
pointer doesn't jump back to the origin after each change.

Change-Id: I9727419c2f4cb39e16acb4b15fd7fd84526b1239
om/android/server/wm/InputMonitor.java
om/android/server/wm/InputWindow.java
475deae9a8f074c76b3f31cc43c2250a1cf91439 15-Jun-2011 Dianne Hackborn <hackbod@google.com> am d00bebb0: am abe5bd23: am a9551706: Testing done, compatibility mode no longer on by default.

* commit 'd00bebb005794afc739f54ff21c6ffd7c866738a':
Testing done, compatibility mode no longer on by default.
d00bebb005794afc739f54ff21c6ffd7c866738a 15-Jun-2011 Dianne Hackborn <hackbod@google.com> am abe5bd23: am a9551706: Testing done, compatibility mode no longer on by default.

* commit 'abe5bd23c341da035e9905d9e50c1d6bccf229dc':
Testing done, compatibility mode no longer on by default.
abe5bd23c341da035e9905d9e50c1d6bccf229dc 15-Jun-2011 Dianne Hackborn <hackbod@google.com> am a9551706: Testing done, compatibility mode no longer on by default.

* commit 'a9551706a279a798c91d8ef593b2acb16a30c682':
Testing done, compatibility mode no longer on by default.
a9551706a279a798c91d8ef593b2acb16a30c682 15-Jun-2011 Dianne Hackborn <hackbod@google.com> Testing done, compatibility mode no longer on by default.

Change-Id: I5bcc98d2b3a1a02ca788ab61440f0aa5d4f7fb4e
om/android/server/am/CompatModePackages.java
15856f7b62d06d968f57441ffe7dd31aac631952 15-Jun-2011 Dianne Hackborn <hackbod@google.com> am 27bad6f3: am baa89d38: am f930232f: Fix a major problem in fragment lifecycle.

* commit '27bad6f33b98e8d7417a6ce4d7f09b2fa1146379':
Fix a major problem in fragment lifecycle.
27bad6f33b98e8d7417a6ce4d7f09b2fa1146379 15-Jun-2011 Dianne Hackborn <hackbod@google.com> am baa89d38: am f930232f: Fix a major problem in fragment lifecycle.

* commit 'baa89d3839f70bd31e5219c636ac24a4cc29928d':
Fix a major problem in fragment lifecycle.
baa89d3839f70bd31e5219c636ac24a4cc29928d 15-Jun-2011 Dianne Hackborn <hackbod@google.com> am f930232f: Fix a major problem in fragment lifecycle.

* commit 'f930232fd1c8d301d91853c8fe5dca43979ac807':
Fix a major problem in fragment lifecycle.
f930232fd1c8d301d91853c8fe5dca43979ac807 15-Jun-2011 Dianne Hackborn <hackbod@google.com> Fix a major problem in fragment lifecycle.

When animating away a fragment, we were not putting it through
the last part of its lifecycle (onDestroy() etc).

Also, retained fragments that have a target were broken. Oops.

Change-Id: I5a669b77a2f24b581cde2a0959acf62edb65e326
om/android/server/am/ActivityManagerService.java
3fe9cc5ea6a9e1acd52144c8ae6cb0492dba34ba 15-Jun-2011 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of e95c07bd to master

Change-Id: I9af0c08a9f1c1f68661efe051a66835e850b76f6
e95c07bd8a4f658e035ba0ed2079357961af011b 15-Jun-2011 Dianne Hackborn <hackbod@google.com> am 7c7f8e18: am 0a8a2324: Merge "Fix issue #4603422: Compatibility mode button doesn\'t always update" into honeycomb-mr2

* commit '7c7f8e18dee8b582ec8e30a1412903ceec2ef5f5':
Fix issue #4603422: Compatibility mode button doesn't always update
7c7f8e18dee8b582ec8e30a1412903ceec2ef5f5 15-Jun-2011 Dianne Hackborn <hackbod@google.com> am 0a8a2324: Merge "Fix issue #4603422: Compatibility mode button doesn\'t always update" into honeycomb-mr2

* commit '0a8a2324239d7604e2a68349585aa67b59b25f4c':
Fix issue #4603422: Compatibility mode button doesn't always update
7d04932ef5c001769ccef244f551b75773f1666b 15-Jun-2011 Dianne Hackborn <hackbod@google.com> Fix issue #4603422: Compatibility mode button doesn't always update

We now tell the system bar every time the top activity has changed for
it to re-evaluate its UI state.

Also fix issue #: 4607102 Low rider notifications. It turns out this
was due to the change in the dialog asset; the notification UI was relying
on this having a lot of padding to make it sit above the status bar.
Now we have an explicitly mechanism to set how much it overlaps (or doesn't)
the status bar.

Change-Id: Iab5ebd86e620ff4fc4cd77206e18af962ec2830e
om/android/server/StatusBarManagerService.java
fcc79771f092f34505b1accb80365cbcaa379667 14-Jun-2011 Jeff Sharkey <jsharkey@android.com> Generate default policy for devices without IMSI.

Change-Id: I38500919ea60f78d99684608589c8fc3092bf239
om/android/server/net/NetworkPolicyManagerService.java
82f0a85c3ba81cb6932d956c1c8cc5a99e89052a 14-Jun-2011 Mike Lockwood <lockwood@android.com> Merge "Move adb related functionality from SystemServer and NotificationManagerService to UsbDeviceManager"
541c9949ae9c05636d3e0442aa5080815121a042 13-Jun-2011 Mike Lockwood <lockwood@android.com> Move adb related functionality from SystemServer and NotificationManagerService to UsbDeviceManager

Change-Id: I9e64b54bc2d027d88ae2d2cd893068e29b6fe237
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/NotificationManagerService.java
om/android/server/SystemServer.java
om/android/server/usb/UsbDeviceManager.java
26cfe80fe168f8cecea6a9eab697c80f1efeccce 14-Jun-2011 Chia-chi Yeh <chiachi@android.com> Merge "VPN: add MTU support."
3663227a8be5c6c05bf4adadc378fd69b7ae814c 14-Jun-2011 Chia-chi Yeh <chiachi@android.com> VPN: add MTU support.

Change-Id: Ia2f06ae1fcf065bde7dafd212b84b37a34f1a47e
om/android/server/connectivity/Vpn.java
49edc107b593a6e28f8331d563b4fe3b78beb34f 13-Jun-2011 Chia-chi Yeh <chiachi@android.com> Merge "VPN: use ParcelFileDescriptor.adoptFd() instead of doing it in JNI."
36673698078cb47e777418cadc4115a65bc5947d 13-Jun-2011 Chia-chi Yeh <chiachi@android.com> VPN: use ParcelFileDescriptor.adoptFd() instead of doing it in JNI.

This removes the dependency of android_util_Binder.h.
This change also removes some redundant zeroing.

Change-Id: Ie9fedd471dfa198f9a3261e03651f945cefbbf61
om/android/server/connectivity/Vpn.java
c282401b5729d07a522b35d54f199a0e85fd3f34 13-Jun-2011 Svetoslav Ganov <svetoslavganov@google.com> Merge "Final polish of the interrogation feature."
af11d4859582a9736aa204562f0beac5a7d60934 13-Jun-2011 Jeff Sharkey <jsharkey@android.com> Fix test-related build breakage.

Change-Id: I48a3dbbdc49d742d6ad19cff34ee8da4b3949bb8
om/android/server/net/NetworkPolicyManagerService.java
22c055e6424e0e9579711545d8f4800c0f796db8 13-Jun-2011 Jeff Sharkey <jsharkey@android.com> External mutation of full NetworkPolicy set.

Instead of embedding complex template coexistence rules into policy
service, rely on external editors to enforce, and offer atomic
get/set operations for full policy sets.

Generate default mobile policy when none exists, using default of 4GB
warning and cycle reset of current day. Dispatch listener events
through Handler when holding internal lock, and catch CLASS_UNKNOWN
networks in 3G_LOWER template.

Change-Id: I063cf1eaf330e32b75d0697b89fc04488e6dfaea
om/android/server/net/NetworkIdentity.java
om/android/server/net/NetworkPolicyManagerService.java
4a97122ebf4d92a3f94402041729d77905e6c0c0 12-Jun-2011 Jeff Sharkey <jsharkey@android.com> Growable NetworkStats object instead of builder.

NetworkStats now grows in place with arraycopy() instead of callers
needing to know record count a priori. Better growth calculation for
both NetworkStats and NetworkStatsHistory; 50% each time. Better
estimates of buckets needed in calling services.

Change-Id: I3adbffa0b7407612cc6349d9135a8b4eb63cd440
om/android/server/NetworkManagementService.java
om/android/server/net/NetworkStatsService.java
39ebc2195ed16b9e955dd57f5c95212bb7b934b6 12-Jun-2011 Jeff Sharkey <jsharkey@android.com> Persist UID stats, lazy loading, resize buckets.

Persisting detailed UID stats in separate "netstats_detail.bin" file
to enable different schedules for summary and detail polling. Only
load detailed UID history on demand, since it's not needed during
boot. Add test to verify UID stats are persisted across simulated
reboot.

Move external settings into well-named interface, which is still
backed by Settings.Secure. During periodic poll events, resize any
history to match current bucket duration setting. Test to verify.

Change-Id: I6366f3583a591f8ba859b0e5987daf8cafa4e95a
om/android/server/net/NetworkStatsService.java
eeee4d2c01d3c4ed99e4891dbc75c7de69a803fa 11-Jun-2011 Svetoslav Ganov <svetoslavganov@google.com> Final polish of the interrogation feature.

1. Added a new event type for notifying client accessibilitiy
services for changes in the layout. The event is fired at
most once for a given time frame and is delivered to clients
only if it originates from the window that can be interrogated.

2. Exposed the findByText functionality in AccessibilityNodeInfo.
This is very useful for an accessibility service since it allows
searching for something the user knows is on the screen thus
avoiding touch exploring the content. Touch exploring is
excellent for learning the apps but knowing them search is
much faster.

3. Fixed a bug causing an accessibiliby service not to receive
the event source in case of more than one service is registered
and one of them does not have paermission to interrogate the window.
The same event was dispatched to multiple services but if one
of them does not have interrogation permission the event is
modified to remove the source causing subsequent serivices not
to get the later.

4. Moved the getSource setSource methods to AccessibilityRecord
instead in AccessibilityEvent.

5. Hiden some protected members in AccessibilityRecod which should
not be made public since getters exist.

6. Added the View absolute coordinates in the screen to AccessibilityNodeInfo.
This is needed for fast computation of relative positions of
views from accessibility - common use case for the later.

7. Fixed a couple of marshalling bugs.

8. Added a test for the object contract of AccessibilityNodeInfo.

Change-Id: Id9dc50c33aff441e4c93d25ea316c9bbc4bd7a35
om/android/server/accessibility/AccessibilityManagerService.java
eaf7ce6067707fcebd58067135376af51858d2e5 11-Jun-2011 Jeff Sharkey <jsharkey@android.com> Merge "Move data cycle methods to framework object."
cd2ca4038a027315832c38c68be5076000bc4b53 11-Jun-2011 Jeff Sharkey <jsharkey@android.com> Move data cycle methods to framework object.

Moved so they can be used by both system service and Settings UI, since
they both work with data usage cycles. Still covered by tests.

Change-Id: I01c0c4db6da9457dd867c9167d31a5f9f8e5f5d9
om/android/server/net/NetworkPolicyManagerService.java
57af6e76789c096fc7c7d3c3a8a192f8ee46ccf0 11-Jun-2011 Jeff Sharkey <jsharkey@android.com> Merge "Interface-level network policy, persist policies."
21c9c45e5caf62b935354b74392fb40c4bf18529 07-Jun-2011 Jeff Sharkey <jsharkey@android.com> Interface-level network policy, persist policies.

Define NetworkPolicy as cycle-reset day and warning/limit values, and
set/get through NetworkPolicyManager. Watch ConnectivityManager for
network connection events, and apply quota rules based on matching
interfaces. Policy service matches based on strong identity to support
IMSI-specific policy values.

Calculates remaining quota based on current stats recorded since the
last reset cycle day. Tests to verify edge cases around February.

Persist network and UID policies in XML, and restore on boot.

Change-Id: Id40ba7d6eed6094fbd5e18e6331286c606880d80
om/android/server/SystemServer.java
om/android/server/net/NetworkPolicyManagerService.java
om/android/server/net/NetworkStatsService.java
bc38d3e44e698f4db749c2feed34e13a94c54a1b 11-Jun-2011 Jeff Brown <jeffbrown@google.com> Merge "Optimize orientation changes."
24572375323dee79e3b456af07640ca194fd40bf 10-Jun-2011 Jeff Brown <jeffbrown@google.com> Optimize orientation changes.

Modified setRotation to allow it to restart a rotation in
progress as long as the rotation animation has not yet started.
This enables the system to recover more quickly from mispredicted
orientation changes.

Removed the call to System.gc() when freezing the display, which
added 60-80ms before we even started the orientation change.
We used to need this to make it less likely that an upcoming GC
would cause a pause during the window animation, but this is
not longer a concern with the concurrent GC in place.

Changed the wallpaper surface to be 32bit. This accelerates
drawing and improves the overall appearance slightly.

Reduced code duplication in the WallpaperManager.

Change-Id: Ic6e5e8bdce4b970b11badddd0355baaed40df88a
om/android/server/wm/WindowManagerService.java
2447edd85baac3225a12b868ef40f76cfdc6ec11 10-May-2011 Ben Komalo <benkomalo@google.com> New device policy to disable camera.

This introduces a new policy that a DeviceAdmin can use to disable _all_
cameras on the device. A separate CL will be made on the media side to
watch this policy bit and act accordingly.

Bug: 4185303
Change-Id: I700cfc4a8317bb74087ccae39346d74467fc58b2
om/android/server/DevicePolicyManagerService.java
21e2f1b4a0877ee38f7ba89eb32f585fb34431f3 10-Jun-2011 satok <satok@google.com> Merge "API to set additional subtypes"
e7c6998e0a953ae55487d4fe122739646f9280aa 03-Jun-2011 satok <satok@google.com> API to set additional subtypes

Bug: 4321667

- Due to the voice team's strong request

Change-Id: Ia8bbc277c0987bde996e6f65541877cec96a3ca1
om/android/server/InputMethodManagerService.java
7bbf6f7d11877496502c20e8998a6984ab05cd39 10-Jun-2011 Dianne Hackborn <hackbod@google.com> am 8297f669: am 3aabdeac: am 5ba2e872: Merge "Fix for not reporting correct "sw" in compat mode." into honeycomb-mr2

* commit '8297f669356ee997c5faa745815e8b9a7009fba7':
Fix for not reporting correct "sw" in compat mode.
f741e679c496f7345304a6543f01d7048e31d1a7 10-Jun-2011 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of e2aa0490 to master

Change-Id: Id0448a1598fc93aca0652b29253e02586e35a067
70a1c1190d19bd8dba912f8901fe529466fa1037 10-Jun-2011 Irfan Sheriff <isheriff@google.com> Merge "WifiWatchdogService refactor"
188cecfdb68996d1e6d48cd3c76ff566a72b378c 08-Jun-2011 Isaac Levy <ilevy@google.com> WifiWatchdogService refactor

Minor refactoring of WatchdogService ahead of logic changes.
Lightly tested on a stingray.

Change-Id: I051603a598fe3162f170fb0a09e461fcb9b0038e
om/android/server/WifiStateTracker.java
om/android/server/WifiWatchdogService.java
1fdc061e99a5e3f1d47bf1e2b780abbfe11e6a81 09-Jun-2011 Dianne Hackborn <hackbod@google.com> am 816e5b72: am ee3de4a9: am a3ce0f1e: Merge "Remove compat mode dialog." into honeycomb-mr2

* commit '816e5b72190787f2b6136925c172a00ebcbe4077':
Remove compat mode dialog.
3f3913550c10792edb8aecf66cc83c3db5c8b311 06-Jun-2011 Jeff Sharkey <jsharkey@android.com> Persist network stats using AtomicFile.

Implements read/write of network stats using AtomicFile, along with
magic number and versioning. Stores in "/data/system/netstats.bin"
for now. Tests to verify that stats are persisted across a simulated
reboot, and to verify that TEMPLATE_WIFI is working.

Fixed bug where kernel counters rolling backwards would cause negative
stats to be recorded; now we clamp deltas at 0.

Change-Id: I53bce26fc8fd3f4ab1e34ce135d302edfa34db34
om/android/server/net/NetworkIdentity.java
om/android/server/net/NetworkStatsService.java
8297f669356ee997c5faa745815e8b9a7009fba7 09-Jun-2011 Dianne Hackborn <hackbod@google.com> am 3aabdeac: am 5ba2e872: Merge "Fix for not reporting correct "sw" in compat mode." into honeycomb-mr2

* commit '3aabdeaceff8405406d90c329a6691552559556d':
Fix for not reporting correct "sw" in compat mode.
3aabdeaceff8405406d90c329a6691552559556d 09-Jun-2011 Dianne Hackborn <hackbod@google.com> am 5ba2e872: Merge "Fix for not reporting correct "sw" in compat mode." into honeycomb-mr2

* commit '5ba2e872fa684c0f1b992a95df00854b58f2cd8c':
Fix for not reporting correct "sw" in compat mode.
48a7651823030ed3c0f4c084b423430044425fea 09-Jun-2011 Dianne Hackborn <hackbod@google.com> Fix for not reporting correct "sw" in compat mode.

Change-Id: Ia225c94b36ccc3589d417aafd5680247678eddfd
om/android/server/wm/WindowManagerService.java
13f99a0d0e309b63c3441148032e9992c0e4e650 09-Jun-2011 Christopher Tate <ctate@google.com> Merge "Fix handling of directory entries"
e9e78ecd2c0ae5f48ed81fdfff4a89cb803fc409 09-Jun-2011 Christopher Tate <ctate@google.com> Fix handling of directory entries

Don't emit tar blocks for directories with an invalid nonzero size. Also, if
such an entry is encountered during restore, don't actually attempt to treat
it as valid and thus skip over the next actual tar entry.

This patch also adds tracking of the data actually consumed during restore,
and reports a total at the end of stream.

Change-Id: I625173f76df3c007e899209101ff2b587841f184
om/android/server/BackupManagerService.java
e2aa04908cfdf65ef309f1491f31a0c8846977ff 09-Jun-2011 Dianne Hackborn <hackbod@google.com> am a1396dfe: am 02140891: Merge "Work on issue #4518815: Compatibility mode introduces compatibility regression..." into honeycomb-mr2

* commit 'a1396dfe7ad6ec6953f544be42d69d7804ab0fd4':
Work on issue #4518815: Compatibility mode introduces compatibility regression...
a1396dfe7ad6ec6953f544be42d69d7804ab0fd4 09-Jun-2011 Dianne Hackborn <hackbod@google.com> am 02140891: Merge "Work on issue #4518815: Compatibility mode introduces compatibility regression..." into honeycomb-mr2

* commit '021408910af170268cb486910d4dd5a7d838c2bb':
Work on issue #4518815: Compatibility mode introduces compatibility regression...
5fd2169eabd77e6bfafaf456e58051a3bafb2bca 07-Jun-2011 Dianne Hackborn <hackbod@google.com> Work on issue #4518815: Compatibility mode introduces compatibility regression...

...for Market App iRunner

There were a lot of serious issues with how we updated (or often didn't update)
the display and resource state when switching compatibility mode in conjunction
with restarting and updating application components. This addresses everything
I could find.

Unfortunately it does *not* fix this particular app. I am starting to think this
is just an issue in the app. This change does fix a number of other problems
I could repro, such as switching the compatibility mode of an IME.

Also a few changes here and there to get rid of $#*&^!! debug logs.

Change-Id: Ib15572eac9ec93b4b9966ddcbbc830ce9dec1317
om/android/server/WifiService.java
om/android/server/wm/BlackFrame.java
om/android/server/wm/DimAnimator.java
om/android/server/wm/DimSurface.java
om/android/server/wm/ScreenRotationAnimation.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
ff3bdca31f4cf2bd607519b276dd175763aa1784 24-May-2011 Chia-chi Yeh <chiachi@android.com> The service part of the user space VPN support.

The dialogs will be in another change.

Change-Id: I0cdfd2ef21ffd40ee955b3cbde5ada65dbfdb0bc
om/android/server/ConnectivityService.java
om/android/server/connectivity/Vpn.java
9eb014aeb0630dab9210f8eb8b6c2f4250d5990e 08-Jun-2011 Mike Lockwood <lockwood@android.com> UsbManager: Clean up extras for ACTION_USB_STATE broadcast

Also added name for new PTP USB function

Change-Id: Ia2775ba2b23ef6a6108ca7e060239eb51c2eecc8
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/NotificationManagerService.java
om/android/server/usb/UsbDeviceManager.java
19862bf5d058b6ab0c2979e7a5e0297dae6b170b 03-Jun-2011 Jeff Sharkey <jsharkey@android.com> Compute range-based usage in NetworkStatsHistory.

When given a start/end range, interpolate between buckets to return
the total network usage. Used to summarize detailed UID stats. Method
to combine NetworkStatsHistory regardless of bucket size. Used to
combine all histories matching a template.

Added tests for both methods.

Change-Id: Ia463910c0ecf7cf08dcf97c658ad99742bd6b882
om/android/server/net/NetworkStatsService.java
61ee0bbb5b87fb5c4c3dc219868d52743def3d2b 30-May-2011 Jeff Sharkey <jsharkey@android.com> UID network stats, secure settings, and random.

Collect UID-granularity network stats during regular poll event. Add
dumpsys argument to generate fake historical data for debugging, and
move stats parameters to Settings.Secure.

Change-Id: I09b36a2955dc10c697d4b9c3ff23dcb3ac37bd70
om/android/server/net/NetworkStatsService.java
d2a458750e5a3d490af09cecb5c28370baf0a913 29-May-2011 Jeff Sharkey <jsharkey@android.com> Map network identity using ConnectivityService.

Instead of deriving network identity based on raw subsystem broadcasts,
listen for updates from ConnectivityService. Added atomic view of all
active NetworkState, and build map from "iface" to NetworkIdentity set
for stats tracking.

To avoid exposing internal complexity, INetworkStatsService calls use
general templates. Added TelephonyManager mapping to classify network
types using broad labels like "3G" or "4G", used to drive templates.

Cleaned up Objects and Preconditions.

Change-Id: I1d4c1403f0503bc3635a59bb378841ba42239a91
om/android/server/ConnectivityService.java
om/android/server/SystemServer.java
om/android/server/net/InterfaceIdentity.java
om/android/server/net/NetworkIdentity.java
om/android/server/net/NetworkPolicyManagerService.java
om/android/server/net/NetworkStatsService.java
dd82b85677b3556776dbf023ad4fdc22cf075523 08-Jun-2011 Svetoslav Ganov <svetoslavganov@google.com> Merge "Crash in the TouchExplorer"
00f7b3f76515d1c6fbe5cf9fee9d3760787c03cd 08-Jun-2011 Svetoslav Ganov <svetoslavganov@google.com> Crash in the TouchExplorer

1. No clearing the last touch explore event in all cases
when transitioning to another mode.

2. Incorrectly assuming the the action index of an up/down
events is 0.

bug:4551506

Change-Id: I43f8e800b54a340968489dc924a539795a9195cb
om/android/server/accessibility/TouchExplorer.java
5bc7c93ca7a40827120f232deca996630cd58a39 08-Jun-2011 Chia-chi Yeh <chiachi@android.com> Merge "Do not register the callbacks in the constructor."
774ed9d9537c15482e8baca2f2890c5d2f4ffe75 08-Jun-2011 Jeff Brown <jeffbrown@google.com> resolved conflicts for merge of 8b2c0014 to master

Change-Id: I33a5a2949dc6c2d09e8196ba8c7128caa7ac2361
f5969553727e7a9058820291439403bb3f9b327f 08-Jun-2011 Irfan Sheriff <isheriff@google.com> am 5e4d0206: am b400184a: Merge "Handle AsyncChannel disconnect in WifiService" into honeycomb-LTE

* commit '5e4d0206486378ffc7d2992750e439d54df15147':
Handle AsyncChannel disconnect in WifiService
aefc94f19acc29ae9b6abc32dcdbb2ff453984cb 08-Jun-2011 Dianne Hackborn <hackbod@google.com> am 4bd50588: am fc3fa5dc: am 1b405592: Merge "Fix issue #4539687: At least one compatibility-mode app (Androminion)..." into honeycomb-mr2

* commit '4bd505883df3d8ca7583d854f1c71302c615519d':
Fix issue #4539687: At least one compatibility-mode app (Androminion)...
816e5b72190787f2b6136925c172a00ebcbe4077 08-Jun-2011 Dianne Hackborn <hackbod@google.com> am ee3de4a9: am a3ce0f1e: Merge "Remove compat mode dialog." into honeycomb-mr2

* commit 'ee3de4a950a188c6a4d5fb732242249af4807837':
Remove compat mode dialog.
ee3de4a950a188c6a4d5fb732242249af4807837 08-Jun-2011 Dianne Hackborn <hackbod@google.com> am a3ce0f1e: Merge "Remove compat mode dialog." into honeycomb-mr2

* commit 'a3ce0f1e6f92e9580b0b0cbdc6cc124d2163f6c5':
Remove compat mode dialog.
29478269319502c92d04979411120bf49d2d011f 08-Jun-2011 Dianne Hackborn <hackbod@google.com> Remove compat mode dialog.

Change-Id: I37bccdf9d3e7c56048633da5731ad111910e530f
om/android/server/am/ActivityManagerService.java
ba4b2faa0991ce4797fbc19270a5554eaa895588 08-Jun-2011 Christopher Tate <ctate@google.com> Merge "Fix embedded spaces in tar stream EVEN HARDER"
2391a983149a0838e37a64ce85a2c19382a1311b 08-Jun-2011 Irfan Sheriff <isheriff@google.com> Merge "Update walled garden detection logic"
5ea65d609f0c8e1e3a1dcd192c4058aa2ccf3212 06-Jun-2011 Irfan Sheriff <isheriff@google.com> Update walled garden detection logic

DNS based techniques dont always work. Some hotspots
redirect on data fetch on IP. Use a known pattern match
on URL to detect a walled garden instead.

Also, added gservices capability to turn off the feature
or change the URL & the pattern to match

Bug: 4378442
Change-Id: I78b4208d3ea3ace20069169e7c01ed769892d94d
om/android/server/WifiWatchdogService.java
3f6c77b7caa02193205cb6ce180e0eb5a7579aa6 07-Jun-2011 Christopher Tate <ctate@google.com> Fix embedded spaces in tar stream EVEN HARDER

Change-Id: I97ac586ff3541a05d73e1e53f680517c15e6c662
om/android/server/BackupManagerService.java
65abc4531f1222ffa04350a3afc6d61fcc77b2a3 07-Jun-2011 Mike Lockwood <lockwood@android.com> Merge "StorageVolume: Add allowMassStorage flag"
8e8b280bd19fa6cb69bb19e1d90cf03a47ba2d72 07-Jun-2011 Mike Lockwood <lockwood@android.com> StorageVolume: Add allowMassStorage flag

Change-Id: I9d19e635bb06e50068d7e4e6919322bd5bb2e00f
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/MountService.java
b0628bfd5aac480a0d412ac96b8af1d97ac01c30 03-Jun-2011 Christopher Tate <ctate@google.com> Implement shared-storage full backup/restore

Every available shared-storage volume is backed up, tagged with its
ordinal in the set of mounted shared volumes. This is an approximation
of "internal + the external card". This lets us restore things to the
same volume [or "equivalent" volume, in the case of a cross-model
restore] as they originated on.

Also fixed a bug in the handling of files/dirs with spaces in
their names.

Change-Id: I380019da8d0bb5b3699bd7c11eeff621a88e78c3
om/android/server/BackupManagerService.java
om/android/server/SystemBackupAgent.java
8b2c00144ac262a6fbdbbac1ed8dfe813b883f81 07-Jun-2011 Jeff Brown <jeffbrown@android.com> am b3536145: am ed48fa89: Merge "Touch pad improvements. Bug: 4124987" into honeycomb-mr2

* commit 'b3536145725250401d25ffa00cda85d222dfc21e':
Touch pad improvements. Bug: 4124987
5e4d0206486378ffc7d2992750e439d54df15147 07-Jun-2011 Irfan Sheriff <isheriff@google.com> am b400184a: Merge "Handle AsyncChannel disconnect in WifiService" into honeycomb-LTE

* commit 'b400184ad6277676048a30b042ed0667de662ad8':
Handle AsyncChannel disconnect in WifiService
b3536145725250401d25ffa00cda85d222dfc21e 07-Jun-2011 Jeff Brown <jeffbrown@android.com> am ed48fa89: Merge "Touch pad improvements. Bug: 4124987" into honeycomb-mr2

* commit 'ed48fa89a8e31b04681347a9235c2a566e7dbb8e':
Touch pad improvements. Bug: 4124987
b400184ad6277676048a30b042ed0667de662ad8 07-Jun-2011 Irfan Sheriff <isheriff@google.com> Merge "Handle AsyncChannel disconnect in WifiService" into honeycomb-LTE
ed48fa89a8e31b04681347a9235c2a566e7dbb8e 07-Jun-2011 Jeff Brown <jeffbrown@android.com> Merge "Touch pad improvements. Bug: 4124987" into honeycomb-mr2
bb3fcba0caf697f1d238a2cbefdf1efe06eded99 07-Jun-2011 Jeff Brown <jeffbrown@android.com> Touch pad improvements.
Bug: 4124987

Only show one spot per touch point instead of one spot per
finger for multitouch gestures.

Tweaked the pointer acceleration curves.

Dissociated the hover/tap timeouts from the "tap" timeout
since they mean very different things.

Change-Id: I7c2cbd30feeb65ebc12f6c7e33a67dc9a9f59d4c
om/android/server/wm/InputManager.java
8643aa0179e598e78d938c59035389054535a229 20-Apr-2011 Svetoslav Ganov <svetoslavganov@google.com> Interrogation of the view hierarchy from an AccessibilityService.

1. Views are represented as AccessibilityNodeInfos to AccessibilityServices.

2. An accessibility service receives AccessibilityEvents and can ask
for its source and gets an AccessibilityNodeInfo which can be used
to get its parent and children infos and so on.

3. AccessibilityNodeInfo contains some attributes and actions that
can be performed on the source.

4. AccessibilityService can request the system to preform an action
on the source of an AccessibilityNodeInfo.

5. ViewAncestor provides an interaction connection to the
AccessibiltyManagerService and an accessibility service uses
its connection to the latter to interact with screen content.

6. AccessibilityService can interact ONLY with the focused window
and all calls are routed through the AccessibilityManagerService
which imposes security.

7. Hidden APIs on AccessibilityService can find AccessibilityNodeInfos
based on some criteria. These API go through the AccessibilityManagerServcie
for security check.

8. Some actions are hidden and are exposes only to eng builds for UI testing.

Change-Id: Ie34fa4219f350eb3f4f6f9f45b24f709bd98783c
om/android/server/accessibility/AccessibilityManagerService.java
4bd505883df3d8ca7583d854f1c71302c615519d 07-Jun-2011 Dianne Hackborn <hackbod@google.com> am fc3fa5dc: am 1b405592: Merge "Fix issue #4539687: At least one compatibility-mode app (Androminion)..." into honeycomb-mr2

* commit 'fc3fa5dc1045a8f25fc1982443e05873edf028df':
Fix issue #4539687: At least one compatibility-mode app (Androminion)...
fc3fa5dc1045a8f25fc1982443e05873edf028df 07-Jun-2011 Dianne Hackborn <hackbod@google.com> am 1b405592: Merge "Fix issue #4539687: At least one compatibility-mode app (Androminion)..." into honeycomb-mr2

* commit '1b405592550c719aa5dd93178705ae08b4e84a2f':
Fix issue #4539687: At least one compatibility-mode app (Androminion)...
bc7386c2615a7c496deea59ac1b5ab2da7f7b61f 07-Jun-2011 Dianne Hackborn <hackbod@google.com> Fix issue #4539687: At least one compatibility-mode app (Androminion)...

...will only launch when held in portrait mode.

There was a bug in the window manager that caused all of the careful code to
update the configuration in sync with movements between activities to break.
Now it is fixed, so this app works, and we no longer see the bad slow orientation
changes when switching between activities that want to be in different
orientations.

Change-Id: I5d93f99649849bdaca2e8bebade6b91b8b6cf645
om/android/server/am/ActivityManagerService.java
om/android/server/wm/WindowManagerService.java
6da83d5868907f64658d51f6a59261ed16c386a1 06-Jun-2011 Irfan Sheriff <isheriff@google.com> Handle AsyncChannel disconnect in WifiService

Backport change I928544a0 to LTE branch and also handle
disconnect on WifiStateMachine channel

Bug: 4473750
Change-Id: I556330c10243a1805555f6bf6dcc7e43b78e3bfd
om/android/server/WifiService.java
60a31178385cfa1e7f10d364ae538b81f94536d4 06-Jun-2011 TK MUN <tk.mun@samsung.com> am 51704fc9: am cecb710a: am 94260caf: Allow control over search order for tethering upstream interface selection

* commit '51704fc9c2f42e72a86f580c3e2aa977e8b6b006':
Allow control over search order for tethering upstream interface selection
51704fc9c2f42e72a86f580c3e2aa977e8b6b006 06-Jun-2011 TK MUN <tk.mun@samsung.com> am cecb710a: am 94260caf: Allow control over search order for tethering upstream interface selection

* commit 'cecb710a6de249a3847da2f07464a1aecf9459ac':
Allow control over search order for tethering upstream interface selection
83b69713f2dbeee7ff5e07836673a9a477be236f 26-Jan-2011 Stephen Li <stephenl@codeaurora.org> GPS: Changes to enable on-demand data call flow for CDMA connections

In the CDMA case we do not get a valid APN on a data connection request
to the connectivity manager. A fix is put in so that even if we get a
null APN we populate this field before we call native_agps_data_conn_open()
method to avoid a run time exception.

Change-Id: I134ead5d8b177fced9b14756c6bd8199a2b9c35d
om/android/server/location/GpsLocationProvider.java
c321c19fc91bfec9a74039ed4d37b815dd4ef379 04-Jun-2011 Svetoslav Ganov <svetoslavganov@google.com> Fixing a bug I introduced during my last merge.

Change-Id: I6474ca94a6ef9bd17a5670a4baa51673f3c2f5d0
om/android/server/accessibility/AccessibilityManagerService.java
d00ea44b314bbeaaa696e63184accb58964b0ff7 04-Jun-2011 Christopher Tate <ctate@google.com> Merge "Respect android:allowBackup="false" during full backup & restore"
7218d830e27d81141588cd6e37f206d141a18f62 04-Jun-2011 Jeff Brown <jeffbrown@google.com> resolved conflicts for merge of ca2b552d to master

Change-Id: I2f3693a59042ac5aa2d7bcdc3a504c78dc99a18b
2515db74fe2e75018f618591fabe23fda8362bf3 03-Jun-2011 Dianne Hackborn <hackbod@google.com> am 3a80c504: am 8b9a2b6c: am e6676351: Work around OpenFeint bug.

* commit '3a80c50485809fe72d6de83dacad494c5e84ed24':
Work around OpenFeint bug.
a858cb075d0c87e2965d401656ff2d5bc16406da 03-Jun-2011 Christopher Tate <ctate@google.com> Respect android:allowBackup="false" during full backup & restore

Packages with this manifest attribute set 'false' will not be backed
up even through the "full device backup" infrastructure. If someone
produces an apparent restore file with data for such an application,
it will not actually be restored onto the device.

When an apk is installed during the course of a restore operation,
it is validated against the manifest contents and deleted if there
is a mismatch. Also, if the newly-installed app is found to
disallow backups, no file content will be processed for that app.

Bug 4532159

Change-Id: I59630054584b1394e567de939192e22e597044ee
om/android/server/BackupManagerService.java
50469db07167e3a837e10f215baa4eacb1319604 03-Jun-2011 Dianne Hackborn <hackbod@google.com> am 7322e557: am a4cfcf10: am 75d6b3c2: Merge "Fix issue #4502672: Wrong xml resources used for homescreen widgets." into honeycomb-mr2

* commit '7322e557cfe42da42779625d69ced2db74a9df90':
Fix issue #4502672: Wrong xml resources used for homescreen widgets.
f3b57def9345d6d3cac3604d6a970f6d48f345ec 03-Jun-2011 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 7e193916 to master

Change-Id: If06892419319c3a2d4ab6b03dd3ceb99b83803b5
daac9dd9742c3a1eaeee339c4d21e6f2dc758923 03-Jun-2011 Andy Stadler <stadler@google.com> am c22d145a: am 3148557c: Merge "DO NOT MERGE Use unchecked admin lookup for getStorageEncryption()" into honeycomb-mr2

* commit 'c22d145a9f26314e23ea678e96766755268e878b':
DO NOT MERGE Use unchecked admin lookup for getStorageEncryption()
c22d145a9f26314e23ea678e96766755268e878b 03-Jun-2011 Andy Stadler <stadler@google.com> am 3148557c: Merge "DO NOT MERGE Use unchecked admin lookup for getStorageEncryption()" into honeycomb-mr2

* commit '3148557c42aaa8abf4001dc6fd759e911ba55280':
DO NOT MERGE Use unchecked admin lookup for getStorageEncryption()
3148557c42aaa8abf4001dc6fd759e911ba55280 03-Jun-2011 Andy Stadler <stadler@google.com> Merge "DO NOT MERGE Use unchecked admin lookup for getStorageEncryption()" into honeycomb-mr2
ca2b552d981239043a575dfc9db86966492d0f9e 03-Jun-2011 Jeff Brown <jeffbrown@android.com> am c8812761: am e1718de6: Merge "Add a preference panel for mouse speed." into honeycomb-mr2

* commit 'c8812761609e532cceb400b112ed9982149c2490':
Add a preference panel for mouse speed.
c8812761609e532cceb400b112ed9982149c2490 03-Jun-2011 Jeff Brown <jeffbrown@android.com> am e1718de6: Merge "Add a preference panel for mouse speed." into honeycomb-mr2

* commit 'e1718de61c20c8d401633f83589f18d2c0c652db':
Add a preference panel for mouse speed.
9313a2779732aaaec1f61f85f260499036c7927a 03-Jun-2011 Dianne Hackborn <hackbod@google.com> am 096762d6: am 8075fe48: am 78470718: Fix various places that were using the wrong display metrics.

* commit '096762d6efcae6300c02919bc6b3eaeeffccf91d':
Fix various places that were using the wrong display metrics.
7dad2c24fa7811c115f850fd2a8f2ecc8874061e 03-Jun-2011 Dianne Hackborn <hackbod@google.com> am 9b94aa18: am e5d37701: am 8ea5e1d7: Fix compat mode bugs when updating apps.

* commit '9b94aa18f78e6c6281202e72b5a7451bc479fe82':
Fix compat mode bugs when updating apps.
237574444b311f2f4d23c62f63162f77d34f10bc 03-Jun-2011 Andy Stadler <stadler@google.com> DO NOT MERGE Use unchecked admin lookup for getStorageEncryption()

Due to a copy/paste typo, getStorageEncryption() was protected by
getActiveAdminForCallerLocked(), which made the API unreadable if the
caller is not an admin. This doesn't match the rest of the DPM API which
allows the "get" calls to be made anonymously.

This fix supercedes the proposed workaround CL in the DPM ApiDemo sample.

Backport of: If1a6237634e97ced09a7c6a8876bb6b0f60c9be9

Change-Id: I728b2d85878b7c73a063c906529f0d973e166b49
om/android/server/DevicePolicyManagerService.java
1a84fd1fb7a51f3fe4f8865e1cdd09f3490f696c 02-Jun-2011 Jeff Brown <jeffbrown@android.com> Add a preference panel for mouse speed.

Bug: 4124987
Change-Id: I3ce175d268a1d043cf5878481261b1049a15a149
om/android/server/wm/InputManager.java
om/android/server/wm/WindowManagerService.java
546d64f56d0f930070289e26021f97638601e388 02-Jun-2011 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 5c2e4d20 to master

Change-Id: Iadbee872468ceafb54c5877046c91f6052f3c953
61ad43dc1e62a9cfdbc3f6624d9c8b269fc59a44 02-Jun-2011 Dianne Hackborn <hackbod@google.com> am 469465c4: am 0821f274: am 2a108403: I am a dummy.

* commit '469465c45e42c66201639feb49db5421f5843bbe':
I am a dummy.
ed60f81940c5f2125518c7c31ad4f61b8a9baf3e 02-Jun-2011 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 76450622 to master

Change-Id: I26ccd8f264e65f100d894f43cf597a781552db83
cc28a669f61c71ec95e5cca2b25eab4266ea0cfb 02-Jun-2011 satok <satok@google.com> Merge "Add an api to get the display name for InputMethodSubtype"
4f31353cb3b00c77c9420ef27ec949fd570ede3b 01-Jun-2011 satok <satok@google.com> Add an api to get the display name for InputMethodSubtype

Bug: 4321667

Change-Id: I55aa844ff33dae0cf8ef00072e87727992eb77c1
om/android/server/InputMethodManagerService.java
f9886f3ee9db23cc5a553b92e2aeff0ae842c915 11-May-2011 Svetoslav Ganov <svetoslavganov@google.com> AccessiblityManagerService not cleaning up dead binders.

1. AccessibilityManagerService was keeping handles to dead
IAccessibilitymanagerClients - now doing so.

2. AccessibilityManagerService was lazily cleaning up dead
IAccessibilityServiceConnections - now using a callback.

3. Cleaned up the book keeping of enabled services.

4. Fixed a bug that the input filter is still enabled
when disabling accessibility.

Change-Id: I5e9af7ab684a3b71e8ee51125b1262a17e960eb0
om/android/server/accessibility/AccessibilityManagerService.java
3a80c50485809fe72d6de83dacad494c5e84ed24 02-Jun-2011 Dianne Hackborn <hackbod@google.com> am 8b9a2b6c: am e6676351: Work around OpenFeint bug.

* commit '8b9a2b6cbd9cf37e9f5aa1bfc7106c67a5e89202':
Work around OpenFeint bug.
8b9a2b6cbd9cf37e9f5aa1bfc7106c67a5e89202 02-Jun-2011 Dianne Hackborn <hackbod@google.com> am e6676351: Work around OpenFeint bug.

* commit 'e66763516a9c27c192adaba417616371a1c3c9bf':
Work around OpenFeint bug.
287bd83f9ea257594e0d483d3851236139e5744e 29-May-2011 Jeff Sharkey <jsharkey@android.com> Snapshot PID/UID when enqueuing events.

Since ProcessRecord can change before event is processed, snapshot
PID/UID values when enqueuing.

Change-Id: I281e63310c8fc6c3761ae00e80e06654b18b3e17
om/android/server/am/ActivityManagerService.java
75279904202357565cf5a1cb11148d01f42b4569 25-May-2011 Jeff Sharkey <jsharkey@android.com> Collect historical network stats.

Periodically records delta network traffic into historical buckets to
support other services, such NetworkPolicyManager and Settings UI.

Introduces NetworkStatsHistory structure which contains sparse, uniform
buckets of data usage defined by timestamps. Service periodically
polls NetworkStats and records changes into buckets. It only persists
to disk when substantial changes have occured. Current parameters
create 4 buckets each day, and persist for 90 days, resulting in about
8kB of data per network.

Only records stats for "well known" network interfaces that have been
claimed by Telephony or Wi-Fi subsystems. Historical stats are also
keyed off identity (such as IMSI) to support SIM swapping.

Change-Id: Ia27d1289556a2bf9545fbc4f3b789425a01be53a
om/android/server/NetStatService.java
om/android/server/SystemServer.java
om/android/server/net/NetworkPolicyManagerService.java
om/android/server/net/NetworkStatsService.java
9599cc5f21152860af9d18015b1398b50743da76 22-May-2011 Jeff Sharkey <jsharkey@android.com> Tests for NetworkPolicyManager rule generation.

Verifies that policy changes trigger rule updates that respect current
foregroundActivities status. Also verifies logic that promotes a UID
based on its most-foreground PID. Verifies that policy changes result
in immediate rule changes.

Also verifies that BACKGROUND_DATA_SETTING_CHANGED broadcasts are sent
by policy changes.

Change-Id: I4fd0dad9e1dbccee2c5968244bb1814e6cb2c6e1
om/android/server/net/NetworkPolicyManagerService.java
1b861278a2051f53ce7955fb7992fa536dc975d9 22-May-2011 Jeff Sharkey <jsharkey@android.com> Teach NetworkPolicyManager how to dumpsys itself.

Includes details on all internally known UIDs, which can be used for
debugging purposes.

Change-Id: I340d25212e3c7a76a57de0a94ffeea34b6748941
om/android/server/net/NetworkPolicyManagerService.java
751fb1108239c47e024d803301ee17de753dbef0 02-Jun-2011 Jeff Sharkey <jsharkey@android.com> Merge "Policy and rules work for ConnectivityManager."
c006f1aec15454782c35e028ad64d79a5c161cc1 20-May-2011 Jeff Sharkey <jsharkey@android.com> Policy and rules work for ConnectivityManager.

Teach ConnectivityManager about UID-specific rules derived from policy,
such as rejecting network traffic on "paid" interfaces. Calls that
return NetworkInfo now filter based on any REJECT rules in effect for
the calling UID. (Added uid parameter if callers that still want all
interfaces.)

Changed NetworkPolicyManager to derive rules based on current policy
combined with PowerManager and ActivityManager status, which it passes
to ConnectivityService for eventual enforcement through netd. When
rules change the usability of a NetworkInfo for a specific UID, it also
dispatches CONNECTIVITY_ACTION broadcasts to that UID. Combined paid
and background policy together to match current working definition.

Change-Id: I797ea49439fcc487cfe2cbc16703d4b91ceb9af6
om/android/server/ConnectivityService.java
om/android/server/SystemServer.java
om/android/server/net/NetworkPolicyManagerService.java
e66763516a9c27c192adaba417616371a1c3c9bf 02-Jun-2011 Dianne Hackborn <hackbod@google.com> Work around OpenFeint bug.

Change-Id: Ib8320e50bb63fc56dc0118d5c8e9e328dbd3fcb1
om/android/server/am/ActivityStack.java
ca680af21b15ec51f31d294f2f1fe0110562fdfe 02-Jun-2011 Andy Stadler <stadler@google.com> Merge "Use unchecked admin lookup for getStorageEncryption()"
c994d693b684bcba1a690310b5b2be306074cc02 02-Jun-2011 Andy Stadler <stadler@google.com> Use unchecked admin lookup for getStorageEncryption()

Due to a copy/paste typo, getStorageEncryption() was protected by
getActiveAdminForCallerLocked(), which made the API unreadable if the
caller is not an admin. This doesn't match the rest of the DPM API which
allows the "get" calls to be made anonymously.

This fix supercedes the proposed workaround CL in the DPM ApiDemo sample.

Change-Id: If1a6237634e97ced09a7c6a8876bb6b0f60c9be9
om/android/server/DevicePolicyManagerService.java
75a99709accef8cf221fd436d646727e7c8dd1f1 19-May-2011 Christopher Tate <ctate@google.com> Restore from a previous full backup's tarfile

Usage: adb restore [tarfilename]

Restores app data [and installs the apps if necessary from the backup
file] captured in a previous invocation of 'adb backup'. The user
must explicitly acknowledge the action on-device before it is allowed
to proceed; this prevents any "invisible" pushes of content from the
host to the device.

Known issues:

* The settings databases and wallpaper are saved/restored, but lots
of other system state is not yet captured in the full backup. This
means that for practical purposes this is usable for 3rd party
apps at present but not for full-system cloning/imaging.

Change-Id: I0c748b645845e7c9178e30bf142857861a64efd3
om/android/server/BackupManagerService.java
om/android/server/SystemBackupAgent.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/BackupRecord.java
36f80f3a5a3de42d4e7ca4b53d4aa3e567f4df6f 01-Jun-2011 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 590ec479 to master

Change-Id: I30503da6a73b9cb15eee66a67c75d50ccdc4b9f0
7322e557cfe42da42779625d69ced2db74a9df90 01-Jun-2011 Dianne Hackborn <hackbod@google.com> am a4cfcf10: am 75d6b3c2: Merge "Fix issue #4502672: Wrong xml resources used for homescreen widgets." into honeycomb-mr2

* commit 'a4cfcf10cc300a1eb5b2a4254fb7d3190c56c4f1':
Fix issue #4502672: Wrong xml resources used for homescreen widgets.
a4cfcf10cc300a1eb5b2a4254fb7d3190c56c4f1 01-Jun-2011 Dianne Hackborn <hackbod@google.com> am 75d6b3c2: Merge "Fix issue #4502672: Wrong xml resources used for homescreen widgets." into honeycomb-mr2

* commit '75d6b3c2a24224e41e87685db0d9d0b8abea091d':
Fix issue #4502672: Wrong xml resources used for homescreen widgets.
75d6b3c2a24224e41e87685db0d9d0b8abea091d 01-Jun-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #4502672: Wrong xml resources used for homescreen widgets." into honeycomb-mr2
2f0b17573d4324832f7a20402a3d2b5920bc4866 01-Jun-2011 Dianne Hackborn <hackbod@google.com> Fix issue #4502672: Wrong xml resources used for homescreen widgets.

There was a race in the system process between applying the initial
configuration and executing code in higher-level system services
like the app widget service that relies on the config. For some
reason it starting showing up more after my code changes; it should
now be completely fixed.

Also fix the activity starting window to run in compatibility mode
if its application is going to be in compatibility mode.

And some various cleanup and small fixes.

Change-Id: I0566933bf1bbb4259c1d99a60c0a3c19af1542e5
om/android/server/AppWidgetService.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityStack.java
om/android/server/am/CompatModePackages.java
om/android/server/wm/StartingData.java
om/android/server/wm/WindowManagerService.java
46d0adf8256a42416584765625852b6e48497c90 26-May-2011 Mike Lockwood <lockwood@android.com> UsbService: Refactor USB host and device support into two separate classes

Host support is in UsbHostManager, device support is in UsbDeviceManager

Renamed UsbDeviceSettingsManager to UsbSettingsManager

Change-Id: Ib76e72957c233fa7f08f454d4d9a2a1da6368cc7
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/usb/UsbDeviceManager.java
om/android/server/usb/UsbDeviceSettingsManager.java
om/android/server/usb/UsbHostManager.java
om/android/server/usb/UsbService.java
om/android/server/usb/UsbSettingsManager.java
b0aee3ee430ce79430ba16e53109840db5bc342a 01-Jun-2011 Mike Lockwood <lockwood@android.com> Merge "Move stringToFile utility from ConnectivityService to FileUtils"
7e193916c033bc952222ca808916b2dc4b4b557d 01-Jun-2011 Jeff Brown <jeffbrown@android.com> am 425f2a6d: am c272d427: Merge "Use ViewConfiguration to seed input system configuration." into honeycomb-mr2

* commit '425f2a6d71b3af058630367d75b0b924bf1aee49':
Use ViewConfiguration to seed input system configuration.
425f2a6d71b3af058630367d75b0b924bf1aee49 01-Jun-2011 Jeff Brown <jeffbrown@android.com> am c272d427: Merge "Use ViewConfiguration to seed input system configuration." into honeycomb-mr2

* commit 'c272d4279493000928b8b7c6dbcf2d2b7d8d08b2':
Use ViewConfiguration to seed input system configuration.
c272d4279493000928b8b7c6dbcf2d2b7d8d08b2 01-Jun-2011 Jeff Brown <jeffbrown@android.com> Merge "Use ViewConfiguration to seed input system configuration." into honeycomb-mr2
214eaf48878bba00cbd5831871bcbd82632b6e34 27-May-2011 Jeff Brown <jeffbrown@android.com> Use ViewConfiguration to seed input system configuration.

Fix bug where the pointer presentation would be updated on
any input reader timeout rather than only when a pointer gesture
is in progress.

Bug: 4124987
Change-Id: Ie9bba4a0b3228d55e45e65fa2ede5cd6ba887a08
om/android/server/wm/InputManager.java
cc4053e031371456fe54d51bbad1db721db4ae38 23-May-2011 Svetoslav Ganov <svetoslavganov@google.com> Accessibility serviceconfiguration via meta-data

Note: This is a part of two CL change and contains the
system changes without updates to the settings.

1. Added a mechanism for configuring an accessibility service via
XML file specified in a meta-data tag (similar to IMEs).

2. Added property for specifying a settings activity for an
accessibility service.

3. Refactored the APIs in AccessibilityManager to return
lists of AccessiblityServiceInfo instead ServiceInfo
since the former describes an AccessibilityService in
particular (similar to IMEs).

Change-Id: Ie8781bb7e0cdb329e583b6702a612a507367ad7b
om/android/server/accessibility/AccessibilityManagerService.java
9b4157935af9e44571187a9533c2cc9b413383bf 29-May-2011 satok <satok@google.com> Use isAuxiliary instead of ExtraValue for the auxiliary subtypes.

Change-Id: Ibce4f884e697ca789b9942cf3abad43741040a87
om/android/server/InputMethodManagerService.java
da8bb74b9d9ffcb095815db800d0816c411f1fba 28-May-2011 Mike Lockwood <lockwood@android.com> Move stringToFile utility from ConnectivityService to FileUtils

Change-Id: I59a2dc649d59677f6b5e7ade252587c7c151ec06
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/ConnectivityService.java
096762d6efcae6300c02919bc6b3eaeeffccf91d 28-May-2011 Dianne Hackborn <hackbod@google.com> am 8075fe48: am 78470718: Fix various places that were using the wrong display metrics.

* commit '8075fe48bf345e4014de9b7bee8def5f4373457c':
Fix various places that were using the wrong display metrics.
8075fe48bf345e4014de9b7bee8def5f4373457c 28-May-2011 Dianne Hackborn <hackbod@google.com> am 78470718: Fix various places that were using the wrong display metrics.

* commit '784707187d96b731df5256c1c2adb0aaf9037239':
Fix various places that were using the wrong display metrics.
784707187d96b731df5256c1c2adb0aaf9037239 28-May-2011 Dianne Hackborn <hackbod@google.com> Fix various places that were using the wrong display metrics.

Change-Id: I1ac2a0c4a1b7c851dbc99d26f295c7dd49b0bd5c
om/android/server/wm/ScreenRotationAnimation.java
om/android/server/wm/StrictModeFlash.java
om/android/server/wm/Watermark.java
9b94aa18f78e6c6281202e72b5a7451bc479fe82 28-May-2011 Dianne Hackborn <hackbod@google.com> am e5d37701: am 8ea5e1d7: Fix compat mode bugs when updating apps.

* commit 'e5d377014b04022a04fd0b2b24b343d1e0ec8d2a':
Fix compat mode bugs when updating apps.
e5d377014b04022a04fd0b2b24b343d1e0ec8d2a 28-May-2011 Dianne Hackborn <hackbod@google.com> am 8ea5e1d7: Fix compat mode bugs when updating apps.

* commit '8ea5e1d79eb1f05ee7628b0d45ea8fc8eea5330d':
Fix compat mode bugs when updating apps.
8ea5e1d79eb1f05ee7628b0d45ea8fc8eea5330d 28-May-2011 Dianne Hackborn <hackbod@google.com> Fix compat mode bugs when updating apps.

No longer accidentally puts an app into compatibility mode.

Also various cleanup, freezing screen while switching between modes.

Change-Id: Ic1b3958be7800189a93f68e9dee3c5adfc45fe57
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityRecord.java
om/android/server/am/ActivityStack.java
om/android/server/am/CompatModePackages.java
om/android/server/am/ProcessRecord.java
d7eedc0a698062c506c3b7caf93f44a2181a80af 28-May-2011 Elliott Hughes <enh@google.com> FileOutputStream guarantees to open O_TRUNC (unless you explicitly ask otherwise).

Change-Id: Ibd2f247d8e52b2814729c93442ae197c186660f6
om/android/server/BackupManagerService.java
5c2e4d20df934728f39312741ef3390fd87795ce 27-May-2011 Dianne Hackborn <hackbod@google.com> am 8fcbfb52: am 94250ac6: Merge "Add new supports-screens attributes for declaring the compatible screens." into honeycomb-mr2

* commit '8fcbfb52607263754b6d3895a112f792c5c3a12e':
Add new supports-screens attributes for declaring the compatible screens.
8fcbfb52607263754b6d3895a112f792c5c3a12e 27-May-2011 Dianne Hackborn <hackbod@google.com> am 94250ac6: Merge "Add new supports-screens attributes for declaring the compatible screens." into honeycomb-mr2

* commit '94250ac69c6e07534e4781d3479dccb79d8c366c':
Add new supports-screens attributes for declaring the compatible screens.
94250ac69c6e07534e4781d3479dccb79d8c366c 27-May-2011 Dianne Hackborn <hackbod@google.com> Merge "Add new supports-screens attributes for declaring the compatible screens." into honeycomb-mr2
df6e980e3f63eb0f6f9eb437fa925d5009cd9c44 26-May-2011 Dianne Hackborn <hackbod@google.com> Add new supports-screens attributes for declaring the compatible screens.

Change-Id: I40d57e4354e48accc1027c9f90916ea73eb5190d
android:requiresSmallestWidthDp provides the smallest supported width.
android:compatibleWidthLimitDp provides the largest compatible width.
om/android/server/am/CompatModePackages.java
469465c45e42c66201639feb49db5421f5843bbe 26-May-2011 Dianne Hackborn <hackbod@google.com> am 0821f274: am 2a108403: I am a dummy.

* commit '0821f2745d05af98195c9c1c7889ca14e9c56e0b':
I am a dummy.
76450622f08b1d0d09df7f1ad8e52afe01090770 26-May-2011 Dianne Hackborn <hackbod@google.com> am d5238cc1: am 7a09f72b: Merge "Rework how we decide whether to use system or status bar." into honeycomb-mr2

* commit 'd5238cc1ab8366389b2aada228f2f2e5cbb3244e':
Rework how we decide whether to use system or status bar.
5e34a1945a6b26dff5551a37627c5216b076d896 26-May-2011 Kenny Root <kroot@google.com> am 1d8f8819: Merge "Break apart queries to getInstalled* API DO NOT MERGE" into honeycomb-mr2

* commit '1d8f8819f1e98cdf3b7756396158613e95fe9eb6':
Break apart queries to getInstalled* API DO NOT MERGE
0821f2745d05af98195c9c1c7889ca14e9c56e0b 26-May-2011 Dianne Hackborn <hackbod@google.com> am 2a108403: I am a dummy.

* commit '2a108403803bd30bee1c019060c208fb8c52c10c':
I am a dummy.
d5238cc1ab8366389b2aada228f2f2e5cbb3244e 26-May-2011 Dianne Hackborn <hackbod@google.com> am 7a09f72b: Merge "Rework how we decide whether to use system or status bar." into honeycomb-mr2

* commit '7a09f72b8850ec22e4ca7fd50aba20ead7666f67':
Rework how we decide whether to use system or status bar.
1d8f8819f1e98cdf3b7756396158613e95fe9eb6 26-May-2011 Kenny Root <kroot@google.com> Merge "Break apart queries to getInstalled* API DO NOT MERGE" into honeycomb-mr2
2a108403803bd30bee1c019060c208fb8c52c10c 26-May-2011 Dianne Hackborn <hackbod@google.com> I am a dummy.

Change-Id: Ie6908a8931954f83ab0e9b905173b576dbf3661d
om/android/server/DevicePolicyManagerService.java
590ec479fd51e13d077212833e2ac4f848a49cc3 26-May-2011 Dianne Hackborn <hackbod@google.com> am 80ef2a97: am 42f8094c: Merge "Spiffy new compatibility mode UI." into honeycomb-mr2

* commit '80ef2a9745e6103efd9698577536bbfed1fd74f6':
Spiffy new compatibility mode UI.
81e56d535c853d73ff537357da5b935f51cb779d 26-May-2011 Dianne Hackborn <hackbod@google.com> Rework how we decide whether to use system or status bar.

The PhoneWindowManager is now responsible for determing this,
since it needs to do this before we can generate the configuration
since we need to take into account the system bar size we will use.

Also the Display should now report the screen height without
including the system bar.

Change-Id: I82dfcc5e327e4d13d82c373c6c870f557a99b757
om/android/server/wm/WindowManagerService.java
80ef2a9745e6103efd9698577536bbfed1fd74f6 26-May-2011 Dianne Hackborn <hackbod@google.com> am 42f8094c: Merge "Spiffy new compatibility mode UI." into honeycomb-mr2

* commit '42f8094c066209a65b09d53611ef5c93daba4c51':
Spiffy new compatibility mode UI.
1bb6cf18c0039cb9d2a60713ea34d3709af58c5c 16-Apr-2011 Kenny Root <kroot@google.com> Break apart queries to getInstalled* API DO NOT MERGE

To avoid blowing past the Binder IPC limit, change the
PackageManagerService to have a DB-like interaction where the client
tells the service the last "row" that it read.

The fact that we use a HashMap instead of a TreeMap makes this
problematic. For now we're just making a new ArrayList for the keys and
then sorting them for each call. This can make the API slower for callers
of this, but it's probably greatly overshadowed by the cost of the data
transfer itself.

Bug: 4064282
Change-Id: Ia3a8cdaa94581ed9336f2e05694b8c8a5f757bce
om/android/server/PackageManagerService.java
8c1132e3ceed8e1a8c696e2afe0e6fe456ccd7ef 26-May-2011 Daniel Sandler <dsandler@android.com> Merge "Framework support for Android Dreams."
42c5a1666c4e576ccd5974233513100aad2c1534 26-May-2011 satok <satok@google.com> Fix internal variables and equals in SuggestionSpan

Bug: 4443922

- Instantiating other package's class for the name is complicated, so we changed the internal value for the notification target class from Class to String.
- Implement equals

Change-Id: Iaf7682be777f0027d33c9a3be4609ac01b6950ad
om/android/server/InputMethodManagerService.java
2a3c67c0e99bd3d8c6c538ff323a27df19cad109 26-May-2011 Joe Onorato <joeo@google.com> am cfb046de: am 2c09a9c0: am 5520610c: Merge "Make adb shell am display-size persistent." into honeycomb-mr2

* commit 'cfb046dead49568de6f6808a697e0508ef39a3a6':
Make adb shell am display-size persistent.
620d69d85b240a31ad1c41a23d28ea746e161ee3 26-May-2011 Dianne Hackborn <hackbod@google.com> am 103e74d9: am d6f29cd8: am 2a15eb55: Merge "Fix issue #4445007: DPM initializes some values to 1, instead of 0" into honeycomb-mr2

* commit '103e74d9b1fdebbbc035da0567cd075554d4137d':
Fix issue #4445007: DPM initializes some values to 1, instead of 0
42f8094c066209a65b09d53611ef5c93daba4c51 26-May-2011 Dianne Hackborn <hackbod@google.com> Merge "Spiffy new compatibility mode UI." into honeycomb-mr2
36cd41f8efa6f6a683d3353d309ff548295af9e9 26-May-2011 Dianne Hackborn <hackbod@google.com> Spiffy new compatibility mode UI.

Change-Id: I1207eaafae59a434fcc979ad60a83e2d685288af
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityStack.java
om/android/server/am/CompatModeDialog.java
om/android/server/am/CompatModePackages.java
om/android/server/am/TaskRecord.java
f9f01008624e2d28c15a90d942fa36f98c8c967d 19-May-2011 satok <satok@google.com> Add Apis to send notifications when the suggestion was picked

- Due to a strong request from VoiceIME

Bug: 4443922

Change-Id: Ia539de0acf66053e0349daec459d75e36805f6bf
om/android/server/InputMethodManagerService.java
3c2fb0242b0ec21101959dfa08aad3162a523634 25-May-2011 Jeff Brown <jeffbrown@google.com> am 8148cc3e: am 86ea1f5f: Initial checkin of spot presentation for touchpad gestures. (DO NOT MERGE)

* commit '8148cc3e47e50c916066e2fed562618b5827188f':
Initial checkin of spot presentation for touchpad gestures. (DO NOT MERGE)
8148cc3e47e50c916066e2fed562618b5827188f 25-May-2011 Jeff Brown <jeffbrown@google.com> am 86ea1f5f: Initial checkin of spot presentation for touchpad gestures. (DO NOT MERGE)

* commit '86ea1f5f521981d075aef56f11693e4f3bc32fdb':
Initial checkin of spot presentation for touchpad gestures. (DO NOT MERGE)
86ea1f5f521981d075aef56f11693e4f3bc32fdb 13-Apr-2011 Jeff Brown <jeffbrown@google.com> Initial checkin of spot presentation for touchpad gestures. (DO NOT MERGE)

Added a new PointerIcon API (hidden for now) for loading
pointer icons.

Fixed a starvation problem in the native Looper's sendMessage
implementation which caused new messages to be posted ahead
of old messages sent with sendMessageDelayed.

Redesigned the touch pad gestures to be defined in terms of
more fluid finger / spot movements. The objective is to reinforce
the natural mapping between fingers and spots which means there
must not be any discontinuities in spot motion relative to
the fingers.

Removed the SpotController stub and folded its responsibilities
into PointerController.

Change-Id: Ib647dbd7a57a7f30dd9c6e2c260df51d7bbdd18e
om/android/server/wm/InputManager.java
cfb046dead49568de6f6808a697e0508ef39a3a6 25-May-2011 Joe Onorato <joeo@google.com> am 2c09a9c0: am 5520610c: Merge "Make adb shell am display-size persistent." into honeycomb-mr2

* commit '2c09a9c0e960163a16ad1d06055aa6ee9635c693':
Make adb shell am display-size persistent.
2c09a9c0e960163a16ad1d06055aa6ee9635c693 25-May-2011 Joe Onorato <joeo@google.com> am 5520610c: Merge "Make adb shell am display-size persistent." into honeycomb-mr2

* commit '5520610cb2612054c5d0bcec9d031f7b71faa349':
Make adb shell am display-size persistent.
5520610cb2612054c5d0bcec9d031f7b71faa349 25-May-2011 Joe Onorato <joeo@google.com> Merge "Make adb shell am display-size persistent." into honeycomb-mr2
571ae90801d943a4c0c8897d1cf74c9cfe04b1ec 24-May-2011 Joe Onorato <joeo@google.com> Make adb shell am display-size persistent.

Change-Id: If3d5d18729f4e89eb7e689994deadd996fd487e9
om/android/server/wm/WindowManagerService.java
103e74d9b1fdebbbc035da0567cd075554d4137d 25-May-2011 Dianne Hackborn <hackbod@google.com> am d6f29cd8: am 2a15eb55: Merge "Fix issue #4445007: DPM initializes some values to 1, instead of 0" into honeycomb-mr2

* commit 'd6f29cd8f92b098330818227428f5a42836097b7':
Fix issue #4445007: DPM initializes some values to 1, instead of 0
d6f29cd8f92b098330818227428f5a42836097b7 25-May-2011 Dianne Hackborn <hackbod@google.com> am 2a15eb55: Merge "Fix issue #4445007: DPM initializes some values to 1, instead of 0" into honeycomb-mr2

* commit '2a15eb559cfc18800b3e345995df76695a3ae4b2':
Fix issue #4445007: DPM initializes some values to 1, instead of 0
d998acb3491fe750ce157b6171d5b0a18f4b3883 25-May-2011 Dianne Hackborn <hackbod@google.com> Fix issue #4445007: DPM initializes some values to 1, instead of 0

Also fix not writing the settings file when an admin is removed.

And take care of an old to-do about not removing an admin until
after it has received the broadcast about it being disabled.

Change-Id: I4ebe0ea0461222b65425b2c5438b646b572f18c8
om/android/server/DevicePolicyManagerService.java
cecb710a6de249a3847da2f07464a1aecf9459ac 25-May-2011 TK MUN <tk.mun@samsung.com> am 94260caf: Allow control over search order for tethering upstream interface selection

* commit '94260caf2fb3f5dbf6e17b29a269b46ea05f8680':
Allow control over search order for tethering upstream interface selection
94260caf2fb3f5dbf6e17b29a269b46ea05f8680 18-May-2011 TK MUN <tk.mun@samsung.com> Allow control over search order for tethering upstream interface selection

Change-Id: If02c9b2bb61b68ebafafadc23ba17a332bc8004f
Signed-off-by: TK MUN <tk.mun@samsung.com>
om/android/server/connectivity/Tethering.java
b5b1fb25853eb2e00f981d3b0bb52acd50684c4f 24-May-2011 Jeff Brown <jeffbrown@google.com> Merge "Support wrapping app processes to inject debug instrumentation. Bug: 4437846"
7cc9ee2676d3e892945d2096b18739802d5179e1 24-May-2011 Mike Lockwood <lockwood@android.com> am 859443f2: am c0d9834a: am 5d78e0b8: Merge "GPS: Change NTP polling interval from 4 to 24 hours" into honeycomb-mr2

* commit '859443f2a4d6a2b72c3e9c75720d32d4e4c09489':
GPS: Change NTP polling interval from 4 to 24 hours
9fd4c6d3aeea46820c7ab637b0bc6556b798bc2b 24-May-2011 Mike Lockwood <lockwood@android.com> am 49b9449b: am d8d84708: am 988b6648: Merge "MountService: Add StorageVolume as extra in storage related broadcasts." into honeycomb-mr2

* commit '49b9449b6605c7b4f77f9a0635ba93f7dfa0ea47':
MountService: Add StorageVolume as extra in storage related broadcasts.
ebed7d6e35f7f960e6e6add2b8ab7c7a31a511c3 17-May-2011 Jeff Brown <jeffbrown@google.com> Support wrapping app processes to inject debug instrumentation.
Bug: 4437846

Change-Id: I4552501c693716b14714afb5c5248edaca9547ab
om/android/server/am/ActivityManagerService.java
0601eb7953cbf77d92826bef3ca37e208d922de7 13-Apr-2011 Daniel Sandler <dsandler@android.com> Framework support for Android Dreams.

A Dream is an activity that is launched by the window
manager after a specified idle time. You might think of this
as a "screen saver", but with the same capacity for
interactivity as any other application.

The window manager maintains a timer (like the screen lock
timer) that is reset on userActivity; the timer is suspended
during wakelocks and when the screen is off.

When the timer elapses, the user's preferred dream module is
launched (by reading Settings.Secure.DREAM_COMPONENT, which
is configured through the Settings app UI).

Like a dock app, the user can install new dreams and a
single application package may contain multiple dream
activities. Unlike the dock mode, however, there is no
"screensaver mode" for the system to manage. This allows us
to offer the user the ability to run a dream at any time, in
addition to making the overall mechanism quite simple.

There is no public API for this facility.

There is, however, a useful/recommended base class for dream
activities in the support library (change I4559a958).

Change-Id: Ied691856f88cfa38a7aca496d015f9a595da72f2
om/android/server/wm/WindowManagerService.java
859443f2a4d6a2b72c3e9c75720d32d4e4c09489 24-May-2011 Mike Lockwood <lockwood@android.com> am c0d9834a: am 5d78e0b8: Merge "GPS: Change NTP polling interval from 4 to 24 hours" into honeycomb-mr2

* commit 'c0d9834a1c6dd8d9cd0b7fe9b50495578c104405':
GPS: Change NTP polling interval from 4 to 24 hours
a4620793038b9a9163b26c6ece882cb454fcbf87 21-May-2011 Jeff Sharkey <jsharkey@android.com> Observe screen on/off events in NetworkPolicy.

The POLICY_REJECT_BACKGROUND policy requires that network traffic be
blocked when a UID goes into the background. Even if the UID has an
activity in the foreground, it's considered "background" if the screen
is turned off.

This changes watches for SCREEN_ON/OFF broadcasts, and rule generation
now observes screen state. It also introduces an observer pattern so
that ActivityManager doesn't directly know about NetworkPolicy, and
moves the service management into SystemServer.

Change-Id: Ie7a84929d3ca60ae4578d47e19d5a8da10fd8d58
om/android/server/SystemServer.java
om/android/server/am/ActivityManagerService.java
om/android/server/net/NetworkPolicyManagerService.java
442fa21e98835ceb966f196906907eb236d38d65 24-May-2011 Jeff Sharkey <jsharkey@android.com> Merge "APIs to profile network usage for current UID."
c0d9834a1c6dd8d9cd0b7fe9b50495578c104405 24-May-2011 Mike Lockwood <lockwood@android.com> am 5d78e0b8: Merge "GPS: Change NTP polling interval from 4 to 24 hours" into honeycomb-mr2

* commit '5d78e0b8ea548da3fa88ae2190a9334297b992b6':
GPS: Change NTP polling interval from 4 to 24 hours
5d78e0b8ea548da3fa88ae2190a9334297b992b6 24-May-2011 Mike Lockwood <lockwood@android.com> Merge "GPS: Change NTP polling interval from 4 to 24 hours" into honeycomb-mr2
4c126068527c9adba45aa227d40e245ee8e7c9a4 24-May-2011 Mike Lockwood <lockwood@android.com> GPS: Change NTP polling interval from 4 to 24 hours

4 hours is excessive, and we want to save bandwidth on the NTP servers

Change-Id: Ic5ac4f4a8e62167206f3f620ea51635a2ea771d6
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/location/GpsLocationProvider.java
49b9449b6605c7b4f77f9a0635ba93f7dfa0ea47 24-May-2011 Mike Lockwood <lockwood@android.com> am d8d84708: am 988b6648: Merge "MountService: Add StorageVolume as extra in storage related broadcasts." into honeycomb-mr2

* commit 'd8d8470825a637843d45a3b436e80a3b85f1dd11':
MountService: Add StorageVolume as extra in storage related broadcasts.
d8d8470825a637843d45a3b436e80a3b85f1dd11 24-May-2011 Mike Lockwood <lockwood@android.com> am 988b6648: Merge "MountService: Add StorageVolume as extra in storage related broadcasts." into honeycomb-mr2

* commit '988b6648b0138fe1294228e17164b2f1d6a4042d':
MountService: Add StorageVolume as extra in storage related broadcasts.
a5250c93928e256738125b265e10c96c3575597e 23-May-2011 Mike Lockwood <lockwood@android.com> MountService: Add StorageVolume as extra in storage related broadcasts.

Change-Id: I8e1a21ae233ba9812e58b363b59a66b260a01cbf
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/MountService.java
008ff39b7cb1a1f80f29595459fd82a55ce52b83 24-May-2011 Chia-chi Yeh <chiachi@android.com> Do not register the callbacks in the constructor.

Change-Id: Ic7509c35cfb17b022a2af3cc14170942d6510e2d
om/android/server/ConnectivityService.java
om/android/server/connectivity/Tethering.java
8508485871dd22a998db98ea97403126918c5fa8 22-May-2011 Robert Greenwalt <rgreenwalt@google.com> am 5a6bec53: resolved conflicts for merge of dec3dda8 to honeycomb-plus-aosp

* commit '5a6bec53e224b2db9ecbc6920faab08f4a962256':
Simplfy getActive* calls in ConnectivityService
eedcb9525ba5befee2ba6ebb7a9ee3f13395c2a3 17-May-2011 Jeff Sharkey <jsharkey@android.com> APIs to profile network usage for current UID.

Added startDataProfiling() and stopDataProfiling() to TrafficStats,
which can be used by apps to measure network usage delta between two
points in time. Currently takes two NetworkStats snapshots and returns
delta, which will eventually include tag-level granularity. Added
tests for NetworkStats delta subtraction.

Added NMS.getNetworkStatsUidDetail() that returns stats for specific
UID. Always gives stats access for the calling UID, otherwise enforces
that caller has permission. Fix readSingleLongFromFile(), since
/proc/ files don't have well-defined lengths.

Change-Id: Ic5b6414d8effbd66846e275b00d4b8a82c74589d
om/android/server/NetworkManagementService.java
om/android/server/net/NetworkPolicyManagerService.java
5a6bec53e224b2db9ecbc6920faab08f4a962256 21-May-2011 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of dec3dda8 to honeycomb-plus-aosp

Change-Id: If14c7fc51c4549524c2f39797a902093582bae6d
599115894f6f960a879d2e3036c547bbf4136020 20-May-2011 Robert Greenwalt <rgreenwalt@google.com> Simplfy getActive* calls in ConnectivityService

One had been simplified on GB, but somehow it didn't make it here.
bug: 4463770

Change-Id: Ica51e836b1a7a489526a223168910b8e06c99c2b
om/android/server/ConnectivityService.java
33bdc3c9995cbef477cec756b65d767558e6b836 20-May-2011 satok <satok@google.com> am d9435bce: am b4788fdb: Do not merge. Backport two fixes for InputMethethodFramework

* commit 'd9435bcecc820c8715d8b6b920fd43042418a1e9':
Do not merge. Backport two fixes for InputMethethodFramework
d9435bcecc820c8715d8b6b920fd43042418a1e9 20-May-2011 satok <satok@google.com> am b4788fdb: Do not merge. Backport two fixes for InputMethethodFramework

* commit 'b4788fdbfdda97bd9cfd0e483276934114d9c438':
Do not merge. Backport two fixes for InputMethethodFramework
208d5634047111811de16fb63c43d0bc8b4fe6de 20-May-2011 satok <satok@google.com> Fix a bug on SwitchToLastInputMethod

Change-Id: Iab7531e7436375941ec3df4fba943af24e2f1231
om/android/server/InputMethodManagerService.java
b4788fdbfdda97bd9cfd0e483276934114d9c438 20-May-2011 satok <satok@google.com> Do not merge. Backport two fixes for InputMethethodFramework

Bug: 3420384

backport cl1: Iaf293cf6c6fb35a994f344b0afc30e9f523032f4
backport cl2: I29d2555aeb7d0e51205d9f1fe0da708df0890942

Change-Id: Ia71ba27957fa818dc4ef8ff05b5fdb120b9650e0
om/android/server/InputMethodManagerService.java
4fc87d61c29886c848789208c9e32ba9ac4e5dd3 20-May-2011 satok <satok@google.com> Fix switchToLastInputMethod to fall back into the applicable keyboard if there is no candidate ime

Change-Id: Iaf293cf6c6fb35a994f344b0afc30e9f523032f4
om/android/server/InputMethodManagerService.java
161e67ff3ba26408eea09221734ad2e29a1eed11 20-May-2011 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 06a8ceac to master

Change-Id: Id51574c825affddfac14ad7214c5496d6a3d6e69
06a8ceacb0dc2713cb0bb2c93d2a750f2a58db68 20-May-2011 Dianne Hackborn <hackbod@google.com> am c851ea56: am 69cb8757: Add new "-swNNNdp" resource qualifier.

* commit 'c851ea5672f6e042c2e89b2a2ce4a2467e1fcd2a':
Add new "-swNNNdp" resource qualifier.
c851ea5672f6e042c2e89b2a2ce4a2467e1fcd2a 20-May-2011 Dianne Hackborn <hackbod@google.com> am 69cb8757: Add new "-swNNNdp" resource qualifier.

* commit '69cb87576ba163b61bb0e6477a3b7c57a9b11d40':
Add new "-swNNNdp" resource qualifier.
e219b5452c20b069b25109a8bedca8d37ec3ccb6 20-May-2011 Svetoslav Ganov <svetoslavganov@google.com> Merge "TouchExplorer - refactoring and a couple of bug fixes"
91feae3c5994bd4768cea3507c62c65746adcfa6 20-May-2011 Svetoslav Ganov <svetoslavganov@google.com> TouchExplorer - refactoring and a couple of bug fixes

1. Refactored the code to avoid code duplication.

2. Fixed a bug in removing unused pointers from the event.

3. Fixed a bug that was crashing the explorer.

4. Sending hover exit immediately at the end of touch exploration
gesture rather with a delay.

Change-Id: Ie288cb8090d6fb5e5c715afa6ea5660b17c019e0
om/android/server/accessibility/TouchExplorer.java
69cb87576ba163b61bb0e6477a3b7c57a9b11d40 20-May-2011 Dianne Hackborn <hackbod@google.com> Add new "-swNNNdp" resource qualifier.

Change-Id: I0101e88ca9d8d44138bdcaf571f24b0352f4f6ce
om/android/server/wm/WindowManagerService.java
71fcc865e3ac3a3b05ffa204e6a2eaa8bad48a8c 20-May-2011 Romain Guy <romainguy@google.com> Merge "Code cleanup."
88b4f153e2be863d79f4d7f68af95e0f9375e4ec 20-May-2011 Romain Guy <romainguy@google.com> Code cleanup.

Change-Id: Ia6ea04b83832db2f39e3168ef2596c24273a7ef3
om/android/server/wm/ViewServer.java
e526cfb490a4c855d3b6c89096c9f606b02190f8 20-May-2011 Irfan Sheriff <isheriff@google.com> am 5b9ceeba: am a4815c0e: am 9c9088a5: Merge "Move softap config handling to WifiConfigStore" into honeycomb-mr2

* commit '5b9ceebafd36db4491a49c1f00750ce50c4d4433':
Move softap config handling to WifiConfigStore
a51b6fd6f8a53f040894ef07cf23695581595e6b 20-May-2011 Kenny Root <kroot@google.com> resolved conflicts for merge of b2d0ee16 to master

Change-Id: I4483a6d0ccecfea4a1e66bb6eba80d13e8b9a3a4
5b9ceebafd36db4491a49c1f00750ce50c4d4433 20-May-2011 Irfan Sheriff <isheriff@google.com> am a4815c0e: am 9c9088a5: Merge "Move softap config handling to WifiConfigStore" into honeycomb-mr2

* commit 'a4815c0ec06c293ea9f50b2b925d5a98d11f1143':
Move softap config handling to WifiConfigStore
a4815c0ec06c293ea9f50b2b925d5a98d11f1143 19-May-2011 Irfan Sheriff <isheriff@google.com> am 9c9088a5: Merge "Move softap config handling to WifiConfigStore" into honeycomb-mr2

* commit '9c9088a54f6dee7a13dcc7a12297137147b01baa':
Move softap config handling to WifiConfigStore
9c9088a54f6dee7a13dcc7a12297137147b01baa 19-May-2011 Irfan Sheriff <isheriff@google.com> Merge "Move softap config handling to WifiConfigStore" into honeycomb-mr2
e6cd0c747e76723bc51a23925c239ae10f9d3b5c 19-May-2011 Kenny Root <kroot@google.com> resolved conflicts for merge of 2433c443 to honeycomb-plus-aosp

Change-Id: I3385f57e5761679e6700bcbe3c41deb3ecd43ba1
2433c443bb5fe96d9a39b59e10e3c03d791e2278 19-May-2011 Kenny Root <kroot@google.com> am f2006f31: Merge "Break apart queries to getInstalled* API" into gingerbread

* commit 'f2006f3123dcdf598e052051041b49c89710b53e':
Break apart queries to getInstalled* API
f2006f3123dcdf598e052051041b49c89710b53e 19-May-2011 Kenny Root <kroot@google.com> Merge "Break apart queries to getInstalled* API" into gingerbread
5c3816f2ff3d40136da1e40eec792d8faf0e75dd 19-May-2011 Jean-Baptiste Queru <jbq@google.com> Merge c41aefe1

Change-Id: I70fc4382f832d1a2bded8a5ee7d9b96fac77879b
d37b84edf55e5c242de23f1e7dfc61cc150e7b54 19-May-2011 Dianne Hackborn <hackbod@google.com> am ba8fc5b0: am 8416e5cf: am 6ad07db7: Merge "Fix fake display size when rotated." into honeycomb-mr2

* commit 'ba8fc5b059228402afa965e175d5f6655e3fe555':
Fix fake display size when rotated.
8904c3d814b5959b17a0523177f4142db6a18f1e 19-May-2011 Kazuhiro Ondo <kazuhiro.ondo@motorola.com> am b22a9fd9: am 01758e81: Linkproperties update via unsol data call state change.

* commit 'b22a9fd9bb32133cbc7dc4fc7752dbf68e52dffe':
Linkproperties update via unsol data call state change.
c41aefe1d4c862a9fbaf717ffb886bbd702c94f2 19-May-2011 Robert Greenwalt <rgreenwalt@google.com> am 59b1a4ed: Switch to use netd to add/remove routes.

* commit '59b1a4ede7032c1b4d897e13dd4ede09b5e14743':
Switch to use netd to add/remove routes.
ffcea7ae7316ab748a49f5e8f6c6798356f35719 11-May-2011 Irfan Sheriff <isheriff@google.com> Move softap config handling to WifiConfigStore

Move softap config to flat file and read/write on a seperate handler thread

Bug: 4391796

Change-Id: Iafe43200d7f829df7ced20a4e7b0ed451ad22a05
om/android/server/WifiService.java
59b1a4ede7032c1b4d897e13dd4ede09b5e14743 11-May-2011 Robert Greenwalt <rgreenwalt@google.com> Switch to use netd to add/remove routes.

Also adds support for v6 routes and for removing single routes.

Change-Id: I1c4f08c7938371090944d8d6f603e1e0d6d70c01
om/android/server/ConnectivityService.java
om/android/server/NetworkManagementService.java
ba8fc5b059228402afa965e175d5f6655e3fe555 19-May-2011 Dianne Hackborn <hackbod@google.com> am 8416e5cf: am 6ad07db7: Merge "Fix fake display size when rotated." into honeycomb-mr2

* commit '8416e5cf0a8439a3f605629068d3639f2a35e08b':
Fix fake display size when rotated.
8416e5cf0a8439a3f605629068d3639f2a35e08b 19-May-2011 Dianne Hackborn <hackbod@google.com> am 6ad07db7: Merge "Fix fake display size when rotated." into honeycomb-mr2

* commit '6ad07db7a2c289d036f081eb0c7a666cdb77b548':
Fix fake display size when rotated.
8f7c271ac9daa35708246bf279f71db5ff103b58 19-May-2011 Dianne Hackborn <hackbod@google.com> Fix fake display size when rotated.

Change-Id: Ic8a1dbe32cf0cb3c5cdc9b9294b98e810558f875
om/android/server/wm/WindowManagerService.java
fb03c4fafee3a5bd6a26ec0b85162b45fd9dd57e 18-May-2011 Dianne Hackborn <hackbod@google.com> am 4f9bb17f: am c2db2144: am a429d5df: Merge "Improve compat mode scaling implementation." into honeycomb-mr2

* commit '4f9bb17f7e74746c4296100f2fbd47f0f6ead3a7':
Improve compat mode scaling implementation.
fa1e5561cc65b932067919fcd5d39fda7032793e 18-May-2011 Mike Lockwood <lockwood@android.com> am 53b988ba: am 5a79cfd7: am 27ac64ec: Merge "StorageVolume: Add getStorageId() accessor" into honeycomb-mr2

* commit '53b988ba1842f40e595bb85f2ca055c24787e6dc':
StorageVolume: Add getStorageId() accessor
b22a9fd9bb32133cbc7dc4fc7752dbf68e52dffe 18-May-2011 Kazuhiro Ondo <kazuhiro.ondo@motorola.com> am 01758e81: Linkproperties update via unsol data call state change.

* commit '01758e81b3ad89934581885bb2fc7006510ec639':
Linkproperties update via unsol data call state change.
01758e81b3ad89934581885bb2fc7006510ec639 01-May-2011 Kazuhiro Ondo <kazuhiro.ondo@motorola.com> Linkproperties update via unsol data call state change.

Handles the scenario of radio technology handover with IP continuity.
Once RIL/Modem finished a handover operation, an unsol data call state
change will be send up to FW notifying all link propertes changes.
FW will then re-configure the device with new link properties
including iptable used by Tethering.

Change-Id: I05e29f66ac3db8ba4274d3662642607742ba1d12
om/android/server/ConnectivityService.java
om/android/server/connectivity/Tethering.java
4f9bb17f7e74746c4296100f2fbd47f0f6ead3a7 18-May-2011 Dianne Hackborn <hackbod@google.com> am c2db2144: am a429d5df: Merge "Improve compat mode scaling implementation." into honeycomb-mr2

* commit 'c2db21445ddd4327e949b38edcf1ab9fd18f94f0':
Improve compat mode scaling implementation.
c2db21445ddd4327e949b38edcf1ab9fd18f94f0 18-May-2011 Dianne Hackborn <hackbod@google.com> am a429d5df: Merge "Improve compat mode scaling implementation." into honeycomb-mr2

* commit 'a429d5df1aa59d817d694b96a07351224cc5d146':
Improve compat mode scaling implementation.
a429d5df1aa59d817d694b96a07351224cc5d146 18-May-2011 Dianne Hackborn <hackbod@google.com> Merge "Improve compat mode scaling implementation." into honeycomb-mr2
ffb3d939cc78cae523f14a0f8ab37061b5bffc20 18-May-2011 Dianne Hackborn <hackbod@google.com> Improve compat mode scaling implementation.

Rip out the old funky code for trying to restrict the app window
sizes to be within the compat mode range. Instead, we know rely
entirely on scaling -- we deal with windows always with the scaling
applied so that the window manager doesn't have to deal with them
specially. Instead, we just apply the inverse scale at the few
points we need to do something the app sees.

Change-Id: I785409dd4513b5f738684e1635dc8f770c249651
om/android/server/wm/DragState.java
om/android/server/wm/FadeInOutAnimation.java
om/android/server/wm/InputMonitor.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
53b988ba1842f40e595bb85f2ca055c24787e6dc 18-May-2011 Mike Lockwood <lockwood@android.com> am 5a79cfd7: am 27ac64ec: Merge "StorageVolume: Add getStorageId() accessor" into honeycomb-mr2

* commit '5a79cfd7518defdce1911cecbc2441bb0a057e54':
StorageVolume: Add getStorageId() accessor
5a79cfd7518defdce1911cecbc2441bb0a057e54 18-May-2011 Mike Lockwood <lockwood@android.com> am 27ac64ec: Merge "StorageVolume: Add getStorageId() accessor" into honeycomb-mr2

* commit '27ac64eceee8d4e392983861c6bc6bd620e4c6f7':
StorageVolume: Add getStorageId() accessor
fbfe55512596fd00c1fb51caa851e17dae60fd43 17-May-2011 Mike Lockwood <lockwood@android.com> StorageVolume: Add getStorageId() accessor

This ID is used for MTP as well as per volume querying in the media provider.

Change-Id: Ic4fc986d972bd477730643f7e9450c390c0b3a4b
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/MountService.java
78ae81efa9d49b2697629f576e9f4beec6ec8b2b 17-May-2011 Jeff Sharkey <jsharkey@android.com> Merge "First pass at NetworkPolicy and activity tracking."
9d31154d0b0ecbc5a36733ac3a8b70dcae18bf9c 17-May-2011 Dianne Hackborn <hackbod@google.com> am b68c768d: am 41744836: am 7916ac65: Add new command line option to change global screen size.

* commit 'b68c768ddb57407bc253230c677056329c9e4bae':
Add new command line option to change global screen size.
b68c768ddb57407bc253230c677056329c9e4bae 17-May-2011 Dianne Hackborn <hackbod@google.com> am 41744836: am 7916ac65: Add new command line option to change global screen size.

* commit '417448369c170a34d76c477aa19c5293e3caa1df':
Add new command line option to change global screen size.
417448369c170a34d76c477aa19c5293e3caa1df 17-May-2011 Dianne Hackborn <hackbod@google.com> am 7916ac65: Add new command line option to change global screen size.

* commit '7916ac65dc492e4e1431879875c77d7121fbf82e':
Add new command line option to change global screen size.
7916ac65dc492e4e1431879875c77d7121fbf82e 17-May-2011 Dianne Hackborn <hackbod@google.com> Add new command line option to change global screen size.

For example:

adb shell am display-size 1024x600

Change-Id: I5df462acd3323bdaaaefa3126faea7dd8595b726
om/android/server/wm/BlackFrame.java
om/android/server/wm/ScreenRotationAnimation.java
om/android/server/wm/WindowManagerService.java
60e13114eb806d50b7b362d39051c5c775704bf6 16-May-2011 Dianne Hackborn <hackbod@google.com> am 1d340a3c: am 0eac0927: Merge "DO NOT MERGE. From main -- Start work on simulating landscape/portrait when orientation is locked." into honeycomb-mr2

* commit '1d340a3c24913d8750900355cd92ef5742eea11f':
DO NOT MERGE. From main -- Start work on simulating landscape/portrait when orientation is locked.
1d340a3c24913d8750900355cd92ef5742eea11f 16-May-2011 Dianne Hackborn <hackbod@google.com> am 0eac0927: Merge "DO NOT MERGE. From main -- Start work on simulating landscape/portrait when orientation is locked." into honeycomb-mr2

* commit '0eac092766d7871b34927442ee0b6e27e7e1317b':
DO NOT MERGE. From main -- Start work on simulating landscape/portrait when orientation is locked.
0eac092766d7871b34927442ee0b6e27e7e1317b 16-May-2011 Dianne Hackborn <hackbod@google.com> Merge "DO NOT MERGE. From main -- Start work on simulating landscape/portrait when orientation is locked." into honeycomb-mr2
68066c2f38e47b56f0510c56eafd827731a0dc08 22-Apr-2011 Dianne Hackborn <hackbod@google.com> DO NOT MERGE. From main -- Start work on simulating landscape/portrait when orientation is locked.

Not yet working, so turned off.

Also fix a bug where the display size configuration became inconsistent
after a configuration change -- we now figure out everything about the
display size when computing a new configuration.

Change-Id: Id155f133c0bf108508a225ef64ed3ca398a90a58
om/android/server/wm/WindowManagerService.java
63446167b9d6d9ed3410320d17e8fe816caf6c42 16-May-2011 Dianne Hackborn <hackbod@google.com> am fddd927f: am 9d0f2c6d: Merge "DO NOT MERGE: From master -- Fix bug in deciding which rotation to use for an orientation." into honeycomb-mr2

* commit 'fddd927fb78bb206287203f4f447a416b525115a':
DO NOT MERGE: From master -- Fix bug in deciding which rotation to use for an orientation.
fddd927fb78bb206287203f4f447a416b525115a 16-May-2011 Dianne Hackborn <hackbod@google.com> am 9d0f2c6d: Merge "DO NOT MERGE: From master -- Fix bug in deciding which rotation to use for an orientation." into honeycomb-mr2

* commit '9d0f2c6d970a1d2c7f9de5c9e89737d7772f95d3':
DO NOT MERGE: From master -- Fix bug in deciding which rotation to use for an orientation.
f97ed771979162c4a2a75959c57fb793438a3a8b 16-May-2011 Dianne Hackborn <hackbod@google.com> am d90a2c4d: am 1e662c32: Merge "DO NOT MERGE. Integrate from master: Rework display size access." into honeycomb-mr2

* commit 'd90a2c4d4463085155444efb07eba2d6579b444a':
DO NOT MERGE. Integrate from master: Rework display size access.
9d0f2c6d970a1d2c7f9de5c9e89737d7772f95d3 16-May-2011 Dianne Hackborn <hackbod@google.com> Merge "DO NOT MERGE: From master -- Fix bug in deciding which rotation to use for an orientation." into honeycomb-mr2
29735689cea7bf52998c1911542dcfdd1c1d9628 22-Apr-2011 Dianne Hackborn <hackbod@google.com> DO NOT MERGE: From master -- Fix bug in deciding which rotation to use for an orientation.

Change-Id: Ie271123271a662f3f753f381ce4c43ad7904dc4a
om/android/server/wm/DimSurface.java
om/android/server/wm/WindowManagerService.java
d90a2c4d4463085155444efb07eba2d6579b444a 16-May-2011 Dianne Hackborn <hackbod@google.com> am 1e662c32: Merge "DO NOT MERGE. Integrate from master: Rework display size access." into honeycomb-mr2

* commit '1e662c3294b740ff694ad98e4d9a366e1e4b5e62':
DO NOT MERGE. Integrate from master: Rework display size access.
1e662c3294b740ff694ad98e4d9a366e1e4b5e62 16-May-2011 Dianne Hackborn <hackbod@google.com> Merge "DO NOT MERGE. Integrate from master: Rework display size access." into honeycomb-mr2
8fa5b03c1ba4253003c807ad753f58af17086b4e 16-May-2011 Mike Lockwood <lockwood@android.com> resolved conflicts for merge of fc4a3d37 to master

Change-Id: I40f603ba9330c3e882f4d58398095f4094725b21
fc4a3d37ef044b35450800235195401c4a54c712 16-May-2011 Mike Lockwood <lockwood@android.com> am b822d246: am 0a93d875: Merge "StorageManager: Clean up and generalize storage configuration resources" into honeycomb-mr2

* commit 'b822d2464dc59056f736b0c49f0ac514c7cbb9d9':
StorageManager: Clean up and generalize storage configuration resources
b822d2464dc59056f736b0c49f0ac514c7cbb9d9 16-May-2011 Mike Lockwood <lockwood@android.com> am 0a93d875: Merge "StorageManager: Clean up and generalize storage configuration resources" into honeycomb-mr2

* commit '0a93d875527c52183080b63a0b19d567856952af':
StorageManager: Clean up and generalize storage configuration resources
0a93d875527c52183080b63a0b19d567856952af 16-May-2011 Mike Lockwood <lockwood@android.com> Merge "StorageManager: Clean up and generalize storage configuration resources" into honeycomb-mr2
ac8dea12c17aa047e03a358110aeb60401d36aa2 21-Apr-2011 Dianne Hackborn <hackbod@google.com> DO NOT MERGE. Integrate from master: Rework display size access.

Applications now get the display size from the window manager. No
behavior should be changed yet, this is just prep for some real
changes.

Change-Id: I47bf8b55ecd4476c25ed6482494a7bcc5fae45d2
om/android/server/WallpaperManagerService.java
om/android/server/wm/InputMonitor.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
2f6a3885533a52758c2cd4f81f6123a712be8ae6 10-May-2011 Mike Lockwood <lockwood@android.com> StorageManager: Clean up and generalize storage configuration resources

Replace config_emulateExternalStorage, config_externalStorageRemovable,
config_externalStoragePaths, config_externalStorageDescriptions and
config_mtpReserveSpaceMegabytes resources with an XML resource file
to describe the external storages that are available.

Add android.os.storage.StorageVolume class

StorageManager.getVolumeList() now returns an array of StorageVolume

Change-Id: I06ce1451ebf08b82f0ee825d56d59ebf72eacd3d
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/MountService.java
fbdf9df053800afb25453630d11bd48cbc068271 16-May-2011 Dianne Hackborn <hackbod@google.com> am 2a20583a: am 700ab1c7: Merge "DO NOT MERGE. Integrate from master: Improve activity manager debug dumps." into honeycomb-mr2

* commit '2a20583a5f436d66ab73cd6c0fdc73e59a3cecad':
DO NOT MERGE. Integrate from master: Improve activity manager debug dumps.
2a20583a5f436d66ab73cd6c0fdc73e59a3cecad 16-May-2011 Dianne Hackborn <hackbod@google.com> am 700ab1c7: Merge "DO NOT MERGE. Integrate from master: Improve activity manager debug dumps." into honeycomb-mr2

* commit '700ab1c75862babba90f54e02bdc877becd4f4fc':
DO NOT MERGE. Integrate from master: Improve activity manager debug dumps.
444889838ce46475f04956e8b6b027328917f3fe 14-May-2011 Wink Saville <wink@google.com> am d0903e14: am 6e41b32d: Merge "TelephonyRegistry remove 4 uses of FLAG_RECEIVER_REPLACE_PENDING." into honeycomb-LTE

* commit 'd0903e1478c7ba2fb8087f1bae1fba69791039ba':
TelephonyRegistry remove 4 uses of FLAG_RECEIVER_REPLACE_PENDING.
d0903e1478c7ba2fb8087f1bae1fba69791039ba 14-May-2011 Wink Saville <wink@google.com> am 6e41b32d: Merge "TelephonyRegistry remove 4 uses of FLAG_RECEIVER_REPLACE_PENDING." into honeycomb-LTE

* commit '6e41b32dd08a866cb7158b387646e96c9105831b':
TelephonyRegistry remove 4 uses of FLAG_RECEIVER_REPLACE_PENDING.
71f6cb1324ecec9206c6bde1ab8abd31199b1927 14-May-2011 Wink Saville <wink@google.com> TelephonyRegistry remove 4 uses of FLAG_RECEIVER_REPLACE_PENDING.

The use of FLAG_RECEIVER_REPLACE_PENDING is an optimization to reduce
redundant messages. For some calls this is fine, such as
broadcastSignalStrengthChanged. For others it can cause problems, such
as broadcastDataConnectionStateChanged where the MobileDataStateTracker
will not be able to properly track the state if messages are dropped.
This changes removes the optimization from all methods in
TelephonyRegistry except broadcastSignalStrengthChanged.

bug: 4427303
Change-Id: Ia9c0dd0ce66b8b3dcda770f5ab2c63cf08f3ebfc
om/android/server/TelephonyRegistry.java
9a84983a9fd9959671e102045eaf185b83291269 08-Apr-2011 Dianne Hackborn <hackbod@google.com> DO NOT MERGE. Integrate from master: Improve activity manager debug dumps.

Activity manager now does all dump requests into apps
asynchronously, so it can nicely timeout if there is an
app problem. Also lots of general cleanup of the am
dump output.

Change-Id: I99447b87f77a701af52aeca984d93dfe931f065d
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityRecord.java
om/android/server/am/ContentProviderRecord.java
om/android/server/am/ServiceRecord.java
om/android/server/am/TransferPipe.java
d5cdd597b895a48ffa9a8e39f8a2504cd9b905c4 04-May-2011 Jeff Sharkey <jsharkey@android.com> First pass at NetworkPolicy and activity tracking.

New system service that maintains low-level network policy rules and
collects statistics to drive those rules. Will eventually connect to
netfilter kernel module through NetworkManagementService and "netd".

Begin tracking foreground activities in ActivityManagerService, which
is updated as part of OOM adjustment. Eventually a network policy of
POLICY_REJECT_BACKGROUND will reject network traffic from background
processes.

Change-Id: I5ffbbaee1b9628e9c3eff6b9cb2145fc5316e64d
om/android/server/am/ActivityManagerService.java
om/android/server/am/ProcessRecord.java
om/android/server/net/NetworkPolicyManagerService.java
42d7c9c0615319f8568ad04e8298579371f9ce3e 14-May-2011 Christopher Tate <ctate@google.com> Merge "Full backup tweaks"
dc92c82b4180e8067f1acd00a7db7935afce00ff 14-May-2011 Christopher Tate <ctate@google.com> Full backup tweaks

* provide placeholder UI showing backup/restore start/stop/timeout
* don't kill the progress UI in mid stream
* tidy up the pax extended header data writing a little

Change-Id: Ife0cb78e3facb541d8327f1d5ca5fe77faa6cbca
om/android/server/BackupManagerService.java
65f47d88107b2e34e4bab1f5208bff3f73ce4e8a 13-May-2011 Jeff Brown <jeffbrown@google.com> Merge "Add initial API for stylus and mouse buttons."
fe9f8ab03a63b1037f07dd85799fbea80ec6adaa 07-May-2011 Jeff Brown <jeffbrown@google.com> Add initial API for stylus and mouse buttons.

Added the concept of pointer properties in a MotionEvent.
This is currently used to track the pointer tool type to enable
applications to distinguish finger touches from a stylus.

Button states are also reported to application as part of touch events.

There are no new actions for detecting changes in button states.
The application should instead query the button state from the
MotionEvent and take appropriate action as needed.

A good time to check the button state is on ACTION_DOWN.

As a side-effect, applications that do not support multiple buttons
will treat primary, secondary and tertiary buttons identically
for all touch events.

The back button on the mouse is mapped to KEYCODE_BACK
and the forward button is mapped to KEYCODE_FORWARD.

Added basic plumbing for the secondary mouse button to invoke
the context menu, particularly in lists.

Added clamp and split methods on MotionEvent to take care of
common filtering operations so we don't have them scattered
in multiple places across the framework.

Bug: 4260011
Change-Id: Ie992b4d4e00c8f2e76b961da0a902145b27f6d83
om/android/server/accessibility/TouchExplorer.java
2e4a3236a7634d17f89288e9739a438ecbea0471 13-May-2011 Dianne Hackborn <hackbod@google.com> am 46a282f3: am 0ed2e845: Merge "DO NOT MERGE. Integrate add new screen width/height in "dp" configs." into honeycomb-mr2

* commit '46a282f323bc05606e4fe1eba795bd9ac7c99819':
DO NOT MERGE. Integrate add new screen width/height in "dp" configs.
46a282f323bc05606e4fe1eba795bd9ac7c99819 13-May-2011 Dianne Hackborn <hackbod@google.com> am 0ed2e845: Merge "DO NOT MERGE. Integrate add new screen width/height in "dp" configs." into honeycomb-mr2

* commit '0ed2e845db3f6bc7bc12a08ada18363942c2fb3d':
DO NOT MERGE. Integrate add new screen width/height in "dp" configs.
f9eb06ca691ed14c8b55840a07333330ae347e22 22-Jan-2011 Vairavan Srinivasan <vairav@codeaurora.org> frameworks/base: Cap the number of toasts that a package can post.

NotificationManagerService keeps track of requested toasts in a
queue. Any package can trigger a DoS by repeated enqueue of
toasts which eventually results in a leak of WeakReferences in
system_server and causes dalvik (hosting system_server) to
abort the same.

Change-Id: I5e23c1bf7e195b07344711d2c6719fa568f2dfaf
om/android/server/NotificationManagerService.java
8a61f496919504a86244d2f833acfec9bc20a745 13-May-2011 Vairavan Srinivasan <vairav@codeaurora.org> frameworks/base: unlink death notifications of Vibrate requests

Death notifications of Vibrate requests isn't needed when
broadcast of ACTION_SCREEN_OFF is received.

Change-Id: Ic411525fa8ce1fce3fa215314c54440ce837e41a
om/android/server/VibratorService.java
ebff8f92f13513ce37bd74759eb1db63f2220590 13-May-2011 Dianne Hackborn <hackbod@google.com> DO NOT MERGE. Integrate add new screen width/height in "dp" configs.

You can now specify resource configuration variants "wNNNdp"
and "hNNNdp". These are the minimum screen width/height in "dp"
units. This allows you to do things like have your app adjust
its layout based only on the about of horizontal space available.

This introduces a new configuration change flag for screen size.
Note that this configuration change happens each time the orientation
changes. Applications often say they handle the orientation change
to avoid being restarted at a screen rotation, and this will now
cause them to be restarted. To address this, we assume the app can
handle this new config change if its target SDK version is < ICS.

Change-Id: I4acb73d82677b74092c1da9e4046a4951921f9f4
om/android/server/wm/WindowManagerService.java
3d0724dc220a2e027b9e38f61c39c84c28a505d5 13-May-2011 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 0e59729b to master

Change-Id: I2d3a6bddf66b1df0c101c45ea2fec1cf65caf01b
0e59729b104e48c7d935026f565c4b45f1f37d12 13-May-2011 Dianne Hackborn <hackbod@google.com> am 97280816: am 0f1de9ad: New compat mode front end: UI and persistence.

* commit '972808164adde6c0784e9c836d06219a9cf7eb7f':
New compat mode front end: UI and persistence.
972808164adde6c0784e9c836d06219a9cf7eb7f 13-May-2011 Dianne Hackborn <hackbod@google.com> am 0f1de9ad: New compat mode front end: UI and persistence.

* commit '0f1de9adde0b52d2a385a76232bd7ac30c3eeea2':
New compat mode front end: UI and persistence.
0f1de9adde0b52d2a385a76232bd7ac30c3eeea2 12-May-2011 Dianne Hackborn <hackbod@google.com> New compat mode front end: UI and persistence.

Adds a really crappy UI for toggling compat mode.

Persists compat mode selection across boots.

Turns on compat mode by default for newly installed apps.

Change-Id: Idc83494397bd17c41450bc9e9a05e4386c509399
om/android/server/PackageManagerService.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/CompatModePackages.java
c9338305bf4d5cfb9ec2a1d64144d8cef32a00a5 12-May-2011 Chia-chi Yeh <chiachi@android.com> Extract NetworkManagementService out from Tethering to ConnectivityService.

and also some minor refactoring.

Change-Id: I0e74f30ef1b035d9ed37571c512fedc15d05db77
om/android/server/ConnectivityService.java
om/android/server/connectivity/Tethering.java
afd28ac6ecec88065968fff66b8fc1a10e8f28ac 11-May-2011 Jake Hamby <jhamby@google.com> am ee60f3fb: resolved conflicts for merge of 18cc814c to honeycomb-plus-aosp

* commit 'ee60f3fb1b4e61ac8027293a658ba710e36d36b6':
Enable support for SMS national language shift tables.
fc82cb170cfaf419f2a8da3baff8296d3ea4e241 11-May-2011 Robert Greenwalt <rgreenwalt@google.com> am 441bc9a6: am e6848fac: Merge "Fix the adding of host routes." into honeycomb-LTE

* commit '441bc9a6f41ca1678a6c965bec7e2f18227ac100':
Fix the adding of host routes.
a0f5bb10a5a7b10f376b5001b7cabb6b267d734f 11-May-2011 Christopher Tate <ctate@google.com> Merge "Full local backup infrastructure"
aa1fd70100d1af393c8d4ebe9cb36a8fa15a3633 11-May-2011 Irfan Sheriff <isheriff@google.com> am 8dd85f80: Merge "Move Wifi Ap configuration to flat file" into gingerbread

* commit '8dd85f80ba9c463f5616b47eceb620fe21203f4f':
Move Wifi Ap configuration to flat file
01defe403f3705ac5802e392ee18a78737c51fcb 11-May-2011 Daniel Sandler <dsandler@google.com> Merge changes I21e9629e,I535ed3ba

* changes:
Create an XML config flag to turn the navbar off.
It's lights out for you, navigation bar!
8dd85f80ba9c463f5616b47eceb620fe21203f4f 11-May-2011 Irfan Sheriff <isheriff@google.com> Merge "Move Wifi Ap configuration to flat file" into gingerbread
1d4d30aebd2c22627131819cabfe95f97def2c83 28-Apr-2011 Daniel Sandler <dsandler@google.com> It's lights out for you, navigation bar!

Views requesting lights out mode will cause the navbar to
disappear (this is useful for viewing videos/photos/etc
using every pixel of the screen).

But there's a catch: any user activity at all will cause the
lights to come back on and the navbar to return.

Change-Id: I535ed3ba9ae7fab3282c402be256add765395b6f
om/android/server/StatusBarManagerService.java
4a627c71ff53a4fca1f961f4b1dcc0461df18a06 01-Apr-2011 Christopher Tate <ctate@google.com> Full local backup infrastructure

This is the basic infrastructure for pulling a full(*) backup of the
device's data over an adb(**) connection to the local device. The
basic process consists of these interacting pieces:

1. The framework's BackupManagerService, which coordinates the
collection of app data and routing to the destination.

2. A new framework-provided BackupAgent implementation called
FullBackupAgent, which is instantiated in the target applications'
processes in turn, and knows how to emit a datastream that contains
all of the app's saved data files.

3. A new shell-level program called "bu" that is used to bridge from
adb to the framework's Backup Manager.

4. adb itself, which now knows how to use 'bu' to kick off a backup
operation and pull the resulting data stream to the desktop host.

5. A system-provided application that verifies with the user that
an attempted backup/restore operation is in fact expected and to
be allowed.

The full agent implementation is not used during normal operation of
the delta-based app-customized remote backup process. Instead it's
used during user-confirmed *full* backup of applications and all their
data to a local destination, e.g. via the adb connection.

The output format is 'tar'. This makes it very easy for the end
user to examine the resulting dataset, e.g. for purpose of extracting
files for debug purposes; as well as making it easy to contemplate
adding things like a direct gzip stage to the data pipeline during
backup/restore. It also makes it convenient to construct and maintain
synthetic backup datasets for testing purposes.

Within the tar format, certain artificial conventions are used.
All files are stored within top-level directories according to
their semantic origin:

apps/pkgname/a/ : Application .apk file itself
apps/pkgname/obb/: The application's associated .obb containers
apps/pkgname/f/ : The subtree rooted at the getFilesDir() location
apps/pkgname/db/ : The subtree rooted at the getDatabasePath() parent
apps/pkgname/sp/ : The subtree rooted at the getSharedPrefsFile() parent
apps/pkgname/r/ : Files stored relative to the root of the app's file tree
apps/pkgname/c/ : Reserved for the app's getCacheDir() tree; not stored.

For each package, the first entry in the tar stream is a file called
"_manifest", nominally rooted at apps/pkgname. This file contains some
metadata about the package whose data is stored in the archive.

The contents of shared storage can optionally be included in the tar
stream. It is placed in the synthetic location:

shared/...

uid/gid are ignored; app uids are assigned at install time, and the
app's data is handled from within its own execution environment, so
will automatically have the app's correct uid.

Forward-locked .apk files are never backed up. System-partition
.apk files are not backed up unless they have been overridden by a
post-factory upgrade, in which case the current .apk *is* backed up --
i.e. the .apk that matches the on-disk data. The manifest preceding
each application's portion of the tar stream provides version numbers
and signature blocks for version checking, as well as an indication
of whether the restore logic should expect to install the .apk before
extracting the data.

System packages can designate their own full backup agents. This is
to manage things like the settings provider which (a) cannot be shut
down on the fly in order to do a clean snapshot of their file trees,
and (b) manage data that is not only irrelevant but actively hostile
to non-identical devices -- CDMA telephony settings would seriously
mess up a GSM device if emplaced there blind, for example.

When a full backup or restore is initiated from adb, the system will
present a confirmation UI that the user must explicitly respond to
within a short [~ 30 seconds] timeout. This is to avoid the
possibility of malicious desktop-side software secretly grabbing a copy
of all the user's data for nefarious purposes.

(*) The backup is not strictly a full mirror. In particular, the
settings database is not cloned; it is handled the same way that
it is in cloud backup/restore. This is because some settings
are actively destructive if cloned onto a different (or
especially a different-model) device: telephony settings and
AndroidID are good examples of this.

(**) On the framework side it doesn't care that it's adb; it just
sends the tar stream to a file descriptor. This can easily be
retargeted around whatever transport we might decide to use
in the future.

KNOWN ISSUES:

* the security UI is desperately ugly; no proper designs have yet
been done for it
* restore is not yet implemented
* shared storage backup is not yet implemented
* symlinks aren't yet handled, though some infrastructure for
dealing with them has been put in place.

Change-Id: Ia8347611e23b398af36ea22c36dff0a276b1ce91
om/android/server/BackupManagerService.java
om/android/server/SystemBackupAgent.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityStack.java
ee60f3fb1b4e61ac8027293a658ba710e36d36b6 11-May-2011 Jake Hamby <jhamby@google.com> resolved conflicts for merge of 18cc814c to honeycomb-plus-aosp

Change-Id: I2b569ada3baec2dc486296623063bc2b504c5e96
e09089d8115835011a06e51693d290dab863b79f 11-May-2011 Amith Yamasani <yamasani@google.com> Merge "Use canonical paths to compare library directory with data directory."
0f3f29b1b92f7f5788f3270c8cc6bf1f6d8bfc6e 09-May-2011 Amith Yamasani <yamasani@google.com> Use canonical paths to compare library directory with data directory.

Fix for unexpected recursive symbolic link when unpacking
native libraries contained in apks. This happened due to the data
directory of primary user becoming a symlink to the legacy data directory.

Bug: 4396427

Change-Id: Iaed2f21ada4eda16ce729ead259a52203300dfa8
om/android/server/pm/PackageManagerService.java
441bc9a6f41ca1678a6c965bec7e2f18227ac100 10-May-2011 Robert Greenwalt <rgreenwalt@google.com> am e6848fac: Merge "Fix the adding of host routes." into honeycomb-LTE

* commit 'e6848faceff58f84f671dbc73be08ef7890fea09':
Fix the adding of host routes.
f43396caaaae8f336bcf6fe9128a89dc7a7b0a5c 07-May-2011 Robert Greenwalt <rgreenwalt@google.com> Fix the adding of host routes.

We used to just add

Change-Id: I991e4cc976cc2932887dd3242fd50e013d521b0a
om/android/server/ConnectivityService.java
97b4cf783f72d3597da037fea25f842aa0bb1776 09-May-2011 Irfan Sheriff <isheriff@google.com> Move Wifi Ap configuration to flat file

Secure settings are accessible by applications without
permissions. Move to a system-only accessible file

Bug: 4391796
Change-Id: I5448943d26cccce39dd4f32423c68dad4bbf50ad
om/android/server/WifiService.java
aa9d84c37e05f696ec158dac98ce38cf41e18314 10-May-2011 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 05be6d6f to master

Change-Id: Ic6a6c5bb300f6f1d43f9ed550b284282b4f16212
05be6d6fe09ddfb706d1bef3b20c3d37f45e3c8a 10-May-2011 Dianne Hackborn <hackbod@google.com> am 4907d1d5: am 0c6cbf41: Merge "Better compat mode part one: start scaling windows." into honeycomb-mr2

* commit '4907d1d5e2c7d244b07579b8c52153df69754e85':
Better compat mode part one: start scaling windows.
4907d1d5e2c7d244b07579b8c52153df69754e85 10-May-2011 Dianne Hackborn <hackbod@google.com> am 0c6cbf41: Merge "Better compat mode part one: start scaling windows." into honeycomb-mr2

* commit '0c6cbf410a642f6e9cea7cca0a6e53a4a3cdd324':
Better compat mode part one: start scaling windows.
e2515eebf42c763c0a2d9f873a153711778cfc17 28-Apr-2011 Dianne Hackborn <hackbod@google.com> Better compat mode part one: start scaling windows.

First step of improving app screen size compatibility mode. When
running in compat mode, an application's windows are scaled up on
the screen rather than being small with 1:1 pixels.

Currently we scale the application to fill the entire screen, so
don't use an even pixel scaling. Though this may have some
negative impact on the appearance (it looks okay to me), it has a
big benefit of allowing us to now treat these apps as normal
full-screens apps and do the normal transition animations as you
move in and out and around in them.

This introduces fun stuff in the input system to take care of
modifying pointer coordinates to account for the app window
surface scaling. The input dispatcher is told about the scale
that is being applied to each window and, when there is one,
adjusts pointer events appropriately as they are being sent
to the transport.

Also modified is CompatibilityInfo, which has been greatly
simplified to not be so insane and incomprehendible. It is
now simple -- when constructed it determines if the given app
is compatible with the current screen size and density, and
that is that.

There are new APIs on ActivityManagerService to put applications
that we would traditionally consider compatible with larger screens
in compatibility mode. This is the start of a facility to have
a UI affordance for a user to switch apps in and out of
compatibility.

To test switching of modes, there is a new variation of the "am"
command to do this: am screen-compat [on|off] [package]

This mode switching has the fundamentals of restarting activities
when it is changed, though the state still needs to be persisted
and the overall mode switch cleaned up.

For the few small apps I have tested, things mostly seem to be
working well. I know of one problem with the text selection
handles being drawn at the wrong position because at some point
the window offset is being scaled incorrectly. There are
probably other similar issues around the interaction between
two windows because the different window coordinate spaces are
done in a hacky way instead of being formally integrated into
the window manager layout process.

Change-Id: Ie038e3746b448135117bd860859d74e360938557
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityRecord.java
om/android/server/am/ActivityStack.java
om/android/server/am/ProcessRecord.java
om/android/server/wm/InputMonitor.java
om/android/server/wm/InputWindow.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
a301fe61c8573c06be754d5788a84d19188ee2d3 04-May-2011 Marco Nelissen <marcone@google.com> Fix dumpsys output.

Change-Id: If3f51fbc4608ac295fa22d0aee4008f8dce4fa50
om/android/server/am/ServiceRecord.java
18cc814c94edb188b73a92f0d34878d9dc054ff6 05-May-2011 Jake Hamby <jhamby@google.com> am 4d53cb02: Merge "Enable support for SMS national language shift tables." into gingerbread

* commit '4d53cb02168fe35104d7e644dd9b3efd8ca4c91b':
Enable support for SMS national language shift tables.
4d53cb02168fe35104d7e644dd9b3efd8ca4c91b 05-May-2011 Jake Hamby <jhamby@google.com> Merge "Enable support for SMS national language shift tables." into gingerbread
ed30fd8e9a2d65ee5c8520de55b0089c219f390c 23-Apr-2011 Chet Haase <chet@google.com> Add ability for hierarchyviewer to output displaylist info

Clicking on a node in hierarchyviewer1 and hierarchyviewer2 and then
clicking the new "Dump DisplayList" button will cause the display
list for the selected node (including its children) to be output into
logcat.

Change-Id: Iad05f5f6cca0f8b465dccd962b501dc18fe6e053
om/android/server/wm/ViewServer.java
a17de9b493123f0d6e6d0b842150bf29322b7a88 05-May-2011 Chet Haase <chet@google.com> Revert "Add ability for hierarchyviewer to output displaylist info"

This reverts commit b2a4b52e8d5e499d33e2765e8c47851bf0266299.
om/android/server/wm/ViewServer.java
28baf6f096265664a5cb778b7d2ad1c1974f0f4a 05-May-2011 Irfan Sheriff <isheriff@google.com> Merge "Add basic walled garden check"
2a2dc6894ae2cea2c0c16b27d9acd5d536c71696 05-May-2011 Jeff Sharkey <jsharkey@android.com> Merge "Return NetworkStats bundle from NM service."
42a3a39e231c02a3c2b7624cb7c64fe10d6ff4b0 05-May-2011 Chet Haase <chet@google.com> Merge "Add ability for hierarchyviewer to output displaylist info"
b2a4b52e8d5e499d33e2765e8c47851bf0266299 23-Apr-2011 Chet Haase <chet@google.com> Add ability for hierarchyviewer to output displaylist info

Clicking on a node in hierarchyviewer1 and hierarchyviewer2 and then
clicking the new "Dump DisplayList" button will cause the display
list for the selected node (including its children) to be output into
logcat.

Change-Id: Id32f62569ad1ab4d533bc62987f3a7390c1bb4e6
om/android/server/wm/ViewServer.java
9a13f36cddaad01350bdb5f000167811a1d753c9 27-Apr-2011 Jeff Sharkey <jsharkey@android.com> Return NetworkStats bundle from NM service.

Introduce NetworkStats which is a collection of network statistics,
which should match the structure communicated by kernel module through
netd. Will introduce tags and fg/bg stats later. Kept entirely in a
flat data structure to optimize parcel speed.

Initial pass at returning NetworkStats from NetworkManagementService,
both summary and details. Will eventually pull data from kernel module
over netd connection.

Change-Id: I92d9f61678ec8c22e2ce26775fb035a0cf32413f
om/android/server/NetworkManagementService.java
om/android/server/ThrottleService.java
b6f8bff10963893435afda7b426c7a5b1ac1cc1f 04-May-2011 Robert Greenwalt <rgreenwalt@google.com> am 9c7e6fc5: am f13eb830: Merge "Add auto-restore timeout for secondary networks." into honeycomb-LTE

* commit '9c7e6fc50614cc1739d4bfbf6187893c27b01a67':
Add auto-restore timeout for secondary networks.
9c7e6fc50614cc1739d4bfbf6187893c27b01a67 04-May-2011 Robert Greenwalt <rgreenwalt@google.com> am f13eb830: Merge "Add auto-restore timeout for secondary networks." into honeycomb-LTE

* commit 'f13eb8301f4704179938e374129f2943c9c38d5f':
Add auto-restore timeout for secondary networks.
f13eb8301f4704179938e374129f2943c9c38d5f 04-May-2011 Robert Greenwalt <rgreenwalt@google.com> Merge "Add auto-restore timeout for secondary networks." into honeycomb-LTE
20c356128492cf43d9ca10308601be585514f165 04-May-2011 Mike Lockwood <lockwood@android.com> am 10fbba21: DO NOT MERGE MountService: Fix running media scanner at boot.

* commit '10fbba21e4827a1582d97aa99e4e8d772ce04920':
DO NOT MERGE MountService: Fix running media scanner at boot.
2572051c4f6589e5ca8b21158a24a7fa606a5e67 04-May-2011 Mike Lockwood <lockwood@android.com> am 0aa5d7b7: DO NOT MERGE Fix deadlock in MountService

* commit '0aa5d7b7f225236ac8461d0b6835b9c6152a2699':
DO NOT MERGE Fix deadlock in MountService
a2a8419db82ae40146bdfd215e3de3be39c7249c 04-May-2011 Mike Lockwood <lockwood@android.com> am e3b498be: DO NOT MERGE StorageManager: Add getVolumeList() and getVolumeState() methods

* commit 'e3b498be0ae05367e9b84f4fac2ac5cf57a6b091':
DO NOT MERGE StorageManager: Add getVolumeList() and getVolumeState() methods
60c768d41277e3b7d4988452e15694c7ad5a74d0 04-May-2011 Mike Lockwood <lockwood@android.com> am 346a2d79: DO NOT MERGE MountService: Add support for multiple volumes

* commit '346a2d79ecd627e38bc7fc6874fb627995b8bc12':
DO NOT MERGE MountService: Add support for multiple volumes
10fbba21e4827a1582d97aa99e4e8d772ce04920 05-Apr-2011 Mike Lockwood <lockwood@android.com> DO NOT MERGE MountService: Fix running media scanner at boot.

Change-Id: Ia56573023f21fa067a14e7d3ac5a6dbd51ecc8a7
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/MountService.java
0aa5d7b7f225236ac8461d0b6835b9c6152a2699 05-Apr-2011 Mike Lockwood <lockwood@android.com> DO NOT MERGE Fix deadlock in MountService

It is not safe to call into vold with a lock held on mVolumeStates
since we will receive events back from vold on a different thread.
So in the boot completed handler we make a copy of the volume list and
then call vold to mount volumes after releasing the lock

Change-Id: Iaadfb1b8be5567c8e228a8fbc69d4d483c8dc987
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/MountService.java
e3b498be0ae05367e9b84f4fac2ac5cf57a6b091 24-Mar-2011 Mike Lockwood <lockwood@android.com> DO NOT MERGE StorageManager: Add getVolumeList() and getVolumeState() methods

Change-Id: I8ba7e56797b0106dafaa6388393e5c629f27e6e6
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/MountService.java
346a2d79ecd627e38bc7fc6874fb627995b8bc12 23-Mar-2011 Mike Lockwood <lockwood@android.com> DO NOT MERGE MountService: Add support for multiple volumes

Change-Id: I18527e78a1c04023ae7bc0f269eaac082eb48d7f
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/MountService.java
f2102f7a1a26d399cc60c516ed7d90ef660de055 04-May-2011 Robert Greenwalt <rgreenwalt@google.com> Add auto-restore timeout for secondary networks.

Settable per network so you can have not timeout for some and some for others.
If you set the old NETWORK_RESTORE_DELAY_PROP_NAME system property
(android.telephony.apn-restore) it will override this value.

Change-Id: Icca706fdc74245dce679209116660e5dc4b05d23
om/android/server/ConnectivityService.java
91dd02c3405a76e9051f7e118ad19ca111b2aa40 05-Apr-2011 Mike Lockwood <lockwood@android.com> DO NOT MERGE MountService: Fix running media scanner at boot.

Change-Id: I67ff2ccde7e03143167b8c59726ffb741c96e028
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/MountService.java
b9135638c5b813e876dc16dcb10084b6ab3d2003 05-Apr-2011 Mike Lockwood <lockwood@android.com> DO NOT MERGE Fix deadlock in MountService

It is not safe to call into vold with a lock held on mVolumeStates
since we will receive events back from vold on a different thread.
So in the boot completed handler we make a copy of the volume list and
then call vold to mount volumes after releasing the lock

Change-Id: Ic9836c2e1e8a5677d0c4e33476a72081f69823a0
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/MountService.java
d967f4664f40f9a4c5262a44b19df9bbdf457d8a 24-Mar-2011 Mike Lockwood <lockwood@android.com> DO NOT MERGE StorageManager: Add getVolumeList() and getVolumeState() methods

Change-Id: I43d5c1730b340f1288b58012234b38f801001b71
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/MountService.java
f097fc2fee57183508558acbca1f8742fb55615a 23-Mar-2011 Mike Lockwood <lockwood@android.com> DO NOT MERGE MountService: Add support for multiple volumes

Change-Id: I45ee0e5735a6d72c635f6d22320e8b13bccc3847
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/MountService.java
dacce73bcc53a21125f532d8000e7ec2e3c30a35 03-May-2011 Dan Morrill <morrildl@google.com> am 4ec33c2a: Do not merge. Cherry-pick of Idc802af57fb9926a69ed52d4e776ef57d8b647c6 (package manager fix) to gingerbread.

* commit '4ec33c2aad59b2a745ee891c9b7246b9533d95e0':
Do not merge. Cherry-pick of Idc802af57fb9926a69ed52d4e776ef57d8b647c6 (package manager fix) to gingerbread.
2f5f4bc98b4db21102ff8e8d8116f00ab4d2fd2a 02-May-2011 Irfan Sheriff <isheriff@google.com> Add basic walled garden check

Use multiple DNS resolutions to the same IP address
as an indication to launch a web view for authentication

Bug: 4378442
Change-Id: Id3cf1e3c5b5bee4468665d0459ac945e5b12e730
om/android/server/WifiWatchdogService.java
e21f3764343ba3b077c6be3cad568ab9ecea85a7 03-May-2011 Dan Morrill <morrildl@google.com> am 75c66458: am 8325c3a8: Backporting I57c58c4083bd59f45095c184d6ca5a302f79ff6e to HC-MR1. New change since file was renamed, making cherry-pick impossible.

* commit '75c664582c5ce5d94826f37cb725b447a4d62c50':
Backporting I57c58c4083bd59f45095c184d6ca5a302f79ff6e to HC-MR1. New change since file was renamed, making cherry-pick impossible.
75c664582c5ce5d94826f37cb725b447a4d62c50 03-May-2011 Dan Morrill <morrildl@google.com> am 8325c3a8: Backporting I57c58c4083bd59f45095c184d6ca5a302f79ff6e to HC-MR1. New change since file was renamed, making cherry-pick impossible.

* commit '8325c3a89197e47cfc2eeb4117c927fb8cb91630':
Backporting I57c58c4083bd59f45095c184d6ca5a302f79ff6e to HC-MR1. New change since file was renamed, making cherry-pick impossible.
4ec33c2aad59b2a745ee891c9b7246b9533d95e0 03-May-2011 Dan Morrill <morrildl@google.com> Do not merge. Cherry-pick of Idc802af57fb9926a69ed52d4e776ef57d8b647c6
(package manager fix) to gingerbread.

Change-Id: Ia5373100e97bfe42d2211c6249996dc7ff4818e0
om/android/server/PackageManagerService.java
a8e0dfae06298b375637813a3263a62749dd0b82 02-May-2011 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of db46fa25 to master

Change-Id: I8df9d5d07588fbd70e417dae567be26f645b74b6
8325c3a89197e47cfc2eeb4117c927fb8cb91630 02-May-2011 Dan Morrill <morrildl@google.com> Backporting I57c58c4083bd59f45095c184d6ca5a302f79ff6e to HC-MR1. New change
since file was renamed, making cherry-pick impossible.

Change-Id: Idc802af57fb9926a69ed52d4e776ef57d8b647c6
om/android/server/PackageManagerService.java
db46fa25be0a3e8040b118f688b69dd526aed86d 02-May-2011 Robert Greenwalt <rgreenwalt@google.com> am a47c4019: Merge "Add RouteInfo objects for tracking routes." into honeycomb-LTE

* commit 'a47c40193fcbe9ca07facea78b2828afdae5e025':
Add RouteInfo objects for tracking routes.
aa70f101e08098ed9cb190abe2d7f952561026b8 28-Apr-2011 Robert Greenwalt <rgreenwalt@google.com> Add RouteInfo objects for tracking routes.

Used to have list of gateways for default routes, but general static routes
should be supported.

Change-Id: I01730142c6139f2b833b9d48f5381d2d320b69f6
om/android/server/ConnectivityService.java
0a1b746686f335a650b974ff0d345836f2629794 02-May-2011 Conley Owens <cco3@android.com> am 92618f5f: am 52749c0b: am 03daee63: Merge "frameworks/base: acquire lock on am only when needed"

* commit '92618f5fd9e4a0469d60cab39765b7c820c1976b':
frameworks/base: acquire lock on am only when needed
92618f5fd9e4a0469d60cab39765b7c820c1976b 30-Apr-2011 Conley Owens <cco3@android.com> am 52749c0b: am 03daee63: Merge "frameworks/base: acquire lock on am only when needed"

* commit '52749c0b1117a05a9c853b7d54f69a281f69cf3c':
frameworks/base: acquire lock on am only when needed
03daee6380772b0ab167a7b28e37d7a21ec89c86 29-Apr-2011 Conley Owens <cco3@android.com> Merge "frameworks/base: acquire lock on am only when needed"
a550bdc84af70babb48091197bfb1b93d3671664 27-Apr-2011 Daisuke Miyakawa <dmiyakawa@google.com> Use passive provider for location based country detection

Bug: 4345419
Change-Id: Ia3e071b97c6971538ea994fdee6029db928201d6
om/android/server/location/ComprehensiveCountryDetector.java
om/android/server/location/LocationBasedCountryDetector.java
b7342acebcb7e5dc7da0cda77fbddf50e7dfdd7c 26-Apr-2011 Jeff Sharkey <jsharkey@android.com> Tests for ThrottleService, NTP into TrustedTime.

Wrote initial suite of tests for ThrottleService, checking a variety
of edge cases. Checks going over limits, updating policies, and reset
after cycle elapses.

Moved NTP code in ThrottleService into new TrustedTime interface,
which makes it easier to understand, and allows tests to provide custom
clocks.

Change-Id: I0d62b8b3a169516a2ab2d33025f6fe30dc792be8
om/android/server/ThrottleService.java
a6590e7fee1ef4286f0896358593fdb9aab24f6c 27-Apr-2011 Conley Owens <cco3@android.com> am 13b21e60: Merge "Auto hide virtual keyboard"

* commit '13b21e608e47382cb94a0aeac13b24ac97f355d2':
Auto hide virtual keyboard
13b21e608e47382cb94a0aeac13b24ac97f355d2 27-Apr-2011 Conley Owens <cco3@android.com> Merge "Auto hide virtual keyboard"
a3e261d506551713477adb2fd47d1a65b94e64d8 27-Apr-2011 Svetoslav Ganov <svetoslavganov@google.com> The accessibility input filter state was not unregistered when
no spoken feedback accessibility services are regitstered.

bug:4343996

Change-Id: Ie709ac24baa084cf3627d6adb6caf1550c399f8b
om/android/server/accessibility/AccessibilityManagerService.java
736c2756bf3c14ae9fef7255c119057f7a2be1ed 23-Apr-2011 Svetoslav Ganov <svetoslavganov@google.com> Touch exploration feature, event bubling, refactor

1. Added an Input Filter that interprets the touch screen motion
events to perfrom accessibility exploration. One finger explores.
Tapping within a given time and distance slop on the last exlopred
location does click and long press, respectively. Two fingers close
and in the same diretion drag. Multiple finglers or two fingers in
different directions or two fingers too far away are delegated to
the view hierarchy. Non moving fingers "accidentally grabbed the
device for the scrren" are ignored.

2. Added accessibility events for hover enter, hover exit, touch
exoloration gesture start, and end. Accessibility hover events
are fired by the hover pipeline. An accessibility event is
dispatched up the view tree and the topmost view fires it.
Thus predecessors can augment the fired event. An accessibility
event has several records and a predecessor can optionally
modify, delete, and add such to the event.

3. Added onPopulateAccessibilityEvent and refactored the existing
accessibility code to use it.

4. Added API for querying the currently enabled accessibility services
by feedback type.

Change-Id: Iea2258c07ffae9491071825d966dc453b07e5134
om/android/server/accessibility/AccessibilityInputFilter.java
om/android/server/accessibility/AccessibilityManagerService.java
om/android/server/accessibility/TouchExplorer.java
om/android/server/wm/InputFilter.java
3fb3d7c4e756bd32d5abde0abca9ab52d559bc84 23-Apr-2011 Adam Powell <adamp@google.com> Revert "Touch exploration feature, event bubling, refactor"

This reverts commit ac84d3ba81f08036308b17e1ab919e43987a3df5.

There seems to be a problem with this API change. Reverting for now to
fix the build.

Change-Id: Ifa7426b080651b59afbcec2d3ede09a3ec49644c
om/android/server/accessibility/AccessibilityInputFilter.java
om/android/server/accessibility/AccessibilityManagerService.java
om/android/server/accessibility/TouchExplorer.java
om/android/server/wm/InputFilter.java
f9fa622cc04028fd7c5f5036ea2e0ccfb80d55f3 23-Apr-2011 Svetoslav Ganov <svetoslavganov@google.com> Merge "Touch exploration feature, event bubling, refactor"
dacea8ce503369e7b82ff1c0e1a5a8a48863a25a 22-Apr-2011 Dianne Hackborn <hackbod@google.com> Start work on simulating landscape/portrait when orientation is locked.

Not yet working, so turned off.

Also fix a bug where the display size configuration became inconsistent
after a configuration change -- we now figure out everything about the
display size when computing a new configuration.
om/android/server/wm/WindowManagerService.java
ac84d3ba81f08036308b17e1ab919e43987a3df5 05-Apr-2011 Svetoslav Ganov <svetoslavganov@google.com> Touch exploration feature, event bubling, refactor

1. Added an Input Filter that interprets the touch screen motion
events to perfrom accessibility exploration. One finger explores.
Tapping within a given time and distance slop on the last exlopred
location does click and long press, respectively. Two fingers close
and in the same diretion drag. Multiple finglers or two fingers in
different directions or two fingers too far away are delegated to
the view hierarchy. Non moving fingers "accidentally grabbed the
device for the scrren" are ignored.

2. Added accessibility events for hover enter, hover exit, touch
exoloration gesture start, and end. Accessibility hover events
are fired by the hover pipeline. An accessibility event is
dispatched up the view tree and the topmost view fires it.
Thus predecessors can augment the fired event. An accessibility
event has several records and a predecessor can optionally
modify, delete, and add such to the event.

3. Added onPopulateAccessibilityEvent and refactored the existing
accessibility code to use it.

4. Added API for querying the currently enabled accessibility services
by feedback type.

Change-Id: Iec03c6c3fe298de3f14cb6efdbb9b198cd531a0c
om/android/server/accessibility/AccessibilityInputFilter.java
om/android/server/accessibility/AccessibilityManagerService.java
om/android/server/accessibility/TouchExplorer.java
om/android/server/wm/InputFilter.java
9d13264f6b5818812e61d66baaada599b8ad1faf 22-Apr-2011 Dianne Hackborn <hackbod@google.com> Fix bug in deciding which rotation to use for an orientation.

Change-Id: Icc928c2188a5865035cafcdab2efd5bae3132b1f
om/android/server/wm/DimSurface.java
om/android/server/wm/WindowManagerService.java
44bc17c6b517aef35a390c81b5aa79c4f284f744 21-Apr-2011 Dianne Hackborn <hackbod@google.com> Rework display size access.

Applications now get the display size from the window manager. No
behavior should be changed yet, this is just prep for some real
changes.

Change-Id: I2958a6660895c1cba2b670509600014e55ee9273
om/android/server/WallpaperManagerService.java
om/android/server/wm/InputMonitor.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
3f14891fc9e764d97de07b109f066aedfff90c2e 20-Apr-2011 Jeff Brown <jeffbrown@google.com> Merge "Initial checkin of spot presentation for touchpad gestures."
2352b978a3c94cd88f41d0d908f961333fdac1e9 13-Apr-2011 Jeff Brown <jeffbrown@google.com> Initial checkin of spot presentation for touchpad gestures.

Added a new PointerIcon API (hidden for now) for loading
pointer icons.

Fixed a starvation problem in the native Looper's sendMessage
implementation which caused new messages to be posted ahead
of old messages sent with sendMessageDelayed.

Redesigned the touch pad gestures to be defined in terms of
more fluid finger / spot movements. The objective is to reinforce
the natural mapping between fingers and spots which means there
must not be any discontinuities in spot motion relative to
the fingers.

Removed the SpotController stub and folded its responsibilities
into PointerController.

Change-Id: I5126b1e69d95252fda7f2a684c9287e239a57163
om/android/server/wm/InputManager.java
25641ca1ac5b09727f86fe01389877332a00455d 19-Apr-2011 Amith Yamasani <yamasani@google.com> Merge "Plumbing in PackageManager and installd for multi-user support."
0e2c0f37d98bb5539b0fe41865aaf1add0ff1bb3 16-Apr-2011 Kenny Root <kroot@google.com> Break apart queries to getInstalled* API

To avoid blowing past the Binder IPC limit, change the
PackageManagerService to have a DB-like interaction where the client
tells the service the last "row" that it read.

The fact that we use a HashMap instead of a TreeMap makes this
problematic. For now we're just making a new ArrayList for the keys and
then sorting them for each call. This can make the API slower for callers
of this, but it's probably greatly overshadowed by the cost of the data
transfer itself.

Bug: 4064282
Change-Id: Ic370fd148d4c3813ae4f2daffa1a7c28d63d5a09
om/android/server/PackageManagerService.java
c84cc4f183cb18f299bed237235fa64e013d0fca 30-Aug-2010 Lavettacn Xiao <lavettacn.xiao@sonyericsson.com> Check if we are in daylight time when calculating timezone

The code that calculates the Kernel TimeZone does not check
if we are actually in daylite time prior updating the kernel
time zone. Use TimeZone.getOffset which checks for daylight
savings. Also updated setTimeZone for consistency.

Change-Id: I44565bc8df48e81370ea3bfbb099a6a5675e343d
om/android/server/AlarmManagerService.java
7475c0cea622f126af966c3b5b9741f547e83450 04-Apr-2011 Mattias Falk <mattias.falk@sonyericsson.com> Added methods to support dns cache per interface

Added some methods to NetworkManagementService
as part of the work to implement a dns cache
per interface.

Change-Id: I5c7369075dee6b6a4ff67b27f1df7cc124f54c14
om/android/server/NetworkManagementService.java
5c14d32d56e5e74c9ada328e6053091685483c7c 19-Apr-2011 Jozef BABJAK <jozef.babjak@gmail.com> Fix for startup NPE.

Change-Id: I6928939d235faf544a85bb84bba2fa135ddc8e45
om/android/server/UsbObserver.java
343c1ad7200619230a55caa6aa8a9d041e62b29d 19-Apr-2011 Wink Saville <wink@google.com> am 37677849: am 64c42cae: Rename HierarchicalStateMachine and HierarchicalState to StateMachine and State.

* commit '37677849998e6c9a39afe0a730b2f0131a371f3b':
Rename HierarchicalStateMachine and HierarchicalState to StateMachine and State.
37677849998e6c9a39afe0a730b2f0131a371f3b 19-Apr-2011 Wink Saville <wink@google.com> am 64c42cae: Rename HierarchicalStateMachine and HierarchicalState to StateMachine and State.

* commit '64c42cae4482fe0157e977b8ddd0f2c2436b3f31':
Rename HierarchicalStateMachine and HierarchicalState to StateMachine and State.
64c42cae4482fe0157e977b8ddd0f2c2436b3f31 18-Apr-2011 Wink Saville <wink@google.com> Rename HierarchicalStateMachine and HierarchicalState to StateMachine and State.

Change-Id: Ib4b33894da75f5f156066092fb145b478e52f7d7
om/android/server/connectivity/Tethering.java
0b285499db739ba50f2f839d633e763c70e67f96 15-Apr-2011 Amith Yamasani <yamasani@google.com> Plumbing in PackageManager and installd for multi-user support.

- Create /data/user directory and symlink /data/user/0 -> /data/data for
backward compatibility
- Create data directories for all packages for new user

- Remove data directories when removing a user

- Create data directories for all users when a package is created

- Clear / Remove data for multiple users

- Fixed a bug in verifying the location of a system app

- pm commands for createUser and removeUser (will be disabled later)

- symlink duplicate lib directories to the original lib directory

Change-Id: Id9fdfcf0e62406a8896aa811314dfc08d5f6ed95
om/android/server/pm/Installer.java
om/android/server/pm/PackageManagerService.java
om/android/server/pm/UserDetails.java
om/android/server/pm/UserManager.java
68f1b78b7b9139a0e34285ff641a664e664a14b8 11-Apr-2011 satok <satok@google.com> Add an API to get the last used input method subtype

Bug: 4075039

- Voice input requires to know the last used input method subtype.

Change-Id: I603a4fb88a2af5195e52188adfa6585ad80304fa
om/android/server/InputMethodManagerService.java
fa32cd1516e81ef4d23313c5b05c367e16a7ed73 15-Apr-2011 Dianne Hackborn <hackbod@google.com> am 07a630d2: am 9a03a73a: am f6f87c98: Merge "Fix issue #4291805: Tap Fish crashes on launch" into honeycomb-mr1

* commit '07a630d23ef326f820e6339b5f691df0aafd3574':
Fix issue #4291805: Tap Fish crashes on launch
07a630d23ef326f820e6339b5f691df0aafd3574 15-Apr-2011 Dianne Hackborn <hackbod@google.com> am 9a03a73a: am f6f87c98: Merge "Fix issue #4291805: Tap Fish crashes on launch" into honeycomb-mr1

* commit '9a03a73a44c69706fe2b97a28632928f58b434b1':
Fix issue #4291805: Tap Fish crashes on launch
9a03a73a44c69706fe2b97a28632928f58b434b1 15-Apr-2011 Dianne Hackborn <hackbod@google.com> am f6f87c98: Merge "Fix issue #4291805: Tap Fish crashes on launch" into honeycomb-mr1

* commit 'f6f87c985989603139b31df663f9f9a90543cacc':
Fix issue #4291805: Tap Fish crashes on launch
f6f87c985989603139b31df663f9f9a90543cacc 15-Apr-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #4291805: Tap Fish crashes on launch" into honeycomb-mr1
52b0ce0fe3e9ab52c272dde3d9c59376c276a17e 14-Apr-2011 Dianne Hackborn <hackbod@google.com> Fix issue #4291805: Tap Fish crashes on launch

The activity manager got a little too aggressive about argument validation.

Change-Id: I3cca0cd3135b98e5c50d26db778ec4ec28a47ec1
om/android/server/am/ActivityManagerService.java
0ffc988a7f47013805d5abeed1c20f159b3bd799 14-Apr-2011 Dianne Hackborn <hackbod@google.com> Rewrite battery history storage.

We now write battery history directly into a buffer, instead of
creating objects. This allows for more efficient storage; later
it can be even better because we can only write deltas.

The old code is still there temporarily for validation.

Change-Id: I9707d4d8ff30855be8ebdc93bc078911040d8e0b
om/android/server/am/BatteryStatsService.java
44ad61c3a5bdb01a1c375811faf37915bfae24ca 13-Apr-2011 Mattias Petersson <mattias.petersson@sonyericsson.com> Auto hide virtual keyboard

Sometimes the virtual keyboard was not hidden when switching between
applications. An example of this was when launching the browser from
the Google Search widget:
1) Tap the Google Search widget and enter some text, e.g. "google"
2) Select one search items, e.g. "google maps"
3) Browser opens. Press back button.
4) Select an item again, e.g. "google maps" - Keyboard does not
close.

When switching application, the virtual keyboard needs to find a new
Z position (window index) among the other windows. Normally it is
placed on top of the first window that is visible and can get focus
(canBeImeTarget()).

With a new application being launched, there is
an exception: a special "starting window" is placed on top of the
Activity window while the application is starting up. Since this
window should not get input, we need to look below that window.
When doing this, the previous implementation assumed that the
first window below always was focusable. If it wasn't, the
input method was placed above the "starting window", which
caused confusion that led to the keyboard not being closed
automatically.

In the case of the Browser, it sometimes has a "fake TitleBar"
window that can not get focus and that is placed above the
Activity window.

With this fix, we now keep looking through the windows below
the "starting window" until we find a window that can receive
input.

Change-Id: I1117846eb0f57603e64329bd955e28182f98f226
om/android/server/WindowManagerService.java
2432d1bd4828d10d97cf72f974d8312a168bb2ca 13-Apr-2011 Dianne Hackborn <hackbod@google.com> Forgot to add this file.

Change-Id: I7b29785599ab8e4b8b29099a8398ef86df6aef31
om/android/server/am/TaskAccessInfo.java
0c5001d776d56bae02a5cc2663286a125d99bc5e 13-Apr-2011 Dianne Hackborn <hackbod@google.com> Add APIs to remove tasks.

You can remove sub-tasks inside of a task, or an entire task.

When removing an entire task, you can have its process killed
as well.

When the process is killed, any running services will get an
onTaskRemoved() callback for them to do cleanup before their
process is killed (and the service possibly restarted).

Or they can set a new android:stopWithTask attribute to just
have the service automatically (cleanly) stopped at this point.

Change-Id: I1891bc2da006fa53b99c52f9040f1145650e6808
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityStack.java
om/android/server/am/ProcessRecord.java
om/android/server/am/ServiceRecord.java
2e3ede527d8a972795a49ffc7eef4ead391107ec 13-Apr-2011 Kenny Root <kroot@google.com> Merge "Updated system packages retain shared user"
316594715d31bb95b5efa08bfc80f287833b3a37 12-Apr-2011 Benoit Goby <benoit@android.com> am 2869d171: resolved conflicts for merge of 08c39c6a to honeycomb-LTE

* commit '2869d1715d815ef2b357bf182d384515cdf6f9ab':
Add support for USB Ethernet adapters
2869d1715d815ef2b357bf182d384515cdf6f9ab 12-Apr-2011 Benoit Goby <benoit@android.com> resolved conflicts for merge of 08c39c6a to honeycomb-LTE

Change-Id: I79f8ac1dc8ff9f5d0559d37043b850cd26246b92
08c39c6a11f728e113811a6a85c109cfc80ce28e 22-Dec-2010 Benoit Goby <benoit@android.com> Add support for USB Ethernet adapters

Change-Id: I6ae34a32d0e1b6f21c484b8639c3e7ce086e568d
om/android/server/ConnectivityService.java
beb182a4945b9b762fac77edd1183897bcac5b32 11-Apr-2011 Amith Yamasani <yamasani@google.com> Merge "Package manager changes to store and update user information."
4b2e934928a2eb65927bd39197198c28c49efb94 31-Mar-2011 Amith Yamasani <yamasani@google.com> Package manager changes to store and update user information.

Some API stubs for managing users and storing their details.
List of users is stored in an xml file.
Each user's properties are stored in a separate xml file.

Some unit tests for modifying the XML files.

Change-Id: If2ce2420723111bd426f6762def3c2afc19a0ae5
om/android/server/am/ActivityManagerService.java
om/android/server/pm/UserDetails.java
bcbab3684349353ee8cab30b556001824d0e7ccf 09-Apr-2011 Dianne Hackborn <hackbod@google.com> Merge "Rework thumbnails in activity manager."
f26fd99a7c2f554b0297760bb66336473c7db61f 09-Apr-2011 Dianne Hackborn <hackbod@google.com> Rework thumbnails in activity manager.

We now only keep a thumbnail for the task, not for each
activity. However if you use FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET,
we will make a new secondary thumbnail for that series of
activities. There is a new API for the app to get these
secondary thumbnails.

Also set a default thumbnail size for non-xlarge screens
so we have thumbnails on phones. (We need some smarter
code in the platform for computing the actual thumbnail
dimensions of the current device). And add a test app
to show recent tasks + thumbnails.

Change-Id: Ic36759f6635522118a2cb7f156662229a610c492
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityRecord.java
om/android/server/am/ActivityStack.java
om/android/server/am/TaskRecord.java
om/android/server/am/ThumbnailHolder.java
1d1b4893762c8daad2b31dc79cad2dbcc1b251d2 08-Apr-2011 Kenny Root <kroot@google.com> Updated system packages retain shared user

If a system package was updated that used permissions provided by a
package signed with a different signature, it wouldn't grant
those permissions to the updated system app.

This is because the sharedUser field was not set in the disabled system
package. Therefore it was checking the disabled system package's
individual user permission grants which were empty.

This change populates the sharedUser field for disabled system packages
after reading all the existing shared users from the saved settings
database.

Bug: 4245273
Change-Id: I57c58c4083bd59f45095c184d6ca5a302f79ff6e
om/android/server/pm/Settings.java
8c2a1a90a81f04573bfa578eab32f5fd4a30eafb 08-Apr-2011 Brian Carlstrom <bdc@google.com> Add keychain user with special keystore access permissions

Change-Id: I02fe5171add62c5cd9f57b01bc137f3bc1cb3a69
om/android/server/pm/PackageManagerService.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
om/android/server/DeviceStorageMonitorService.java
om/android/server/IntentResolver.java
om/android/server/ProcessStats.java
om/android/server/Watchdog.java
om/android/server/WifiWatchdogService.java
om/android/server/accessibility/AccessibilityManagerService.java
om/android/server/am/ActivityManagerService.java
om/android/server/location/GpsXtraDownloader.java
e17aeb31030cfeed339a39a107912ad5e9178390 08-Apr-2011 Dianne Hackborn <hackbod@google.com> Improve activity manager debug dumps.

Activity manager now does all dump requests into apps
asynchronously, so it can nicely timeout if there is an
app problem. Also lots of general cleanup of the am
dump output.

Change-Id: Id0dbccffb217315aeb85c964e379833e6aa3f5af
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityRecord.java
om/android/server/am/ContentProviderRecord.java
om/android/server/am/ServiceRecord.java
om/android/server/am/TransferPipe.java
097786507b07ff7137b305b5cf71b5ecbc6b029e 07-Apr-2011 Wink Saville <wink@google.com> am de1b950d: am 9e7a5a1e: Merge "ConnectivityService needs to use the new names for the NetConfig vars." into honeycomb-LTE

* commit 'de1b950d2b07737e3d284ed2ada361737d8a5a1a':
ConnectivityService needs to use the new names for the NetConfig vars.
de1b950d2b07737e3d284ed2ada361737d8a5a1a 07-Apr-2011 Wink Saville <wink@google.com> am 9e7a5a1e: Merge "ConnectivityService needs to use the new names for the NetConfig vars." into honeycomb-LTE

* commit '9e7a5a1e567a0e696d9a7b68fffd00b7408e6ac1':
ConnectivityService needs to use the new names for the NetConfig vars.
975c8488a3667efc24a1ad5da15d571d9615020f 07-Apr-2011 Wink Saville <wink@google.com> ConnectivityService needs to use the new names for the NetConfig vars.

Change-Id: I809a624057462871cd1849051286c2bffd5099e9
om/android/server/ConnectivityService.java
80f7c594fae3f1b19e3ea78938de450418fe183c 07-Apr-2011 Robert Greenwalt <rgreenwalt@google.com> am f4a29403: resolved conflicts for merge of 70c3d1c2 to honeycomb-plus-aosp

* commit 'f4a29403ae5b6d3e8e754a025d33f0c33adecb21':
Add external dependency API.
f4a29403ae5b6d3e8e754a025d33f0c33adecb21 07-Apr-2011 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of 70c3d1c2 to honeycomb-plus-aosp

Change-Id: I0962138f6ecb1ed54fda25524d8850b086f13c4f
d55a6b498d66d8fc415908ecf63e50f46cce67e8 25-Mar-2011 Robert Greenwalt <rgreenwalt@google.com> Add external dependency API.

An APN will not be connected to if some external dependency is not met.

bug:3486704
Change-Id: I7d94df343b260013efd11faa978deb13f07f1389
om/android/server/ConnectivityService.java
53859740213b42fd00f0ce6d059b58322b41534c 07-Apr-2011 Joe Onorato <joeo@google.com> less logging

Change-Id: I4011db5c2a610e741a09e4e8fee68a86175769cc
om/android/server/BatteryService.java
b49a73dfc4c9817bba1f227e9330555acdf9b56f 16-Mar-2011 Jake Hamby <jhamby@google.com> Enable support for SMS national language shift tables.

Add support for encoding and decoding SMS 7 bit user data using the
national language shift tables defined in 3GPP TS 23.038 (GSM/UMTS only),
including the new tables added in Release 9 for Indic languages.

Decoding is always supported, but encoding is only enabled for the
specific language tables added to the new integer array resources
"config_sms_enabled_single_shift_tables" and
"config_sms_enabled_locking_shift_tables" defined in
frameworks/base/core/res/res/values/config.xml. The default empty arrays
should be overridden in an OEM overlay for the specific nationalities where
SMS national language shift table encoding is allowed/mandated (e.g. Turkey).
GsmAlphabet.countGsmSeptets() will try to find the most efficient encoding
among all combinations of enabled locking shift and single shift tables.
If no 7 bit encoding is possible, 16 bit UCS-2 encoding will be used.

This change also fixes a bug in the decoder: when an escape septet
is followed by a septet with no entry in the extension (single shift)
table, TS 23.038 Table 6.2.1.1 states that the MS shall display
the character in the main GSM 7 bit default alphabet table, or the
active national language locking shift table. Previously, we were
decoding this sequence as a space character. Two consecutive escape
septets will continue to decode as a space character, according to
Note 1 of table 6.2.1.1.

Change-Id: I4dab3f0ffe39f3df2064ed93c9c05f26e274d18b
om/android/server/location/GpsLocationProvider.java
e4e551e0ffb1113984ed0ae0264a54e9c8289f8d 06-Apr-2011 Joe Onorato <joeo@google.com> Merge "turn off log spew"
63ebffcb84f4e2fc55d576aed07c4559f66d97a8 06-Apr-2011 Joe Onorato <joeo@google.com> turn off log spew

Change-Id: I7e5564e02460ff41829c9fd26d80032ea3104498
om/android/server/TelephonyRegistry.java
om/android/server/pm/Installer.java
3fc982f41fda1f254bfbc35490d81cd82a0ed90a 31-Mar-2011 Dianne Hackborn <hackbod@google.com> Add new resource configurations for screen width/height in "dp".

You can now specify resource configuration variants "wNNNdp"
and "hNNNdp". These are the minimum screen width/height in "dp"
units. This allows you to do things like have your app adjust
its layout based only on the about of horizontal space available.

This introduces a new configuration change flag for screen size.
Note that this configuration change happens each time the orientation
changes. Applications often say they handle the orientation change
to avoid being restarted at a screen rotation, and this will now
cause them to be restarted. To address this, we assume the app can
handle this new config change if its target SDK version is < ICS.

Change-Id: I22f8afa136b4f274423978c570fa7c9855040496
om/android/server/wm/WindowManagerService.java
955276656755bdc85518049305a8492b3f7f8b0a 06-Apr-2011 Irfan Sheriff <isheriff@google.com> Merge "Add support for supplicant SCAN_INTERVAL"
2b7f63887e39079a52592fb4507d8daaf90e8afa 25-Mar-2011 Irfan Sheriff <isheriff@google.com> Add support for supplicant SCAN_INTERVAL

Also, allow scan interval for framework and supplicant
to be configured at build time or run time

Bug: 4144882
Change-Id: I877f4bcc872597b44d3f4da85cf2bc0f16e09444
om/android/server/WifiService.java
772a3b310620b30a1a02f38678c223bb3993d6ba 05-Apr-2011 Mike Lockwood <lockwood@android.com> Merge "MountService: Fix running media scanner at boot."
aefb1ea5b08a612da42e852366acfedcb802a6fd 05-Apr-2011 Mike Lockwood <lockwood@android.com> Merge "Fix deadlock in MountService"
80e0a416a6f8d70d3f55614695fb430f914371bc 05-Apr-2011 Mike Lockwood <lockwood@android.com> MountService: Fix running media scanner at boot.

Change-Id: Ibd1111b7ec6380011cd10a56f11f891f2e16abc2
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/MountService.java
84338c4559cd675cc8727c44bd1b6ad485b1a272 05-Apr-2011 Mike Lockwood <lockwood@android.com> Fix deadlock in MountService

It is not safe to call into vold with a lock held on mVolumeStates
since we will receive events back from vold on a different thread.
So in the boot completed handler we make a copy of the volume list and
then call vold to mount volumes after releasing the lock

Change-Id: I0dee91f09e4056132aaaf0fb0a663148c65db1e4
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/MountService.java
42bc0e946f8b986fb3aaada9980b496172e2b511 05-Apr-2011 Christopher Tate <ctate@google.com> Merge "Fix deadlock in BackupManagerService"
cace13d72a71cd8802b5804c47f5b5a9a7c01a74 05-Apr-2011 Mike Lockwood <lockwood@android.com> Merge "StorageManager: Add getVolumeList() and getVolumeState() methods"
47c5581adab6a9c3cdba4c8bed51e0454abf7b80 05-Apr-2011 Mike Lockwood <lockwood@android.com> Merge "MountService: Add support for multiple volumes"
4559764e9f8adadcc80c825fb5dafd3dfb739bcf 05-Apr-2011 Christopher Tate <ctate@google.com> Fix deadlock in BackupManagerService

Lock ordering bug. The fix is to avoid having to hold both locks
simultaneously in one prong of the deadlock. (Further strengthening:
the code path for potentially acquiring both simultaneously now
begins at a common method, ensuring that lock ordering is always
consistent.)

Change-Id: If9433aff8326fec2ba0e97e96ad2d835b01e2cda
om/android/server/BackupManagerService.java
b6c5d824c0eb34c218d18982c51b69c2df198220 05-Apr-2011 Robert Greenwalt <rgreenwalt@google.com> am e716a551: resolved conflicts for merge of ab2194aa to honeycomb-plus-aosp

* commit 'e716a5515bfb9d9f1f8a5b87fee8b75bef3a1a96':
Only leave one default network up at a time.
e716a5515bfb9d9f1f8a5b87fee8b75bef3a1a96 05-Apr-2011 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of ab2194aa to honeycomb-plus-aosp

Change-Id: I99a29f920336b00b26b9aadafd2bd835049f48cf
8fa5f804e21233c5f1993212fd5fb7c200eec905 24-Mar-2011 Mike Lockwood <lockwood@android.com> StorageManager: Add getVolumeList() and getVolumeState() methods

Change-Id: Icf3301827dd27e8430bd44eaafde517a31ef035a
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/MountService.java
7fa24aa8da3d2ab22b3a7d53fe64d14c31c076b8 23-Mar-2011 Mike Lockwood <lockwood@android.com> MountService: Add support for multiple volumes

Change-Id: I4eaa781cf302c7aaae170af2489b6b29120c0b81
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/MountService.java
37334c0f34ef40735b9f44918b53c1469ceae2cc 05-Apr-2011 Brad Fitzpatrick <bradfitz@android.com> am 8f7aad14: am f7a34b15: am e558a000: Merge "Avoid crash in system server when mounting container"

* commit '8f7aad147d790b25bae7301827e070df72690341':
Avoid crash in system server when mounting container
8f7aad147d790b25bae7301827e070df72690341 05-Apr-2011 Brad Fitzpatrick <bradfitz@android.com> am f7a34b15: am e558a000: Merge "Avoid crash in system server when mounting container"

* commit 'f7a34b15986f8c00bc6fb941a40f9acbe2c21aff':
Avoid crash in system server when mounting container
179122ad56f12bd802fd29fe0b6606dd23ec5ba9 04-Apr-2011 Mike Lockwood <lockwood@android.com> am a8731e1e: Merge "DO NOT MERGE: UsbService: Make USB disconnect handling for accessory mode more robust" into gingerbread

* commit 'a8731e1e922512e5c22485e48059f33b61ab93ea':
DO NOT MERGE: UsbService: Make USB disconnect handling for accessory mode more robust
d7a8e8453d8302ac9820af49b4b112468efdf36d 04-Apr-2011 Simon Wilson <simonwilson@google.com> am ec944728: Merge "DO NOT MERGE Disable WiMAX when "Data Enabled" is off" into gingerbread

* commit 'ec94472835787b66e1799110411d5077d0ef37cd':
DO NOT MERGE Disable WiMAX when "Data Enabled" is off
ab2194aadeb35a1f2eae6c4d3abd476b33f167f4 04-Apr-2011 Robert Greenwalt <rgreenwalt@google.com> am 27725e8c: Only leave one default network up at a time.

* commit '27725e8cd1e2eb3b88186ae8d43e437f130b1f84':
Only leave one default network up at a time.
6907891b1f2d706fa2bd6c40b986f73e5666e00e 04-Apr-2011 Elliott Hughes <enh@google.com> You can't fsync(2) /dev/urandom...

...so don't even try. Doing so leads to this:

W/EntropyService( 1586): unable to load initial entropy (first boot?)
W/EntropyService( 1586): java.io.SyncFailedException: fsync failed: EINVAL (Invalid argument)
W/EntropyService( 1586): at java.io.FileDescriptor.sync(FileDescriptor.java:73)
W/EntropyService( 1586): at java.io.RandomAccessFile.write(RandomAccessFile.java:694)
W/EntropyService( 1586): at java.io.RandomAccessFile.write(RandomAccessFile.java:676)
W/EntropyService( 1586): at com.android.server.RandomBlock.toDataOut(RandomBlock.java:88)
W/EntropyService( 1586): at com.android.server.RandomBlock.toFile(RandomBlock.java:70)
W/EntropyService( 1586): at com.android.server.EntropyService.loadInitialEntropy(EntropyService.java:99)
W/EntropyService( 1586): at com.android.server.EntropyService.<init>(EntropyService.java:86)
W/EntropyService( 1586): at com.android.server.EntropyService.<init>(EntropyService.java:76)
W/EntropyService( 1586): at com.android.server.ServerThread.run(SystemServer.java:139)
W/EntropyService( 1586): Caused by: libcore.io.ErrnoException: fsync failed: EINVAL (Invalid argument)
W/EntropyService( 1586): at libcore.io.Posix.fsync(Native Method)
W/EntropyService( 1586): at libcore.io.BlockGuardOs.fsync(BlockGuardOs.java:39)
W/EntropyService( 1586): at java.io.FileDescriptor.sync(FileDescriptor.java:71)
W/EntropyService( 1586): ... 8 more

Change-Id: I598a9456eccec0ca087f1568d47b6b8e531de8a8
om/android/server/EntropyService.java
om/android/server/RandomBlock.java
f7a34b15986f8c00bc6fb941a40f9acbe2c21aff 04-Apr-2011 Brad Fitzpatrick <bradfitz@android.com> am e558a000: Merge "Avoid crash in system server when mounting container"

* commit 'e558a0000389a2523b8d3d3a787db6b4579d2bdc':
Avoid crash in system server when mounting container
a20c8ef471666cf8b0dca91a8739ff18af1741a5 09-Feb-2011 Fredrik Helmer <fredrik.helmer@sonyericsson.com> Avoid crash in system server when mounting container

A race condition when mounting a container in PackageHelper may cause
the system_server to crash (uncaught exception). Calling methods are
prepared to handle null, so return null instead.

Change-Id: I852ee21a2d847e37d81c1b900c27ddf94ef24fcb
om/android/server/MountService.java
09bc5f5b5789818bee8d6eae3df68d855c627326 01-Apr-2011 Chet Haase <chet@google.com> Merge "Add logging of graphics acceleration info to bugreports"
9c1e23baf5bfbebd1aebbd6d9a18c225325567ce 24-Mar-2011 Chet Haase <chet@google.com> Add logging of graphics acceleration info to bugreports

Change-Id: I9fa4cda6ccf92df9d1c644ccdc0e7274a30106e0
om/android/server/am/ActivityManagerService.java
bc2278b95f4012d81918b0faedea36011f122a33 01-Apr-2011 Jeff Brown <jeffbrown@google.com> Merge "Add a little input event consistency verifier."
13ec406381335b7b73ac989c296baac31a64df81 01-Apr-2011 Robert Greenwalt <rgreenwalt@google.com> Fix a bad merge.

Re-add change 103769 (Change-Id: I9e7c94718a5b1f08840b219b304ba3904259a65f) from gingerbread
after the bad merge was reverted by master change 104487
(Change-Id: I8fad7ee11f4b26630f3cc4b31cc9cafbe66b3bf4).

bug:4157610
Change-Id: I96a75d71220cc7886a5b186b415d8dacf6951ca6
om/android/server/ConnectivityService.java
21bc5c917d4ee2a9b2b8173091e6bba85eaff899 01-Mar-2011 Jeff Brown <jeffbrown@google.com> Add a little input event consistency verifier.

The idea is to assist with debugging by identifying cases in which
the input event stream is corrupted.

Change-Id: I0a00e52bbe2716be1b3dfc7c02a754492d8e7f1f
om/android/server/wm/InputFilter.java
b1c6b0f1e2c9d80369ff62beae1305b837d8faca 31-Mar-2011 Robert Greenwalt <rgreenwalt@google.com> Fix the build.

Fix a bad merge.

Change-Id: I45d418a8868c9cab1b142ef997ad1d3550d11eee
om/android/server/ConnectivityService.java
8fad7ee11f4b26630f3cc4b31cc9cafbe66b3bf4 31-Mar-2011 Michael Jurka <mikejurka@google.com> Fix the build

Revert "am 047f9d12: Merge "resolved conflicts for merge of ce6766ea to honeycomb-plus-aosp" into honeycomb-plus-aosp"

This reverts commit 352f2c33d3b8a0b73dcdab98c7a77f698578b048, reversing
changes made to ce8a55db6feae11c1db45a868a7d8a0e7d105471.
om/android/server/ConnectivityService.java
e028290d01b730b30df0dd4653f8e1c5d987b6f4 31-Mar-2011 Jeff Brown <jeffbrown@google.com> Merge "Add input filter mechanism for accessibility."
a3869525289b9490a24e72673d3b3168ce6424d1 31-Mar-2011 Jeff Brown <jeffbrown@google.com> Merge "Move accessibility manager service to own package."
0029c66203ab9ded4342976bf7a17bb63af8c44a 30-Mar-2011 Jeff Brown <jeffbrown@google.com> Add input filter mechanism for accessibility.

This patch adds a mechanism for capturing, filtering, transforming
and injecting input events at a very low level before the input
dispatcher attempts to deliver them to applications. At this time,
the mechanism is only intended to be used by the accessibility
system to implement built-in system-level accessibility affordances.

The accessibility input filter is currently just a stub.
It logs the input events receives and reinjects them unchanged,
except that it transforms KEYCODE_Q into KEYCODE_Z.

Currently, the accessibility input filter is installed whenever
accessibility is enabled. We'll probably want to change that
so it only enables the input filter when a screen reader is
installed and we want touch exploration.

Change-Id: I35764fdf75522b69d09ebd78c9766eb7593c1afe
om/android/server/accessibility/AccessibilityInputFilter.java
om/android/server/accessibility/AccessibilityManagerService.java
om/android/server/wm/InputFilter.java
om/android/server/wm/InputManager.java
om/android/server/wm/WindowManagerService.java
352f2c33d3b8a0b73dcdab98c7a77f698578b048 31-Mar-2011 Robert Greenwalt <rgreenwalt@google.com> am 047f9d12: Merge "resolved conflicts for merge of ce6766ea to honeycomb-plus-aosp" into honeycomb-plus-aosp

* commit '047f9d12976d90d0931a64a256bb4843d77f5e20':
Fix some alt-network issues.
b9d173ce8f6e40f0861de56ef00a14cf253dfd54 31-Mar-2011 Brad Fitzpatrick <bradfitz@android.com> am f6809853: am 7a84a60d: am 1a5a2379: Merge "Unregister callback from binder when vibration is removed"

* commit 'f68098534e42b33cd4588bb2d2ba34ab579e11aa':
Unregister callback from binder when vibration is removed
d0b4e9611da8466a352ff194484d674a05a6ae42 31-Mar-2011 Mike Lockwood <lockwood@android.com> am 08d5de83: am cd90d1f1: am 44e4b99f: Merge "UsbService: Make USB disconnect handling for accessory mode more robust" into honeycomb-mr1

* commit '08d5de83393dbd4d31893d96e4871a8a3628a2cd':
UsbService: Make USB disconnect handling for accessory mode more robust
6244f0fc168291b428ba2595e0a3a0d5d4be2bd4 31-Mar-2011 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of ce6766ea to honeycomb-plus-aosp

Change-Id: I4c3c382cc5cd89f8a4437cf17836fb42f9417ee1
a8731e1e922512e5c22485e48059f33b61ab93ea 30-Mar-2011 Mike Lockwood <lockwood@android.com> Merge "DO NOT MERGE: UsbService: Make USB disconnect handling for accessory mode more robust" into gingerbread
8a7fc0af618d08dca5005881ae8d5b1994df34e0 30-Mar-2011 TK MUN <tk.mun@samsung.com> DO NOT MERGE Disable WiMAX when "Data Enabled" is off

When user uncheck "Data Enabled" check box, WiMAX goes
into "disconnected" state.

Change-Id: I3b9bdbc16cc4ddbf7a1aac0c984cad8994c4e9f2
Signed-off-by: TK MUN <tk.mun@samsung.com>
om/android/server/ConnectivityService.java
11ebb6f5020761b9b8373a5e0d777fb91a2b92c2 30-Mar-2011 Irfan Sheriff <isheriff@google.com> am 05f14e2b: Merge "DO NOT MERGE Pick upstream intf with valid IP conf" into gingerbread

* commit '05f14e2bcf78be62b35e85902408ea66103a3881':
DO NOT MERGE Pick upstream intf with valid IP conf
ce6766ea51a943b9f8908cb18d0d9762497b478c 30-Mar-2011 Robert Greenwalt <rgreenwalt@google.com> am 568845a7: Merge "Fix some alt-network issues." into gingerbread

* commit '568845a766cddc4e4c222b4d9de064f8a48da990':
Fix some alt-network issues.
f68098534e42b33cd4588bb2d2ba34ab579e11aa 30-Mar-2011 Brad Fitzpatrick <bradfitz@android.com> am 7a84a60d: am 1a5a2379: Merge "Unregister callback from binder when vibration is removed"

* commit '7a84a60d569ef7373fbb6418026b935d48fcd7e7':
Unregister callback from binder when vibration is removed
6e6cd7a5660af1a4b5a9ad091c41ef1c72ad2000 30-Mar-2011 Jeff Brown <jeffbrown@google.com> Move accessibility manager service to own package.

Change-Id: I0d73737a21615f0ff0abc80b757fb8c9bcb50be5
om/android/server/AccessibilityManagerService.java
om/android/server/SystemServer.java
om/android/server/accessibility/AccessibilityManagerService.java
8f2e3862bc4629bf152810aa147089bd066ded83 30-Mar-2011 Mike Lockwood <lockwood@android.com> DO NOT MERGE: UsbService: Make USB disconnect handling for accessory mode more robust

Handle the case where the kernel driver is in accessory mode but we failed
to initialize it at the framework level. On disconnnect, check to see if the
accessory kernel driver is enabled rather than checking mCurrentAccessory.
That way we will restore the USB state in the kernel even if mCurrentAccessory
is null.

Change-Id: I2c4f6edb34aae2064f4b62ec0461d1fdd8770541
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/usb/UsbService.java
08d5de83393dbd4d31893d96e4871a8a3628a2cd 30-Mar-2011 Mike Lockwood <lockwood@android.com> am cd90d1f1: am 44e4b99f: Merge "UsbService: Make USB disconnect handling for accessory mode more robust" into honeycomb-mr1

* commit 'cd90d1f1173c344738362d24bdc637c355b75645':
UsbService: Make USB disconnect handling for accessory mode more robust
cd90d1f1173c344738362d24bdc637c355b75645 30-Mar-2011 Mike Lockwood <lockwood@android.com> am 44e4b99f: Merge "UsbService: Make USB disconnect handling for accessory mode more robust" into honeycomb-mr1

* commit '44e4b99f823a6d6131f94e67389b705d3b124c0a':
UsbService: Make USB disconnect handling for accessory mode more robust
4f0f3561edfdcdff0ac90f0ea26c64cb16efe643 30-Mar-2011 Mike Lockwood <lockwood@android.com> UsbService: Make USB disconnect handling for accessory mode more robust

Handle the case where the kernel driver is in accessory mode but we failed
to initialize it at the framework level. On disconnnect, check to see if the
accessory kernel driver is enabled rather than checking mCurrentAccessory.
That way we will restore the USB state in the kernel even if mCurrentAccessory
is null.

Change-Id: I35d458f21a8b21611946da523d0f53723cab0540
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/usb/UsbService.java
27725e8cd1e2eb3b88186ae8d43e437f130b1f84 29-Mar-2011 Robert Greenwalt <rgreenwalt@google.com> Only leave one default network up at a time.

If original refuses to tear down, tear down new one. It's better
to have none (which will try to launch them all again) than two.

Really people shouldn't refuse the teardown request.

bug:4183397
Change-Id: I54ea1bf0d2cd2ef16fcf2eafc69895ad2fe33ffd
om/android/server/ConnectivityService.java
35167d95e155f4b4a962bad9613ae66f6a36f88b 29-Mar-2011 Mike Lockwood <lockwood@android.com> Remove logging from HardwareService flashlight calls

Bug: 4184090

Change-Id: I772b9098e082afcde09ae607d196c1591137fa6d
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/LightsService.java
7a84a60d569ef7373fbb6418026b935d48fcd7e7 28-Mar-2011 Brad Fitzpatrick <bradfitz@android.com> am 1a5a2379: Merge "Unregister callback from binder when vibration is removed"

* commit '1a5a2379eb3a6cf16fb153aecbc4ac9e85d3ed42':
Unregister callback from binder when vibration is removed
ff5075944eba8d644ace8ca6b8c5e2ea060698dc 25-Mar-2011 Kenny Root <kroot@google.com> Merge changes Ia7add63e,Ic7571dae

* changes:
Split dump and annotate users of mPackages lock
Split PackageManagerService into subclasses
05f14e2bcf78be62b35e85902408ea66103a3881 25-Mar-2011 Irfan Sheriff <isheriff@google.com> Merge "DO NOT MERGE Pick upstream intf with valid IP conf" into gingerbread
c0e0dbb45446e5e0f7f131f2180c946778e7d711 17-Jan-2011 Irfan Sheriff <isheriff@google.com> DO NOT MERGE Pick upstream intf with valid IP conf

As a work around for the issue of picking
the wrong interface, add a check for selecting
an upstream interface that has a valid IP configuration

Bug: 3362306
Change-Id: I3e8ab5ef30b69f1adab755d83f5b65c078f73936
om/android/server/connectivity/Tethering.java
7cf5b419da5a49ccead2af51c7b6587ce1195958 25-Mar-2011 Robert Greenwalt <rgreenwalt@google.com> Fix some alt-network issues.

Two issues.
1) remove default routes for non-default networks.
2) don't report mobile is the active default network just because
it is active.

bug:4157610
Change-Id: I9e7c94718a5b1f08840b219b304ba3904259a65f
om/android/server/ConnectivityService.java
2625feae79ab418355c2a4dafe8b162bba3cc1cf 24-Mar-2011 Adam Cohen <adamcohen@google.com> Modifying RemoteViewsFactory interface

-made onDestroy() one way
-moved uncaught exception handling to the application process

Change-Id: I958571a34eaa48b27e441e3a117c109fb2d2c644
om/android/server/AppWidgetService.java
b23949b7454ddb65f81e1bd4426b2cc714ab9c3e 28-Sep-2010 Mathias Jeppsson <mathias.jeppsson@sonyericsson.com> Unregister callback from binder when vibration is removed

When creating new vibration pattern, a callback is registered
in case binding to caller goes away, by linkToDeath().
Need to unregister this callback when we throw away the vibration.

Change-Id: Ibdf0bd415a539054ac7a66f49b33a864f729c546
om/android/server/VibratorService.java
447106fc839520d18dcb367ba17fc8ec345bb9e8 23-Mar-2011 Kenny Root <kroot@google.com> Split dump and annotate users of mPackages lock

Split the dump() command between PMS and Settings.

Try to annotate all users of the mPackages lock in preparation for
switch to reader/writer lock.

Also mark some locals final as I was reading through the usage of the
synchronization on mPackages.

Change-Id: Ia7add63e835e67156edf886f98acebe50cc41f70
om/android/server/pm/PackageManagerService.java
om/android/server/pm/PackageSettingBase.java
om/android/server/pm/Settings.java
15cb32ed9d189526d5a98add386b28cea6bc46b7 23-Mar-2011 Robert Greenwalt <rgreenwalt@google.com> am 5635dc93: am 0b6d0445: am ac70fb8b: Merge "Fix adding of default route." into honeycomb-mr1

* commit '5635dc9313dc6ca3ea739e4ca36c42a2c58537e9':
Fix adding of default route.
5635dc9313dc6ca3ea739e4ca36c42a2c58537e9 23-Mar-2011 Robert Greenwalt <rgreenwalt@google.com> am 0b6d0445: am ac70fb8b: Merge "Fix adding of default route." into honeycomb-mr1

* commit '0b6d044567b9c3004eb7ed826fd593019cd24352':
Fix adding of default route.
0b6d044567b9c3004eb7ed826fd593019cd24352 23-Mar-2011 Robert Greenwalt <rgreenwalt@google.com> am ac70fb8b: Merge "Fix adding of default route." into honeycomb-mr1

* commit 'ac70fb8be6ea3a6b49d0a8a26e99c25f92013516':
Fix adding of default route.
edcb4f9d560a85970030e1df70426e8d1e2267d2 23-Mar-2011 Robert Greenwalt <rgreenwalt@google.com> Fix adding of default route.

If you deleted the host routes (started a secondary network like mms, supl
of hipri and then ended it) you would lose the host route to the default
gateway. Then if you needed to re-add the default gateway route (lost
the connection and removed the default route and then re-established)
you couldn't - can't add a gateway that isn't routable apparently.

This happens if you are in a video chat and lose your connection without
losing the interface (PPP keeps it up for a bit).

Fixed it by having addDefaultRoute first add a hsot route for the gateway
before adding the default route. This allows the default add to succeed.

bug:3490353
Change-Id: I415e7319832e6456f8757b14c4f79f098a08839b
om/android/server/ConnectivityService.java
cf0b38ca6e5aa5efded7dbdbb623f6cd2746c96a 22-Mar-2011 Kenny Root <kroot@google.com> Split PackageManagerService into subclasses

Split PackageManagerService from one monolithic class with several inner
classes to several classes. This will help determining how its data
structures can be reshuffled to provide better separation of concerns.

Change-Id: Ic7571daebdcf13ce08e08f34204c5bbf4140139b
om/android/server/DeviceStorageMonitorService.java
om/android/server/Installer.java
om/android/server/MountService.java
om/android/server/PackageManagerService.java
om/android/server/SystemServer.java
om/android/server/pm/BasePermission.java
om/android/server/pm/GrantedPermissions.java
om/android/server/pm/Installer.java
om/android/server/pm/PackageManagerService.java
om/android/server/pm/PackageSetting.java
om/android/server/pm/PackageSettingBase.java
om/android/server/pm/PackageSignatures.java
om/android/server/pm/PendingPackage.java
om/android/server/pm/PreferredActivity.java
om/android/server/pm/Settings.java
om/android/server/pm/SharedUserSetting.java
60f7ad8a8bfbc8f98510a0af94371e3a1caacdc2 22-Mar-2011 Kenny Root <kroot@google.com> Add generic types and more cleanup

Removing some unused methods, adding generics where possible to avoid
future mistakes, and just more cleanups of warnings.

Change-Id: Ie62206f87dc19544b9dc039faa0159fc46ebc259
om/android/server/PackageManagerService.java
4dfe6ff609cd7850a624ae1e05b0b78b5e8f1f02 24-Feb-2011 Kenny Root <kroot@google.com> PackageManager: Remove unused methods and more debug flags

Change-Id: Ib44c2b9f3bf8f8ccf6b79771aee7481bd6a0d1e3
om/android/server/PackageManagerService.java
62cc69017a209bc6e6e0daa58d675cce5d5b8220 24-Feb-2011 Kenny Root <kroot@google.com> PackageManager: mark some ints final

Change-Id: I72ddeeae6bcd5df291b1c96020a0eca3e6552e41
om/android/server/PackageManagerService.java
9718cf5e5837d20983cab695d0f54834ffa3b2f4 24-Feb-2011 Kenny Root <kroot@google.com> PackageManager: get rid of Config.LOG[DV]

Change-Id: If7fb1ce80dd36afb980f04687579580992c27f64
om/android/server/PackageManagerService.java
2798942bc4c0aeb8dd31d8471a367aaa5d8a2667 24-Feb-2011 Kenny Root <kroot@google.com> Reorganize imports for PackageManagerService

Change-Id: I62e6cb8088086a9f5c3983145a08b44b782693e4
om/android/server/PackageManagerService.java
7dca6f1b9cbeebc47d84d248b1af5d903105c0f8 22-Mar-2011 Kenny Root <kroot@google.com> Merge "Remove unused items in setInstallerPackageName"
7672db59680bded26c84521fcd936db5eeb19758 21-Mar-2011 Mike Lockwood <lockwood@android.com> am 433567b5: am 56063c8d: am dd76dc02: Merge "UsbService: Handle the case where a USB accessory connects as the device is booting" into honeycomb-mr1

* commit '433567b57c96525fb6c1c39e8ccb9780548441ba':
UsbService: Handle the case where a USB accessory connects as the device is booting
9a612b545e2c5249bfd8ef2b7673197b8f214cbd 21-Mar-2011 Mike Lockwood <lockwood@android.com> am 65de3c76: DO NOT MERGE: UsbService: Handle the case where a USB accessory connects as the device is booting

* commit '65de3c76874386a5c1ffd26690451ecdef972a9e':
DO NOT MERGE: UsbService: Handle the case where a USB accessory connects as the device is booting
433567b57c96525fb6c1c39e8ccb9780548441ba 21-Mar-2011 Mike Lockwood <lockwood@android.com> am 56063c8d: am dd76dc02: Merge "UsbService: Handle the case where a USB accessory connects as the device is booting" into honeycomb-mr1

* commit '56063c8d62d0574409a8150d580993c8d8e0f14f':
UsbService: Handle the case where a USB accessory connects as the device is booting
56063c8d62d0574409a8150d580993c8d8e0f14f 21-Mar-2011 Mike Lockwood <lockwood@android.com> am dd76dc02: Merge "UsbService: Handle the case where a USB accessory connects as the device is booting" into honeycomb-mr1

* commit 'dd76dc0297f4c39fefbbc1ac23d9b1add187d9e9':
UsbService: Handle the case where a USB accessory connects as the device is booting
65de3c76874386a5c1ffd26690451ecdef972a9e 19-Mar-2011 Mike Lockwood <lockwood@android.com> DO NOT MERGE: UsbService: Handle the case where a USB accessory connects as the device is booting

Bug: 4129297

Change-Id: I33963b0a667976d8100a60b27d66bfd0d57373e2
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/usb/UsbService.java
1c0e543638fa940651b675645146fd71c2ebd9b9 19-Mar-2011 Mike Lockwood <lockwood@android.com> UsbService: Handle the case where a USB accessory connects as the device is booting

Bug: 4129297

Change-Id: I8f9d085805fb598572f9b00952c3cd38cfab461b
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/usb/UsbService.java
2120617f2fb10035022d1a3e76836a278a0e6a18 18-Mar-2011 James Dong <jdong@google.com> am 14438b81: am 970bad67: am be368de7: Merge "Fix missing AOSP copyright headers for more files" into honeycomb-mr1

* commit '14438b81a1fe4d7ebdf8977f3d80a1dd1867c5ad':
Fix missing AOSP copyright headers for more files
14438b81a1fe4d7ebdf8977f3d80a1dd1867c5ad 18-Mar-2011 James Dong <jdong@google.com> am 970bad67: am be368de7: Merge "Fix missing AOSP copyright headers for more files" into honeycomb-mr1

* commit '970bad677585b3cba1ff1b48db9040c2005bd907':
Fix missing AOSP copyright headers for more files
970bad677585b3cba1ff1b48db9040c2005bd907 18-Mar-2011 James Dong <jdong@google.com> am be368de7: Merge "Fix missing AOSP copyright headers for more files" into honeycomb-mr1

* commit 'be368de7b7614e89bae8fb59ea4283eba890a2c1':
Fix missing AOSP copyright headers for more files
cc4d56f9ee0321e449a70083fc31d6b7713b8347 18-Mar-2011 Mike Lockwood <lockwood@android.com> am f63113d1: am a5b68f39: am 5982bf66: GPS: Restore XTRA downloading at boot.

* commit 'f63113d158b2afd98b41735ec02c8e800a73d23e':
GPS: Restore XTRA downloading at boot.
f63113d158b2afd98b41735ec02c8e800a73d23e 18-Mar-2011 Mike Lockwood <lockwood@android.com> am a5b68f39: am 5982bf66: GPS: Restore XTRA downloading at boot.

* commit 'a5b68f39e2936a83eac0b995992724cd5de6905d':
GPS: Restore XTRA downloading at boot.
a5b68f39e2936a83eac0b995992724cd5de6905d 18-Mar-2011 Mike Lockwood <lockwood@android.com> am 5982bf66: GPS: Restore XTRA downloading at boot.

* commit '5982bf66d4fdea38105d91ff0f9d38660ac87581':
GPS: Restore XTRA downloading at boot.
199d1c131d29b5356f71fbd7826a592c1dd8575f 17-Mar-2011 James Dong <jdong@google.com> Fix missing AOSP copyright headers for more files

o Update the copyright date on InputDispatcher_test.cpp and InputReader_test.cpp
because these two files were moved from other places to the current location,
and were actually created in 2010.

bug - 4119349

Change-Id: Ic93b81ddafb58e9e72a2e9e02ca3d9f173d6dca7
om/android/server/am/LaunchWarningWindow.java
5982bf66d4fdea38105d91ff0f9d38660ac87581 17-Mar-2011 Mike Lockwood <lockwood@android.com> GPS: Restore XTRA downloading at boot.

Between Froyo and Gingerbread we disabled scheduling an XTRA data download
at boot because the Qualcomm engineers thought it should not be necessary.
However, some users noticed a GPS performance degradation after receiving
their Gingerbread update, and some reported forcing an XTRA download cleared
up the problem. This change restores the Froyo behavior of downloading
XTRA data after boot.

Bug: 3509901

Change-Id: I5a52201a2b24ce4a5d3ddb1f86340e3d5387f603
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/location/GpsLocationProvider.java
65cf7edf420886a79f278efb757fecadb5c130f5 17-Mar-2011 Paul Milovanov <pmilovanov@google.com> am 074903a9: am eca7ff02: am 87f50f19: Merge "PACKAGE_FIRST_LAUNCH intent sent to wrong pkg" into honeycomb-mr1

* commit '074903a95b2e48ee6431eb7a586dfa541e08d559':
PACKAGE_FIRST_LAUNCH intent sent to wrong pkg
074903a95b2e48ee6431eb7a586dfa541e08d559 17-Mar-2011 Paul Milovanov <pmilovanov@google.com> am eca7ff02: am 87f50f19: Merge "PACKAGE_FIRST_LAUNCH intent sent to wrong pkg" into honeycomb-mr1

* commit 'eca7ff02fb6e75d4355565f05abf8f3af51731a0':
PACKAGE_FIRST_LAUNCH intent sent to wrong pkg
eca7ff02fb6e75d4355565f05abf8f3af51731a0 17-Mar-2011 Paul Milovanov <pmilovanov@google.com> am 87f50f19: Merge "PACKAGE_FIRST_LAUNCH intent sent to wrong pkg" into honeycomb-mr1

* commit '87f50f19eef2e70fcf7294c3b9cd5ca0344b99ee':
PACKAGE_FIRST_LAUNCH intent sent to wrong pkg
87f50f19eef2e70fcf7294c3b9cd5ca0344b99ee 17-Mar-2011 Paul Milovanov <pmilovanov@google.com> Merge "PACKAGE_FIRST_LAUNCH intent sent to wrong pkg" into honeycomb-mr1
a57db345d3f7b70854fd66e28b8b48d3fb27c606 17-Mar-2011 Paul Milovanov <pmilovanov@google.com> PACKAGE_FIRST_LAUNCH intent sent to wrong pkg

In PackageManagerService, intent with ACTION_PACKAGE_FIRST_LAUNCH was
being sent to wrong package. It was being sent to the installed
package with installer package in the URI, whereas it should be sent
to installer package with installed package in the URI.
Comment in Intent.java:1417 seems to support that intent with this
action should be sent to the installer package, not installed.

Bug: 3426299
Change-Id: Iadec4ae7a1af6bab434716f8fcdb7d0b099d1ee1
om/android/server/PackageManagerService.java
05c4d6def58a1c20f4160147dc7b47227b5c8c68 17-Mar-2011 Adam Cohen <adamcohen@google.com> am 6decf37c: am afcb65c2: am 296c1616: Merge "Catching all Exceptions when calling through to RemoteViewsFactory" into honeycomb-mr1

* commit '6decf37c98380271013c057862efcef137bc4f6c':
Catching all Exceptions when calling through to RemoteViewsFactory
6decf37c98380271013c057862efcef137bc4f6c 17-Mar-2011 Adam Cohen <adamcohen@google.com> am afcb65c2: am 296c1616: Merge "Catching all Exceptions when calling through to RemoteViewsFactory" into honeycomb-mr1

* commit 'afcb65c2fdc6892a605fced93da13f6ff455bd2b':
Catching all Exceptions when calling through to RemoteViewsFactory
afcb65c2fdc6892a605fced93da13f6ff455bd2b 17-Mar-2011 Adam Cohen <adamcohen@google.com> am 296c1616: Merge "Catching all Exceptions when calling through to RemoteViewsFactory" into honeycomb-mr1

* commit '296c1616bad5a075cf64c2ba025b0cfd6bb3816d':
Catching all Exceptions when calling through to RemoteViewsFactory
c2be22cf209b675e36893d31ebe3166b6321ba6b 17-Mar-2011 Adam Cohen <adamcohen@google.com> Catching all Exceptions when calling through to RemoteViewsFactory

Change-Id: Ib20c880bb7626565541ab4697317fcfaa2e6b5b7
om/android/server/AppWidgetService.java
fd865d0fb5f5b38a41a9196ee54357715bd32254 15-Mar-2011 Dianne Hackborn <hackbod@google.com> am 9b7c1274: am e2e8da7c: am 7c2e76f0: Merge "Improve error reporting for issue #3183612" into gingerbread

* commit '9b7c1274ddba8db2842431649d46c4cef510131f':
Improve error reporting for issue #3183612
9b7c1274ddba8db2842431649d46c4cef510131f 15-Mar-2011 Dianne Hackborn <hackbod@google.com> am e2e8da7c: am 7c2e76f0: Merge "Improve error reporting for issue #3183612" into gingerbread

* commit 'e2e8da7c734b71c4b6b81e51e16ce3f4061f0f07':
Improve error reporting for issue #3183612
e2e8da7c734b71c4b6b81e51e16ce3f4061f0f07 15-Mar-2011 Dianne Hackborn <hackbod@google.com> am 7c2e76f0: Merge "Improve error reporting for issue #3183612" into gingerbread

* commit '7c2e76f0a4daa7e4316e7a85d41d3c391319d955':
Improve error reporting for issue #3183612
3c9aa1aa093ff8acc5ec71190a35b9ab04d64fda 15-Mar-2011 Mike Lockwood <lockwood@android.com> am b0976320: Merge "DO NOT MERGE: Backport more USB accessory changes from honeycomb" into gingerbread

* commit 'b09763209980ff9210cc353f2410598220ec0480':
DO NOT MERGE: Backport more USB accessory changes from honeycomb
d022c23aed0d022057c0074a158b522c83e906e4 15-Mar-2011 Kenny Root <kroot@google.com> Merge "Revise free space checks for package installs"
7c2e76f0a4daa7e4316e7a85d41d3c391319d955 15-Mar-2011 Dianne Hackborn <hackbod@google.com> Merge "Improve error reporting for issue #3183612" into gingerbread
1ab43775d8134d652a7d27f2d79c569653e47f1a 15-Mar-2011 Dianne Hackborn <hackbod@google.com> Improve error reporting for issue #3183612

java.lang.SecurityException: Neither user 1209 nor current process
has android.permission.WAKE_LOCK.

Change-Id: I465972ab91b007e04b2ac62550f78583956a4048
om/android/server/am/ActivityManagerService.java
638d7cb3ee0bb3596b01dc19eca9456fa72a36e0 15-Mar-2011 Mike Lockwood <lockwood@android.com> DO NOT MERGE: Backport more USB accessory changes from honeycomb

Change-Id: I8459c5ab9fbf0b3cad752041484a5de44ca9badd
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/usb/UsbDeviceSettingsManager.java
d46bbaeb2706f88ae83130b63f088deda8d0e5d4 15-Mar-2011 satok <satok@google.com> am f057524d: am b02b8369: Merge "Remove a workaround for the data inconsistency of SystemProperties" into honeycomb-mr1

* commit 'f057524db620c490e96fa886238f3b31bd973060':
Remove a workaround for the data inconsistency of SystemProperties
f057524db620c490e96fa886238f3b31bd973060 15-Mar-2011 satok <satok@google.com> am b02b8369: Merge "Remove a workaround for the data inconsistency of SystemProperties" into honeycomb-mr1

* commit 'b02b8369c6549417561e2ae1467b615645b5d04c':
Remove a workaround for the data inconsistency of SystemProperties
62e1b4e9d41a01db423b5e4684ecf529ed46106d 15-Mar-2011 Kenny Root <kroot@google.com> Revise free space checks for package installs

Change-Id: Ie72bbab77aa89a50ec096edc1f471eab74829e67
om/android/server/DeviceStorageMonitorService.java
om/android/server/PackageManagerService.java
c15cf6353ee1c1cae83039a19fb8d5e5c7d76804 14-Mar-2011 Wink Saville <wink@google.com> Merge "Do not merge: Revert the revert of "LTE Changes for Telephony including Multiple PDN support and IPV6 support"" into honeycomb-LTE
ccdac700df7089a87e6bf284e45a30a7a6a62602 14-Mar-2011 Mike Lockwood <lockwood@android.com> am 78b8e1be: Merge "DO NOT MERGE: backport recent USB accessory changes from honeycomb" into gingerbread

* commit '78b8e1be97c61f7e0b28b145fadd0c646fd1c46b':
DO NOT MERGE: backport recent USB accessory changes from honeycomb
b548a3cfa022451098cc73e25ce79f1776e78715 14-Mar-2011 satok <satok@google.com> Remove a workaround for the data inconsistency of SystemProperties

Bug: 3473532
Reverting: Ie3f5b484b5574e10a4

Depends on Bug: 3511230
This must be fixed before submitting this CL.

Change-Id: I435a294a818bec5675f0ada00d81c1b3e37d1dce
om/android/server/InputMethodManagerService.java
9d7d62801ddb206d2ea96d74864a9edfe54d2eee 12-Mar-2011 Wink Saville <wink@google.com> Do not merge: Revert the revert of "LTE Changes for Telephony including Multiple PDN support and IPV6 support"

This reverts commit eca208fae6d1b6ae9c8c0e42eee092e86dbddbb7
and is the first of the LTE commits in master being back ported
to the LTE branch.

Change-Id: I17d4a1b779ed74bc7dfb409d2c1a30f60fdb27c7
om/android/server/ConnectivityService.java
fd10d5cf56e5b1ba7692400e4fe4ae26b61f3285 14-Mar-2011 Irfan Sheriff <isheriff@google.com> am fb897110: am 9b1ea0bd: am e21110f8: Merge "Backup and restore IP and proxy settings" into honeycomb-mr1

* commit 'fb8971106e5ea105e176c995c1ff3b4fbe630710':
Backup and restore IP and proxy settings
e21110f8b1e4aa884f7a4e2164ae90dab8d5f3fa 14-Mar-2011 Irfan Sheriff <isheriff@google.com> Merge "Backup and restore IP and proxy settings" into honeycomb-mr1
0c5820ad8eafd3828ab0dea4794945b4f0637e13 14-Mar-2011 Mike Lockwood <lockwood@android.com> am 151c74b3: am e976ff4a: Merge "Add a dialog to ask user to start an application for a USB device or accessory" into honeycomb-mr1

* commit '151c74b3c679a1799d01f210a2a3f4a658154320':
Add a dialog to ask user to start an application for a USB device or accessory
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>
om/android/server/usb/UsbDeviceSettingsManager.java
2cc0377200b94b2f68f34e34554f2aa39e09cbce 12-Mar-2011 Mike Lockwood <lockwood@android.com> DO NOT MERGE: backport recent USB accessory changes from honeycomb

Bug: 4082651

Change-Id: Ie7c2fc796dd3c64f803acbd14210e5949683f4ed
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/usb/UsbDeviceSettingsManager.java
om/android/server/usb/UsbResolverActivity.java
om/android/server/usb/UsbService.java
f25a7964a3c626013a832516617d0afcb81b2673 11-Mar-2011 Mike Lockwood <lockwood@android.com> am 7e6f519c: am 14c875ea: Merge "Clear default for USB device/accessory when new matching app is installed" into honeycomb-mr1

* commit '7e6f519c0704321461e256c919b4d554f23a4261':
Clear default for USB device/accessory when new matching app is installed
14c875eac750ca096de439225b1a028b1facc58e 11-Mar-2011 Mike Lockwood <lockwood@android.com> Merge "Clear default for USB device/accessory when new matching app is installed" into honeycomb-mr1
c7d32d106591fdfe759f48bbd6f7f1af7f92a61c 11-Mar-2011 Mike Lockwood <lockwood@android.com> Clear default for USB device/accessory when new matching app is installed

Bug: 4063041

Change-Id: Ia1b4f29d3e54ec21aa64407720d9d5db62855380
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/usb/UsbDeviceSettingsManager.java
2e7415564ad1d77537f9f3d5151ed480fcfc6ef9 11-Mar-2011 Robert Greenwalt <rgreenwalt@google.com> am b5c51d5f: Merge "DO NOT MERGE Backport of I1f55df8a from master." into gingerbread

* commit 'b5c51d5fa88c56ebbfb56af89beb077aa4f1f2f8':
DO NOT MERGE Backport of I1f55df8a from master.
9ebdd66465a0505a7d9922c1b9e22c14061a5eef 11-Mar-2011 Dianne Hackborn <hackbod@google.com> am 8657427f: am 7b076307: Merge "Fix issue #4084124: Wingray Often see black screen after market ANR due to 4084121" into honeycomb-mr1

* commit '8657427f78494df43d129d88f50e0d7375592486':
Fix issue #4084124: Wingray Often see black screen after market ANR due to 4084121
d3ac49889e8df83a2f0c8e569ae2ba7fec9bf01d 11-Mar-2011 Dianne Hackborn <hackbod@google.com> am 1bada408: am 492eb33d: Merge "Fix issue #4081756: Crash when un-stopping applications" into honeycomb-mr1

* commit '1bada408f94253c31ae49b1b00ed6263ce0ff229':
Fix issue #4081756: Crash when un-stopping applications
7b076307bb1f78d3f5616b7f2f2ad496aa4a33d7 11-Mar-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #4084124: Wingray Often see black screen after market ANR due to 4084121" into honeycomb-mr1
492eb33d549afa65e630d2f4886b1bdf3d979d04 11-Mar-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #4081756: Crash when un-stopping applications" into honeycomb-mr1
dd0f9af1161e491cb16d9705a3983650d3dc087b 11-Mar-2011 Mike Lockwood <lockwood@android.com> am 4135cb8e: am 364903ba: Merge "Support for USB accessory URIs" into honeycomb-mr1

* commit '4135cb8e43846e422bf760fd9b856c67cc4ec8f7':
Support for USB accessory URIs
6b09916eb2443ff8016b2d05dc7b2ef42a02a7e2 11-Mar-2011 Robert Greenwalt <rgreenwalt@google.com> DO NOT MERGE Backport of I1f55df8a from master.

Fixes false reporting of NO_CONNECTION.
bug:4057115

Change-Id: Ie11e81180276ac3aa486607ec3a8eb1088b2ece6
om/android/server/ConnectivityService.java
cb44d96173e59139a8a5c83246a3a40aaca1d277 11-Mar-2011 Dianne Hackborn <hackbod@google.com> Fix issue #4084124: Wingray Often see black screen after market ANR due to 4084121

Need to resume the top activity after force removing a crashing
app's activities.

Change-Id: Id3384b2aa73039a9b1e72c2201d3ab0ef5b4f61f
om/android/server/am/ActivityManagerService.java
4aeca7c5908387bc7efb0785830aea1053264062 11-Mar-2011 Irfan Sheriff <isheriff@google.com> Backup and restore IP and proxy settings

Bug: 4081954
Change-Id: I27266637c6ade0c5c8242792176d1edae0983446
om/android/server/WifiService.java
a925cd4101dceefae6b9c0634084f9fa72b12344 10-Mar-2011 Dianne Hackborn <hackbod@google.com> Fix issue #4081756: Crash when un-stopping applications

Change-Id: Ifc23481f8feaeacb410375eefd015ebdb997e39c
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityStack.java
024b4f14945bd2a285f730faa3a0fdbb6c47abc1 10-Mar-2011 Mike Lockwood <lockwood@android.com> Support for USB accessory URIs

If a USB accessory is attached and we have no application that supports it,
display a dialog offering the user the option to visit the accessory's website
if the accessory has a URI.

Bug: 4073248

Change-Id: I30e2a802493fb6e203532a7f79402379c40bc3b8
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/usb/UsbDeviceSettingsManager.java
26d7eef69ef064ca716ed76220ca2984995882ed 10-Mar-2011 Mike Lockwood <lockwood@android.com> am 84edf14b: am cc08c439: Merge "UsbAccessory: Add URI string, replace type string with description" into honeycomb-mr1

* commit '84edf14b62eaf3304252bb76b0b2ca3f518c8d54':
UsbAccessory: Add URI string, replace type string with description
cc08c439bc7b0afbdafc5ca18c584d2f7724f3df 10-Mar-2011 Mike Lockwood <lockwood@android.com> Merge "UsbAccessory: Add URI string, replace type string with description" into honeycomb-mr1
c01fd043a92462f12210d45a92d751b49e0e1f62 10-Mar-2011 TK MUN <tk.mun@samsung.com> am 4bdab175: DO NOT MERGE WiMAX support

* commit '4bdab1751f0db3b2f03e8c58ef5c11a543dfa3c7':
DO NOT MERGE WiMAX support
4bdab1751f0db3b2f03e8c58ef5c11a543dfa3c7 23-Feb-2011 TK MUN <tk.mun@samsung.com> DO NOT MERGE WiMAX support

- In Connectivity service, start WiMAX service
- 4G icon display in StatusBarPolicy
- Add DHCP renew
- Add radio for WiMAX

Change-Id: Iffff012b270d80e84ec8fbd4486921a8adb847dd
Signed-off-by: TK MUN <tk.mun@samsung.com>
om/android/server/ConnectivityService.java
ac36d7c715a9cd793b2dce6de547594810101c3a 10-Mar-2011 Mike Lockwood <lockwood@android.com> UsbAccessory: Add URI string, replace type string with description

This is a first step toward adding USB accessory URI support

BUG: 4073248

Modified USB accessory matching logic to look only at manufacturer, model and version
(description and URI are not considered when matching apps to accessories)

Also added test for USB accessory protocol version to accessorytest

BUG: 4080288

Change-Id: I992a3433c74efa7a7db37bf030f02c1f0c92f9e2
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/usb/UsbDeviceSettingsManager.java
8fe7ca1d7ddaf9faace4a12666381b14e73a3a4b 10-Mar-2011 Mike Lockwood <lockwood@android.com> am 18d8a074: am 564f12eb: Merge changes Ifd78cca3,Ieadb86fe,If5b44ebd into honeycomb-mr1

* commit '18d8a0748d3c42a31799e5ce7c7f4c2fd63d1896':
MTP: Convert date created and modified values from seconds to milliseconds
Update USB accessory compatibility library to support new requestPermission API
UsbService: Don't require permissions for UsbManager.getCurrentAccessory()
564f12ebe409bead467eee04dfd719e97367e520 10-Mar-2011 Mike Lockwood <lockwood@android.com> Merge changes Ifd78cca3,Ieadb86fe,If5b44ebd into honeycomb-mr1

* changes:
MTP: Convert date created and modified values from seconds to milliseconds
Update USB accessory compatibility library to support new requestPermission API
UsbService: Don't require permissions for UsbManager.getCurrentAccessory()
37bad9e7ac8f1294c8d4952aac1b0d25d3d8a555 10-Mar-2011 Jim Miller <jaggies@google.com> am c00c887c: am 5c9248f6: Merge "Fix 4027057: Improve resolution of RecentApps thumbnail images." into honeycomb-mr1

* commit 'c00c887c118849ac308f6fb1f6fad28b2929e6bb':
Fix 4027057: Improve resolution of RecentApps thumbnail images.
5c9248f668201a751500f67cc60bd45ff905751a 09-Mar-2011 Jim Miller <jaggies@google.com> Merge "Fix 4027057: Improve resolution of RecentApps thumbnail images." into honeycomb-mr1
607710ad12a7503c3b84c34430d1716fe7264f20 09-Mar-2011 Mike Lockwood <lockwood@android.com> UsbService: Don't require permissions for UsbManager.getCurrentAccessory()

Permission check should only happen in openAccessory()
Otherwise an application will not be able to check for the current accessory
and ask for permissions (if it is a suitable match for the application)

BUG: 4069037

Change-Id: If5b44ebda2e8077598d96629163cc74aa336589e
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/usb/UsbService.java
e18a4067e0af3a234095c54f83556c68484c6ab9 09-Mar-2011 Mike Lockwood <lockwood@android.com> am 094c9900: am 2c3ed826: Merge "Change UsbManager.requestPermission to only grant permission temporarily" into honeycomb-mr1

* commit '094c9900de383f0934f74cedef0d24b6d8a14905':
Change UsbManager.requestPermission to only grant permission temporarily
2c3ed82600af117e791a087330a198fe90d298b7 09-Mar-2011 Mike Lockwood <lockwood@android.com> Merge "Change UsbManager.requestPermission to only grant permission temporarily" into honeycomb-mr1
eddeecf059e18984199c0e0da3b7b15aa5b44813 09-Mar-2011 Irfan Sheriff <isheriff@google.com> am 86587185: am 7ad85eb6: Merge "Persist wifi override in airplane mode" into honeycomb-mr1

* commit '865871850bcedd4b9da0536c8b41f3c1816e5f43':
Persist wifi override in airplane mode
c6f23e8521dedac7a07119031913235be3ca37c3 09-Mar-2011 Mike Lockwood <lockwood@android.com> Change UsbManager.requestPermission to only grant permission temporarily

If the user approves an application to access a USB device or accessory
without choosing it as the default application, then permission is granted
only until the device or accessory is disconnected.
Only applications chosen as the default choice have permissions assigned persistently.

BUG: 4061035

Change-Id: Ic4f6271a91b2fc56bbeef82c579e26d88c63ae56
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/usb/UsbDeviceSettingsManager.java
om/android/server/usb/UsbService.java
7ad85eb62f9f332cc8002ec996cd359333ba590e 09-Mar-2011 Irfan Sheriff <isheriff@google.com> Merge "Persist wifi override in airplane mode" into honeycomb-mr1
77e1a4c57e1d5a75a09c514ef5b7d358a9150bbf 09-Mar-2011 Mike Lockwood <lockwood@android.com> am 093cf07f: am 9e8e4ea0: Merge changes Ib517e5e4,I93be7695,I49bf22a4 into honeycomb-mr1

* commit '093cf07f3c58a6553c415d750edba1a75b269f05':
Close USB dialogs if their corresponding accessory or device has disconnected
USB: Add API and dialog for apps to request permissions for USB devices and accessories
UsbService: Automatically use system apps by default if it is the only choice
9e8e4ea0a839b561d329758cddbfd0f7ea23f593 09-Mar-2011 Mike Lockwood <lockwood@android.com> Merge changes Ib517e5e4,I93be7695,I49bf22a4 into honeycomb-mr1

* changes:
Close USB dialogs if their corresponding accessory or device has disconnected
USB: Add API and dialog for apps to request permissions for USB devices and accessories
UsbService: Automatically use system apps by default if it is the only choice
658772f0e6bcf2b0a3e26778c2fc47accbdfeb2e 08-Mar-2011 Irfan Sheriff <isheriff@google.com> Persist wifi override in airplane mode

Persist the setting of wifi override in airplane mode
so that it can be restored on reboot

Bug: 3250824
Change-Id: I2af38c282ba55fc150fd9ef783d43600f0d4260f
om/android/server/WifiService.java
e70d506ab329f1f96b0ee132317aa36edea1b94e 09-Mar-2011 Jim Miller <jaggies@google.com> Fix 4027057: Improve resolution of RecentApps thumbnail images.

This fix ensures captured thumbnails in portrait mode have the
same resolution as those in landscape by fixing the horizontal
resolution and vertical resolution of the target image.

The returned image is now always the same size and matches
the landscape screen exactly. In portrait mode, it grabs
the upper portion of the screen based on the vertical dimension
of the target image.

Change-Id: I203c39843f2f21ca28f6ef0dffec308ce5cb39fb
om/android/server/wm/WindowManagerService.java
3e95ab97a2dbb4385eae8cb934664615d340ba5b 09-Mar-2011 Jim Miller <jaggies@google.com> am 88d2d039: am 3de6a9b6: Merge "Fix 4025684: Don\'t include wallpaper dimensions in bounds calculation" into honeycomb-mr1

* commit '88d2d0390d41eb37481936872f1a03db39b8526d':
Fix 4025684: Don't include wallpaper dimensions in bounds calculation
2bf0410bd2bae6cb49eef8d302b0c8534ada67fe 09-Mar-2011 Dianne Hackborn <hackbod@google.com> am 0aa403c3: am 09a31662: Merge "Fix issue #3505861: Need to decide large/xlarge screen size limits" into honeycomb-mr1

* commit '0aa403c3bddc1289537130a20f1b96b2863bbb7e':
Fix issue #3505861: Need to decide large/xlarge screen size limits
3a68b8338b431eb15d28e92f06452efbbda9493e 08-Mar-2011 Mike Lockwood <lockwood@android.com> USB: Add API and dialog for apps to request permissions for USB devices and accessories

New APIs:

UsbManager.hasPermission returns true if the caller has permission
for the given device or accessory

UsbManager.requestPermission poses a dialog to allow the user to give the caller
permission for the device or accessory.
Result is returned via a PendingIntent.
No dialog is displayed if the caller already has permission.

Also moved UsbResolverActivity to SystemUI package

BUG: 4069037

Change-Id: I93be769501a8776b49ac26e468af19f8fa2114c9
om/android/server/usb/UsbDeviceSettingsManager.java
om/android/server/usb/UsbResolverActivity.java
om/android/server/usb/UsbService.java
8c7d8c3ccb37edff424ca01c6474cbed2154d954 07-Mar-2011 Mike Lockwood <lockwood@android.com> UsbService: Automatically use system apps by default if it is the only choice

If only one app is installed that supports a USB device or accessory
and that app is in the system partition, then use that activity by default
and rather than displaying the USB app chooser dialog.

BUG: 4060064

Change-Id: I49bf22a439e9676039b6f612c9bb622ab426066c
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/usb/UsbDeviceSettingsManager.java
3de6a9b692437d5ce14d672cad4eff4c7ed0ae23 09-Mar-2011 Jim Miller <jaggies@google.com> Merge "Fix 4025684: Don't include wallpaper dimensions in bounds calculation" into honeycomb-mr1
2aded18b0ef9f189771f70f05091493a44ec46ae 09-Mar-2011 Jim Miller <jaggies@google.com> Fix 4025684: Don't include wallpaper dimensions in bounds calculation

This fixes a bug where we would capture the statusbar region in
thumbnails because the wallpaper was used in the bounds calculation.

Change-Id: I572221e83c4c363afe90e59bece9a291ce694a15
om/android/server/wm/WindowManagerService.java
cc1d9f7942f7e70c240f0cc745840262345f506f 08-Mar-2011 Dianne Hackborn <hackbod@google.com> Fix issue #3505861: Need to decide large/xlarge screen size limits

Decided.

Change-Id: I8292d65e3d47755778fdf85207c49f160c756452
om/android/server/wm/WindowManagerService.java
c23971b3e4f92ac31996d4f9f32eef3cb4ef65fd 05-Mar-2011 Irfan Sheriff <isheriff@google.com> Handle client loss for a full connection

Bug: 3513246
Change-Id: I928544a05702bb004457e2b0d2eeb3c34f98edf9
om/android/server/WifiService.java
1997069436f0d47583a0b700c12ed63132cf3312 22-Dec-2010 Benoit Goby <benoit@android.com> Add support for USB Ethernet adapters

Change-Id: Ie75cbcdb1b0c8965b59b89675a05175a1e9ebdd6
om/android/server/ConnectivityService.java
abc093d47774fde9d22a8b512020a77db5181b96 04-Mar-2011 Ken Wakasa <kwakasa@google.com> am 74a909bc: am 6e38d26c: Merge "Fix the sort order of the input methods & subtypes in the settings." into honeycomb-mr1

* commit '74a909bc78e07b7626144ff3c4fc88fcd0d5b8d3':
Fix the sort order of the input methods & subtypes in the settings.
6e38d26c1e66cc957c33d4263013e02623ebd6da 04-Mar-2011 Ken Wakasa <kwakasa@google.com> Merge "Fix the sort order of the input methods & subtypes in the settings." into honeycomb-mr1
761eb3762f3602dd1859905ee4ba80f0ef6aec56 04-Mar-2011 Ken Wakasa <kwakasa@google.com> Fix the sort order of the input methods & subtypes in the settings.

It should have been the same as how the IME switcher panel does.

bug: 3364167
Change-Id: I48b98c9c4598720edf7cf09d1b9358a9ebed6051
om/android/server/InputMethodManagerService.java
fdcdd418e9f1b93c38cabca4f3203ba92032d515 04-Mar-2011 Dianne Hackborn <hackbod@google.com> am 54b3cb17: am f8b8a3fa: Refector preferred activity code out of package manager.

* commit '54b3cb170cc8c80b196079131c3a04410cfff035':
Refector preferred activity code out of package manager.
79f473e9ff72e59b04ab1795a90248a0328b3f55 04-Mar-2011 Dianne Hackborn <hackbod@google.com> am a6d2c62b: am 48f91e35: Merge "Fix Fragment.onInflate() to actually work correctly." into honeycomb-mr1

* commit 'a6d2c62b58075e338bb08f419ca1567d87d82dd2':
Fix Fragment.onInflate() to actually work correctly.
0dc4f79ba46e8d78f5cba4c54b67d62369bd1a16 04-Mar-2011 Svetoslav Ganov <svetoslavganov@google.com> am 5f96962c: am 1e158e9c: Merge "Propagating core settings to the system process." into honeycomb-mr1

* commit '5f96962caa23eec25d449e47a2f677d1ff8e53c9':
Propagating core settings to the system process.
7a76e222d71d826834a06102af28af7676e8edad 04-Mar-2011 Rebecca Schultz Zavin <rebecca@android.com> am 0b20a705: am 327e94da: Merge "set max_events_per_sec to 55" into honeycomb-mr1

* commit '0b20a705babac184754e41919ddbc3b9a3937933':
set max_events_per_sec to 55
380be914ffbdcb5a7d0c14f92868a6be191e9059 04-Mar-2011 Christopher Tate <ctate@google.com> am 0474407e: am 87ed42d0: Merge "Don\'t spuriously time out restore sessions" into honeycomb-mr1

* commit '0474407e5d99d6e78451c66703d2934adca0cec4':
Don't spuriously time out restore sessions
eb375847b235608e5262358a18bf0bc8597c6ced 04-Mar-2011 Ken Wakasa <kwakasa@google.com> am 1b3f178f: am a7001ee8: Merge "Append IME\'s name to the subtype name in the "Select input method" dialog" into honeycomb-mr1

* commit '1b3f178f85284c8b87a57596b50366522dea4766':
Append IME's name to the subtype name in the "Select input method" dialog
f8b8a3fa955b545843ca264428c620b67c2a5359 04-Mar-2011 Dianne Hackborn <hackbod@google.com> Refector preferred activity code out of package manager.

This may be useful for others... such as USB preferred devices, maybe?

Change-Id: I204081e2c84ccff6982a500baaf3540a80839a4b
om/android/server/PackageManagerService.java
om/android/server/PreferredComponent.java
48f91e35c5188f3dc78c12b8e8638a248221691b 04-Mar-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix Fragment.onInflate() to actually work correctly." into honeycomb-mr1
e3a7f628c6d9fef42be24999b3137ebe5c6f3525 04-Mar-2011 Dianne Hackborn <hackbod@google.com> Fix Fragment.onInflate() to actually work correctly.

Like, um, it needs to be given the Activity since this is called before
the activity is attached.

And it was called after the entire fragment and its *view* was created
when being restored from saved state.

And the documentation was whacked.

Also fix the IME selector to dismiss when you tap outside of it.

Change-Id: Icbcafe7558965a570bdef9cda3441b1f0f7a317c
om/android/server/InputMethodManagerService.java
1e158e9ce78c25dc5de402f14654a8955de7fddc 04-Mar-2011 Svetoslav Ganov <svetoslavganov@google.com> Merge "Propagating core settings to the system process." into honeycomb-mr1
327e94daff12ab4ac4da61a3ea802f3f225d1b3a 04-Mar-2011 Rebecca Schultz Zavin <rebecca@android.com> Merge "set max_events_per_sec to 55" into honeycomb-mr1
9aa597e68b3fb30b079d627e1fcdea766e98ad26 04-Mar-2011 Svetoslav Ganov <svetoslavganov@google.com> Propagating core settings to the system process.

bug:3511123

Now the core settins are stored in the ActivityThread
instad in the AppBindData of the currently bound app.
Also the settings are pushed to the system process on
init.

Change-Id: I100bb7dc80d0d4548def22c328427bbef1694eb7
om/android/server/am/CoreSettingsObserver.java
87ed42d065653aa30b2d1b8b220b75375cf9af30 04-Mar-2011 Christopher Tate <ctate@google.com> Merge "Don't spuriously time out restore sessions" into honeycomb-mr1
2a935096db65857b32bcc5c1e1403cc65871a2a9 04-Mar-2011 Christopher Tate <ctate@google.com> Don't spuriously time out restore sessions

If a restore set lookup took a long time, the client's restore
session could be declared timed out even though the client was
not at fault. Handle this properly by resetting the timeout clock
when control of the session is returned to the client.

Bug 3477324

Change-Id: I43afaf1063e8e706ef16b70be77f9eeeea6a321f
om/android/server/BackupManagerService.java
88dd6e665a6cf6f0ffca456a8f8dcf979075b856 03-Mar-2011 makarand.karvekar <makarand.karvekar@motorola.com> set max_events_per_sec to 55

reduce touch lag.
no Dispatcher fix w/throttle at 60: 75.9ms (range is 71.4ms - 80.1ms)
InputDispatcher fix w/throttle at 60: 49.0ms (range is 38.1ms - 66.7ms)
InputDispatcher fix w/throttle at 55: 41.2ms (range is 28.6ms - 66.7ms)

Change-Id: I76c0ba83abcd6a3d408a29ec76997a2e07e48a70
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
om/android/server/wm/InputManager.java
a7001ee8b60d66c25de69c8496108c40a0f2df88 04-Mar-2011 Ken Wakasa <kwakasa@google.com> Merge "Append IME's name to the subtype name in the "Select input method" dialog" into honeycomb-mr1
81f6e3d8d214a8ffadb6bae63b705602fe165156 04-Mar-2011 Ken Wakasa <kwakasa@google.com> Append IME's name to the subtype name in the "Select input method" dialog

bug: 3364167
Change-Id: I79b5435ec457e9e71ae69dbfaad8e719db6ff6d3
om/android/server/InputMethodManagerService.java
eca208fae6d1b6ae9c8c0e42eee092e86dbddbb7 03-Mar-2011 Wink Saville <wink@google.com> DO NOT MERGE: Revert "LTE Changes for Telephony including Multiple PDN support and IPV6 support"

This reverts commit 2b8bcfe5b74e1a34d136f4ff46e3c94397f38f82.

Change-Id: Ifc4e9aaccb54e065a36380710694cd6e4d347636
om/android/server/ConnectivityService.java
63e1cea248cde3db3e89f49e5fcc3458aa87951e 03-Mar-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #3485923: Gmail crash"
648251710162cdaf7371012a1cbb79b9bc5bc0e4 03-Mar-2011 Dianne Hackborn <hackbod@google.com> Fix issue #3485923: Gmail crash

Allow application to try to recover if a surface OOM error
happens on the client side.

Change-Id: I0308bd99647a35e4bcac448340b7fc6330a828f6
om/android/server/MountService.java
om/android/server/am/ActivityManagerService.java
om/android/server/wm/Session.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
d948b85dc9d0362a2ba0f7a3b905be0107a948f4 03-Mar-2011 Mike Lockwood <lockwood@android.com> am 611af238: DO NOT MERGE: UsbManager: Don\'t display activity picker if there are no apps available for an accessory

* commit '611af238185cf924a425a1a2154b8439b8f8d7a5':
DO NOT MERGE: UsbManager: Don't display activity picker if there are no apps available for an accessory
611af238185cf924a425a1a2154b8439b8f8d7a5 03-Mar-2011 Mike Lockwood <lockwood@android.com> DO NOT MERGE: UsbManager: Don't display activity picker if there are no apps available for an accessory

Change-Id: I1aa578887e42aef375211eadece4c1fddaf234f8
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/usb/UsbDeviceSettingsManager.java
4c384fdd9fe03fee02cbdce486a95956eebed0ec 03-Mar-2011 Mike Lockwood <lockwood@android.com> Merge " UsbManager: Don't display activity picker if there are no apps available for an accessory"
805b6bbea9676dafce3d6cd7dd2732f9f3f8fb23 03-Mar-2011 Mike Lockwood <lockwood@android.com> UsbManager: Don't display activity picker if there are no apps available for an accessory

Change-Id: I3ef569121e8d7d45584dbca9761451cbdf99a3e9
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/usb/UsbDeviceSettingsManager.java
570d2dfbbcfefc9b0dcf5d2ef3a98dc520b032a7 03-Mar-2011 Jeff Brown <jeffbrown@google.com> Merge "Get key repeat timeout and delay from ViewConfiguration."
fe87916f04036d807b12a2a9935516719042d4a7 03-Mar-2011 Mike Lockwood <lockwood@android.com> Merge "UsbManager: Don't display activity picker if there are no apps available for a device"
a454767b09ecb7d25d00beae0e5a1fdd48605c63 03-Mar-2011 Jeff Brown <jeffbrown@google.com> Get key repeat timeout and delay from ViewConfiguration.

Replaces previously hardcoded values. This ensures that key repeat
takes the accessibility long press timeout setting into account.

Unfortunately the system must be rebooted for the change to take
effect. We will fix that later.

Change-Id: I3ab70bb037331620b7e532170c1727287b5c6f91
om/android/server/wm/InputManager.java
cb067ef52ab5bca35a37224da59c5c173b486134 03-Mar-2011 Mike Lockwood <lockwood@android.com> UsbManager: Don't display activity picker if there are no apps available for a device

BUG: 3506988

Change-Id: Iaf3c50b9ba422e6bcd687338db996a4193441c97
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/usb/UsbDeviceSettingsManager.java
55acdf7dcd0cf5b9aacfe48808e98056c7d60e5b 03-Mar-2011 Jeff Brown <jeffbrown@google.com> Merge "Wake screen from external HID peripherals."
56194ebec6212e229f4ccdaa4b187166d20013ef 03-Mar-2011 Jeff Brown <jeffbrown@google.com> Wake screen from external HID peripherals.

Added some plumbing to enable the policy to intercept motion
events when the screen is off to handle wakeup if needed.

Added a basic concept of an external device to limit the scope
of the wakeup policy to external devices only. The wakeup policy
for internal devices should be based on explicit rules such as
policy flags in key layout files.

Moved isTouchEvent to native.

Ensure the dispatcher sends the right event type to userActivity
for non-touch pointer events like HOVER_MOVE and SCROLL.

Bug: 3193114
Change-Id: I15dbd48a16810dfaf226ff7ad117d46908ca4f86
om/android/server/wm/InputManager.java
om/android/server/wm/InputMonitor.java
2da0c5826df40d9f528bfe7d2e762c3fbea03f7f 03-Mar-2011 Svetoslav Ganov <svetoslavganov@google.com> Merge "Add system wide management of core settings"
e91e5f6e9db4db5cd53836c901a7f80c11abb55c 03-Mar-2011 Mike Lockwood <lockwood@android.com> am c9ac3f51: Merge "DO NOT MERGE: UsbService: Make sure the USB accessory function is disabled when we disconnect" into gingerbread

* commit 'c9ac3f5183be3f124f34ed49ac5766e0ba1aff77':
DO NOT MERGE: UsbService: Make sure the USB accessory function is disabled when we disconnect
ae0fdf13e2d250b1840c9eb1c4faae18357d693a 03-Mar-2011 Mike Lockwood <lockwood@android.com> DO NOT MERGE: UsbService: Make sure the USB accessory function is disabled when we disconnect

BUG: 3493041

Change-Id: I6aeb00a1d91d98a5a0aef4ed97ca5ba68daa24be
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/usb/UsbService.java
54d068ec6af0ee6d261a135400efe6816c6f5ffe 02-Mar-2011 Svetoslav Ganov <svetoslavganov@google.com> Add system wide management of core settings

bug:3505060

Since we want to have some settings that are used very frequently
by many applications (long-press timeout is one example) these should
be managed efficiently to reduce lookups from different processes
because in the case of a cache miss a disk I/O is performed. Now
the system manages such core settings and propagates them to the
application processes.

Change-Id: Ie793211baf8770f2181ac8ba9d7c2609dfaa32a7
om/android/server/am/ActivityManagerService.java
om/android/server/am/CoreSettingsObserver.java
aabf823593b25b030decee8c8d31ba5ead2f0343 03-Mar-2011 Mike Lockwood <lockwood@android.com> Merge "UsbService: Make sure the USB accessory function is disabled when we disconnect"
b98d02b8b29062025fa702b82894944e242fe2e7 03-Mar-2011 Mike Lockwood <lockwood@android.com> UsbService: Make sure the USB accessory function is disabled when we disconnect

BUG: 3493041

Change-Id: I95a34742d4b670a13ba5717f0551f3ce40af3c24
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/usb/UsbService.java
cbf9cb35bb7064f303c6dd9da4485cd5344b6779 03-Mar-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #3400119: API to specify a black background behind a window transition"
de75cb4738376c4cfe15c56aba7cd78d90e3100e 03-Mar-2011 Dianne Hackborn <hackbod@google.com> Fix issue #3400119: API to specify a black background behind a window transition

There is now an API, which is used for task switching.

Also improved how we handle rotation animation when we can't take a
screen shot, to cleanly revert to the old freeze behavior. This removes
the need to special case the emulator.

Change-Id: I7227432a2309370437ec6ac78db02c6f1e7eedd5
om/android/server/wm/DimAnimator.java
om/android/server/wm/DimSurface.java
om/android/server/wm/ScreenRotationAnimation.java
om/android/server/wm/WindowManagerService.java
05dc66ada6b61a6bdf806ffaa62617ac5394695d 02-Mar-2011 Jeff Brown <jeffbrown@google.com> Fade out the mouse pointer after inactivity or other events.

Fades out the mouse pointer:
- after 15 seconds of inactivity normally
- after 3 seconds of inactivity in lights out mode
- after a non-modifier key down
- after a touch down

Extended the native Looper to support enqueuing time delayed
messages. This is used by the PointerController to control
pointer fade timing.

Change-Id: I87792fea7dbe2d9376c78cf354fe3189a484d9da
om/android/server/wm/InputManager.java
om/android/server/wm/WindowManagerService.java
7866be2b76e421ca28e5dcbd3e7d362baf279dd9 03-Mar-2011 Mike Lockwood <lockwood@android.com> am 40bbf929: DO NOT MERGE: Backport USB accessory support to gingerbread

* commit '40bbf9295d5245d3917629ce15f7b37670aef1ac':
DO NOT MERGE: Backport USB accessory support to gingerbread
f867706180c0ce374b30769f367df263aaab4e08 02-Mar-2011 Amith Yamasani <yamasani@google.com> am 0e99d3bf: am df33b8c5: Merge "Check for NTP time as soon as WIFI is connected." into honeycomb

* commit '0e99d3bfab99254cc187de127a7a4767f165cde8':
Check for NTP time as soon as WIFI is connected.
7e48e76cab10377367b925790cf3a840651009fa 02-Mar-2011 Robert Greenwalt <rgreenwalt@google.com> Merge "Start using NetworkUtils.numericToInetAddress."
e590373ea71251cfffc8f22f011e2e6335dce716 23-Feb-2011 Robert Greenwalt <rgreenwalt@google.com> Start using NetworkUtils.numericToInetAddress.

Generates InetAddresses without risking an accidental dns lookup. For use with supposedly
numeric-only ip address strings.

Change-Id: I694f3976ce1c6382854706f6557ea88a289add3a
om/android/server/ConnectivityService.java
om/android/server/NetworkManagementService.java
om/android/server/connectivity/Tethering.java
0528bc77948e49bd75cfd4082fb8fef3a7238626 02-Mar-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #3431230: "am" debugging commands failing on -userdebug builds"
3dee21eb0f253a7e78572872b8dfc7b5d990a063 02-Mar-2011 Kenny Root <kroot@google.com> Merge "Switch to returnCode for IPackageDeleteObserver"
40bbf9295d5245d3917629ce15f7b37670aef1ac 01-Mar-2011 Mike Lockwood <lockwood@android.com> DO NOT MERGE: Backport USB accessory support to gingerbread

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/NotificationManagerService.java
om/android/server/SystemServer.java
om/android/server/UsbService.java
om/android/server/connectivity/Tethering.java
om/android/server/usb/UsbDeviceSettingsManager.java
om/android/server/usb/UsbResolverActivity.java
om/android/server/usb/UsbService.java
f02e57bec0d5496555f7dcb8a126268ec46d9d51 02-Mar-2011 Dianne Hackborn <hackbod@google.com> Fix issue #3431230: "am" debugging commands failing on -userdebug builds

Change-Id: I6b5a8bf68d3bd76c7331ee97bab9a68b5033cb5a
om/android/server/am/ActivityManagerService.java
0e99d3bfab99254cc187de127a7a4767f165cde8 02-Mar-2011 Amith Yamasani <yamasani@google.com> am df33b8c5: Merge "Check for NTP time as soon as WIFI is connected." into honeycomb

* commit 'df33b8c51d431a7c0f7a89ead8dfacdd3660ff48':
Check for NTP time as soon as WIFI is connected.
df33b8c51d431a7c0f7a89ead8dfacdd3660ff48 02-Mar-2011 Amith Yamasani <yamasani@google.com> Merge "Check for NTP time as soon as WIFI is connected." into honeycomb
fd938f323c7507405e18b997173e0b5b2ebe9717 01-Mar-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix Issue 14340: Sticky Service killed with onDestroy not called, not restarted."
8d394fa8993f7143dee6f894a41be888bdd16bc0 01-Mar-2011 Amith Yamasani <yamasani@google.com> Check for NTP time as soon as WIFI is connected.

Listen for connectivity changes. If WIFI is connected, check if
we have recently checked for NTP time. If we haven't yet checked the
time or it has been long enough (a day), then connect to the NTP server
and get the latest time. Update the time if it is significantly out of sync.

This doesn't poll the NTP server every time there is connectivity, only
if it hasn't been checked since boot or has been a day.

This fixes the problem that during SetupWizard, we try to contact the NTP
server before there is connectivity and fail. Now, as soon as the user
chooses a WiFi network to connect to, it will update the time before
getting to the Date/Time step. Then as soon as the user corrects the TZ,
the date/time should be correct.

Bug: 3491920
Change-Id: I62664156616510b67ecd6a1c24dd838b98d5204f
om/android/server/NetworkTimeUpdateService.java
3a28f22eb65c57342749fa9535bc7ff53e550117 01-Mar-2011 Dianne Hackborn <hackbod@google.com> Fix Issue 14340: Sticky Service killed with onDestroy not called, not restarted.

Change-Id: I2804c49ad5669ca89744c6d92ead0c7d21ee31d5
http://code.google.com/p/android/issues/detail?id=14340
om/android/server/am/ActivityManagerService.java
6ebc6bde63d3d1591a1fea72e56487388c827aa6 01-Mar-2011 Mike Lockwood <lockwood@android.com> Merge "UsbDeviceSettingsManager: don't write settings file when not necessary"
b4948d4d3ff9e4fa42fbfcfa1d11ce08d42eec31 01-Mar-2011 Mike Lockwood <lockwood@android.com> Merge "Fix UsbDeviceSettingsManager locking."
04e1a9620f94319c455c9422776adb4a8963f920 01-Mar-2011 Mike Lockwood <lockwood@android.com> Merge "Move USB framework support from android.hardware to android.hardware.usb package"
2f6409686f4ecced13474db9307fcd33a805b2bf 01-Mar-2011 Irfan Sheriff <isheriff@google.com> Merge "Using AsyncChannel for wifi connectivity"
31ad11eb44a1c5316ffb478314f4e5c55bf09d13 01-Mar-2011 Mike Lockwood <lockwood@android.com> UsbDeviceSettingsManager: don't write settings file when not necessary

Change-Id: I48772f71822e3489f9e6c640985055569a656124
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/usb/UsbDeviceSettingsManager.java
7a976a43700a17a29a0671c8456e41ec0a1086b9 01-Mar-2011 Mike Lockwood <lockwood@android.com> Fix UsbDeviceSettingsManager locking.

Change-Id: I93117ce791de95b0ab95017601f5d90ed5dd7a6a
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/usb/UsbDeviceSettingsManager.java
om/android/server/usb/UsbService.java
c39bb4aaa7be1b9b0cc9fb0b1f03d54f7609ffeb 28-Feb-2011 Kenny Root <kroot@google.com> Switch to returnCode for IPackageDeleteObserver

Before the IPackageDeleteObserver only knew whether the deletion
succeeded or failed, but not the reason why.

Bug: 2520191
Change-Id: I1f0d7c04f06c539660b6e17e7e133defb0f61b5b
om/android/server/PackageManagerService.java
c4308f01c965571dc2354107c3574df113e397ee 01-Mar-2011 Mike Lockwood <lockwood@android.com> Move USB framework support from android.hardware to android.hardware.usb package

Change-Id: I00fd4f0caaa4aebe48f71c576bb211b5f38bf88d
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/NotificationManagerService.java
om/android/server/connectivity/Tethering.java
om/android/server/usb/UsbDeviceSettingsManager.java
om/android/server/usb/UsbResolverActivity.java
om/android/server/usb/UsbService.java
c93f67c2b746a6247744c8b50e8a1d5a566694c9 01-Mar-2011 Mike Lockwood <lockwood@android.com> Merge "Add platform features for USB host and USB accessory support."
fae640b174f0a720690bab31a31dfd2693c67c63 01-Mar-2011 Mike Lockwood <lockwood@android.com> Merge "UsbManager: Enhancements for managing USB devices and accessories"
f4ca247158ffb83139d675ac0e1d25239c310be2 27-Feb-2011 Mike Lockwood <lockwood@android.com> Add platform features for USB host and USB accessory support.

Also removed config_hasUsbHostSupport framework resource, which is now obsolete.

Change-Id: I6f18cc1c4f68085de8b8363e1b5edff79aff404f
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/usb/UsbService.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>
om/android/server/SystemServer.java
om/android/server/UsbService.java
om/android/server/usb/UsbDeviceSettingsManager.java
om/android/server/usb/UsbResolverActivity.java
om/android/server/usb/UsbService.java
23fe005900aab2955052e0c9dc36ca05ea351a1a 01-Mar-2011 Wink Saville <wink@google.com> am 0eb6af89: Merge "Fixing the write of BackgroundData setting, DO NOT MERGE." into honeycomb

* commit '0eb6af892948ba23bf9de5c5a6172c6ec50f8f71':
Fixing the write of BackgroundData setting, DO NOT MERGE.
ebe606fccd9293674273d5f73246e0e8e6e6ddcf 24-Feb-2011 Irfan Sheriff <isheriff@google.com> Using AsyncChannel for wifi connectivity

Change-Id: Ieee5a3a1a739238d8a6659493684f1be0cbea691
om/android/server/WifiService.java
d2ab6a19e0b7a19cf06f62386d09258d0bf1cbd8 01-Mar-2011 Wink Saville <wink@google.com> Fixing the write of BackgroundData setting, DO NOT MERGE.

I outsmarted myself trying to minimize writes and caused no writes to occur.

bug:3485934
Change-Id: I43b6ebbed3f13277edfb2e28f09cf7b98ea66776
om/android/server/ConnectivityService.java
9611f2ea6c962c7eb05a2841d06656745f524097 28-Feb-2011 Adam Cohen <adamcohen@google.com> Small change to AppWidgetProviderInfo public field name and docs

Change-Id: Ia799cfc1824ccee1f7fd041ae8ecaa1a0395c3f6
om/android/server/AppWidgetService.java
f03b45f778125e3d4b94f1f0a5ad9fa5782d5f0e 24-Feb-2011 Kenny Root <kroot@google.com> Remove unused items in setInstallerPackageName

We don't require the INSTALL_PACKAGES permission to
setInstallerPackageName, so don't bother checking for it.

Change-Id: I43e7026362b6046a7eeaa0aa29f783b3ba082bf6
om/android/server/PackageManagerService.java
c01e201f12149ca96593af4e18133d3b2fce5546 28-Feb-2011 Mike Lockwood <lockwood@google.com> am 61c1bb4f: Merge "UsbService: Remove stack-trace message during boot. DO NOT MERGE" into gingerbread

* commit '61c1bb4fef439650a3b88131c6e1360ffc03a7ed':
UsbService: Remove stack-trace message during boot. DO NOT MERGE
fc88f94fc32fc010b153af32dea8e1fd4bae1f19 28-Feb-2011 Mike Lockwood <lockwood@android.com> am 6da062a9: Merge "DO NOT MERGE: Clean up USB notifications:" into gingerbread

* commit '6da062a96c6f8126aad450a937144fab4333488f':
DO NOT MERGE: Clean up USB notifications:
54e96c69d068593f1d5893be6067509b07abdadc 28-Feb-2011 Mike Lockwood <lockwood@android.com> am 3333f8af: Merge "DO NOT MERGE UsbManager: squashed commit of:" into gingerbread

* commit '3333f8afb2d1eae8bfdb41fa87f86836ad8702f7':
DO NOT MERGE UsbManager: squashed commit of:
99aac7beca18b6d73e40db5e8e49f52f94be638e 26-Feb-2011 Dianne Hackborn <hackbod@google.com> You can now specify a custom display size as NxM.

Change-Id: Ieb6df51aab009689f0f19b8887025261c5ceb69f
om/android/server/wm/WindowManagerService.java
1a7408cd64dfc5e08f6d200c51d9fd3eb75e4d07 17-Jan-2011 David 'Digit' Turner <digit@google.com> UsbService: Remove stack-trace message during boot. DO NOT MERGE

This removes a stack trace message during the boot under emulation.

The observers tried to access a null reference when no USB configuration
is supported by the emulated device. So do not start them in this case.

+ Change a Slog.w into a Slog.i since this is an acceptable condition.

Change-Id: I801f352574716d7868f182bb6e5ee49e5b12e4f1
om/android/server/UsbService.java
f13ec7a3ac18ad87936ddab2e18f57c3bf91bfb6 11-Dec-2010 Mike Lockwood <lockwood@android.com> DO NOT MERGE: Clean up USB notifications:

Add support for separate USB connected and configuration events

Include both USB connected/disconnected and configuration state
in USB_STATE Intent

Remove redundant USB_CONNECTED and USB_DISCONNECTED Intents
Now we just have the sticky USB_STATE broadcast

Move USB disconnnect rebouncing from Tethering to UsbService

Change-Id: I1dea480f4b0daf14247cf37c5f2060498882c002
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/NotificationManagerService.java
om/android/server/UsbService.java
om/android/server/connectivity/Tethering.java
7916432b3cd9d0396872aee6d3d585f19b4b7ef6 28-Jul-2010 Mike Lockwood <lockwood@android.com> DO NOT MERGE UsbManager: squashed commit of:

USB: Add functions for querying if a USB function is supported and enabled.

Rename android.hardware.Usb to UsbManager and UsbObserver to UsbService

Change-Id: I920a211934d993eab8ce744c1cc7b05342389286
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/NotificationManagerService.java
om/android/server/SystemServer.java
om/android/server/UsbObserver.java
om/android/server/UsbService.java
om/android/server/connectivity/Tethering.java
bbd460d76dc69eca9a14ab1127b95a55429f460a 26-Feb-2011 Mike Lockwood <lockwood@android.com> am 6aea1154: DO NOT MERGE: KeyguardManager: Add isKeyguardLocked() and isKeyguardSecure()

* commit '6aea1154bae3a0935fdb9b09b2d91d9548232eb0':
DO NOT MERGE: KeyguardManager: Add isKeyguardLocked() and isKeyguardSecure()
6aea1154bae3a0935fdb9b09b2d91d9548232eb0 18-Feb-2011 Mike Lockwood <lockwood@android.com> DO NOT MERGE: KeyguardManager: Add isKeyguardLocked() and isKeyguardSecure()

BUG: 3402847

Change-Id: I7cb199763e8d5386914b4c2173c9e1579b08674c
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/WindowManagerService.java
d752c3b3e6c576ed1f18e86a7b18c33dc7c65791 26-Feb-2011 Dianne Hackborn <hackbod@google.com> Merge "Implement issue #3426299: Introduce application "stopped" state"
54a351ed629e7c4adf71dc10bf3eddd653a0d84b 26-Feb-2011 Adam Cohen <adamcohen@google.com> Merge "Adding framework support for resizable widgets"
7532d9972cd59025fa76691f8309fd0857bdcb20 26-Feb-2011 Robert Greenwalt <rgreenwalt@google.com> Merge "Fixing the write of BackgroundData setting."
04ee429e8907515c35ed4c6bc8189389af5e33fb 26-Feb-2011 Winson Chung <winsonc@google.com> Merge "Fixing build"
22bc69de50ebd9e6437eb3775ce6b06b8c6052dc 26-Feb-2011 Winson Chung <winsonc@google.com> Fixing build

Change-Id: I3d60c115190a6e478777229d4851dedc78111c39
om/android/server/AppWidgetService.java
d2e20de64b6de8b6391c63e2f5b02ce7698bf4bf 25-Feb-2011 Adam Cohen <adamcohen@google.com> Adding framework support for resizable widgets

-> Added resizeMode to the widget xml
-> Fixed an unexposed bug in AppWidgetHost where
minWidth and minHeight were never being converted
from complex type to dp

Change-Id: Ibbc4fc6542d095623ac2a40694b6a3dbfeb279ad
om/android/server/AppWidgetService.java
e7f972122db87dc54e41ed1a6e417534d43bca3a 24-Feb-2011 Dianne Hackborn <hackbod@google.com> Implement issue #3426299: Introduce application "stopped" state

The package manager now keeps track of whether an application is
stopped. There are new intent flags to control whether intent
filters in a stopped application will match the intent. This is
currently used in one place, sending broadcasts, so that stopped
apps can not be launched due to background processes.

The package manager during first init makes sure no applications
are in the stopped state. When new applications are installed,
that begin in the stopped state. When the activity manager is
launching a component of an application, it ensures the application
is taken out of the stopped state.

The "force stop" button in manage applications will now put an
application back in to the stopped state; it can't go back out
of the stopped state until one of its components is launched by
the activity manager.

There will probably be a few more places where we need to filter
stopped applications out of intent matches, but doing this for
broadcast is a very big first step.

This also introduces a new broadcast that is sent to an application
after it is replaced with a new .apk. But only if the app is not
in the stopped state. This makes it a lot easier for developers to
implement code to get their application back in proper running shape
after an upgrade.

Finally another new broadcast is added that is sent to a package's
installer at the first time it is launched. This allows the installer
to tell the package about it being installed only when it is first
actually used.

Change-Id: I589c53ff0e0ece868fe734ace4439c0d202dca2d
om/android/server/IntentResolver.java
om/android/server/PackageManagerService.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityStack.java
541466f6d6a5b4f4bcb94c5154ac3971ad8c3f3f 25-Feb-2011 Winson Chung <winsonc@google.com> Merge "Fixing issue where RemoteViewsService.onDestroy() was never being called."
84bbb020217adcdfe0694c44ccab57e208ffde16 21-Feb-2011 Winson Chung <winsonc@google.com> Fixing issue where RemoteViewsService.onDestroy() was never being called.

Change-Id: I15ad04eee18bc3e09d4846c7f2f2d2d8d168e518
om/android/server/AppWidgetService.java
db4afae70aa404f20c271965a8d7c1e2d64cb818 25-Feb-2011 Robert Greenwalt <rgreenwalt@google.com> Fixing the write of BackgroundData setting.

I outsmarted myself trying to minimize writes and caused no writes to occur.

bug:3485934
Change-Id: I292e6837d29903a21abb6e001d25d96a4cdc18ec
om/android/server/ConnectivityService.java
2b8bcfe5b74e1a34d136f4ff46e3c94397f38f82 25-Feb-2011 Wink Saville <wink@google.com> LTE Changes for Telephony including Multiple PDN support and IPV6 support

Added init for CDMAPhone.java

Change-Id: I2392b5ad3382ee1993537b8477ef00dd036c6fe9
om/android/server/ConnectivityService.java
b607b884bd94d4f75fb4b2ead7457f2027ceb850 24-Feb-2011 Mike Lockwood <lockwood@android.com> Merge "UsbManager: Remove redundant Intent extras from USB device and accessory broadcasts"
6588c7cf73a9d09cad1fa5d4e558a55a5e5e18df 24-Feb-2011 Irfan Sheriff <isheriff@google.com> am 5107eea6: Merge "DO NOT MERGE Add support for background scanning" into honeycomb

* commit '5107eea64e46b0fffbbbcefa469a88044f309de6':
DO NOT MERGE Add support for background scanning
5be2b95db67b208aa6be444016a5c64f16a8860f 24-Feb-2011 Kenny Root <kroot@google.com> Merge "Fix measurement of external media dir"
c7624d93385e502629aaa53a479c3231be8962cf 24-Feb-2011 Kenny Root <kroot@google.com> Fix measurement of external media dir

Change-Id: I90a39c6a506ad0e5d18b40824d06eb1a7e376a3e
om/android/server/PackageManagerService.java
188d00b07ef0b8968868b3489e80dd9f53d3bafa 23-Feb-2011 Mike Lockwood <lockwood@android.com> UsbManager: Remove redundant Intent extras from USB device and accessory broadcasts

These extras are also accessable via the UsbDevice and UsbAccessory classes,
which are also included as extras.
Since you can't filter Intents based on extras there is no point in duplicating
this information as separate extras.

Change-Id: I4c8d1e70d66023a1800b3f8f06118898da6b37af
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/UsbService.java
74ff3d23f9c0bf0f13a9635473626e9d3cc21103 18-Feb-2011 Irfan Sheriff <isheriff@google.com> DO NOT MERGE Add support for background scanning

Background scanning (preferred network offload) allows us the
host to sleep while the dongle monitors the presence of any
preferred networks. This allows us for significant power savings
since the system does not have to wake up often to initiate
a scan

Bug: 3453021
Change-Id: I73dcf4e1c9ab4de280c40b6df6147a74ac003123
om/android/server/WifiService.java
563db5343f93fec6897304443b501e397292401b 23-Feb-2011 Irfan Sheriff <isheriff@google.com> Merge "Add support for background scanning"
3c85a4e6396dabf7f0061ff2c6e9f9b35793eadd 22-Feb-2011 Mike Lockwood <lockwood@android.com> Merge "KeyguardManager: Add isKeyguardLocked() and isKeyguardSecure()"
a9c40ef176d36c8adaa40d3d768ef94a9c8fb647 22-Feb-2011 Dianne Hackborn <hackbod@google.com> Merge "Add missing header comment."
16d691f8fcd73b179dd49935dbcefc8dd6ed0201 22-Feb-2011 Daniel Sandler <dsandler@google.com> Merge "Fix the flipping orientation lock."
f56e1021aaa04c0ee4a0d4e1d4741bb48e41e2b8 22-Feb-2011 Dianne Hackborn <hackbod@google.com> Add missing header comment.

Change-Id: Iec0c0c90153560d256b95212b7dcf969edf22143
om/android/server/wm/InputMonitor.java
2ed6ad6aeca5f9829ea7dad4e092064ee4baad47 22-Feb-2011 Daniel Sandler <dsandler@google.com> Fix the flipping orientation lock.

We were setting ACCELEROMETER_ROTATION to 0 before putting
in the proper USER_ROTATION value, and PhoneWindowManager's
content observer would eagerly rotate the screen to the last
locked orientation before re-rotating to the updated locked
rotation.

Now we set USER_ROTATION first. Additionally, the
content observer is now the only place we set
mUserRotation{,Mode} (previously we would race with it in
setUserRotationMode()).

Bug: 3425657
Change-Id: I04ba1a3631c6d985c2e406c4d148c39fb5c36216
om/android/server/wm/WindowManagerService.java
ddc6cade00bbc08fa668cf937f606538f5c29a80 17-Feb-2011 Mike Lockwood <lockwood@android.com> UsbService: Re-enable previously enabled functions when exiting accessory mode

Also added comments and cleaned up synchronization

Change-Id: I92ce1f84f6eeac8d640687506083b96a59fc71b5
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/UsbService.java
fcc0845cf9990470d498dcaa036f0ae6487ddf34 18-Feb-2011 Irfan Sheriff <isheriff@google.com> Add support for background scanning

Background scanning (preferred network offload) allows us the
host to sleep while the dongle monitors the presence of any
preferred networks. This allows us for significant power savings
since the system does not have to wake up often to initiate
a scan

Bug: 3453021
Change-Id: I7c1dbfd0c3f717df81e4da6091c4c5657c9ec9ca
om/android/server/WifiService.java
520d8bc1d840966b5519195aaa514597a662c053 18-Feb-2011 Mike Lockwood <lockwood@android.com> KeyguardManager: Add isKeyguardLocked() and isKeyguardSecure()

BUG: 3402847

Change-Id: I725838c9d96617dd4497f9c80417cd623eceb846
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/wm/WindowManagerService.java
6e1eb76f02ccc9dbc309b938f62d39312da8cafe 18-Feb-2011 Dianne Hackborn <hackbod@google.com> Explode WindowManagerService.

Change-Id: I3d73ed4c9a1b5d730aeffeb2df24ce5e6117d698
om/android/server/wm/AppWindowToken.java
om/android/server/wm/DimAnimator.java
om/android/server/wm/DragState.java
om/android/server/wm/FadeInOutAnimation.java
om/android/server/wm/InputApplicationHandle.java
om/android/server/wm/InputMonitor.java
om/android/server/wm/ScreenRotationAnimation.java
om/android/server/wm/Session.java
om/android/server/wm/StartingData.java
om/android/server/wm/StrictModeFlash.java
om/android/server/wm/Watermark.java
om/android/server/wm/WindowManagerService.java
om/android/server/wm/WindowState.java
om/android/server/wm/WindowToken.java
95fd0088ccc6f3251424930b8dbb01dbe411c5d8 17-Feb-2011 Dianne Hackborn <hackbod@google.com> Merge "Start window manager refactoring."
a924dc0db952fe32509435fdb8dc9c84a9e181f3 17-Feb-2011 Dianne Hackborn <hackbod@google.com> Start window manager refactoring.

Move all of the pieces into a new com.android.server.wm package.

Change-Id: I942b7bcfb84ee0f843f47d58e55ffc5a93c0da94
om/android/server/InputApplication.java
om/android/server/InputApplicationHandle.java
om/android/server/InputManager.java
om/android/server/InputMethodManagerService.java
om/android/server/InputWindow.java
om/android/server/InputWindowHandle.java
om/android/server/InputWindowList.java
om/android/server/PowerManagerService.java
om/android/server/ScreenRotationAnimation.java
om/android/server/StatusBarManagerService.java
om/android/server/StrictModeFlash.java
om/android/server/SystemBackupAgent.java
om/android/server/SystemServer.java
om/android/server/ViewServer.java
om/android/server/WallpaperManagerService.java
om/android/server/WindowManagerService.java
om/android/server/am/ActivityManagerService.java
om/android/server/wm/InputApplication.java
om/android/server/wm/InputApplicationHandle.java
om/android/server/wm/InputManager.java
om/android/server/wm/InputWindow.java
om/android/server/wm/InputWindowHandle.java
om/android/server/wm/InputWindowList.java
om/android/server/wm/ScreenRotationAnimation.java
om/android/server/wm/StrictModeFlash.java
om/android/server/wm/ViewServer.java
om/android/server/wm/WindowManagerService.java
3ca6d6bbfe614312ad936bce9ab5805615103267 17-Feb-2011 Irfan Sheriff <isheriff@google.com> Merge "data activity reporting on wifi"
227bec49157bc496f7c9e8e8f63c12728a448922 16-Feb-2011 Irfan Sheriff <isheriff@google.com> data activity reporting on wifi

Initial checkin, need icons to complete the feature

Bug: 3412258

Change-Id: I9a3ecc8159cc314d84707065dafe23d402409a84
om/android/server/WifiService.java
51510388ee26ac5f3fc662e67f9d8a17f806713a 17-Feb-2011 Dianne Hackborn <hackbod@google.com> Merge "Rework thumbnail API to not suffer from IPC failures."
ec8d23af7372204f068aebaa1bfae87dc9260e23 17-Feb-2011 Irfan Sheriff <isheriff@google.com> Add WPA support for soft Ap

Bug: 2771935

Change-Id: Ib16c1c3b9aaccbcdf372365d3c0825bdf0680207
om/android/server/NetworkManagementService.java
om/android/server/WifiService.java
d94df45b3d1ab4004ef517acfc56a9310330f8d8 17-Feb-2011 Dianne Hackborn <hackbod@google.com> Rework thumbnail API to not suffer from IPC failures.

Thumbnails are now requested separately, so we don't exceed the
IPC buffer size limit.

Also implement issue #3349553: Please provide a hook to intercept
fragment-breadcrumb clicks

And maybe fix issue #3439199: Music Notification does not turn on
when app switching out of Music app

Change-Id: Ie939e78cc8ded07b18112760e053185947549f61
om/android/server/am/ActivityManagerService.java
91fd9a97727b6aa0b669b92bb0f7ef1db884dd26 17-Feb-2011 Jim Miller <jaggies@google.com> Merge "Fix 3197205: Minor edits to device policy admin strings and documentation"
6b85768058b065cc682757a366abc828c9ca727a 17-Feb-2011 Jim Miller <jaggies@google.com> Fix 3197205: Minor edits to device policy admin strings and documentation

Change-Id: I3788772c375b916752cd8a98ff5d3751448e4334
om/android/server/DevicePolicyManagerService.java
0432ab44f37ac5abb5998cf9c3028ce20ecb8e6b 16-Feb-2011 Irfan Sheriff <isheriff@google.com> Merge "Fix wifi watchdog to use InetAddress"
984dd8a206e782027c2b0c866aa845e6d236f218 16-Feb-2011 Mike Lockwood <lockwood@android.com> Merge "UsbManager: New APIs for USB accessories"
de27b519588ed46c0ba601a489c01d26ec31757d 16-Feb-2011 Robert Greenwalt <rgreenwalt@google.com> am 3259d885: Merge "DO NOT MERGE - backport of l92a02b31 from master" into gingerbread

* commit '3259d8853760a72b811757e1711119d041962a1c':
DO NOT MERGE - backport of l92a02b31 from master
8e9abc5b2e13abe9305e203592e7c3426ba99e07 16-Feb-2011 Robert Greenwalt <rgreenwalt@google.com> Fix wifi watchdog to use InetAddress

Supports IPv6 and stops using deprectated DhcpInfo.

Change-Id: I0590dbcd50f56e15d9b95327ad9435cdbfc8a78d
om/android/server/WifiWatchdogService.java
9182d3c4eb1f9065cb33df5a3594969dd0d42acc 15-Feb-2011 Mike Lockwood <lockwood@android.com> UsbManager: New APIs for USB accessories

USB accessories are peripherals that connect to android devices as a USB host.

When connected, the accessory will first identify itself to the android device
by sending manufacturer, product, accessory type and version strings
to the device, and then request the device to enter USB accessory mode.
The device will then enable the USB accessory kernel driver and disable
all other USB functionality except possibly adb
(adb can be used while the android device is connected to the PC
and the PC is running software that emulates a USB accessory)

The class android.hardware.UsbAccessory is used to describe the
currently attached USB accessory.
UsbAccessory contains the manufacturer, product, accessory type
and version strings to identify the accessory.
The accessory can be opened as a ParcelFileDescriptor, which can be used
to communicate with the accessory over two bulk endpoints.

The Intents UsbManager.USB_ACCESSORY_ATTACHED and
UsbManager.USB_ACCESSORY_DETACHED are broadcast when accessories are
connected and disconnected to the device. The USB_ACCESSORY_ATTACHED
contains a UsbAccessory object for the attached accessory as an extra.
The Intent also contains string extras for the manufacturer, product,
accessory type and version strings to allow filtering on these strings.

Change-Id: Ie77cbf51814a4aa44a6b1e62673bfe4c6aa81755
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/UsbService.java
68a4e0a38fca00e9615a3c8ccb2d46edc88cf338 15-Feb-2011 Vairavan Srinivasan <vairav@codeaurora.org> frameworks/base: acquire lock on am only when needed

appendDropBoxProcessHeaders acquires a lock on am while accessing
ProcessRecord (even if it is null). Watchdog thread ends up invoking
this function (with a null ProcessRecord) to add the stack file to
dropbox. This function would block if and when the watchdog thread is
invoked due to unavailability of lock on am resulting in a deadlock.
This would prevent watchdog from killing system_server.

Change-Id: Ieb34b767779cb587e0c5f536b9b7ba44fb9a28d9
om/android/server/am/ActivityManagerService.java
a5e9ffa35ce84633cedfca769787873f62bd4622 16-Feb-2011 Ken Wakasa <kwakasa@google.com> Fix a bug in canAddToLastInputMethod()

bug: 3456057
Change-Id: I977e984aafb36fdb83ac05d19fe0c7324a36d0c5
om/android/server/InputMethodManagerService.java
9c4cc03a354922df08efacfc486ef0e80144d3ea 14-Feb-2011 satok <satok@google.com> Add a method to check a string contained in ExtraValue of InputMethodSubtype

Change-Id: I34390537eaacd3ff8cfd336eaf5b9ca0d3e4b802
om/android/server/InputMethodManagerService.java
7f9ff9d191f00354c564a70eeeb1eda2b32eb1c7 15-Feb-2011 Christopher Tate <ctate@google.com> Disable cross-app drag/drop

@hides the View constant that designates a drag as cross-app, and also
forcibly ignores that flag on the system_server side even if it's passed
to startDrag() as a literal.

Change-Id: I6f321bdf0389db5bb44131fd0f8d6b92f049be52
om/android/server/WindowManagerService.java
b979f79158f9c470fa09ff3b96d72db274262201 12-Feb-2011 Robert Greenwalt <rgreenwalt@google.com> Remove more use of netmask

bug:2542681
Change-Id: Ifd75672739ee8262d4df22afd8173e4f3f67260d
om/android/server/connectivity/Tethering.java
7265d9bd6d80c5bedaa6de2b80f6619a301a07c8 14-Feb-2011 satok <satok@google.com> Add sort method to InputMethodSubtype

Bug: 3364167

Change-Id: I94ad55b8eab49dc9b233dcb4e74429863b406fb4
om/android/server/InputMethodManagerService.java
7e62fd1436c0db6398528e654563896364d6000a 12-Feb-2011 Robert Greenwalt <rgreenwalt@google.com> DO NOT MERGE - backport of l92a02b31 from master

Fix handling of multiple possible default networks.

bug:3328196
Change-Id: I994f1621ff82de454192945a9cae961e1710d537
om/android/server/ConnectivityService.java
614613e2d2fe51d484bfbeed6eeb8b66b151df37 11-Feb-2011 Robert Greenwalt <rgreenwalt@google.com> Merge "Update LinkProperties treatment of gateways"
992564e481af13cbcb058ee801f9254a520c54a1 09-Feb-2011 Robert Greenwalt <rgreenwalt@google.com> Update LinkProperties treatment of gateways

A link can have multiple gateways (think ipv4/ipv6 for a trivial example).
.

bug:3438810
Change-Id: I28c90a6947cd50b82e5ca9a0113148f98b3f4dd8
om/android/server/ConnectivityService.java
b8849c1e858c726eaf04f7c5a5a08036faa171df 08-Feb-2011 Christopher Tate <ctate@google.com> Align inexact alarms in both time bases; don't pull to wall time

The previous implementation failed to properly distinguish between
trigger times in the RTC vs the ELAPSED time bases. The pernicious
result of this was that sometimes it would decide to align RTC
alarms based on, say, 0 rather than on the real current time.
This would pull the recurrence into wall-clock alignment, with
serious side effects: in particular, periodic tasks that would hit
external network resources would, because *all* devices would be
pulled into wall-clock alignment, wind up inducing heavy QPS
spikes on the backends.

The new implementation works completely differently. The basic
goal is the same: try to align inexact alarms to "the same" time,
avoiding extra wakeups / radio spinups / etc. The way this is done
is to divide the timeline into 15-minute quanta, and drift the start
time of every inexact alarm onto one of these 15-minute quantum
boundaries. The skew between the RTC and ELAPSED time bases is
taken into effect; RTC alarms are no longer pulled into wall clock
alignment.

Fixes bug 3388961

Change-Id: I2a0460e1f5d0e4036f3402f332b642b557b2fc20
om/android/server/AlarmManagerService.java
45a59550b180bc25bbbef5c029b1a9a0dac39d4d 07-Feb-2011 Brad Fitzpatrick <bradfitz@android.com> am bb756a90: am a62bf8bb: am b901c9ab: am 9204644d: Merge "Fix a race condition in NativeDaemonConnector"

* commit 'bb756a90902ade5cf619f5fa65ec5505dcdf431a':
Fix a race condition in NativeDaemonConnector
53595b1688d70810ea3e8b47668e0d89a9773a02 07-Feb-2011 Dianne Hackborn <hackbod@android.com> am 432ab6ac: am 6b497a04: am 4b7c1cac: am bb2e1ef8: Merge "Fixing possible race condition."

* commit '432ab6ac04f22a5e4c15aece04117b35bbf8869c':
Fixing possible race condition.
e160c7b9f1841ae4a81fc66c36f2f43662bc4128 07-Feb-2011 Dianne Hackborn <hackbod@google.com> am 60a74642: am 24c8ac3b: Merge "Fix issue #3414328: A couple panics observed during an attempted..." into honeycomb

* commit '60a746426c62bf03b3b5fb494a9cddb9b1ae5166':
Fix issue #3414328: A couple panics observed during an attempted...
32cd1d5053fdca49463adc83adb7b7dad13904e0 07-Feb-2011 Daniel Sandler <dsandler@google.com> resolved conflicts for merge of 31796297 to master

Change-Id: Ice632b3378f8f67c186245fdb63b022ade864ba1
7da70821f7a2c22dfed4a2c2afc3c9e73427babc 07-Feb-2011 Dianne Hackborn <hackbod@google.com> am 94baff47: am 1b1962f3: Merge "Fix issue #3420898: More wallpaper issues" into honeycomb

* commit '94baff47975fb3ae1380333f23fc2de2dc65eb86':
Fix issue #3420898: More wallpaper issues
bb756a90902ade5cf619f5fa65ec5505dcdf431a 07-Feb-2011 Brad Fitzpatrick <bradfitz@android.com> am a62bf8bb: am b901c9ab: am 9204644d: Merge "Fix a race condition in NativeDaemonConnector"

* commit 'a62bf8bb6b7a547802fb384b497e955940befa9c':
Fix a race condition in NativeDaemonConnector
b901c9abff6b3885e1efce2e643b1f8e5ef3fc79 07-Feb-2011 Brad Fitzpatrick <bradfitz@android.com> am 9204644d: Merge "Fix a race condition in NativeDaemonConnector"

* commit '9204644d9e8fc2a3d05ff386b14b349f7a117694':
Fix a race condition in NativeDaemonConnector
030bc88b4c09a41b0d7dbe249aec55f33d6b8b8a 01-Feb-2011 anga <anga@syntronic.com> Fix a race condition in NativeDaemonConnector

Fixes a race between the onDaemonConnected callback and setting the
mOutputStream in NativeDaemonConnector.

MountService connects to vold using the NativeDaemonConnector.
Throws a “NativeDaemonConnectorException: No output stream!”
when the onDaemonConnected callback in MountService calls the doListCommand.

Change-Id: Ib895bab37f7df680e4362df6366198c0a673c5e9
om/android/server/NativeDaemonConnector.java
432ab6ac04f22a5e4c15aece04117b35bbf8869c 07-Feb-2011 Dianne Hackborn <hackbod@android.com> am 6b497a04: am 4b7c1cac: am bb2e1ef8: Merge "Fixing possible race condition."

* commit '6b497a0446ebad24305d5e29d5fd5e65014b9778':
Fixing possible race condition.
4b7c1cacca252f735d23f7e01885214630d83f32 07-Feb-2011 Dianne Hackborn <hackbod@android.com> am bb2e1ef8: Merge "Fixing possible race condition."

* commit 'bb2e1ef87fe4c5123340035766c759155e6bb90c':
Fixing possible race condition.
1ee31175eca2fb5d6a95cb1aa4a9dbf66a5212cb 06-Feb-2011 David 'Digit' Turner <digit@google.com> Merge "WindowManagerService: Disable screen rotation animation under emulation."
910a0681226f5f4f39084d2369bee04f3408eeea 05-Feb-2011 David 'Digit' Turner <digit@google.com> WindowManagerService: Disable screen rotation animation under emulation.

Since there is no support for hardware GLES acceleration under
emulation, we disable the screen rotation animation when we detect
that we are in the emulator.

Note that ideally, we should only disable it when we detect that
GLES is implemented in software. However, I don't think there is
an easy way to test for this inside of the WindowManagerService.

Change-Id: Ic17719f7d0b14640bacb3b33b7b1a196006982ee
om/android/server/WindowManagerService.java
60a746426c62bf03b3b5fb494a9cddb9b1ae5166 05-Feb-2011 Dianne Hackborn <hackbod@google.com> am 24c8ac3b: Merge "Fix issue #3414328: A couple panics observed during an attempted..." into honeycomb

* commit '24c8ac3b0912762ce6f3cdadc46c253f407af396':
Fix issue #3414328: A couple panics observed during an attempted...
24c8ac3b0912762ce6f3cdadc46c253f407af396 05-Feb-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #3414328: A couple panics observed during an attempted..." into honeycomb
3e4f9d0452a2592338c15cf1b6d774761b929a28 04-Feb-2011 Dianne Hackborn <hackbod@google.com> Fix issue #3414328: A couple panics observed during an attempted...

...pairing to IHF1700 - IKXEVEREST-3627

Change-Id: I3d5b42d65a03ed19b8460c607ff5de862bccb4e6
om/android/server/WindowManagerService.java
31796297d472512a748d7fb483055ad7609b13cd 04-Feb-2011 Daniel Sandler <dsandler@google.com> am 4ad2547f: Merge "Ongoing notification for GPS use." into honeycomb

* commit '4ad2547fe08bab430d7d9f9cc4b789410856c9c3':
Ongoing notification for GPS use.
4ad2547fe08bab430d7d9f9cc4b789410856c9c3 04-Feb-2011 Daniel Sandler <dsandler@google.com> Merge "Ongoing notification for GPS use." into honeycomb
e40451a89dc91dfd636af7cb32a23b4a4cc93fdc 03-Feb-2011 Daniel Sandler <dsandler@google.com> Ongoing notification for GPS use.

This change improves upon the notification priority API
introduced in change I9e738cc4, allowing privileged clients
to set the priority of a notification when posting it
directly to INotificationManager. StatusBarTest is updated
to test this new feature.

The new LocationController in SystemUI uses this facility to
post a high-priority ongoing notification whenever GPS is in
use (replacing the functionality of the legacy GPS status
bar icon).

Also happens to fix http://b/3325472 (adding a log message
when notifications are dropped because of a missing icon).

Bug: 3412807

Change-Id: I523016ffa53bf979be98ddc4a2deb55a6270c68a
om/android/server/NotificationManagerService.java
43c32002804cba96225b5e43fd78240b4f43d71e 04-Feb-2011 satok <satok@google.com> Merge "Register ENABLED_INPUT_METHODS to SettingsObserver"
94baff47975fb3ae1380333f23fc2de2dc65eb86 04-Feb-2011 Dianne Hackborn <hackbod@google.com> am 1b1962f3: Merge "Fix issue #3420898: More wallpaper issues" into honeycomb

* commit '1b1962f38304d2cbf12ac008791d93d3f1bdf0a6':
Fix issue #3420898: More wallpaper issues
3d80ba05154a0b9700dd4d19aa0315dc3b95087f 04-Feb-2011 Dianne Hackborn <hackbod@google.com> am dd954212: am a5861743: Merge "Fix issue #3418265: Rotation animation on wallpaper is broken" into honeycomb

* commit 'dd95421291f590ec0b1d8e79b73264516e1da027':
Fix issue #3418265: Rotation animation on wallpaper is broken
ac1471a4fff660710f88afc679c4119fdf8dc417 03-Feb-2011 Dianne Hackborn <hackbod@google.com> Fix issue #3420898: More wallpaper issues

- The ImageWallpaper wasn't watching for the desired dimensions to
change, at which point it needs to resize its surface.
- The system process has been running with the small dalvik heap
limit, which is too tight with these huge wallpapers; this would
cause switching wallpapers to eventually stop working as it
couldn't get the memory it needed to load the new one.
- The compatibility mode background surface had a bunch of issues,
such as moving its windows to the right by the window size to
make them disappear. This of course doesn't play well with the
now super-sized wallpaper surface. This code is re-worked to
not require such shenanigans.

Change-Id: I64fde4059645d8507f1c4761ba6c17b89877a5c0
om/android/server/SystemServer.java
om/android/server/WindowManagerService.java
23a8a45928c85d779e894b6e82697537194b9e4a 03-Feb-2011 Robert Greenwalt <rgreenwalt@google.com> Merge "Stop using netmask in the framework."
2d2afd13af94c2669eb464101dee3b17c8448110 02-Feb-2011 Robert Greenwalt <rgreenwalt@google.com> Stop using netmask in the framework.

bug:2542681
Change-Id: Iaa2b30f7a43de28844d86a4a8a513e86d719608a
om/android/server/NetworkManagementService.java
f8d40f0d55fdf7046b013cc7d74a4cd199484f7a 03-Feb-2011 Robert Greenwalt <rgreenwalt@google.com> Merge "Bind addr and prefixLength together in LinkAddress"
9ebd580231961b3fa97558e5e6cbc8a0f0cbfd43 03-Feb-2011 Kenny Root <kroot@google.com> Merge "Remove defunct secure FS work"
04f024d56427ee82cf03c4403ea2f9f38a876edc 03-Feb-2011 Mike Lockwood <lockwood@android.com> Merge changes I80558c62,I6587f580

* changes:
UsbService: Blacklist HID boot subclass devices (keyboards and mice)
UsbService: Add support for blacklisting certain USB busses
b6109bb591bc02bf8a2d9d5ca76d69d1961c9b5f 03-Feb-2011 satok <satok@google.com> Register ENABLED_INPUT_METHODS to SettingsObserver

Bug: 3415292

- Registration is required for catching current IME or subtype is disabled

Change-Id: Ia95f16df5bd725c05b4f5085f975d235b88d4b6e
om/android/server/InputMethodManagerService.java
dd95421291f590ec0b1d8e79b73264516e1da027 03-Feb-2011 Dianne Hackborn <hackbod@google.com> am a5861743: Merge "Fix issue #3418265: Rotation animation on wallpaper is broken" into honeycomb

* commit 'a58617430d699d26948357f204f09a6ca0b837b8':
Fix issue #3418265: Rotation animation on wallpaper is broken
50660e27283e33da7fb226f454cf704d1e0a5bb8 03-Feb-2011 Dianne Hackborn <hackbod@google.com> Fix issue #3418265: Rotation animation on wallpaper is broken

Two problems:

1. The wallpaper offsets were being applied at the wrong place in the xform.
2. The background black needs become a clip around the newly revealed UI.

Change-Id: I3b46aea2ace3c8c5a36fc5e37b4e2b67fff1b289
om/android/server/ScreenRotationAnimation.java
om/android/server/WindowManagerService.java
35ab3ad61fcc349380d7e7f2fcf9a0dfbf76ae11 03-Feb-2011 Kenny Root <kroot@google.com> Remove defunct secure FS work

Bug: 3365047
Change-Id: I68eaea295881f5431907e1b93bdd73e644e84aa5
om/android/server/Installer.java
om/android/server/PackageManagerService.java
9ca397f5f06ac4cc970ebba9968794ff75b2c84b 02-Feb-2011 Dianne Hackborn <hackbod@google.com> am e40afdf7: am 0035b5ca: Merge "Fix issue #3415137: New wallpaper size breaks thumbnails." into honeycomb

* commit 'e40afdf7f44f30d78b0afc96717dae2bb883e3ea':
Fix issue #3415137: New wallpaper size breaks thumbnails.
e40afdf7f44f30d78b0afc96717dae2bb883e3ea 02-Feb-2011 Dianne Hackborn <hackbod@google.com> am 0035b5ca: Merge "Fix issue #3415137: New wallpaper size breaks thumbnails." into honeycomb

* commit '0035b5cad16c0565102105f5cd0222073b0ddf94':
Fix issue #3415137: New wallpaper size breaks thumbnails.
dd962ee1633b1e479bca5eae83744262fb69867f 02-Feb-2011 Dianne Hackborn <hackbod@google.com> Fix issue #3415137: New wallpaper size breaks thumbnails.

Change-Id: I3ce4fa8f532cc378c390138bab0ff3126fe0f0c3
om/android/server/WindowManagerService.java
8b682ad08a8e55b3ce2cf58f3aff6d3464ab668b 01-Feb-2011 Mike Lockwood <lockwood@android.com> UsbService: Blacklist HID boot subclass devices (keyboards and mice)

Change-Id: I80558c6205e041ad730c7815aba97cb80132e820
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/UsbService.java
a8e3a898a2bc004ca1fcd278b68f5da5c344afbb 01-Feb-2011 Mike Lockwood <lockwood@android.com> UsbService: Add support for blacklisting certain USB busses

This can be used to prevent applications from connecting to
sensitive internal USB devices (like the modem)

Change-Id: I6587f58018e3f8d8f78405d4004cce64db23b628
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/UsbService.java
406e26d174a9b0c1b97819831d5ad877d27585b0 01-Feb-2011 Jeff Brown <jeffbrown@google.com> am a70154b0: am c623fff0: Merge "Fix keyboard hidden flag." into honeycomb

* commit 'a70154b0187603af3487bbe01b607818b12cc268':
Fix keyboard hidden flag.
5c4e4f9066d7fbf6e6630df071ac181ee975e0f1 01-Feb-2011 Dianne Hackborn <hackbod@google.com> am db569b49: am 6cf32312: Merge "Do not check features in PackageManagerService" into honeycomb

* commit 'db569b49180621c01fa55db88ed92071aae9b3bb':
Do not check features in PackageManagerService
06e57b5d46c87e9dd7bca1386b63b3a8522f51ef 20-Jan-2011 Jozef BABJAK <jozef.babjak@ixonos.com> Fixing possible race condition.

That return statement is effectively a reading of asynchronously modified
field. The reading and writing is elsewhere protected by locking on thread
instance, except this one occurence. Moving 'return' statement into
synchronized block ensures that it reads updated value.

Don't be afraid of deadlock - wait() releases the lock and acquires it
back when notified.

Change-Id: I940c24c04a1a2d4508d14d11b6174ff4fb2ab7d5
om/android/server/WindowManagerService.java
a70154b0187603af3487bbe01b607818b12cc268 01-Feb-2011 Jeff Brown <jeffbrown@google.com> am c623fff0: Merge "Fix keyboard hidden flag." into honeycomb

* commit 'c623fff00c53f6002a8ec6c98cf4fdd6b1b2ad12':
Fix keyboard hidden flag.
db569b49180621c01fa55db88ed92071aae9b3bb 01-Feb-2011 Dianne Hackborn <hackbod@google.com> am 6cf32312: Merge "Do not check features in PackageManagerService" into honeycomb

* commit '6cf32312aaee6716ffd1df7098838b08d80054e4':
Do not check features in PackageManagerService
4d29ac86e46600637bc17cc78b5b5abe1ed4ef66 01-Feb-2011 satok <satok@google.com> am c253fc0f: am 076d059b: Merge "Not to update IME when Settings version is older than the last updated version." into honeycomb

* commit 'c253fc0f8069c67eacf70def32436067584b5636':
Not to update IME when Settings version is older than the last updated version.
c253fc0f8069c67eacf70def32436067584b5636 01-Feb-2011 satok <satok@google.com> am 076d059b: Merge "Not to update IME when Settings version is older than the last updated version." into honeycomb

* commit '076d059b54664b31920f0be13d56c657ab77cecc':
Not to update IME when Settings version is older than the last updated version.
b04ec6a8a7e6a684eb4b8d434c87b76bbac9c80c 01-Feb-2011 Dianne Hackborn <hackbod@google.com> am 7a7ed2b2: Merge "Do not check features in PackageManagerService DO NOT MERGE" into gingerbread

* commit '7a7ed2b21233480d63a1f6b3830e3b0c1c6a3298':
Do not check features in PackageManagerService DO NOT MERGE
c623fff00c53f6002a8ec6c98cf4fdd6b1b2ad12 01-Feb-2011 Jeff Brown <jeffbrown@google.com> Merge "Fix keyboard hidden flag." into honeycomb
6cf32312aaee6716ffd1df7098838b08d80054e4 01-Feb-2011 Dianne Hackborn <hackbod@google.com> Merge "Do not check features in PackageManagerService" into honeycomb
597eec8c3d13fa68c3476b12005744c42522d960 01-Feb-2011 Jeff Brown <jeffbrown@google.com> Fix keyboard hidden flag.

Configuration.hardKeyboardHidden should be set to
HARDKEYBOARDHIDDEN_YES when no keyboard is present or when it is
disabled. The code in PhoneWindowManager.adjustConfigurationLw
does the right thing. It also takes care of setting keyboardHidden
correctly when only a soft keyboard is available.

So it turns out that all we need to do to disable the hard keyboard
is to set Configuration.keyboard to KEYBOARD_NOKEYS *before* asking
the policy to adjust the configuration.

Bug: 3406101
Change-Id: I3519d02af30d8068198cb3d6b8fdde601c2fe8b4
om/android/server/WindowManagerService.java
4c3915a0f73e51d0c70d93fe5b9ed125d5739b93 01-Feb-2011 Kenny Root <kroot@google.com> Do not check features in PackageManagerService

PackageManagerService shouldn't check features that a package declares
that it uses because this will cause problems in the future when we add
more features that older phones didn't explicitly declare. We must rely
on markets to know about phones and filter them for us to avoid this
situation.

Bug: 3409434
Change-Id: I419a5b936be3572b83a485081a6c81b2f1c8741c
om/android/server/PackageManagerService.java
fa2ae1ad1ad2f6c905a9de713038338a24d9ae7c 01-Feb-2011 Kenny Root <kroot@google.com> Do not check features in PackageManagerService DO NOT MERGE

PackageManagerService shouldn't check features that a package declares
that it uses because this will cause problems in the future when we add
more features that older phones didn't explicitly declare. We must rely
on markets to know about phones and filter them for us to avoid this
situation.

Bug: 3409434
Change-Id: I0d51b2de33d8110edc6824af4b5b8c901f96077f
om/android/server/PackageManagerService.java
4d733290a112fbe7ca5631ee870094b538f39d80 31-Jan-2011 satok <satok@google.com> Not to update IME when Settings version is older than the last updated version.

- Check if just old version or not.

- Sometimes, ContentObserver.onChange is called before finishing to save the actual value.
This can be verified by checking the system settings version. If the version is not updated,
cached value will be returned from Settings.Secure, and this should not be handled.

Bug: 3406300

Change-Id: Ie3f5b484b5574e10a41dfc209ed31271a474b828
om/android/server/InputMethodManagerService.java
60d9d9cdba31e2d3483b33138d2e98ce8be4567b 31-Jan-2011 Joe Onorato <joeo@google.com> am 75057b15: am 4de68bae: Merge "Check for the STATUS_BAR permission for the system UI properties." into honeycomb

* commit '75057b1507881625368f76b2f401097b606bd530':
Check for the STATUS_BAR permission for the system UI properties.
75057b1507881625368f76b2f401097b606bd530 31-Jan-2011 Joe Onorato <joeo@google.com> am 4de68bae: Merge "Check for the STATUS_BAR permission for the system UI properties." into honeycomb

* commit '4de68baed4bf18b33dc38f89f25410d3d5edfecf':
Check for the STATUS_BAR permission for the system UI properties.
ac0ee89bd985c024870fefca9a3422c4585b62d4 31-Jan-2011 Joe Onorato <joeo@google.com> Check for the STATUS_BAR permission for the system UI properties.

If the app doesn't have that permission, just mask out the bits.
Also makes the systemUiVisibility field visible in hierarchyviewer.

Change-Id: Ic3d3a3aed96b5c6448832755b4b2e6175117e5be
om/android/server/WindowManagerService.java
46bfd4a355d7349cc9db53c70b8849ce0818aa7c 30-Jan-2011 Jeff Brown <jeffbrown@google.com> resolved conflicts for merge of c608e106 to master

Change-Id: I49117966f43080d86763bab51848dbc50e55ecf8
b2abd8c424a68eb6a5e3615a99f66c0bd46e6063 30-Jan-2011 The Android Open Source Project <initial-contribution@android.com> Mass merge from gingerbread - do not merge

Change-Id: I45dc3596bf4211d8f91c64f2d1d00588878df629
c608e106a621fb8dc22cf4a32a876b4203737fb6 30-Jan-2011 Jeff Brown <jeffbrown@google.com> am 3c89f6d1: Merge "Add "Use physical keyboard" option to system bar IME button." into honeycomb

* commit '3c89f6d1bd0821d0ae0205a5b48176156735aaac':
Add "Use physical keyboard" option to system bar IME button.
3c89f6d1bd0821d0ae0205a5b48176156735aaac 30-Jan-2011 Jeff Brown <jeffbrown@google.com> Merge "Add "Use physical keyboard" option to system bar IME button." into honeycomb
4651e84411d3963c9b372f518c6b72adba3dec9f 30-Jan-2011 Dianne Hackborn <hackbod@google.com> am bdaee964: am e97a12e3: Fix screen size compatibility mode.

* commit 'bdaee964f7d00806e714a7e453fff8d6a408c692':
Fix screen size compatibility mode.
bdaee964f7d00806e714a7e453fff8d6a408c692 30-Jan-2011 Dianne Hackborn <hackbod@google.com> am e97a12e3: Fix screen size compatibility mode.

* commit 'e97a12e340dfdc246b531dfb49596628bd24e81b':
Fix screen size compatibility mode.
e97a12e340dfdc246b531dfb49596628bd24e81b 29-Jan-2011 Dianne Hackborn <hackbod@google.com> Fix screen size compatibility mode.

Change-Id: I2c06bbb586b4e54fc7ec52ec914cf95a18006217
om/android/server/WindowManagerService.java
71bb59f9e6799083830077dbb7e0f1effdd3faf7 30-Jan-2011 Dianne Hackborn <hackbod@google.com> am c12cdda9: Merge "DO NOT MERGE: Fix screen size compatibility mode." into gingerbread

* commit 'c12cdda949e6b916dd9e6fa4b30ab8b0d1898faa':
DO NOT MERGE: Fix screen size compatibility mode.
428dbe0181cdf7202d7d892611781cb86c232f9a 30-Jan-2011 Ken Wakasa <kwakasa@google.com> am 4e3f3a20: am 8710e76a: Follow up change to I741642ac

* commit '4e3f3a2046a5743f02ebca665b771467ad900ce1':
Follow up change to I741642ac
4e3f3a2046a5743f02ebca665b771467ad900ce1 30-Jan-2011 Ken Wakasa <kwakasa@google.com> am 8710e76a: Follow up change to I741642ac

* commit '8710e76a897cd546a79ee4338a4147eeb9f3e068':
Follow up change to I741642ac
726318b56a6c4736caa97c18b1e6b9af800130c9 29-Jan-2011 Dianne Hackborn <hackbod@google.com> DO NOT MERGE: Fix screen size compatibility mode.

Cherry-picked from HC.

Change-Id: Icce2a64f187a56deefcddc3d9b22fa94effce431
om/android/server/WindowManagerService.java
8710e76a897cd546a79ee4338a4147eeb9f3e068 30-Jan-2011 Ken Wakasa <kwakasa@google.com> Follow up change to I741642ac

Fix wrong constant.

bug: 3404788
Change-Id: Ic5f849e6640a78a70951cf819d7e8ce53a9c2585
om/android/server/InputMethodManagerService.java
450536b6a6139393c61aefc0ad57544eda5bfe8b 29-Jan-2011 Jason parks <jparks@google.com> am d4796c82: am a2e765ef: Merge "Update the encryption password when the device password is changed." into honeycomb

* commit 'd4796c823b92866d5895acf610e5571e9b5724d9':
Update the encryption password when the device password is changed.
d4796c823b92866d5895acf610e5571e9b5724d9 29-Jan-2011 Jason parks <jparks@google.com> am a2e765ef: Merge "Update the encryption password when the device password is changed." into honeycomb

* commit 'a2e765ef1ad2cb907a4ae0a93bb15e4764ebb59a':
Update the encryption password when the device password is changed.
a2e765ef1ad2cb907a4ae0a93bb15e4764ebb59a 29-Jan-2011 Jason parks <jparks@google.com> Merge "Update the encryption password when the device password is changed." into honeycomb
6e6bba8b6a52d2d5e8aa9d096fee5a6268555349 29-Jan-2011 satok <satok@google.com> am f163b4d3: am e40dea0d: Fix a bug that IME switch disappiers at switching IME subtype.

* commit 'f163b4d3318d3cedd1ef633ae45ab6b822c1d24f':
Fix a bug that IME switch disappiers at switching IME subtype.
f163b4d3318d3cedd1ef633ae45ab6b822c1d24f 29-Jan-2011 satok <satok@google.com> am e40dea0d: Fix a bug that IME switch disappiers at switching IME subtype.

* commit 'e40dea0d06ec1c04db80191fd2965363b4fac781':
Fix a bug that IME switch disappiers at switching IME subtype.
c68a657f128a2d5afda855c9698fd5ac186866df 29-Jan-2011 Kenny Root <kroot@google.com> am 138757db: Merge "Make OBB results a one-way call" into gingerbread

* commit '138757db4f19cb626ef5c1d371d4fca004304a08':
Make OBB results a one-way call
e40dea0d06ec1c04db80191fd2965363b4fac781 29-Jan-2011 satok <satok@google.com> Fix a bug that IME switch disappiers at switching IME subtype.

Bug: 3404788

Change-Id: I741642ac690a1b4c6ca1225ee271bffe39164170
om/android/server/InputMethodManagerService.java
2992ea782fa61780d8e0de7a36a2a84622f8694b 29-Jan-2011 Jeff Brown <jeffbrown@google.com> Add "Use physical keyboard" option to system bar IME button.

Bug: 3391067
Change-Id: I136087ca4f726d0068d5983d7d3686787ba60c55
om/android/server/StatusBarManagerService.java
om/android/server/SystemServer.java
om/android/server/WindowManagerService.java
9805d8e0818ea4e8ebddf20d40cf1856ecee6cc8 29-Jan-2011 Christopher Tate <ctate@google.com> Merge "Enable global (cross-application) drag/drop"
251602f410aaecc482a13d12984e67e3ddc1ef9c 29-Jan-2011 Christopher Tate <ctate@google.com> Enable global (cross-application) drag/drop

Also adds a new flag constant, View.DRAG_FLAG_GLOBAL, which indicates that
the drag operation should be allowed to propagate the drag outside the
originating app. When this flag is specified, all visible windows will
be notified about the ongoing drag.

Bug 3322724

Change-Id: Iaa3412a97f83f4e763019c9a03b5f09ebf75453f
om/android/server/WindowManagerService.java
2c376fc46cd01b12e003a7bf83d82f527f6efaf1 29-Jan-2011 Jeff Brown <jeffbrown@google.com> Optimize IntentResolver to reduce lookup time by 50%.

IntentResolver frequently iterates over hundreds of different IntentFilters
and spends much of its time creating iterators and comparing strings.
This change avoids reduces the amount of garbage created by eschewing
iterators where possible. The FastImmutableArraySet type on its own
provides a 2.5x speed boost compared to repeatedly iterating over a HashSet.

In absolute terms, during orientation changes we spent about 160ms resolving
11 intents and performing 1129 calls to IntentFilter.match. Now we spend
half of that time.

Change-Id: Ia120e0082c8cf0b572a0317b9ef4a22c766dbad6
om/android/server/IntentResolver.java
af3d74c05c2ea36f8641183c9f1ddc5b9b75ff85 29-Jan-2011 Irfan Sheriff <isheriff@google.com> am cc1bd4a8: am 739f6bc6: Keep never as the default wifi sleep settings

* commit 'cc1bd4a8ea2b171059607a1dbaac65fbfd9a0c04':
Keep never as the default wifi sleep settings
cc1bd4a8ea2b171059607a1dbaac65fbfd9a0c04 29-Jan-2011 Irfan Sheriff <isheriff@google.com> am 739f6bc6: Keep never as the default wifi sleep settings

* commit '739f6bc675c0caa11a1d46b18de24e6c884f723a':
Keep never as the default wifi sleep settings
739f6bc675c0caa11a1d46b18de24e6c884f723a 29-Jan-2011 Irfan Sheriff <isheriff@google.com> Keep never as the default wifi sleep settings

Bug: 3404049
Change-Id: I824b8cb7b28223cfb4eb89cabc7cb237a4e1e6db
om/android/server/WifiService.java
ed1264093234b1f1354cd5f669eb82a50bb56869 29-Jan-2011 Robert Greenwalt <rgreenwalt@google.com> Bind addr and prefixLength together in LinkAddress

bug:2542681
Change-Id: I90200446216d78c676498144946832afe75efdb8
om/android/server/NetworkManagementService.java
om/android/server/connectivity/Tethering.java
bafa3a31f58a52d49883db43167e28c16af1fc61 28-Jan-2011 Joe Onorato <joeo@google.com> am d6874a10: am cfd0bafd: Merge changes Iaa7bc042,Icc312fc9,I50ba06ed into honeycomb

* commit 'd6874a105ee584b1dc60aae2f2af7c78ee875114':
Make keyguard also ask to turn the back button off, now that it is controlled separately.
Allow independent control of the back and the other navigation buttons.
Allow the status bar disable flags to be used as View's system ui visibility fields.
8b16ebd0e80d5cc695d9a5567359a6c5dd9ac884 28-Jan-2011 Joe Onorato <joeo@google.com> am b940659f: am 94eb3d0f: Merge "Plumb whether an input view is actually visible or not through from the IME to the status bar." into honeycomb

* commit 'b940659f415d536966f1bb8af4d5281efa3a7f7a':
Plumb whether an input view is actually visible or not through from the IME to the status bar.
d6874a105ee584b1dc60aae2f2af7c78ee875114 28-Jan-2011 Joe Onorato <joeo@google.com> am cfd0bafd: Merge changes Iaa7bc042,Icc312fc9,I50ba06ed into honeycomb

* commit 'cfd0bafdebf1fccd3f5a0baed5cad8a539546e9b':
Make keyguard also ask to turn the back button off, now that it is controlled separately.
Allow independent control of the back and the other navigation buttons.
Allow the status bar disable flags to be used as View's system ui visibility fields.
b940659f415d536966f1bb8af4d5281efa3a7f7a 28-Jan-2011 Joe Onorato <joeo@google.com> am 94eb3d0f: Merge "Plumb whether an input view is actually visible or not through from the IME to the status bar." into honeycomb

* commit '94eb3d0f7e77eb94c9fee8523c013fbc0f9032c4':
Plumb whether an input view is actually visible or not through from the IME to the status bar.
cfd0bafdebf1fccd3f5a0baed5cad8a539546e9b 28-Jan-2011 Joe Onorato <joeo@google.com> Merge changes Iaa7bc042,Icc312fc9,I50ba06ed into honeycomb

* changes:
Make keyguard also ask to turn the back button off, now that it is controlled separately.
Allow independent control of the back and the other navigation buttons.
Allow the status bar disable flags to be used as View's system ui visibility fields.
94eb3d0f7e77eb94c9fee8523c013fbc0f9032c4 28-Jan-2011 Joe Onorato <joeo@google.com> Merge "Plumb whether an input view is actually visible or not through from the IME to the status bar." into honeycomb
f2a8b3c450f0570c1ad0ee6e0fae3cfb85bfb4de 28-Jan-2011 Dianne Hackborn <hackbod@google.com> am 8691b724: am 10e4148b: Merge "Fix issue #3291173: Problem report for NewsRoom - RSS News Reader" into honeycomb

* commit '8691b7243d40d5ef0ab94b8d5f204635d36bf1c4':
Fix issue #3291173: Problem report for NewsRoom - RSS News Reader
8691b7243d40d5ef0ab94b8d5f204635d36bf1c4 28-Jan-2011 Dianne Hackborn <hackbod@google.com> am 10e4148b: Merge "Fix issue #3291173: Problem report for NewsRoom - RSS News Reader" into honeycomb

* commit '10e4148b62c9bfed945c1bcea9dd5eea2a17b0d0':
Fix issue #3291173: Problem report for NewsRoom - RSS News Reader
420829ef78c5d86e470fc445279c7c10be6b5dbe 28-Jan-2011 Dianne Hackborn <hackbod@google.com> Fix issue #3291173: Problem report for NewsRoom - RSS News Reader

The framework had started using the LayoutInflator's factory
for itself, which breaks apps that want to use it. Add a hack for
the framework to insert its own private factory.

Also fix a deadlock in the system process.

Change-Id: Iaf80186a5d7e4029faf89e968e184abdaabe514a
om/android/server/WindowManagerService.java
f7b3cd4efd40b7631f36ea014407a850f7dc637e 27-Jan-2011 Jason parks <jparks@google.com> Update the encryption password when the device password is changed.

* Added changeEncryptionPassword() to the MountService.
* Update LockPatternUtils to call changeEncryptionPassword()
when the password is changed.

Note we only require the new password to change the
encryption password.

Bug: 3382129
Change-Id: I26a7e919e325e75e22fa4290da0a8b1b57b55a80
om/android/server/MountService.java
564eb77ffe41057daa833a1d7c5a74f120b3db5d 28-Jan-2011 Dianne Hackborn <hackbod@google.com> am bb609471: am 256a09b2: Merge "Fix issue #3392073: At times soft keyboard comes up in..." into honeycomb

* commit 'bb6094718b08e7fe2054b7260a85baae635afe48':
Fix issue #3392073: At times soft keyboard comes up in...
75afc6bfe27bffce1e75dd7107f410754cddbeb7 28-Jan-2011 Dianne Hackborn <hackbod@google.com> am f1a9ab26: am d23316bc: Merge "Maybe fix issue #3358322: Status and nav bar died while watching youtube" into honeycomb

* commit 'f1a9ab2673a2b5e6f684f7ceced177e3fc749ee7':
Maybe fix issue #3358322: Status and nav bar died while watching youtube
bb6094718b08e7fe2054b7260a85baae635afe48 28-Jan-2011 Dianne Hackborn <hackbod@google.com> am 256a09b2: Merge "Fix issue #3392073: At times soft keyboard comes up in..." into honeycomb

* commit '256a09b2fa5cc06775818428de771c7957403452':
Fix issue #3392073: At times soft keyboard comes up in...
f1a9ab2673a2b5e6f684f7ceced177e3fc749ee7 28-Jan-2011 Dianne Hackborn <hackbod@google.com> am d23316bc: Merge "Maybe fix issue #3358322: Status and nav bar died while watching youtube" into honeycomb

* commit 'd23316bc8b49f269e5adcc91eae5698549faa0a3':
Maybe fix issue #3358322: Status and nav bar died while watching youtube
256a09b2fa5cc06775818428de771c7957403452 28-Jan-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #3392073: At times soft keyboard comes up in..." into honeycomb
e75d87266b59fc76cfb1b9bbc9a4734b8fd1664f 28-Jan-2011 Dianne Hackborn <hackbod@google.com> Fix issue #3392073: At times soft keyboard comes up in...

...gallery while attaching picture to gmail message

In various places we could block switching the IME target incorrectly.

Change-Id: I7e647fb35f4ea6f2e39eb7efd911420ea9ee64fa
om/android/server/WindowManagerService.java
7bb8eeb90cf55f409a282c1f36ca08aa48c10543 28-Jan-2011 Joe Onorato <joeo@google.com> Allow the status bar disable flags to be used as View's system ui visibility fields.

Bug: 3363046
Change-Id: I50ba06ed9a4d2f5d0e0c807437aea9900f44fee9
om/android/server/StatusBarManagerService.java
857fd9b8562c29913e03ed29288bd1802d37dc60 28-Jan-2011 Joe Onorato <joeo@google.com> Plumb whether an input view is actually visible or not through from the IME
to the status bar.

Bug: 3391067
Change-Id: I049531155bf7ee0b29874916c0b5b0a45b73c09e
om/android/server/InputMethodManagerService.java
om/android/server/StatusBarManagerService.java
83a6f450bde23e1bfd07ee1c218dab35053dec76 28-Jan-2011 Dianne Hackborn <hackbod@google.com> Maybe fix issue #3358322: Status and nav bar died while watching youtube

Or at least make it better. Now if we get a failure locking the surface,
we mark to do a full relayout pass later to try to get a new good surface.

Also fix some bugs in how activity manager was classifying processes for
their OOM adjustment to make better choices in what to kill.

Change-Id: I8e4aa86744211ba7693f9828291d8bbf2698274f
om/android/server/am/ActivityManagerService.java
de5d85d10ebe5cdf5723b3cec41a1dff80208be0 27-Jan-2011 Wink Saville <wink@google.com> am 93fbb0ad: am 13a8f2a5: Merge "Comment out the isAvailable optimization." into honeycomb

* commit '93fbb0ad960a658633dfa2bc7be9584e4361ab85':
Comment out the isAvailable optimization.
635c044e7d1fa1867890cd93c6b2f1d63897194e 27-Jan-2011 Dianne Hackborn <hackbod@google.com> am 2c552372: am 8c0ac870: Merge "Fix another part of #3387855: Menu flashes on left side of screen" into honeycomb

* commit '2c552372ceff3025dfae6f0d2cc91b7d103970fd':
Fix another part of #3387855: Menu flashes on left side of screen
831a010aec283d1d0a90297d0f9452c0fde16d8c 27-Jan-2011 Dianne Hackborn <hackbod@google.com> am 5640392f: am 2d63144e: Merge "Fix issue #3380072: Switching in and out of gmail not preserving position in label" into honeycomb

* commit '5640392f584c64f048180ac75218b5c7f9281b76':
Fix issue #3380072: Switching in and out of gmail not preserving position in label
93fbb0ad960a658633dfa2bc7be9584e4361ab85 27-Jan-2011 Wink Saville <wink@google.com> am 13a8f2a5: Merge "Comment out the isAvailable optimization." into honeycomb

* commit '13a8f2a59c063b988502de9b7197d83b5db487d9':
Comment out the isAvailable optimization.
13a8f2a59c063b988502de9b7197d83b5db487d9 27-Jan-2011 Wink Saville <wink@google.com> Merge "Comment out the isAvailable optimization." into honeycomb
2c552372ceff3025dfae6f0d2cc91b7d103970fd 27-Jan-2011 Dianne Hackborn <hackbod@google.com> am 8c0ac870: Merge "Fix another part of #3387855: Menu flashes on left side of screen" into honeycomb

* commit '8c0ac8708761872082c75aedc5fa4b25d1286fd0':
Fix another part of #3387855: Menu flashes on left side of screen
5640392f584c64f048180ac75218b5c7f9281b76 27-Jan-2011 Dianne Hackborn <hackbod@google.com> am 2d63144e: Merge "Fix issue #3380072: Switching in and out of gmail not preserving position in label" into honeycomb

* commit '2d63144ed94dff0832d051ec355f56649244dd4e':
Fix issue #3380072: Switching in and out of gmail not preserving position in label
8c0ac8708761872082c75aedc5fa4b25d1286fd0 27-Jan-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix another part of #3387855: Menu flashes on left side of screen" into honeycomb
428ecb65b52438e390d48b98d649b1dbb29bb28d 26-Jan-2011 Dianne Hackborn <hackbod@google.com> Fix another part of #3387855: Menu flashes on left side of screen

When task switching while dialog windows were up, the exit animation
wouldn't be seen. The animation needs to force Z-order its windows
to the top.

Also fix a bug where the lock screen fade-out was immediately
Z-ordering the wallpaper to the bottom if the activity behind was
not on top of the wallpaper.

Change-Id: Icd45cd8ccfff9829822c1682931413246eb9601b
om/android/server/WindowManagerService.java
2d63144ed94dff0832d051ec355f56649244dd4e 27-Jan-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #3380072: Switching in and out of gmail not preserving position in label" into honeycomb
9f7a0b2b0270b1ad59d2103839b1d4b02f910a90 27-Jan-2011 Wink Saville <wink@google.com> Comment out the isAvailable optimization.

As the comment says this causes problems if the connection
is handling errors. This removes the optimization for now.

Bug: 3386481
Change-Id: I6cb00abe8b1949e9b79b4906a6bdab5872b5054d
om/android/server/ConnectivityService.java
57f1ac41337b019f6ad568769264ec519f917cf7 26-Jan-2011 Dianne Hackborn <hackbod@google.com> Fix issue #3380072: Switching in and out of gmail not preserving position in label

We were doubly-decreasing the task's activity count, so when selected
from recent tasks it would re-launch the last Intent rather than
switching to its current state.

Change-Id: I6e58c930a0755ae0142604d42b5cd2c668a2b492
om/android/server/am/ActivityStack.java
a135040311415a92e9544c377168fc6478a50bdc 26-Jan-2011 Mathias Agopian <mathias@google.com> am 947bbc91: am a0f40033: Merge "fix [3385504] Surface flinger hang when adding dim surface" into honeycomb

* commit '947bbc914a3c6723dcd8ff1fcca2fc61e557bacc':
fix [3385504] Surface flinger hang when adding dim surface
947bbc914a3c6723dcd8ff1fcca2fc61e557bacc 26-Jan-2011 Mathias Agopian <mathias@google.com> am a0f40033: Merge "fix [3385504] Surface flinger hang when adding dim surface" into honeycomb

* commit 'a0f40033c03a0b64538bf1c22f83d3c9a325ff87':
fix [3385504] Surface flinger hang when adding dim surface
a0f40033c03a0b64538bf1c22f83d3c9a325ff87 26-Jan-2011 Mathias Agopian <mathias@google.com> Merge "fix [3385504] Surface flinger hang when adding dim surface" into honeycomb
dd071fea23385ce2acc998f263042c9c90831dfa 26-Jan-2011 Winson Chung <winsonc@google.com> am 38fe6ff4: am 2c070bae: Merge "Re-enabling queued unbinding of services after requests to the service. (3394210)" into honeycomb

* commit '38fe6ff45a6cbc328d1b92c9b9d79c65c3fb29ae':
Re-enabling queued unbinding of services after requests to the service. (3394210)
38fe6ff45a6cbc328d1b92c9b9d79c65c3fb29ae 26-Jan-2011 Winson Chung <winsonc@google.com> am 2c070bae: Merge "Re-enabling queued unbinding of services after requests to the service. (3394210)" into honeycomb

* commit '2c070bae4493cd1976c5086ec4cbf6ce10482742':
Re-enabling queued unbinding of services after requests to the service. (3394210)
2c070bae4493cd1976c5086ec4cbf6ce10482742 26-Jan-2011 Winson Chung <winsonc@google.com> Merge "Re-enabling queued unbinding of services after requests to the service. (3394210)" into honeycomb
16c8d8a558f94ec14ef52bb5ac11044e2d0d902c 21-Jan-2011 Winson Chung <winsonc@google.com> Re-enabling queued unbinding of services after requests to the service. (3394210)

- Fix for crash when detaching from window
- Potential fix for occasional IllegalStateException when updating List based widgets

Change-Id: I3d3f2bb691552a1136111043db686c4926b510c6
om/android/server/AppWidgetService.java
b648c60854e74ffda4caefa26b9e1d3f6cdbf13f 26-Jan-2011 Joe Onorato <joeo@google.com> am a4a5ec5e: am 1aadb210: Merge changes I48392c75,Id09437a4,I4a0aa878 into honeycomb

* commit 'a4a5ec5e748f99c40301c9c422b3d36cb44c6081':
Expose the window flags for lights out mode.
Make TabletStatusBar call into StatusBarManagerService when it goes out of lights out mode on its own.
Make FLAG_FULLSCREEN not go into lights out mode anymore.
a4a5ec5e748f99c40301c9c422b3d36cb44c6081 26-Jan-2011 Joe Onorato <joeo@google.com> am 1aadb210: Merge changes I48392c75,Id09437a4,I4a0aa878 into honeycomb

* commit '1aadb2108d7614d9d1ff61b41c6c31cb8d211ab9':
Expose the window flags for lights out mode.
Make TabletStatusBar call into StatusBarManagerService when it goes out of lights out mode on its own.
Make FLAG_FULLSCREEN not go into lights out mode anymore.
f4b2c0422cdb7496195707a9c8e92a328387195c 26-Jan-2011 Kenny Root <kroot@google.com> am 91c459ec: Copy user info from PackageSetting as well

* commit '91c459ec7dba6d56816ff5cbd92c627e0f718915':
Copy user info from PackageSetting as well
55bf3809b98dad0b8268804e684d63ea59124148 25-Jan-2011 Joe Onorato <joeo@google.com> Make TabletStatusBar call into StatusBarManagerService when it goes out of lights out mode on its
own.

Bug: 3241144
Change-Id: Id09437a4f32f1d64daa7ae65e41c99897b5964d7
om/android/server/StatusBarManagerService.java
644f9c3ad93f6674abff4143b78404cd222b5e30 25-Jan-2011 Joe Onorato <joeo@google.com> Make FLAG_FULLSCREEN not go into lights out mode anymore.

Change-Id: I4a0aa8789f537717f82df4efb6a35108e1ab1784
om/android/server/StatusBarManagerService.java
29a208e12c9c29d9923c0b1b93e61cbc128f281c 26-Jan-2011 Kenny Root <kroot@google.com> am ff271a22: am 2ec4af59: am 138757db: Merge "Make OBB results a one-way call" into gingerbread

* commit 'ff271a2288f375fc7a5854ac0d1f7c969d91996d':
Make OBB results a one-way call
ff271a2288f375fc7a5854ac0d1f7c969d91996d 26-Jan-2011 Kenny Root <kroot@google.com> am 2ec4af59: am 138757db: Merge "Make OBB results a one-way call" into gingerbread

* commit '2ec4af59209ab3a7088a001bbbcb10ef0b846564':
Make OBB results a one-way call
2ec4af59209ab3a7088a001bbbcb10ef0b846564 26-Jan-2011 Kenny Root <kroot@google.com> am 138757db: Merge "Make OBB results a one-way call" into gingerbread

* commit '138757db4f19cb626ef5c1d371d4fca004304a08':
Make OBB results a one-way call
d35c6667c8233385f31aa203f486b2cb826bf6be 26-Jan-2011 Mathias Agopian <mathias@google.com> fix [3385504] Surface flinger hang when adding dim surface

Change-Id: I8e0cda414bcad5854d2ca5dde8370bfd8b2e5ea4
om/android/server/ScreenRotationAnimation.java
b7db2726e91f1d9480359d0f83b9cb7769906b34 26-Jan-2011 Kenny Root <kroot@google.com> Make OBB results a one-way call

OBB result back to an application needs to be a one-way binder call.

Bug: 3353699
Change-Id: I0e625914d18a001c2fa9d764ea6463f34cf96743
om/android/server/MountService.java
fc8e55850b18a7cc31365fe53a152ce07baa9d09 25-Jan-2011 Robert Greenwalt <rgreenwalt@google.com> am 678c6a35: am d14239a2: Merge "Fix tethering when switching default connection" into honeycomb

* commit '678c6a358dc14beb7825b30346ab09df432ba1fe':
Fix tethering when switching default connection
678c6a358dc14beb7825b30346ab09df432ba1fe 25-Jan-2011 Robert Greenwalt <rgreenwalt@google.com> am d14239a2: Merge "Fix tethering when switching default connection" into honeycomb

* commit 'd14239a2fb12d775f7b2345286d36ac02234e0a7':
Fix tethering when switching default connection
d14239a2fb12d775f7b2345286d36ac02234e0a7 25-Jan-2011 Robert Greenwalt <rgreenwalt@google.com> Merge "Fix tethering when switching default connection" into honeycomb
e9423b7c7ac9c8f4679e95615105ab08ebf9ded7 25-Jan-2011 satok <satok@google.com> am 6ee3bcf6: am 3a92c5fd: Merge "Fix the return value of switch to last ime." into honeycomb

* commit '6ee3bcf6c6b4e8a03903ca029fee5ee5df7668d3':
Fix the return value of switch to last ime.
6ee3bcf6c6b4e8a03903ca029fee5ee5df7668d3 25-Jan-2011 satok <satok@google.com> am 3a92c5fd: Merge "Fix the return value of switch to last ime." into honeycomb

* commit '3a92c5fd3262236e0c6969591da7f6cb50dbddfc':
Fix the return value of switch to last ime.
c445bcd0bce630948ee029d7c70b28226f0b6c9c 25-Jan-2011 satok <satok@google.com> Fix the return value of switch to last ime.

Change-Id: I5fe8cc696433a7ee72973d16d8f121d3362ab0e0
om/android/server/InputMethodManagerService.java
1563966ca03361e2d90ecc66621dfb7a93c8ce8b 25-Jan-2011 Dianne Hackborn <hackbod@google.com> am 98d169ea: am 5d9d03a0: Maybe fix issue #3093599: java.lang.IndexOutOfBoundsException...

* commit '98d169eacd65e6278bb8eab354f0278065771e9f':
Maybe fix issue #3093599: java.lang.IndexOutOfBoundsException...
98d169eacd65e6278bb8eab354f0278065771e9f 25-Jan-2011 Dianne Hackborn <hackbod@google.com> am 5d9d03a0: Maybe fix issue #3093599: java.lang.IndexOutOfBoundsException...

* commit '5d9d03a0234faa3cffd11502f973057045cafe82':
Maybe fix issue #3093599: java.lang.IndexOutOfBoundsException...
5d9d03a0234faa3cffd11502f973057045cafe82 24-Jan-2011 Dianne Hackborn <hackbod@google.com> Maybe fix issue #3093599: java.lang.IndexOutOfBoundsException...

...Invalid index 0, size is 0 at
android.app.ActivityThread.performPauseActivity(ActivityThread.java:2326)

It looks like if an arrow key is dispatched between the time the
list view is told its data set has changed and it does the resulting
layout pass, we could try to move the position to a now invalid
index. This may prevent that from happening.

Also put in a better error message if saving state of a fragment
whose target is no longer in the fragment manager.

And fix a bug in PackageManager where we could return a null from
queryIntentActivities().

And add a new API to find out whether a fragment is being removed,
to help fix issue #3306021: NPE at
android.app.AlertDialog.getDefaultDialogTheme(AlertDialog.java)

Next, for new HC apps we can delay committing data to
storage until the activity is stopped.

Finally, use the new multi-threaded AyncTask executor in a few
places, so we don't have worked blocked by long-running tasks from
the application.

Change-Id: I27b2aafedf2e1bf3a2316309889613fa539760f3
om/android/server/PackageManagerService.java
d1953bcbc734cabda55f8987b662344ff58186c6 25-Jan-2011 Jeff Brown <jeffbrown@google.com> am 747aee5a: am 8bb7e488: Merge "Fix regression setting input windows." into honeycomb

* commit '747aee5ab96503796e55fcd444c440197cecd39a':
Fix regression setting input windows.
747aee5ab96503796e55fcd444c440197cecd39a 25-Jan-2011 Jeff Brown <jeffbrown@google.com> am 8bb7e488: Merge "Fix regression setting input windows." into honeycomb

* commit '8bb7e488e2564b75d8d920850891675090debcca':
Fix regression setting input windows.
2e44b0788f450f06c0d4e3b8dc26aff43ead587d 25-Jan-2011 Jeff Brown <jeffbrown@google.com> Fix regression setting input windows.

Change-Id: I24d58a02f69ae40f03b133d487354a883585e93e
om/android/server/WindowManagerService.java
8e11b4f4eb14dd1138ed8d403333da5e392fe930 24-Jan-2011 Dianne Hackborn <hackbod@android.com> am 81ac92df: am 6d92cde2: am 35f4d32d: Merge "frameworks/base: Track owner in appropriate owners list of Uri"

* commit '81ac92df33ba146a51fbbf3d5108379a9eb346b1':
frameworks/base: Track owner in appropriate owners list of Uri
81ac92df33ba146a51fbbf3d5108379a9eb346b1 24-Jan-2011 Dianne Hackborn <hackbod@android.com> am 6d92cde2: am 35f4d32d: Merge "frameworks/base: Track owner in appropriate owners list of Uri"

* commit '6d92cde287b6399d5c90f3eaccb73602d6d51313':
frameworks/base: Track owner in appropriate owners list of Uri
ff0ada3767f072ad5de28d5bf19c7455516c2a26 24-Jan-2011 satok <satok@google.com> am 47f92f47: am 57ffc002: Add a way that subtype will be excluded from a last input method

* commit '47f92f479cb2c6c18de4c1e429531d0c04e90472':
Add a way that subtype will be excluded from a last input method
10f4126a367071a49f208f10ceb1ed0e1151d48c 24-Jan-2011 Joe Onorato <joeo@google.com> resolved conflicts for merge of faf083ef to master

Change-Id: I316a1b4356f6dba6c3880ccb02dbb2fa00d21a85
57ffc00239edcfe733832771e1429fca20182207 24-Jan-2011 satok <satok@google.com> Add a way that subtype will be excluded from a last input method

Bug: 3382702

- Added SUBTYPE_EXTRAVALUE_EXCLUDE_FROM_LAST_IME and if subtype has this extra value,
It will be excluded from a last input method which will be called from switchToLastInputMethod

Change-Id: I03ae10e07f978dcc3a83dd77b10613048dce7f22
om/android/server/InputMethodManagerService.java
4c541b1303b0ee2b9b0d19bee85d3780c5c4c110 24-Jan-2011 Joe Onorato <joeo@google.com> Merge "visibility ("lights out") API." into honeycomb
664644d9e012aa2a28ac96f305b1ce6499ec8806 24-Jan-2011 Joe Onorato <joeo@google.com> visibility ("lights out") API.

1. Views may setSystemUiVisibility() to recommend that
the system chrome (status bar or other UI) show or hide
itself. (This functionality was previously available only
via the FLAG_FULLSCREEN window flag for some SystemUI
implementations.)

2. Views may register a OnSystemUiVisibilityChangedListener
on a view, and find out when the system UI actually
appears or disappears, allowing apps to coordinate the
appearance of their own UI if desired.

Bug: 3241144
Change-Id: Ia1758d94099182d49a1e3688ea2738ae4995b829
om/android/server/StatusBarManagerService.java
om/android/server/WindowManagerService.java
ee18bc7e3ccae1d0dfc88b1ccf784ea556894515 24-Jan-2011 Dianne Hackborn <hackbod@google.com> am 802fb15d: am 9476f045: Merge "Fix issue #3215261: NPE in WiFi Settings" into honeycomb

* commit '802fb15d2a9d6e094627c561100aabbac3689d94':
Fix issue #3215261: NPE in WiFi Settings
89ba6750e5310c4da51786bd7eb559a43cab3982 24-Jan-2011 Dianne Hackborn <hackbod@google.com> Fix issue #3215261: NPE in WiFi Settings

And also fix #3343369: EGL_BAD_DISPLAY and/or broadcast intent
TIME_SET before boot completion

And a few more tweaks to animations to keep the wallpaper displayed
when needed.

And make more use of the drag and drop "rotation disabled" thing to
also use it while animating the screen rotation, since if we try to
start a new rotation while doing the animation we end up with a mess.

Change-Id: I373af305a6e23a92835abed96229a83e173f67ce
om/android/server/AlarmManagerService.java
om/android/server/WindowManagerService.java
05d8936f275762bab0d66c6337e352388c8eeee0 24-Jan-2011 Robert Greenwalt <rgreenwalt@google.com> Fix tethering when switching default connection

If the default connection is suitable use that rather than a random interface.
This permits us to deterministically switch back to wifi after hanging out on
DUN APN.

bug:3374236
Change-Id: Iee5137b9f09c358f262e7a62f20282e79f7d889f
om/android/server/connectivity/Tethering.java
a6b5024b0b70a3c04daa0a09dd1c2cd9ab8d05c9 23-Jan-2011 Jeff Brown <jeffbrown@google.com> am 21c38db8: am c9ce1f24: Merge "Fix spurious resizes during rotation animation." into honeycomb

* commit '21c38db8ec9dff97631ad8de1d13e5d470a97f6c':
Fix spurious resizes during rotation animation.
c9ce1f24df4c50e27ffe50495aef968e6cbe7f6f 23-Jan-2011 Jeff Brown <jeffbrown@google.com> Merge "Fix spurious resizes during rotation animation." into honeycomb
fbae722d2a4e3f606a101a118b1b506dc6ecc29b 23-Jan-2011 Jeff Brown <jeffbrown@google.com> Fix spurious resizes during rotation animation.

Fixed a bug in WindowManagerService where it would set mSurfaceResized
to true even if the surface was just moved and not resized. As a result,
we would send dozens of spurious resize messages to all applications
during orientation changes since the rotation animation changes the
positions of surfaces as they swing into place. Among other things,
the spurious resizes caused the wallpaper to be redrawn dozens of time.

Change-Id: I2be7278c0d6a00aaef665a65e268d8da1771e51f
om/android/server/WindowManagerService.java
ccb9a0a9f0376f5971d0c0f79b297ec0cc1dd6c1 23-Jan-2011 Dianne Hackborn <hackbod@google.com> am 11a5d424: am b149f5c8: Merge "Fix issue #3302006: Cannot see the dialog lunched from a transparent activity." into honeycomb

* commit '11a5d42454fad1f61eb4874855113c5416396888':
Fix issue #3302006: Cannot see the dialog lunched from a transparent activity.
ff801ec71399f7e8aa95bcbb9937c53144fe17c5 23-Jan-2011 Dianne Hackborn <hackbod@google.com> Fix issue #3302006: Cannot see the dialog lunched from a transparent activity.

The activity manager was not performing the layout pass on the new window,
because its app token was still hidden, because the activity manager / window
manager were still waiting for it to be ready to show.

Just ignore whether the app token is hidden for this case.

Also fixes some problems with animations, and tweaks the ViewConfiguration
values for xlarge screens.

Change-Id: Icbe9c77ba8127d1e02df2d6f27b8e86ec842e50a
om/android/server/LightsService.java
om/android/server/WindowManagerService.java
om/android/server/am/ActivityRecord.java
om/android/server/am/ActivityStack.java
347750862c5d014dd79ccca3f2ce26910c55e5f2 23-Jan-2011 Mike Lockwood <lockwood@android.com> Merge "New APIs for USB host support:"
e7d511e148bc901ef41ac44d7b3593e5d803f72f 30-Dec-2010 Mike Lockwood <lockwood@android.com> New APIs for USB host support:

UsbManager:
- is now a service retrievable via Context.getSystemService(Context.USB_SERVICE).
- provides support for returning a list all connected USB devices
- broadcasts ACTION_USB_DEVICE_ATTACHED and USB_DEVICE_DETACHED when devices
are added and removed from the USB host bus

UsbDevice:
- represents an attached USB device.

UsbInterface:
- represents an interface on a USB device
- devices may have multiple interfaces if they provide multiple
sets of functionality (for example, android phones typically have interfaces
for both USB mass storage and adb)

UsbEndpoint:
- represents an endpoint on a USB interface
- endpoints are used for sending or receiving data
(only in one or the other direction)

UsbRequest:
- encapsulates a send or receive request to be sent over an endpoint

Change-Id: Ieef3e434c62760770ea839070cf5eba1a705967a
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/SystemServer.java
om/android/server/UsbService.java
e3e6a157dff68d17d274fc2196b0675bd3d0258f 22-Jan-2011 Dianne Hackborn <hackbod@google.com> am 8a0f1756: am 5503d803: Merge "Fix issue #3377999: Activities need to be stopped when sleeping" into honeycomb

* commit '8a0f17560080077b972c97bf9d5b68961f148fe3':
Fix issue #3377999: Activities need to be stopped when sleeping
6d92cde287b6399d5c90f3eaccb73602d6d51313 22-Jan-2011 Dianne Hackborn <hackbod@android.com> am 35f4d32d: Merge "frameworks/base: Track owner in appropriate owners list of Uri"

* commit '35f4d32dc2f0c383323e780ecc7e2764704c5d2c':
frameworks/base: Track owner in appropriate owners list of Uri
5503d803ecee63d417128d3849717b59b971fc08 22-Jan-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #3377999: Activities need to be stopped when sleeping" into honeycomb
91c12c27ef64f0573c02a9938a8c280f5a6c664e 22-Jan-2011 Vairavan Srinivasan <vairav@codeaurora.org> frameworks/base: Track owner in appropriate owners list of Uri

The owner isn't kept track it URI's writeOwners when
grantUriPermissionUncheckedLocked is invoked to provide both
read and write access to the URI. Fix is to check for both
read and write permissions and add owner to appropriate lists.

Change-Id: Id23688b96aefeb0a4911ee52ad47124bc5904fa0
om/android/server/am/ActivityManagerService.java
0f0fdda8c4dc0f69478ff162fc6643c65e481d84 22-Jan-2011 Jeff Brown <jeffbrown@google.com> am 2866b229: am 75a0e448: Merge "Optimize call to drawBitmap during screen rotation." into honeycomb

* commit '2866b22971a1aff0cb88cfef080e93a13fb4fddb':
Optimize call to drawBitmap during screen rotation.
e3fbf5968382cc9a874fa561c1ee539d4df7645c 22-Jan-2011 Jeff Brown <jeffbrown@google.com> am ea5e0bb3: am cab11490: Merge "Reduce number of calls to updateInputWindows by 60%." into honeycomb

* commit 'ea5e0bb358990c05f9b07a6aee9047ea398c4f43':
Reduce number of calls to updateInputWindows by 60%.
75a0e44831d08d9cbfec9f150be4e78b2d1aabf5 22-Jan-2011 Jeff Brown <jeffbrown@google.com> Merge "Optimize call to drawBitmap during screen rotation." into honeycomb
cab114906df621d77bf59d9492f89182e34cd3e4 22-Jan-2011 Jeff Brown <jeffbrown@google.com> Merge "Reduce number of calls to updateInputWindows by 60%." into honeycomb
8db9ac4b7d5f97b0d48cbc0dff5c5730641c9844 21-Jan-2011 Jeff Brown <jeffbrown@google.com> Optimize call to drawBitmap during screen rotation.

Using SRC mode reduces drawBitmap time from 50ms to 15ms.

Change-Id: Ibde82f358d92bd330b8c78c9db1ded6a0b4ba135
om/android/server/ScreenRotationAnimation.java
3a22cd90bc5413314295df5688385b5ced7d8167 21-Jan-2011 Jeff Brown <jeffbrown@google.com> Reduce number of calls to updateInputWindows by 60%.

Change-Id: Ida9069dd58be2070f3c9d312aa9d868bd98eb8e2
om/android/server/WindowManagerService.java
4eba96bb314d8ff773ea33d6cb3179f25751ecce 21-Jan-2011 Dianne Hackborn <hackbod@google.com> Fix issue #3377999: Activities need to be stopped when sleeping

This is a band-aid over the existing kludgy stopping mechanism
where the semantics of stop are different in the activity manager
than in the clients.

This change is intended to be as unobtrusive as possible, only
impacting the sleep case. I have a different change that
completely reworks how we stop activities to simply this all
a lot by unifying the semantics between the server and client.
However, it is too late in HC for such an extensive change. Later
I'll revert this one and put in the better solution.

Change-Id: Id77f2db1ec83469cdd888acb8fbc4679daa7766e
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityRecord.java
om/android/server/am/ActivityStack.java
ca615748cf9944d65233bd9a1a9fd5d6ac7befe1 21-Jan-2011 Jason parks <jparks@google.com> am a55e3670: am 0512d080: Merge "Add and enforce the permission for encrypting/decrypting." into honeycomb

* commit 'a55e367027fcd37aae83bf3e61225c45db0cf1cf':
Add and enforce the permission for encrypting/decrypting.
18e9cf0faaa946540fd5eef33e6125b1c5794aa9 21-Jan-2011 Jason parks <jparks@google.com> am bee8a768: am 0f2ef34b: Merge "Update encryption commands." into honeycomb

* commit 'bee8a7686d380a7dc696756699411696d7685551':
Update encryption commands.
0512d080a5ae7eccb154be4302aaf4b5fb8aa5a6 21-Jan-2011 Jason parks <jparks@google.com> Merge "Add and enforce the permission for encrypting/decrypting." into honeycomb
0f2ef34b5a7158ab105edfb0d6c5904ae23e89fa 21-Jan-2011 Jason parks <jparks@google.com> Merge "Update encryption commands." into honeycomb
568d9b61194336a56813d941708976450918945c 21-Jan-2011 Andy Stadler <stadler@google.com> am 174a6fce: am c2ff2ec0: Merge "Read actual device encryption status" into honeycomb

* commit '174a6fce8ab1a08b85e45f636dc2682f6a62e8d1':
Read actual device encryption status
90a09e0546177ff9910583265befb914724c654e 21-Jan-2011 satok <satok@google.com> am 026de9ed: am 6a0d924e: Merge "Show implicitly enabled subtypes in the input method selection dialog" into honeycomb

* commit '026de9ed7f39c46260e7ac79dea2fcc32b151d19':
Show implicitly enabled subtypes in the input method selection dialog
6a32272af55e3dfdfa9e21572c670551ffb551e5 21-Jan-2011 satok <satok@google.com> am d57c1fcf: am 0e5bf505: Merge "Show ime switch icon when there is a hard keyboard" into honeycomb

* commit 'd57c1fcf5a4f8fd9451e4a09aa50ed14c7f94ff2':
Show ime switch icon when there is a hard keyboard
c2ff2ec0d987dd1372183d2a18ea59a0c4d71c2c 21-Jan-2011 Andy Stadler <stadler@google.com> Merge "Read actual device encryption status" into honeycomb
bb4aa0683c8a0a1e617c6d5f03eda33f49b89ed9 19-Jan-2011 satok <satok@google.com> Show implicitly enabled subtypes in the input method selection dialog

bug: 3367646

Change-Id: I9550f17f163950d80113fbcb8c9dd8a7d014cf6a
om/android/server/InputMethodManagerService.java
8888c597c4bc3002e48738b6aea6fd43f69c0f78 21-Jan-2011 Jason parks <jparks@google.com> Add and enforce the permission for encrypting/decrypting.

Change-Id: Ia292d8a5981266c2703743beb79fd786d77b375d
om/android/server/MountService.java
9ed98bcdc9ef3445075fdba1933d0ec2b4bc147e 17-Jan-2011 Jason parks <jparks@google.com> Update encryption commands.

* Changed to inplace encryption.
* Changed decryption to return the proper error code. It will now return success or the number of failed attempts.
* Be lazy and post a message 2 seconds later to call restart. I don't feel like messing with binder interfaces for a proper callback.

Change-Id: Iae2de7057aa66f248fd2df3f29777ad3368442f0
om/android/server/MountService.java
0e5bf5051b02bc382fb7e6c975511af499b31624 21-Jan-2011 satok <satok@google.com> Merge "Show ime switch icon when there is a hard keyboard" into honeycomb
865b97761cc58053f45a8b06b531d60d8e482c3a 20-Jan-2011 satok <satok@google.com> Show ime switch icon when there is a hard keyboard

Change-Id: Ife3a8733b1a1bf43b195ecf4b8c5082b6538d0a0
om/android/server/InputMethodManagerService.java
0fe45dea927dc87c19d6afd4502658b36177aa07 21-Jan-2011 Andy Stadler <stadler@google.com> Read actual device encryption status

Bug: 3346770
Change-Id: Ie70c14b1b4584a5f340a27102145f7860ba9e14b
om/android/server/DevicePolicyManagerService.java
4624d669e413331019bbd8de74e8d1d9797e9b3a 20-Jan-2011 Irfan Sheriff <isheriff@google.com> Merge "Add untether call during softap shutdown"
f41e1af8c092c2f7c18850bf263b32b7811dc074 20-Jan-2011 Ken Wakasa <kwakasa@google.com> am 7fff9d8e: am 586f0513: Refine InputMethodInfo API

* commit '7fff9d8e0489455363eb2d70111b7164adab46ff':
Refine InputMethodInfo API
586f051375d8d7aeece05329921f9f66fc6164cb 20-Jan-2011 Ken Wakasa <kwakasa@google.com> Refine InputMethodInfo API

bug: 3370297
Change-Id: I2a18f3bdbe2fccb22e22cdae0f75aec5c703ad6d
om/android/server/InputMethodManagerService.java
43e747ef59e67734392d2d189e59fb9d11901037 20-Jan-2011 Irfan Sheriff <isheriff@google.com> Add untether call during softap shutdown

Bug: 3355187
Change-Id: Ie4381648883186a216807bcd0d586ecfd00ca15c
om/android/server/WifiService.java
d738d87e130a06cc094a7deb8e61901ae53a9568 20-Jan-2011 Tadashi G. Takaoka <takaoka@google.com> am b1ba4367: am 317b2ea1: Merge "Add android.provider.Settings.EXTRA_INPUT_METHOD_ID" into honeycomb

* commit 'b1ba4367b6ef046ec137345932318265f210a205':
Add android.provider.Settings.EXTRA_INPUT_METHOD_ID
2548020c364c4119d134c84cc7a00ffca2dcbe7b 20-Jan-2011 Tadashi G. Takaoka <takaoka@google.com> Add android.provider.Settings.EXTRA_INPUT_METHOD_ID

Change-Id: Iecb7a9c265cafe96e7eec099341133da8e966f6f
om/android/server/InputMethodManagerService.java
2ee0635d46e4fd32058bbe0705a0273016fe3148 20-Jan-2011 Tadashi G. Takaoka <takaoka@google.com> am 6c51e1fc: am 90fcb2ad: Merge "Rename action to ACTION_INPUT_METHOD_SUBTYPE_SETTINGS" into honeycomb

* commit '6c51e1fc9dd61bf5c269590305b3276f9e38c1ef':
Rename action to ACTION_INPUT_METHOD_SUBTYPE_SETTINGS
90fcb2ad9378ee89f6795942c2b065a32bc83895 20-Jan-2011 Tadashi G. Takaoka <takaoka@google.com> Merge "Rename action to ACTION_INPUT_METHOD_SUBTYPE_SETTINGS" into honeycomb
f49688fa17b70313c0734f00df73bc3308a749e9 20-Jan-2011 Tadashi G. Takaoka <takaoka@google.com> Rename action to ACTION_INPUT_METHOD_SUBTYPE_SETTINGS

Change-Id: I27c318777355991ae4ad72d0b2480e93c8c5044e
om/android/server/InputMethodManagerService.java
3ed8dcfc4273e07dda699ba35b42c5c7c0bd906f 20-Jan-2011 Hung-ying Tyan <tyanh@google.com> am 9e0357b9: am 71196f0c: Merge "Make VpnService synchronous API." into honeycomb

* commit '9e0357b96bd5c84e39c3084625d58b21f9bad74c':
Make VpnService synchronous API.
6b818de29a5c273aad99eb3f5456f88169c911f4 19-Jan-2011 Hung-ying Tyan <tyanh@google.com> Make VpnService synchronous API.

This eases VpnSettings on dealing with multiple-activity-instance problem
(i.e., SettingsActivity and VpnSettingsActivity).

+ Most of the code is moved from the VpnServices package to vpn/java/.
+ VpnManager and VpnServiceBinder are revised to provide synchronous API.
+ Add a new method isIdle() to IVpnService.aidl.

Related bug: 3293236 (need to deal with multiple-activity-instance problem)

Change-Id: I03afa3b3af85d7b4ef800683cd075c356a9266c4
om/android/server/ConnectivityService.java
ee97fb6c33c2028328424619113ccbd9a3eba186 20-Jan-2011 Christopher Tate <ctate@google.com> am 55573d92: am 5ea769dc: Merge "Make the drag input window fullscreen touchable again" into honeycomb

* commit '55573d926a1ce6a0a65f06b22b02d92789c05edf':
Make the drag input window fullscreen touchable again
a159579778ffb1584bc915e2338efa9f0f21f6b8 20-Jan-2011 Christopher Tate <ctate@google.com> Make the drag input window fullscreen touchable again

Having it non-touchable was making it possible to e.g.
touch buttons and launch new activities out from under
an in-flight drag operation.

Bug 3370698

Change-Id: I46fe70a8fe8fbaa5cca48f6bb478ed7ded1f1cc3
om/android/server/WindowManagerService.java
ef3f7bd356a80c396ab597e6b9c20e497349d11d 20-Jan-2011 Christopher Tate <ctate@google.com> am 67265808: am 28f0a53a: Merge "Fail more gracefully when window state changes during drags" into honeycomb

* commit '67265808c10e53f305f59a65911d7bfcd82151a6':
Fail more gracefully when window state changes during drags
28f0a53a882a39bc22bc5892250411cadf6c0d5d 20-Jan-2011 Christopher Tate <ctate@google.com> Merge "Fail more gracefully when window state changes during drags" into honeycomb
f01af7551b3cf8853d3a76412c2745a543063434 20-Jan-2011 Christopher Tate <ctate@google.com> Fail more gracefully when window state changes during drags

In particular, if a new window was created out from under the drag,
the drag-move event dispatch logic would wind up blithly assuming
that it would find a valid touch-dispatchable window under the
finger. When this was untrue, it would NPE, but the NPE was caught
and discarded safely by higher-level guard code.

With this change, we now avoid the NPE entirely and report the
spurious condition as part of the debugging log stream.

(Also add the local-state object to DragEvent.toString()'s output.)

Change-Id: Idfa5f45d049e48415ee59c8b0ffb5b0ed4098ce3
om/android/server/WindowManagerService.java
28d5206519b1c14553a745cc1f4f5df98fa3176a 20-Jan-2011 Brad Fitzpatrick <bradfitz@android.com> am bd80a12c: resolved conflicts for merge of 9240f16d to honeycomb-plus-aosp

* commit 'bd80a12cba480a0dbb2e9073f35c758d8b396b94':
StrictMode: class instance limits (track object "leaks")
9240f16d771549b62b5f10efe9f784d87a0afaa4 19-Jan-2011 Brad Fitzpatrick <bradfitz@android.com> Merge "StrictMode: class instance limits (track object "leaks")" into honeycomb
bfbe5771106a07f9c8e8685e402b1003db40526f 19-Jan-2011 Brad Fitzpatrick <bradfitz@android.com> StrictMode: class instance limits (track object "leaks")

Change-Id: I2db5a19060c2013078feb88a91caf655469b2f98
om/android/server/am/ActivityManagerService.java
22da4dd48ec8c143d90126a0760a06774c4923a9 19-Jan-2011 Christopher Tate <ctate@google.com> am 714066d8: am 5383d077: Merge "Fix a couple of drag & drop crashes" into honeycomb

* commit '714066d873b70098c09c2c094d374781b12d65a2':
Fix a couple of drag & drop crashes
1fc014fd0051a48083c6d469c2a4f22da1aa15e4 19-Jan-2011 Christopher Tate <ctate@google.com> Fix a couple of drag & drop crashes

1. ViewGroups being removed from the layout during a drag would wind up
crashing the app with an NPE at drag-ended time, due to blind dereference
of now-cleared object pointers.

2. Passing a 'null' ClipData to startDrag() would crash the system
process with an NPE. Should this even be valid? I'm inclined to say
yes, though it means that apps will need to guard against it.

Fixes bug 3369542

Change-Id: I168fc1284d6fd4403999946609725414cf254df0
om/android/server/WindowManagerService.java
b57da00b81ae7b51c4a4551cb5fde20db7863ae1 19-Jan-2011 Robert Greenwalt <rgreenwalt@google.com> Merge "Fix Tethering's handling of a system restart."
875777d0b8fc7d4f63f2950e9eca0a432519029e 19-Jan-2011 Winson Chung <winsonc@google.com> am adce48cc: am 7f447de2: Merge "Disabling queued unbinding of RemoteViewsServices until we fix flashing in widgets." into honeycomb

* commit 'adce48ccba909e5d9c5595aef97460afd9d62834':
Disabling queued unbinding of RemoteViewsServices until we fix flashing in widgets.
32cf193412bb1261b0b8d9ab69df68e635a1e77d 19-Jan-2011 Winson Chung <winsonc@google.com> Disabling queued unbinding of RemoteViewsServices until we fix flashing in widgets.

Change-Id: Iee53d4930dc4007df4298a282cdd5101876215a1
om/android/server/AppWidgetService.java
a726143937e6600b4a91be674cba60067f69f858 19-Jan-2011 Winson Chung <winsonc@google.com> am caedec76: am aac19783: Merge "Refactoring app widgets to address security/performance issues." into honeycomb

* commit 'caedec768bf22acc38e526b9cec655ea8f9eede0':
Refactoring app widgets to address security/performance issues.
81f39eb6e76d0be1dd341af835e8002a0f80524e 12-Jan-2011 Winson Chung <winsonc@google.com> Refactoring app widgets to address security/performance issues.

- Moving the service binding to AppWidgetService to prevent arbitrary apps from binding to widget services
- Requiring RemoteViewsServices to require android.permission.BIND_REMOTEVIEWS permission

Change-Id: Id135bafba998299eb278067712b8a5d8487cfd04
om/android/server/AppWidgetService.java
375d008522a977ca7752ec636dc493b8ba1e0c43 19-Jan-2011 Dianne Hackborn <hackbod@google.com> am a4605b72: am e6413270: Merge "Just a little \'ol activity manager permission change." into honeycomb

* commit 'a4605b72c278be829b28bfa218cdba461c1667a7':
Just a little 'ol activity manager permission change.
7cca7e0b28679cf09ce6b56687c3a9679a6c7296 19-Jan-2011 Jeff Brown <jeffbrown@google.com> am 761a6b7f: am f4368c95: Merge "Filter virtual keys after touches." into honeycomb

* commit '761a6b7fdbe2bcc6db4306af9705dcb22b036068':
Filter virtual keys after touches.
3f56e4a53b4bc8ad896a11f637a3461fde643aa4 19-Jan-2011 Kenny Root <kroot@google.com> am 67f23166: am 11ebdd6a: Merge "Erase OBB files when removing packages" into honeycomb

* commit '67f23166d00d0b965d5b913bcc0cfb442c0e9506':
Erase OBB files when removing packages
6b2b053b5adf2d4f8f0defde58310a51dfb7e1e0 19-Jan-2011 Brad Fitzpatrick <bradfitz@android.com> am 597fa828: Merge "Watchdog can get deadlocked on activity manager" into gingerbread

* commit '597fa828fa2b3cba053f0afeeac877b1ee2d24b7':
Watchdog can get deadlocked on activity manager
6c2c5fc9930d14d502a22326dee9bf4475dbd649 19-Jan-2011 Dianne Hackborn <hackbod@google.com> Just a little 'ol activity manager permission change.

We no longer enforce permissions for applications that are accessing
their own components. This allows an application to require a permission
on one of its components that it does not itself have. This is useful
for example with the new advanced widgets, which require a system-only
permission on the implementing service to ensure the app's data stays
private but it is nice to allow the application to still touch its own
widget service.

Change-Id: I5d61930a083816919545870039ad191314ed48c6
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityStack.java
547e4e757b539e19694ff6e35b3d4a856f965e5b 15-Jan-2011 Robert Greenwalt <rgreenwalt@google.com> Fix Tethering's handling of a system restart.

A crash of the system server leaves us out of sync with the kernel network setup.
Try to recover.

bug:3241213
Change-Id: I70c0daa0d54ecee6e203bcba2460e8d069305a89
om/android/server/connectivity/Tethering.java
0971a1367f7a46fc4d7d7275dff70ef029d2dae9 14-Jan-2011 Brad Fitzpatrick <bradfitz@android.com> Watchdog can get deadlocked on activity manager

Bug: 3351719
Change-Id: Idf3907709340062849a09dd094137e86256ed739
om/android/server/Watchdog.java
f4368c959fa9436d75feb2543cb65da0d46521e5 19-Jan-2011 Jeff Brown <jeffbrown@google.com> Merge "Filter virtual keys after touches." into honeycomb
fe50892af3b365806a767298dfd8e86447682581 19-Jan-2011 Jeff Brown <jeffbrown@google.com> Filter virtual keys after touches.

Adds a new virtualKeyQuietTimeMillis configuration resource that sets
the duration for which virtual keys will be dropped after recent touches
on screen. The default value is 0; it is intended to be overridden
per device using a resource overlay.

This change is designed to help in two cases:

1. Swipes from touchscreen into virtual key area.
2. Accidental taps in virtual key area while using on-screen keyboard.

Bug: 3089163
Change-Id: Ib912d4f8a4df9966a39cd537d3ec7c24afab7225
om/android/server/InputManager.java
ef76b8306fd6147d9dd7e3b7dce10354eff8033c 18-Jan-2011 Irfan Sheriff <isheriff@google.com> am 4170b463: Merge "Do not add unsolicited events to queue" into gingerbread

* commit '4170b46329ed91e81cf22dba82e2dadc326b3e3d':
Do not add unsolicited events to queue
4170b46329ed91e81cf22dba82e2dadc326b3e3d 18-Jan-2011 Irfan Sheriff <isheriff@google.com> Merge "Do not add unsolicited events to queue" into gingerbread
b26c516c03beffaf60460d3589b3807c0799c344 18-Jan-2011 Jeff Brown <jeffbrown@google.com> am 41395459: Merge "Filter virtual keys after touches. (DO NOT MERGE)" into gingerbread

* commit '41395459e676cf9ab4059e08446656f145662c2d':
Filter virtual keys after touches. (DO NOT MERGE)
41395459e676cf9ab4059e08446656f145662c2d 18-Jan-2011 Jeff Brown <jeffbrown@google.com> Merge "Filter virtual keys after touches. (DO NOT MERGE)" into gingerbread
300c13a48132f03d48462b9cd3ec41331a71a411 18-Jan-2011 Kenny Root <kroot@google.com> Erase OBB files when removing packages

OBB files on USB storage or SD card should be removed when an
application is removed.

Bug: 3356804
Change-Id: Ifbbf043368b125fcd47fd74e5cd2e5167a8deb00
om/android/server/PackageManagerService.java
2e1469a13d6cca6c9cb3a48151c15f0ca73fa003 18-Jan-2011 Dianne Hackborn <hackbod@google.com> am f6759102: am 3aa959b9: Merge "Fix issue #3362666 Activities launched from ongoing notifications don\'t animate" into honeycomb

* commit 'f67591025debf040695e9ed0d0edeff5ef0c5db2':
Fix issue #3362666 Activities launched from ongoing notifications don't animate
760e91cd8552db8c63913df244c66b9d5825c8bd 18-Jan-2011 David Turner <digit@google.com> am adec2de2: am 6195eb13: Merge "Prevent Dropbox from crashing system server pre-boot." into honeycomb

* commit 'adec2de2e35f3dab186d1abbbeb7497921a35c2c':
Prevent Dropbox from crashing system server pre-boot.
3aa959b9ce7ac4ac241033b3eea9f2c0ce34d554 18-Jan-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #3362666 Activities launched from ongoing notifications don't animate" into honeycomb
08121bca5bb875707974853b57820804a9e7cd3a 18-Jan-2011 Dianne Hackborn <hackbod@google.com> Fix issue #3362666 Activities launched from ongoing notifications don't animate

The phone-oriented code for turning off animations when the screen is entirely
covered by the status bar was not appropriate for the tablet.

Change-Id: Ica3e0db989f16b9187eacd6ecf4ac3d17661dd6d
om/android/server/WindowManagerService.java
34165c6967833dfe6ff54a9097eb4afa1054184d 18-Jan-2011 Brad Fitzpatrick <bradfitz@android.com> Prevent Dropbox from crashing system server pre-boot.

Bug: 3362748
Change-Id: I3f94f22798eb4a6ef14dd9a418fd3c054637e16b
om/android/server/DropBoxManagerService.java
c93e7f4d35886d424562bba2c8c71e2a1783fadf 18-Jan-2011 satok <satok@google.com> am a639ea5c: am ca0f49ed: Merge "Fix the algorithm to get current input method subtype considering explicitly and implicitly enabled subtypes." into honeycomb

* commit 'a639ea5c92dd9c63270d7d81427937fc3990954d':
Fix the algorithm to get current input method subtype considering explicitly and implicitly enabled subtypes.
3c3a7f55bb818ccd14a7f29b94caf22e6658fabf 18-Jan-2011 Dianne Hackborn <hackbod@google.com> am 2d6dae2f: am 80ad0b0a: Merge "Fix a bunch of API review bugs." into honeycomb

* commit '2d6dae2f4d2ce98adcb6fe83bcaa91a506805859':
Fix a bunch of API review bugs.
ca0f49ed6e79423b5fa946935dbefa7269dce02a 18-Jan-2011 satok <satok@google.com> Merge "Fix the algorithm to get current input method subtype considering explicitly and implicitly enabled subtypes." into honeycomb
d871343dbbde38f25ac0b41155e2f9d2dd7aadca 17-Jan-2011 satok <satok@google.com> Fix the algorithm to get current input method subtype considering explicitly and implicitly enabled subtypes.

Change-Id: I2e6d9ae36a1335f67b6db7659244cdfb2bfe3068
om/android/server/InputMethodManagerService.java
327fbd2c8fa294b919475feb4c74a74ee1981e02 17-Jan-2011 Dianne Hackborn <hackbod@google.com> Fix a bunch of API review bugs.

3362464 API REVIEW: android.content potpourri
3362445 API REVIEW: Fragment transaction stuff
3362428 API REVIEW: Fragment stuff
3362418 API REVIEW: Loader stuff
3362414 API REVIEW: android.content.pm.ActivityInfo

Change-Id: I6475421a4735759b458acb67df4380cc6234f147
om/android/server/ClipboardService.java
ff017477f8bf428545b0fb177155cb2d2ed21561 17-Jan-2011 Irfan Sheriff <isheriff@google.com> am fc6ef518: am 326feb89: Merge "Pick an upstream interface with valid IP config" into honeycomb

* commit 'fc6ef518e0696ca45608ca07803aa50081f9f72f':
Pick an upstream interface with valid IP config
326feb8965e0bbd5b22479285f6d88cc840b5eed 17-Jan-2011 Irfan Sheriff <isheriff@google.com> Merge "Pick an upstream interface with valid IP config" into honeycomb
29552095e19e3faf2006ac1051da41d9bd212d6f 17-Jan-2011 Irfan Sheriff <isheriff@google.com> Pick an upstream interface with valid IP config

As a work around for the issue of picking
the wrong interface, add a check for selecting
an upstream interface that has a valid IP configuration

Bug: 3362306
Change-Id: I01084517cff756c97660b2cfbfa8e9bf26673148
om/android/server/connectivity/Tethering.java
a881c44e774a04174ed966fb1abd33b0fba845ae 17-Jan-2011 David 'Digit' Turner <digit@google.com> am 0e8280cc: am fed70229: Merge "UsbService: Remove stack-trace message during boot." into honeycomb

* commit '0e8280cc6e5d553066d5f09892c12c2a8a846791':
UsbService: Remove stack-trace message during boot.
49db8535132ce49e69ef84d490854425300b4605 17-Jan-2011 David 'Digit' Turner <digit@google.com> UsbService: Remove stack-trace message during boot.

This removes a stack trace message during the boot under emulation.

The observers tried to access a null reference when no USB configuration
is supported by the emulated device. So do not start them in this case.

+ Change a Slog.w into a Slog.i since this is an acceptable condition.

Change-Id: I126b7f05c9648e39a060eb0974cc6f4ac7533791
om/android/server/UsbService.java
9b4320f9db98556479fb61d0910d852f0c6c1878 17-Jan-2011 Kenny Root <kroot@google.com> am a33dd09b: am d6c54d97: Merge "Revert "Add the {get,set}PackageObbPaths calls to API"" into honeycomb

* commit 'a33dd09b5cc62b50afc3a15cd8b67b5344756f1e':
Revert "Add the {get,set}PackageObbPaths calls to API"
d6c54d97867edd566700c535f3edf57dd4396350 17-Jan-2011 Kenny Root <kroot@google.com> Merge "Revert "Add the {get,set}PackageObbPaths calls to API"" into honeycomb
a1cbb94dbc9a82d4eb3a47242fe161af21803858 17-Jan-2011 Kenny Root <kroot@google.com> Revert "Add the {get,set}PackageObbPaths calls to API"

This reverts commit 5d40fe9c6846ba765072e50ed1254293cb9195e4.

Change-Id: Ie41010c92fb860b19a12bcf63f6fe95ffa68da81
om/android/server/PackageManagerService.java
c2e16f0cbdb5a78af0839da598ac3970a760d4ba 17-Jan-2011 Andy Stadler <stadler@google.com> am d9bc2b5e: am 2c12c708: Merge "Add internal plumbing to DPM for encryption" into honeycomb

* commit 'd9bc2b5e9ef462c9fa4ac821e9d8d27ecff1dfaf':
Add internal plumbing to DPM for encryption
22dbfda976aab9ae897eed0625e2e64ead32bbc4 17-Jan-2011 Andy Stadler <stadler@google.com> Add internal plumbing to DPM for encryption

* Add code to persist per-admin setting
* Add hooks for OS-level tie-in (is supported, get / set status)
* Add 3rd API call to get OS status (irrespective of admin settings)
* Remove "REQUESTED" status, no longer relevant with 3rd API
* Fixed bug that impacted global proxy settings
* Update api/11.xml to match current.xml

Bug: 3346770
Change-Id: I56bdf9a7894f6ca4842402c7b82ddb3caf4b37b9
om/android/server/DevicePolicyManagerService.java
e26aa3f78a33af5720e141e98a1ab0c77ef0456d 17-Jan-2011 Kenny Root <kroot@google.com> am 34d2b41e: Revert "Add the {get,set}PackageObbPaths calls to API"

* commit '34d2b41e48281d1df2c844e004740f008e699093':
Revert "Add the {get,set}PackageObbPaths calls to API"
c05dc09d273abe36c222a2df6e2efe12c2e25efb 17-Jan-2011 Kenny Root <kroot@google.com> am 898954d7: am d37d6616: Merge "Add OBB size to PackageStats" into honeycomb

* commit '898954d7469260c339eb776d0a3370b7dbcee720':
Add OBB size to PackageStats
34d2b41e48281d1df2c844e004740f008e699093 17-Jan-2011 Kenny Root <kroot@google.com> Revert "Add the {get,set}PackageObbPaths calls to API"

This reverts commit 6c4d904851772313930f800ac7c323cf90c709bb.

Going with a different tactic that doesn't dump stuff on
PackageManagerService.

Bug: 3214719
Change-Id: I0bbeccf3c21d264deda4256eb53713d2c98284f4
om/android/server/PackageManagerService.java
bcd6c96e753d2efc76f918c403cecbfdbd4f037a 17-Jan-2011 Kenny Root <kroot@google.com> Add OBB size to PackageStats

Bug: 3356814
Change-Id: I4f871fb9fd0cb2f3177cc756631f95d928862571
om/android/server/PackageManagerService.java
a8ed84c6bcc603e283fcf87d6d70c0c95e4edb6e 17-Jan-2011 satok <satok@google.com> am d039293c: am 5a1473ba: Merge "Implicitly/Explicitly subtypes bug." into honeycomb

* commit 'd039293c172a6d2135c737af39d919ae2c42c919':
Implicitly/Explicitly subtypes bug.
f6cafb63753a26440cb3ad2e5124370aef650015 17-Jan-2011 satok <satok@google.com> Implicitly/Explicitly subtypes bug.

Change-Id: I6ccc22d4272ee92c0d8ba3f3c724d8f838d51310
om/android/server/InputMethodManagerService.java
924e8ae4c4d06cbf714bb751c03f57389e276739 17-Jan-2011 David 'Digit' Turner <digit@google.com> am 5356487f: am 3612f087: Merge "SystemServer: Do not register null BlueTooth service in the emulator" into honeycomb

* commit '5356487f8bf732d7ff4cd89692cf5937b54c1721':
SystemServer: Do not register null BlueTooth service in the emulator
c886ff38c73983d028feae7cca0ee90915ebe67b 17-Jan-2011 Jeff Brown <jeffbrown@google.com> am fed9d654: am 5cdf0752: Merge "Support non-rectangular input regions." into honeycomb

* commit 'fed9d654e9f769a2d81682121faff01fee11555f':
Support non-rectangular input regions.
a9d5188cc61969188311d223d3273e00d01dbb12 17-Jan-2011 Kenny Root <kroot@google.com> am d259468f: am fc28f412: Merge "Put externalSize measurements in PackageStats" into honeycomb

* commit 'd259468fe92b9714b45a134e781ce09681e70217':
Put externalSize measurements in PackageStats
3e1dc1c48248cb65842dc44fa23090c0fa3cb190 17-Jan-2011 Irfan Sheriff <isheriff@google.com> am a81851f0: am b2c1a5c3: Merge "Fix WPS to provides immediate feedback" into honeycomb

* commit 'a81851f0743d5c0bf620c72a18b7fdfc42bb7f28':
Fix WPS to provides immediate feedback
3b403694be42836b50adb061448d6a27697b12ac 17-Jan-2011 Dianne Hackborn <hackbod@google.com> am 64e30643: am c237bb27: Merge "Add manifest API to request a large heap." into honeycomb

* commit '64e306430570fcfb35a1b14e1b333ad114b23829':
Add manifest API to request a large heap.
3612f0870c4252a60b93332eadde780dc122a05b 17-Jan-2011 David 'Digit' Turner <digit@google.com> Merge "SystemServer: Do not register null BlueTooth service in the emulator" into honeycomb
5cdf07524132722e0db69db1ca8dcaf3f0073265 17-Jan-2011 Jeff Brown <jeffbrown@google.com> Merge "Support non-rectangular input regions." into honeycomb
fbf097732137a32930d151f7ba6816a5b870c32a 16-Jan-2011 Jeff Brown <jeffbrown@google.com> Support non-rectangular input regions.

This enables the system bar to carve out a region through which
events will be sent to the IME behind it.

Bug: 3238092
Change-Id: I69b855a8d9b5b3ee525266c0861826e53e5b5028
om/android/server/InputWindow.java
om/android/server/WindowManagerService.java
366949c2d934435ff9ef8082408ca36ff14a2241 15-Jan-2011 Kenny Root <kroot@google.com> Put externalSize measurements in PackageStats

When measuring a package's usage, put the external size in the
PackageStats as well. This will allow programs using a lot of space on
the external card to be held accountable.

Bug: 3308791
Change-Id: If2df07bdbf6ffb31577074fad8f4a87ca4e89086
om/android/server/PackageManagerService.java
e2a5e86c9f14debc8412741b68672f9432cae5b2 17-Jan-2011 David 'Digit' Turner <digit@google.com> SystemServer: Do not register null BlueTooth service in the emulator

Because registering a null service generates an exception. See bug 3356000

Change-Id: Id7b4af815942e498d750c1b7a412d5ee26b61ad4
om/android/server/SystemServer.java
1cd94ef9570a1534e32b27d5b174dc690c9be6b9 16-Jan-2011 Irfan Sheriff <isheriff@google.com> Do not add unsolicited events to queue

Adding unsolicited events to response queue
results in doCommand() returning the wrong
result.

Pulling this change from master.

Bug: 3258529
Change-Id: I2a4b0bd8bb30b31682d7d61ee94a0d246bf10de2
om/android/server/NativeDaemonConnector.java
b2c1a5c38834fd6fef229001d0571b7e833236ed 16-Jan-2011 Irfan Sheriff <isheriff@google.com> Merge "Fix WPS to provides immediate feedback" into honeycomb
3b81bc18bb661c02ad8074c39dab16644c1e65d0 15-Jan-2011 Dianne Hackborn <hackbod@google.com> Add manifest API to request a large heap.

You can now do android:largeHeap="true" on an application.

Doesn't yet do anything, waiting for Dalvik API.

Also tweak package parsing so that the SDK API level is set in the
configuration, allowing manifest resource value selection based on
that.

Change-Id: I6e035f9702a97b055416743b88f83a22ba4a9584
om/android/server/PackageManagerService.java
db10a638fd46d91dbf0be48b4df02e4c71d02dab 16-Jan-2011 Jeff Brown <jeffbrown@google.com> am 12116af5: am c8276990: Merge "Add volume down as a safe mode key for Stingray." into honeycomb

* commit '12116af5c422608d609ec884939ee8ceba3279b9':
Add volume down as a safe mode key for Stingray.
c8276990df3ac55c8cbda12919abe247132c96ea 15-Jan-2011 Jeff Brown <jeffbrown@google.com> Merge "Add volume down as a safe mode key for Stingray." into honeycomb
37d997f7668cea008033e8bad8a4581b25717829 15-Jan-2011 satok <satok@google.com> am fb77a336: am 604363dc: Merge "switchToLastInputMethod returns a implicitly enabled subtype in the history" into honeycomb

* commit 'fb77a336af46ceb5a718c5ee7fc34da4b4a06f2a':
switchToLastInputMethod returns a implicitly enabled subtype in the history
df31ae6a3011d47421a6ac10021f9649dc34a156 14-Jan-2011 satok <satok@google.com> switchToLastInputMethod returns a implicitly enabled subtype in the history

Bug: 3353363

Change-Id: Id5f8a62017880330401ebd3e77d943eb7817e555
om/android/server/InputMethodManagerService.java
53183aeb352f96d14d22a3addcef45f33f0a3820 14-Jan-2011 Jeff Brown <jeffbrown@google.com> am 9781071a: am e76820bf: Merge "Use holo style mouse pointer." into honeycomb

* commit '9781071ae704c9370901e248f1f5bc79fcefc3c7':
Use holo style mouse pointer.
8470165e6e9d2e9fa82444b309ae11149117872c 14-Jan-2011 Kenny Root <kroot@google.com> am 014ef618: am bd392c53: Check for null in PackageSetting constructor

* commit '014ef61842dd877b60cb16d433ecff9165944fd8':
Check for null in PackageSetting constructor
b220d62bf3032c5c8b2a36a00cd6e6d6b63c7db5 14-Jan-2011 Kenny Root <kroot@google.com> am ea6bf362: Deep clone settings for system package update DO NOT MERGE

* commit 'ea6bf3628140283df24f2652b686d083b0d31ed9':
Deep clone settings for system package update DO NOT MERGE
909733cdebf9c80f48953a1f7d99c44e8884ff8a 14-Jan-2011 Jeff Brown <jeffbrown@google.com> Use holo style mouse pointer.

Change-Id: I17df431075c8ffec3ade151c6c85ec34ad8397dd
om/android/server/InputManager.java
bd392c53970f4c24908668a6b28248943b31b072 14-Jan-2011 Kenny Root <kroot@google.com> Check for null in PackageSetting constructor

Should bring honeycomb into parity with gingerbread changes.

Change-Id: Ieb48a0e420d4c2981130f268aba9b24f4fe25b84
om/android/server/PackageManagerService.java
39f35f0a6225567ba044d2bc93774738b1c0e8ee 14-Jan-2011 Brad Fitzpatrick <bradfitz@android.com> am 9dde087d: am 1e8d23f6: Merge "Watchdog can get deadlocked on activity manager" into honeycomb

* commit '9dde087dcb94341bd2b66e186534dc44e660a2ce':
Watchdog can get deadlocked on activity manager
1e8d23f6b03aeed45cdcf5c03121741ee9684396 14-Jan-2011 Brad Fitzpatrick <bradfitz@android.com> Merge "Watchdog can get deadlocked on activity manager" into honeycomb
27b775a62df01e214b139f44bb9b0b306097d9e9 14-Jan-2011 Kenny Root <kroot@google.com> am d9fa11b4: am 312206b9: Merge "Add the {get,set}PackageObbPaths calls to API" into honeycomb

* commit 'd9fa11b446da5dbc92776518c20bab1f04e55537':
Add the {get,set}PackageObbPaths calls to API
312206b98749bbe395416634e6e82bd242b1d5f2 14-Jan-2011 Kenny Root <kroot@google.com> Merge "Add the {get,set}PackageObbPaths calls to API" into honeycomb
5d40fe9c6846ba765072e50ed1254293cb9195e4 14-Jan-2011 Kenny Root <kroot@google.com> Add the {get,set}PackageObbPaths calls to API

Add getPackageObbPaths() and setPackageObbPaths() to the public API.

Bug: 3214719
Change-Id: I8627b5f674a795d5780eb5c08911419110670a41
om/android/server/PackageManagerService.java
637ccd49ed3fe5d79afc25225c3ceada8ebea6ce 14-Jan-2011 satok <satok@google.com> am b3b1509d: am 64fc11c3: Merge "Add input methods settings panel" into honeycomb

* commit 'b3b1509de73e61296d4fae5ee7e065915ffd4109':
Add input methods settings panel
82beadfa067b1e286fa604f8d7960d769411c954 27-Dec-2010 satok <satok@google.com> Add input methods settings panel

Bug: 3141466
Bug: 3301559
Bug: 3284424

Moved from old master I4d9abeea

Change-Id: I62fa64cc095e1b9ac34f21e7d4d2e0bb8a3e68fc
om/android/server/InputMethodManagerService.java
9765c72eeaba9ed0f704dd992e7a954f38f20abd 14-Jan-2011 Brad Fitzpatrick <bradfitz@android.com> Watchdog can get deadlocked on activity manager

Bug: 3351719
Change-Id: Ie5bb39e5ff92f41c14ae59240173fab9c2491a91
om/android/server/Watchdog.java
ea6bf3628140283df24f2652b686d083b0d31ed9 13-Jan-2011 Kenny Root <kroot@google.com> Deep clone settings for system package update DO NOT MERGE

The copyFrom() method was not written to create a clone of the
PackageSetting, so just create a new constructor that actually does a
clone.

Bug: 3349588
Change-Id: I24bdce6c3559e097ecb64b61585ef3b12bca491f
om/android/server/PackageManagerService.java
e4c56c9655bf936454e2f3ee434aacb403876c7d 13-Jan-2011 Irfan Sheriff <isheriff@google.com> Fix WPS to provides immediate feedback

If WPS is already active, we drop user's request
and convey an in progress message

If WPS fails to start, a failure indication is conveyed
to the user

Bug: 3316078
Change-Id: I238c55973cb29cf5c1be66197ffcb4978316cb89
om/android/server/WifiService.java
aefc622d69c7fe5ca80854150585bb97aa8fad6f 14-Jan-2011 satok <satok@google.com> am a4bb5c1e: am 15572ff6: Merge "Save input method subtype even if the current IME is not running." into honeycomb

* commit 'a4bb5c1e29bc479ff571d22d89f47503c11b5f8b':
Save input method subtype even if the current IME is not running.
15572ff6e57a5e60d57f4e16c1e196d9203559d9 14-Jan-2011 satok <satok@google.com> Merge "Save input method subtype even if the current IME is not running." into honeycomb
ca83021e3555e8b2bd07ded7885dc44053cd1a25 13-Jan-2011 satok <satok@google.com> Save input method subtype even if the current IME is not running.

Bug: 3325103
Change-Id: I6dfd19a0d494526cdb4cfb4230a5376ce94ca94a
om/android/server/InputMethodManagerService.java
b09abc1dd271d0eb4ba4050d8bf9670802a7d0fe 14-Jan-2011 Jeff Brown <jeffbrown@google.com> Add volume down as a safe mode key for Stingray.

Fixed a race condition during startup. We need to wait for the input
devices to actually be ready before trying to detect safe mode.

Fixed a problem during safe mode activation where we would try to add
the overlay window but the display was not initialized. Now we do it
after the system is ready.

Bug: 3134825
Change-Id: I4c043c142ae6bf0d865c79d266d36154eaf00709
om/android/server/InputManager.java
om/android/server/SystemServer.java
om/android/server/WindowManagerService.java
om/android/server/am/ActivityManagerService.java
626057038262c17ec8975ff3129af77e0bbb416a 14-Jan-2011 Dianne Hackborn <hackbod@google.com> am 002fa80d: am 84543705: Merge "Fix issue #3330037: Unnecessary orientations appear..." into honeycomb

* commit '002fa80d1ab0a85c40d0e1a9b1abaff282c028a1':
Fix issue #3330037: Unnecessary orientations appear...
84543705138ed67494b9ecd64fadf4ab0bf46a0e 14-Jan-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #3330037: Unnecessary orientations appear..." into honeycomb
94cb2ebfc3e789384a4c32b24ac1522cdcb3ae79 14-Jan-2011 Dianne Hackborn <hackbod@google.com> Fix issue #3330037: Unnecessary orientations appear...

...when the device's physical orientation is portrait.

We now hold off on computing app token orientation while preparing
to open or close app tokens.

Also clean up a few other little issues.

Change-Id: Iae125a975c7706fb4d068c872fd172e69854ff15
om/android/server/ScreenRotationAnimation.java
om/android/server/WindowManagerService.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityRecord.java
om/android/server/am/ActivityStack.java
e74330f3242fc67bf6b7bb9827a6ecfe149b20aa 14-Jan-2011 Jeff Brown <jeffbrown@google.com> am 4f7a2d45: am 370f01bd: Merge "Fix NPE in interceptKeyBeforeDispatching." into honeycomb

* commit '4f7a2d45f47c72a20888719d711f734ee5a90546':
Fix NPE in interceptKeyBeforeDispatching.
00ae87d4fd853dd3be9d8820715a98bd72887176 14-Jan-2011 Jeff Brown <jeffbrown@google.com> Fix NPE in interceptKeyBeforeDispatching.

Bug: 3349786
Change-Id: Ic2f969ff8a654fdcfeca06199acca531ae5596d3
om/android/server/WindowManagerService.java
2ab7084f31db2d4d5a4f625371fbef363b748360 14-Jan-2011 Kenny Root <kroot@google.com> am ce2fb189: am 402438bb: Merge "Deep clone settings for system package update" into honeycomb

* commit 'ce2fb1894210aa851946b4586cadffce68125a33':
Deep clone settings for system package update
402438bb40795a3608509f40bcff6245698185ad 14-Jan-2011 Kenny Root <kroot@google.com> Merge "Deep clone settings for system package update" into honeycomb
291e78cc9cb4641a69451b4a6c6177bcff538126 13-Jan-2011 Kenny Root <kroot@google.com> Deep clone settings for system package update

The copyFrom() method was not written to create a clone of the
PackageSetting, so just create a new constructor that actually does a
clone.

Bug: 3349588
Change-Id: I61864869154340420f005cd5120cad751de30ee8
om/android/server/PackageManagerService.java
f8b9d42f74934e70726e557e54b834dc642bca0d 14-Jan-2011 Dianne Hackborn <hackbod@google.com> am b054b4c8: am 8eca7a1e: Merge "Fix issue #3153930: orphan window left on screen" into honeycomb

* commit 'b054b4c8359992c13cc73d70914bc2b5bdb724de':
Fix issue #3153930: orphan window left on screen
8eca7a1e11d905e1d89d4c45adfe210536b5f521 14-Jan-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #3153930: orphan window left on screen" into honeycomb
8c39fc1484afe2f1e374a40516c75eacce411b5a 13-Jan-2011 Christopher Tate <ctate@google.com> am bab84e85: am 6458202a: Merge "Suppress orientation changes during drag operations" into honeycomb

* commit 'bab84e85860234bf491edd2e64fdf42eb3d57a0a':
Suppress orientation changes during drag operations
f99f9c5f92dbcdf5f6e9c93847a5dae4c35a817e 13-Jan-2011 Dianne Hackborn <hackbod@google.com> Fix issue #3153930: orphan window left on screen

The problem is that if a window containing children is removed
before the children are, the children may be lost. This change
(amongst the huge amount of new debugging code) now ensures at
this point that all children windows are removed when the parent
is.

Note that this results in a bunch of error messages now as the
client app tries to continue to do things with that child window.
This is correct, it shouldn't be doing that, and needs to be
fixed to stop it. But at least it now can't cause the window
manager to leak surfaces.

Change-Id: I7b80dd89ff9de7cb5af1dc759cfa4b31ac29cddc
om/android/server/WindowManagerService.java
6458202abe0c9df932f44223d05761673ba6e9fa 13-Jan-2011 Christopher Tate <ctate@google.com> Merge "Suppress orientation changes during drag operations" into honeycomb
242d8a78f886e526c5e7e385fc2d528bb09036b3 13-Jan-2011 Fabrice Di Meglio <fdimeglio@google.com> am aa45d43f: am 27ac243e: Merge "Print currentDestinationString() for each backup transport" into honeycomb

* commit 'aa45d43fcb16684b93e0fad3248ce90ac130f120':
Print currentDestinationString() for each backup transport
27ac243e2dc4688b6e761edc3ee85eb7a3bf1f21 13-Jan-2011 Fabrice Di Meglio <fdimeglio@google.com> Merge "Print currentDestinationString() for each backup transport" into honeycomb
8aac3ee086638f0b657f37665d9cc3217a950381 13-Jan-2011 Fabrice Di Meglio <fdimeglio@google.com> Print currentDestinationString() for each backup transport

when doing a "adb shell dumpsys backup"

Change-Id: I9a7d080ad50b715f693f3e16cae3d6e5b1189d47
om/android/server/BackupManagerService.java
8c3dc00a7d34776f1abff6dabd4a3d9f377952a0 13-Jan-2011 Jason parks <jparks@google.com> am 4a534fa8: am a3cdaa53: Revert "Remove the APIs for the old encryption scheme."

* commit '4a534fa899e0101e26e5b670383aa357c10483b8':
Revert "Remove the APIs for the old encryption scheme."
a3cdaa5337fa573c4c61770195d6232c2e587090 13-Jan-2011 Jason parks <jparks@google.com> Revert "Remove the APIs for the old encryption scheme."

This reverts commit 1125d780a8b61703b8eb28c5c77dac5f3f0022dd.
om/android/server/BackupManagerService.java
om/android/server/Installer.java
om/android/server/PackageManagerService.java
255362b604cb176ea11d69e074154db8da01429c 13-Jan-2011 Robert Greenwalt <rgreenwalt@google.com> am 4b43f944: am 495056ab: Merge "Turn off DUN connection after tethering." into honeycomb

* commit '4b43f94499b6d0c4a34961d48b97d5e48a039f65':
Turn off DUN connection after tethering.
495056ab6709bbf77879a4b556aa1d17446bfe48 13-Jan-2011 Robert Greenwalt <rgreenwalt@google.com> Merge "Turn off DUN connection after tethering." into honeycomb
02f9acbdb4df8758d0474a1a968f12bd18ed6f92 13-Jan-2011 Jason parks <jparks@google.com> am da6f7dbf: am ca6777b2: Merge "Remove the APIs for the old encryption scheme." into honeycomb

* commit 'da6f7dbf9f8bf90c84147dbc57b885b3ece03e81':
Remove the APIs for the old encryption scheme.
21f62b9e461416ae61c8471f7199f104f8fe33de 13-Jan-2011 Jason parks <jparks@google.com> Merge "Add a method enable encryption." into honeycomb
ca6777b23bbe9283380efb2ba7e6d0a79d8669db 13-Jan-2011 Jason parks <jparks@google.com> Merge "Remove the APIs for the old encryption scheme." into honeycomb
49167d749f6b6a55121f196cb2c243c5823d750c 13-Jan-2011 Wink Saville <wink@google.com> am a8aa5fb4: am 5bf6cc01: Merge "Initialize mOtaspMode to OTASP_UNKNOWN." into honeycomb

* commit 'a8aa5fb4ad3b784034cd4972adf127f5e8f86b13':
Initialize mOtaspMode to OTASP_UNKNOWN.
5bf6cc0126b5e554f629bb4c96716a2a5701d04b 13-Jan-2011 Wink Saville <wink@google.com> Merge "Initialize mOtaspMode to OTASP_UNKNOWN." into honeycomb
328526c975d9cdb2cb2379fc802bb6283e62ff01 13-Jan-2011 Andy Stadler <stadler@google.com> am 199ae7dc: am 7b0f8f08: API changes to support encryption in DPM

* commit '199ae7dce11badac71c27b1d973e24387dd5f924':
API changes to support encryption in DPM
7b0f8f08ac7b3ed5cf462b92283713b033d6a64a 12-Jan-2011 Andy Stadler <stadler@google.com> API changes to support encryption in DPM

* New uses-policies value
* Definitions for storage domain and encryption status
* API to get and set encryption status
* Intent to launch encryption changes
* Both new calls bottom out in the DPM service and are suitable for
a device that does not support encryption.

NOTE: Nobody should use ACTION_START_ENCRYPTION yet. It needs a receiver
to be built in Settings (different CL).

Change-Id: I2ae193bedbec59f6ba46c0ec7de12ecf321e5803
om/android/server/DevicePolicyManagerService.java
b7e7bc42f1e2afed194dbf1ff10d43714d576eed 13-Jan-2011 Christopher Tate <ctate@google.com> am 3186e0da: am 44a94bb5: Merge "Turn off debugging logspam for release" into honeycomb

* commit '3186e0da33256400b52024b268c9e6e048caee6c':
Turn off debugging logspam for release
994ef9296a00523de1df424b4b760b4416ead58b 13-Jan-2011 Christopher Tate <ctate@google.com> Turn off debugging logspam for release

Fixes bug 2679101

Change-Id: I94cf1b1d0b732b2030008118eff3534f0e0608f7
om/android/server/BackupManagerService.java
om/android/server/WindowManagerService.java
ccd24de8a99d29b1c5a0c41cbf00983050810d5a 13-Jan-2011 Christopher Tate <ctate@google.com> Suppress orientation changes during drag operations

Fixes bug 3322455

Change-Id: I21d4dbc3aaf6c8ba7afcb73a823d6443c61a4d1b
om/android/server/WindowManagerService.java
19b9ab46a9faee6031aaf6c78748401943fea117 10-Jan-2011 Robert Greenwalt <rgreenwalt@google.com> Turn off DUN connection after tethering.

Use matching feature type when turning tethering off or the request is ignored.

Also, turn on DUN apn right away so that we don't fail aggressive test cases.

Also don't report connections for enabled apn's that we're no longer connected to.

bug:3332880
bug:3338033
Change-Id: I7db2dfd4879f03465bc9f6d39488c078570dcaf3
om/android/server/ConnectivityService.java
om/android/server/connectivity/Tethering.java
470750793b6e930a323ee63cbed05c43dc435ba1 13-Jan-2011 Kenny Root <kroot@google.com> am e8c04db7: Merge "Add the {get,set}PackageObbPaths calls to API" into gingerbread

* commit 'e8c04db71e347396e9537ead7113ba9f46706e44':
Add the {get,set}PackageObbPaths calls to API
e8c04db71e347396e9537ead7113ba9f46706e44 13-Jan-2011 Kenny Root <kroot@google.com> Merge "Add the {get,set}PackageObbPaths calls to API" into gingerbread
ea8c3baf36008bbd53c8ae326da6b6e148e239f2 12-Jan-2011 Dianne Hackborn <hackbod@google.com> am 7ca0b1c5: am a353581c: Merge "Fix issue #3344089: runtime restart due to java.lang.StackOverflowError..." into honeycomb

* commit '7ca0b1c58623ad1adfb3324df235d4172e44c83a':
Fix issue #3344089: runtime restart due to java.lang.StackOverflowError...
56aa5321fe6f00fa3662e6f46a4b2559aa34f63e 07-Jan-2011 Jason parks <jparks@google.com> Add a method enable encryption.

This is for testing and needs to be cleaned up.

Change-Id: I29958f2a95c7773744e61bbd23a302b752614f87
om/android/server/MountService.java
c9330ddcf407e7db17e50167d6820b4a34d57228 12-Jan-2011 Wink Saville <wink@google.com> Initialize mOtaspMode to OTASP_UNKNOWN.

Without the explicit initialized the default value was 0 which
is OTASP_UNINITIALIZED instead it should be OTASP_UNKNOWN.

Change-Id: I44ffc60618c0b1d49e07ccbce408c4e9921d8130
om/android/server/TelephonyRegistry.java
2e7ffa54c1c0875663ffce2979cc097428b95ac4 12-Jan-2011 Dianne Hackborn <hackbod@google.com> Fix issue #3344089: runtime restart due to java.lang.StackOverflowError...

...in WindowManager after app force closed a few times

Change-Id: I9d5ff16b01d14030150ba0904a47635f9c7a158f
om/android/server/WindowManagerService.java
1125d780a8b61703b8eb28c5c77dac5f3f0022dd 12-Jan-2011 Jason parks <jparks@google.com> Remove the APIs for the old encryption scheme.

Change-Id: I55116a5b29b10dfd50015805ec019b485257f68b
om/android/server/BackupManagerService.java
om/android/server/Installer.java
om/android/server/PackageManagerService.java
090093592e24a067c08c4049344fcf37601960c0 12-Jan-2011 Kenny Root <kroot@google.com> am c669559d: am b5a4b5d3: Merge "Allow updated system apps to retain priority" into honeycomb

* commit 'c669559dc3c1d348145d902c623166a9d874b5a8':
Allow updated system apps to retain priority
0ee294470d09e1de0ce0fe6e3246e98e450a4d26 12-Jan-2011 Kenny Root <kroot@google.com> am 6688b6c3: Merge "Allow updated system apps to retain priority" into gingerbread

* commit '6688b6c31765242866fc276cea7fa241fc5b5e7b':
Allow updated system apps to retain priority
502e9a47c64d819a7aa45251bcf7cb5dd77a310b 10-Jan-2011 Kenny Root <kroot@google.com> Allow updated system apps to retain priority

Previously any updated system apps would not be able to have a greater
than 0 priority on an activity intent filter. Moving the priority check
later in the package scanning allows it to apply to updated system
packages as well.

Cherry-pick from gingerbread branch

Bug: 2572398
Change-Id: I95d8b6360bf7a3f39cd7a1ff09e1ee57e11583d8
om/android/server/IntentResolver.java
om/android/server/PackageManagerService.java
6688b6c31765242866fc276cea7fa241fc5b5e7b 12-Jan-2011 Kenny Root <kroot@google.com> Merge "Allow updated system apps to retain priority" into gingerbread
8403cbf100f28567bcfd619fcaef3c23cb4afc9a 12-Jan-2011 Robert Greenwalt <rgreenwalt@google.com> am 1ea7e5df: am a78e9f05: Merge "Fix any_connection reporting." into honeycomb

* commit '1ea7e5df91f023d03fa7c87c534e6024795abaaa':
Fix any_connection reporting.
a78e9f055834030ebe25480004f667f4bca35232 12-Jan-2011 Robert Greenwalt <rgreenwalt@google.com> Merge "Fix any_connection reporting." into honeycomb
41514d740bdb0663e49a917c000f170e40806c18 12-Jan-2011 satok <satok@google.com> am 52b18265: am 31d9d895: Merge "Update shortcut IME when asked. And match the language of subtype by "startWith" not "equals"." into honeycomb

* commit '52b18265680073c02b0b0a1ff9c3d4d95a6779be':
Update shortcut IME when asked. And match the language of subtype by "startWith" not "equals".
31d9d895d79977fa4e6dff2491b209fbeb21c61b 12-Jan-2011 satok <satok@google.com> Merge "Update shortcut IME when asked. And match the language of subtype by "startWith" not "equals"." into honeycomb
3da922367c0dbe67b97fe97fcfca13fd93602f7a 11-Jan-2011 satok <satok@google.com> Update shortcut IME when asked. And match the language of subtype by "startWith" not "equals".

Bug: 3329578

Change-Id: Ib45ca20560c96faa6e2798242f3d1c3fe5156457
om/android/server/InputMethodManagerService.java
6f71d0fedbb04c048a7294976103e42f0f046641 24-Oct-2010 Jeff Brown <jeffbrown@google.com> Filter virtual keys after touches. (DO NOT MERGE)

Adds a new virtualKeyQuietTimeMillis configuration resource that sets
the duration for which virtual keys will be dropped after recent touches
on screen. The default value is 0; it is intended to be overridden
per device using a resource overlay.

This change is designed to help in two cases:

1. Swipes from touchscreen into virtual key area.
2. Accidental taps in virtual key area while using on-screen keyboard.

Bug: 3089163
Change-Id: Id6733c83c2e2bc8d9553aa0e5c1fd74b741bec6e
om/android/server/InputManager.java
00ac23f104b1accf467d1c5ed5cd04ba365b93b6 12-Jan-2011 Christopher Tate <ctate@google.com> am 771fcc5e: am 28514f8f: Merge "API CHANGE: startDrag() now takes "int flags" instead of "boolean localOnly"" into honeycomb

* commit '771fcc5e3d87f81663fe91149f3b680beec65f4a':
API CHANGE: startDrag() now takes "int flags" instead of "boolean localOnly"
f21ef7db777e2c79b2f5acac55dcc310b14eb989 11-Jan-2011 Robert Greenwalt <rgreenwalt@google.com> Fix any_connection reporting.

A recent change caused us to think there was no other connection available
when transitioning from 3g to wifi.

bug:3335074
Change-Id: I1f55df8a0eb5b27131572b111fbaac8f1ebbc0d3
om/android/server/ConnectivityService.java
02d2b3ba9ba830a8147db2739613f7bbb2d0fcbf 11-Jan-2011 Christopher Tate <ctate@google.com> API CHANGE: startDrag() now takes "int flags" instead of "boolean localOnly"

There will be, in the future, a flag (View.DRAG_FLAG_GLOBAL) that means
for the drag to be cross-application. For now that flag constant is @hide
and furthermore the server-side implementation strips it, enforcing
local-only drags.

Change-Id: I8db840480ab90e18a5b8ecf29d62b4e6eafd405e
om/android/server/WindowManagerService.java
4d8939f50a649a3541d79e65c3f4596fe5318ddd 12-Jan-2011 Svetoslav Ganov <svetoslavganov@google.com> am 8aba7513: am 147f7df3: Merge "IAE: Service not registered: com.android.server.AccessibilityManagerService" into honeycomb

* commit '8aba7513481594611c22d444dde6e666fefd1fc0':
IAE: Service not registered: com.android.server.AccessibilityManagerService
147f7df35c554cf24287c732f8b74b0018e1ddbe 12-Jan-2011 Svetoslav Ganov <svetoslavganov@google.com> Merge "IAE: Service not registered: com.android.server.AccessibilityManagerService" into honeycomb
7f338c460f97312998d7f4576d577d0014e83cb2 12-Jan-2011 Irfan Sheriff <isheriff@google.com> am f537bbdd: am 7ac190d6: Merge "default wifi sleep policy change" into honeycomb

* commit 'f537bbdda0e0b7bd8052d278b8970d59477cd6c1':
default wifi sleep policy change
7ac190d60d794b5f75b094a0b9a3f666742d42fb 12-Jan-2011 Irfan Sheriff <isheriff@google.com> Merge "default wifi sleep policy change" into honeycomb
1c6e764275934b0ddf65aeb86179c75a50ba15d4 10-Jan-2011 Kenny Root <kroot@google.com> Allow updated system apps to retain priority

Previously any updated system apps would not be able to have a greater
than 0 priority on an activity intent filter. Moving the priority check
later in the package scanning allows it to apply to updated system
packages as well.

Bug: 2572398
Change-Id: I9fdf7906809518b28b49ffec31afec1442d85d3c
om/android/server/IntentResolver.java
om/android/server/PackageManagerService.java
96b10d669ef01c392ad186812b30cdfe1052f897 12-Jan-2011 Irfan Sheriff <isheriff@google.com> default wifi sleep policy change

Keep wifi sleep policy as never when charged as long as
user has not changed the settings

Bug: 3038345
Change-Id: I0598af41fe0144f2dfddc5bd331bd91d91e0ffea
om/android/server/WifiService.java
6f089b877e1c8f81bae719a4b185bcad412f275a 12-Jan-2011 Svetoslav Ganov <svetoslavganov@google.com> IAE: Service not registered: com.android.server.AccessibilityManagerService

bug:3331645

1. Let the binder the AccessibilityManagerService has obtained while connecting
to an accessibility services be garbage collected since when binding we will
will get in the on #onServiceConnected callback and it can be potentially
another instance.

Change-Id: I87aa5e5f741e2e54c72d3d0d396ac00eda5aeb5c
om/android/server/AccessibilityManagerService.java
9b35ac3f053df8c96d18ed0a438621ad014ce8e5 11-Jan-2011 Kenny Root <kroot@google.com> am 1c258707: am 2275cd48: Merge "Copy user info from PackageSetting as well" into honeycomb

* commit '1c2587071d8a7ad44967e4c4baf66c6ae01e31b5':
Copy user info from PackageSetting as well
4aab4bc2a3b97e25573e8484d5f5aa8deb812d48 11-Jan-2011 Kenny Root <kroot@google.com> am 91c459ec: Copy user info from PackageSetting as well

* commit '91c459ec7dba6d56816ff5cbd92c627e0f718915':
Copy user info from PackageSetting as well
2275cd48a23d042d3196ccddbc83afa1630d0a41 11-Jan-2011 Kenny Root <kroot@google.com> Merge "Copy user info from PackageSetting as well" into honeycomb
97ef63ba1e4a2474b72d8e46b2b28b693b0328cc 11-Jan-2011 Kenny Root <kroot@google.com> Copy user info from PackageSetting as well

In order not to clobber the internal system's settings, we duplicate it
before putting it back into mPackages, but the PackageSetting has a
couple extra pieces of information that weren't being copied.

Bug: 3339279
Change-Id: Ic9b64117f287d53f2c0cebb924c775405690938e
om/android/server/PackageManagerService.java
91c459ec7dba6d56816ff5cbd92c627e0f718915 11-Jan-2011 Kenny Root <kroot@google.com> Copy user info from PackageSetting as well

In order not to clobber the internal system's settings, we duplicate it
before putting it back into mPackages, but the PackageSetting has a
couple extra pieces of information that weren't being copied.

Bug: 3339279
Change-Id: I047087ac3477c7b2d5ce23e5e0a5e8c094bd0d3f
om/android/server/PackageManagerService.java
3e6129684f10e661e61eb081da16708a2f0018d8 11-Jan-2011 Svetoslav Ganov <svetoslavganov@google.com> am 4bcfdef3: am 52b13678: Merge "IOBE while diabling accessibility with some enabled accessibility services." into honeycomb

* commit '4bcfdef3d676d846f3c7209aaf26c849c0239cba':
IOBE while diabling accessibility with some enabled accessibility services.
52b136783cf7b538aae290b6dc609849f3ad695f 11-Jan-2011 Svetoslav Ganov <svetoslavganov@google.com> Merge "IOBE while diabling accessibility with some enabled accessibility services." into honeycomb
f9e6df6dedcf7cc3718f1af9bba76fbec6674c80 11-Jan-2011 Jeff Brown <jeffbrown@google.com> am 57e120cc: am f527a1d9: Merge "Prevent events from getting backlogged." into honeycomb

* commit '57e120ccc4c64f52686c062058fa50c89d81cdf6':
Prevent events from getting backlogged.
f527a1d936aea3d531ced39ccc714935a7d02c47 11-Jan-2011 Jeff Brown <jeffbrown@google.com> Merge "Prevent events from getting backlogged." into honeycomb
72da9fe86af5ea551e62423b368cd6118c8e65fc 11-Jan-2011 Joe Onorato <joeo@google.com> am a72f59a2: am 94d7eef3: Merge "Make AppWidgetService handle components enabling and disabling." into honeycomb

* commit 'a72f59a23105a7da3ac7e758d57706eee66406d5':
Make AppWidgetService handle components enabling and disabling.
d070e89396e250782c015bc993bcae6e7e03af7a 08-Jan-2011 Joe Onorato <joeo@google.com> Make AppWidgetService handle components enabling and disabling.

Change-Id: Ie6b75cb90be38bbce694ccf2d5a342d7f0172fa4
om/android/server/AppWidgetService.java
928e054931d357326613c78e62f4d850b7c442ff 10-Jan-2011 Jeff Brown <jeffbrown@google.com> Prevent events from getting backlogged.

This change implements two heuristics.

1. When events are older than 10 seconds, they are dropped.

2. If the application is currently busy processing an event and
the user touches a window belonging to a different application
then we drop the currently queued events so the other application
can start processing the gesture immediately.

Note that the system takes care of synthesizing cancelation events
automatically for any events that it drops.

Added some new handle types to allow the native dispatcher to
indirectly refer to the WindowManager's window state and app window
token. This was done to enable the dispatcher to identify the
application to which each window belongs but it also eliminates
some lookup tables and linear searches through the window list
on each key press.

Bug: 3224911
Change-Id: I9dae8dfe23d195d76865f97011fe2f1d351e2940
om/android/server/InputApplication.java
om/android/server/InputApplicationHandle.java
om/android/server/InputManager.java
om/android/server/InputWindow.java
om/android/server/InputWindowHandle.java
om/android/server/WindowManagerService.java
6ff5f103545f90aee3176ad6ca06d9233f899c51 10-Jan-2011 Svetoslav Ganov <svetoslavganov@google.com> IOBE while diabling accessibility with some enabled accessibility services.

1. Added logic to update the current position in the list of services to be
disabled in case of a successfully removed (unbound) such service.

Change-Id: I2ac7d3a53026a7c95b10b285fd4280419c903ec6
om/android/server/AccessibilityManagerService.java
a9d8a69a044c8e0c2d3268ed98bd17063faaeb1e 09-Jan-2011 Dianne Hackborn <hackbod@google.com> am 9aac2e2b: Merge "Referencing of "r.record.name" is occured, when "r.record" is null." into gingerbread

* commit '9aac2e2b9541c424ca02483631b08949f0e90c8c':
Referencing of "r.record.name" is occured, when "r.record" is null.
ea278a945aae050a1187e1d40c877b812ab68be7 07-Jan-2011 lge-aosp <lge-aosp@lge.com> DO NOT MERGE Referencing of "r.record.name" is occured, when "r.record" is null.

Change-Id: I0338c85b562a224d2c478112937fd62d2208e7aa
om/android/server/am/ActivityManagerService.java
9aac2e2b9541c424ca02483631b08949f0e90c8c 09-Jan-2011 Dianne Hackborn <hackbod@google.com> Merge "Referencing of "r.record.name" is occured, when "r.record" is null." into gingerbread
69f8d3c667669dc1858c21ee798c0f836f53235e 09-Jan-2011 Chris Tate <ctate@google.com> am bbff7ed4: DO NOT MERGE : Ensure that the first post-restore backup pass is correct

* commit 'bbff7ed44b353ff299b900a1ff50812a082206f0':
DO NOT MERGE : Ensure that the first post-restore backup pass is correct
6c4d904851772313930f800ac7c323cf90c709bb 19-Nov-2010 Kenny Root <kroot@google.com> Add the {get,set}PackageObbPaths calls to API

Add getPackageObbPaths() and setPackageObbPaths() to the public API.

Bug: 3214719
Change-Id: Icb9f2f92f8c59bb3d31317f609854e81abbd1449
om/android/server/PackageManagerService.java
a64b01f9ea79984bb155b645c3f1f59350b78250 09-Jan-2011 Dianne Hackborn <hackbod@google.com> am cfe76038: am 6d175c72: Merge "Merge commit \'690d20bb53ba2485f59d128b365eff991d5cc3e6\' into manualmerge" into honeycomb

* commit 'cfe76038dc476958e19ccccaea29823100199428':
Fix issue # 3227963: SecurityException: Neither user 10023 nor...
9b1bd2c7d1acffa1079d589811450140518e5ce5 09-Jan-2011 Chris Tate <ctate@google.com> am 6ec91731: DO NOT MERGE : Permission fix: don\'t require BACKUP perm for self-restores

* commit '6ec91731cbf6ee1a9a914d341fab9567d1599018':
DO NOT MERGE : Permission fix: don't require BACKUP perm for self-restores
bbff7ed44b353ff299b900a1ff50812a082206f0 29-Oct-2010 Chris Tate <ctate@google.com> DO NOT MERGE : Ensure that the first post-restore backup pass is correct

Some restore passes bring an ancestral dataset to the application, but
others instead act to bring an app back into sync with its own most-
recently-saved data. In the latter case the state file written by the
app after the restore is a correct basis for generating future backup
deltas, but in the former case it is not.

The app should not be required to distinguish between these cases;
the framework has all the information necessary to handle the saved
state correctly following any flavor of restore operation. This
patch makes the Backup Manager properly cause a full backup pass
following an ancestral-dataset restore. After a current-set
restore the saved state file is an accurate description for
purposes of continued backup operations, so is preserved.

(Cherrypick from master to gingerbread)

Change-Id: I4bc4e8782a168ecc0795107a340bdbb35060730e
om/android/server/BackupManagerService.java
6ec91731cbf6ee1a9a914d341fab9567d1599018 17-Nov-2010 Chris Tate <ctate@google.com> DO NOT MERGE : Permission fix: don't require BACKUP perm for self-restores

The public API is not supposed to require the BACKUP permission in order
for an application to restore its own last-known-good backup data. However,
as currently implemented, BackupManager.requestRestore() [the public API
in question] depends on private Backup Manager methods that *do* enforce
that permission. The net result is that the method cannot be successfully
used by third party applications: it will throw an exception if attempted.
This CL restructures the permission checking involved.

First, the underlying beginRestoreSession() operation can now be passed a
'null' transport name; if this is done, then the restore session is begun
on whatever the currently-active transport is. Looking up the name of the
active transport is one of the permission-guarded actions that was required
with the initial implementation.

Second, a package name can now be passed to beginRestoreSession(). If
this is done, then the restore session can only be used to perform a
single-package restore of that one application. The BACKUP permission is
not required if the caller is tying the restore to its own package name.

In combination, these changes permit BackupManager.requestRestore() to
function without the calling app needing to hold any special permission.
The no-permission case is intentionally quite narrow: the caller must
hold the permission unless they both (a) pass 'null' for the transport
name, thereby accepting whatever the currently active transport is, and
(b) pass their own package name to restrict the restore session only
to their own app.

External bug http://code.google.com/p/android/issues/detail?id=10094
Internal bug 3197202

(Cherrypick from master to gingerbread)

Change-Id: Ie20b0bd2420345ce6eda178f854680b558f6372a
om/android/server/BackupManagerService.java
c712204d91cc961c78c12e99b22fe5f3b60e9989 07-Jan-2011 lge-aosp <lge-aosp@lge.com> Referencing of "r.record.name" is occured, when "r.record" is null.

Change-Id: I625e45923a7fd9f4ac8eb434ed07d452f8e1e0b6
om/android/server/am/ActivityManagerService.java
1a7e67190228a8ff3b92e7e5496a8db8ff306cca 09-Jan-2011 Wink Saville <wink@google.com> Revert "Propagate new link-status-change message to any NetworkManagementService"

This reverts commit 780dfa42aa8664afa53c30ae669fc0e1f10f6537.
om/android/server/NetworkManagementService.java
om/android/server/ThrottleService.java
om/android/server/connectivity/Tethering.java
4f05220d10338b6ad668c87e70cbe7b9914a9047 09-Jan-2011 Dianne Hackborn <hackbod@google.com> Merge commit '690d20bb53ba2485f59d128b365eff991d5cc3e6' into manualmerge
95db1cfc741c23c7f4192128e3b7bb3c43761bdb 09-Jan-2011 Dianne Hackborn <hackbod@google.com> am cd23823d: Merge "Fix issue # 3227963: SecurityException: Neither user 10023 nor..." into gingerbread

* commit 'cd23823d4f533431c76baa104eb50b7803b3b391':
Fix issue # 3227963: SecurityException: Neither user 10023 nor...
cd23823d4f533431c76baa104eb50b7803b3b391 09-Jan-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix issue # 3227963: SecurityException: Neither user 10023 nor..." into gingerbread
ac31de0cb1d99e458614318d3330a340094f44bd 09-Jan-2011 Kenny Root <kroot@google.com> am a657f113: am b0512c37: Merge "Fix check for required features" into honeycomb

* commit 'a657f113971be0903c16f3b475db4150be84a357':
Fix check for required features
b0512c372587f366f0b0bd859b22a344a5d5a520 09-Jan-2011 Kenny Root <kroot@google.com> Merge "Fix check for required features" into honeycomb
7079ef08245c58dc1e51371e2aa248753d382443 09-Jan-2011 Dianne Hackborn <hackbod@google.com> am 5ef0a153: am 247fe74c: Implement issue # 3255887 could CursorLoader offer...

* commit '5ef0a153f01362a3263d3cd608ece09cc67377df':
Implement issue # 3255887 could CursorLoader offer...
247fe74c934cb3fba85aae7e051a8044f460fb11 09-Jan-2011 Dianne Hackborn <hackbod@google.com> Implement issue # 3255887 could CursorLoader offer...

...to throttle contentobserver-based requeries

Why yes, I guess it could.

This also reworks AsyncTaskLoader to not generate multiple
concurrent tasks if it is getting change notifications before
the last background task is complete.

And removes some of the old APIs that had been deprecated but
need to be gone for final release.

And fixes a few little problems with applying the wrong theme
in system code.

Change-Id: Ic7a665b666d0fb9d348e5f23595532191065884f
om/android/server/DeviceStorageMonitorService.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityRecord.java
dfcd15b1aa31c525182c8ba57b1eea188ab649b6 08-Jan-2011 Adam Powell <adamp@google.com> am 6de1301b: am 947f7824: Fix bug 3245465 - Themed dialog icons

* commit '6de1301b492a1d8450fa61fcff6a3e34437b8891':
Fix bug 3245465 - Themed dialog icons
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
om/android/server/am/BaseErrorDialog.java
om/android/server/am/LaunchWarningWindow.java
1683afac148f5bce186f7af7a6a8ea6294ecd379 07-Jan-2011 Kenny Root <kroot@google.com> Fix check for required features

The required features check was in an null check for usesLibraries, so
it wasn't checking for required features when an application did not use
a library.

Bug: 3331713
Change-Id: I96d366ba00d4962b84f3796be97e2b622eb331a5
om/android/server/PackageManagerService.java
ec2e01842eaec0bfc2f6e39e9c9de1d9307f10b8 07-Jan-2011 Robert Greenwalt <robdroid@android.com> Merge "Propagate new link-status-change message to any NetworkManagementService observers. Also fix the syntax of the "interface-status-change" message. Add a null handler in the ThrottleService and Tethering classes (plus fix names)."
609dca2cc5cf4c9bfb12c1a1594f970a57ac6269 07-Jan-2011 Jason parks <jparks@google.com> Merge "Add a method enable encryption."
780dfa42aa8664afa53c30ae669fc0e1f10f6537 03-Jan-2011 Stan Chesnutt <chesnutt@google.com> Propagate new link-status-change message to any NetworkManagementService
observers. Also fix the syntax of the "interface-status-change" message. Add
a null handler in the ThrottleService and Tethering classes (plus fix names).

Change-Id: I58cabc7b0ce5662243bc6513b2de4818065e6c52
om/android/server/NetworkManagementService.java
om/android/server/ThrottleService.java
om/android/server/connectivity/Tethering.java
73746fa9ce93d6431049ee703788061025ace77c 07-Jan-2011 Irfan Sheriff <isheriff@google.com> am 60525c82: Merge "Use BluetoothAdapter broadcast for coex settings" into honeycomb

* commit '60525c824ccf11302a9b8343e72eba259485edea':
Use BluetoothAdapter broadcast for coex settings
60525c824ccf11302a9b8343e72eba259485edea 07-Jan-2011 Irfan Sheriff <isheriff@google.com> Merge "Use BluetoothAdapter broadcast for coex settings" into honeycomb
65eaec88f3670384ac6c63e8c21ca13c21d2a407 06-Jan-2011 Irfan Sheriff <isheriff@google.com> Use BluetoothAdapter broadcast for coex settings

Use the bluetooth adapter broadcast so that we capture
various bluetooth profiles for both scan coex settings
and coex settings during DHCP

Change-Id: Idec41940514efe7ea9927f67b6199b4893794e2a
om/android/server/WifiService.java
d6332552761fcce700adb465ff540d30a671403c 07-Jan-2011 Jason parks <jparks@google.com> Add a method enable encryption.

This is for testing and needs to be cleaned up.

Change-Id: I71cd5412f7096dc13d9ab61229ee9846c6f0006a
om/android/server/MountService.java
31ff309f2fc8036b1b8d8470649e535f10b4c2a5 07-Jan-2011 Robert Greenwalt <rgreenwalt@google.com> am 89c8f755: Merge "Fix handling of multiple possible default networks" into honeycomb

* commit '89c8f7554bbec5d62ebeddddc2ef2460265a80c5':
Fix handling of multiple possible default networks
8a81c5e7bc052297d90af1b81653a86ba1263094 07-Jan-2011 Mike Lockwood <lockwood@android.com> am 264f6cd0: Temporarily remove UsbManager support for USB host.

* commit '264f6cd0b9215f75dd5917252abea98e8fce6222':
Temporarily remove UsbManager support for USB host.
5f619b7d95fae663e5c1326a576ad43251f5d49b 27-Oct-2010 Mattias Petersson <mattias.petersson@sonyericsson.com> Avoiding cyclic references when unbinding from a service

Cyclic references can occur between a Service object held by an
application and a ServiceRecord object held by the system server.
A part of the problem is that binders are leaked and since many binders
are implemented by inner classes of services these services are also leaked.
This causes low memory problems. The solution is: When a Service is beeing
destroyed, go through the ServiceRecord's all IntentBindRecord and set its
binder references to null. This allows the binder and the service object to
be garbage collected.

Change-Id: I5a257521964851f34c08ffb3908feaad96b1bafe
om/android/server/am/ActivityManagerService.java
563d78401dc6ed58dd606ac744555151f1cc0ef1 07-Jan-2011 Svetoslav Ganov <svetoslavganov@google.com> (cherrypick from master) 3322879 Device soft reboots on enabling and disabling accessibility settings

Change-Id: I7cf6f9da010113d591bd0eb2c59f7a4b92a38764
om/android/server/AccessibilityManagerService.java
bff9018b74e68fe9bceb87ee2b7c2549f04e13c2 07-Jan-2011 Robert Greenwalt <rgreenwalt@google.com> Fix handling of multiple possible default networks

Old code assumed only 2 choices but now we have more.

bug:3328196
Change-Id: I92a02b31fae6c53f73b3684581230fad5cb1b82a
om/android/server/ConnectivityService.java
6a74aaaea32e21278e43586a28aa2184292c808b 07-Jan-2011 Svetoslav Ganov <svetoslavganov@google.com> Merge "3322879 Device soft reboots on enabling and disabling accessibility settings (caused due to my incorrect fix of 3304011 in change If99ef28c)"
cbfebb382be5ddfc5b08f55e039f6f52cf01ef21 05-Jan-2011 Svetoslav Ganov <svetoslavganov@google.com> 3322879 Device soft reboots on enabling and disabling accessibility settings (caused due to my incorrect fix of 3304011 in change If99ef28c)

Change-Id: I9578655b3b436829f0adb3947c242a19631d74c7
om/android/server/AccessibilityManagerService.java
b35d67a8a773f2d3127a119b424a86b3e56fe563 06-Jan-2011 Stan Chesnutt <chesnutt@google.com> connectivity-change events can happen before boot completes (similar to:
https://android-git.corp.google.com/g/#change,87425 )


Change-Id: Ibc0f12defaa5d90894657ce63fb352578eca7060
om/android/server/ConnectivityService.java
264f6cd0b9215f75dd5917252abea98e8fce6222 06-Jan-2011 Mike Lockwood <lockwood@android.com> Temporarily remove UsbManager support for USB host.

A new USB host API will be added in an upcoming commit

Change-Id: I5816c10c7acd236d31ab8ae255fc83c77121eea0
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/UsbService.java
d3f36dfdea8ad1c561f018515b22c2db2e82bdcc 06-Jan-2011 Johannes Carlsson <johannes.carlsson.x@sonyericsson.com> am 73fef3c7: am b5a8654d: Clear reference to the IIntentReceiver in order to avoid memory leak

* commit '73fef3c7c0986468d75e3ef09d2255c3509a80c9':
Clear reference to the IIntentReceiver in order to avoid memory leak
d541f0cbdcc35607e2a7b6986602543054717ab0 06-Jan-2011 Dianne Hackborn <hackbod@google.com> am 4302886f: am c91f9fe5: Merge "Avoiding cyclic references when unbinding from a service" into gingerbread

* commit '4302886f8f77c3f53cdc094069f3550dd56bc812':
Avoiding cyclic references when unbinding from a service
73fef3c7c0986468d75e3ef09d2255c3509a80c9 06-Jan-2011 Johannes Carlsson <johannes.carlsson.x@sonyericsson.com> am b5a8654d: Clear reference to the IIntentReceiver in order to avoid memory leak

* commit 'b5a8654dea9ea8443b41f8ff3668ae4074e13a07':
Clear reference to the IIntentReceiver in order to avoid memory leak
b5a8654dea9ea8443b41f8ff3668ae4074e13a07 27-Oct-2010 Johannes Carlsson <johannes.carlsson.x@sonyericsson.com> Clear reference to the IIntentReceiver in order to avoid memory leak

When using sendOrderedBroadcast(..) with a BroadcastReceiver the
BroadcastReceiver instance was not released. The reason for this was that
the resultTo field in the BroadcastRecord kept a reference until it was pushed
out of the mBroadcastHistory. This reference in turn kept a reference to the
process side IIntentReceiver (implemented in ReceiverDispatcher$InnerReceiver).
This in turn had a strong reference (through mStrongRef) to the Context.

In order to keep the debug output the resultTo is also kept as a String in the
new resultToString variable.

Change-Id: I4382a22a541c27b3694fb2b78a04ee820b235f8f
om/android/server/am/ActivityManagerService.java
om/android/server/am/BroadcastRecord.java
4302886f8f77c3f53cdc094069f3550dd56bc812 06-Jan-2011 Dianne Hackborn <hackbod@google.com> am c91f9fe5: Merge "Avoiding cyclic references when unbinding from a service" into gingerbread

* commit 'c91f9fe542fd1ca9d6da432faeba60d35c4d5c49':
Avoiding cyclic references when unbinding from a service
3d1db8672aa1d285d387c8aef5a8bfac72997d18 06-Jan-2011 Stan Chesnutt <chesnutt@google.com> Allow bumpDns() to execute correctly before boot has completed

Change-Id: I5c2cf023e555f49d7e29592f9d1439b3ac367e3d
om/android/server/ConnectivityService.java
3996b416109614194a265bfc107e7a407b2c233d 27-Oct-2010 Mattias Petersson <mattias.petersson@sonyericsson.com> Avoiding cyclic references when unbinding from a service

Cyclic references can occur between a Service object held by an
application and a ServiceRecord object held by the system server.
A part of the problem is that binders are leaked and since many binders
are implemented by inner classes of services these services are also leaked.
This causes low memory problems. The solution is: When a Service is beeing
destroyed, go through the ServiceRecord's all IntentBindRecord and set its
binder references to null. This allows the binder and the service object to
be garbage collected.

Change-Id: I5a257521964851f34c08ffb3908feaad96b1bafe
om/android/server/am/ActivityManagerService.java
ac1325bcd394bdc8903b26e8593cc06753d79f29 05-Jan-2011 Jason parks <jparks@google.com> Merge "Add decryption support to MountService."
5af0b916f850486cff4797355bf9e7dc3352fe00 29-Nov-2010 Jason parks <jparks@google.com> Add decryption support to MountService.

* Implement the decryptStorage() method on the Mount Service.
This method makes the calls into vold to decrypt the encrypted
volumes and mount them.

Change-Id: I4f6e07a111cf0b36611d590debf9f6579c5ac5f7
om/android/server/MountService.java
b4ff35df5c04aec71fce7e90a6d6f9ef7180c2ad 03-Jan-2011 Jeff Brown <jeffbrown@google.com> Mouse pointer integration.

Added support for loading the pointer icon from a resource.

Moved the system server related bits of the input manager out
of libui and into libinput since they do not need to be linked into
applications.

Change-Id: Iec11e0725b3add2b905c51f8ea2c3b4b0d1a2d67
om/android/server/InputManager.java
6d978d6d2e49b253cc983e2543aec813686c4a7c 04-Jan-2011 Dianne Hackborn <hackbod@google.com> Merge "Few little fragment, wm tweaks."
352cc98b4621b76959af8f8a698fd75c6d6132e8 04-Jan-2011 Dianne Hackborn <hackbod@google.com> Few little fragment, wm tweaks.

Deal with fragments being restored when their containing view is
gone.

Try to put in a black background during rotation. Currently commented
out because it appears to cause surface flinger to hang.

Change-Id: I150d061e64488356d17513f4e2d124d7c3d04f6b
om/android/server/ScreenRotationAnimation.java
e32e812b11520b244374371ee49eaed20c84a6e3 29-Dec-2010 Robert Greenwalt <rgreenwalt@google.com> Always file DUN requests for tethering.

A bit of a hack so that first trySetupData call uses the proper APN in
strange edge cases. Made a new startUsingNetworkFeature string
that ConnectivityService knows means always pass the request to telephony
even if telephony connections are not currently available.

bug:3133178
Change-Id: I2559b9cbaed4b4ec02bdf7ea78e6003ee2be64f2
om/android/server/ConnectivityService.java
om/android/server/connectivity/Tethering.java
58975915378fcecedbba7eb8d7a2117f9aa9e2ee 27-Oct-2010 Johannes Carlsson <johannes.carlsson.x@sonyericsson.com> Clear reference to the IIntentReceiver in order to avoid memory leak

When using sendOrderedBroadcast(..) with a BroadcastReceiver the
BroadcastReceiver instance was not released. The reason for this was that
the resultTo field in the BroadcastRecord kept a reference until it was pushed
out of the mBroadcastHistory. This reference in turn kept a reference to the
process side IIntentReceiver (implemented in ReceiverDispatcher$InnerReceiver).
This in turn had a strong reference (through mStrongRef) to the Context.

In order to keep the debug output the resultTo is also kept as a String in the
new resultToString variable.

Change-Id: I4382a22a541c27b3694fb2b78a04ee820b235f8f
om/android/server/am/ActivityManagerService.java
om/android/server/am/BroadcastRecord.java
78f9fffca4cbfad50bdb73569bc4f484d84215ab 30-Aug-2010 Per Edelberg <per.edelberg.x@sonyericsson.com> Handle stopping of services with still bound applications.

When a service is stopping we get unbindFinished when all connections
are unbinded. If applications are still bound to this Service we will
rebind the connection making the service hang in stopping state. This
fixed issues with ANR during CTS test
android.os.cts.BinderTest#testTransact

Change-Id: I9402aebd0d2d0fa3e0e6381fb51d3189d530f31b
om/android/server/am/ActivityManagerService.java
7eab094722af54717859b7dcce3cc050f059e00b 01-Jan-2011 Dianne Hackborn <hackbod@google.com> Fix flicker issue in IME.

When IME is being moved as part of a window going away, it could flicker
as it immediately moves behind the window. Fix this.

Also make the default soft input mode for PopupWindow to be to not change
the IME visibility, since it is a rare pop-up window that should cause your
IME to close.

Change-Id: I0b43e080ad012739e9a3e5842794c778c859ac1a
om/android/server/WindowManagerService.java
03c5dd91a048afe86d8c4f859bddaab1a4f327bf 30-Dec-2010 Svetoslav Ganov <svetoslavganov@google.com> Merge "3304011 At times Talkback still works after disabling it."
dee9981c2a9e17d2a58f92f5ade1b9a9d762299d 30-Dec-2010 Dianne Hackborn <hackbod@google.com> Merge "Don't let services in persistent processes be lost after crashing."
070783f6eac010e7d0e09e595c4e8b2334a86962 30-Dec-2010 Dianne Hackborn <hackbod@google.com> Don't let services in persistent processes be lost after crashing.

Special cases persistent processes to not allow their services to be
force stopped if the processes is crashing multiple times. Avoid the
annoying issue with the system bar going away if it is sometimes crashing.

Change-Id: Icf421f45e389827d612d70638030da755a8d3344
om/android/server/am/ActivityManagerService.java
d825ea4ff055eb9302dcb5c8e59fe65bf31f0a41 30-Dec-2010 Robert Greenwalt <rgreenwalt@google.com> Cache the current value of background-data.

The writing of the persistent setting is async, but we should
still remember it so if somebody asks before the write completes
we give the right answer. Makes the read faster too.

bug:3312848
Change-Id: I864cb5f8d496d5bf9cbf0af9a71ca84da078f7c6
om/android/server/ConnectivityService.java
8235404786b9a78321691e4c3ac9bc66c55c602d 29-Dec-2010 Jeff Brown <jeffbrown@google.com> Merge "Add initial support for cursor-based pointing devices."
83c09685f2e62bc3cf7e71bc61d903f4b9ccaeb4 24-Dec-2010 Jeff Brown <jeffbrown@google.com> Add initial support for cursor-based pointing devices.

Some parts stubbed out but you can plug in a mouse and move
a green cursor around to interact with the UI.

Change-Id: I80d597a7f11d3bd92041890f74b3c77326975e6e
om/android/server/InputManager.java
f2245aa5d7f5d6f0ea6d55fb2acc66624b2ef13f 29-Dec-2010 Svetoslav Ganov <svetoslavganov@google.com> 3304011 At times Talkback still works after disabling it.

Change-Id: If99ef28c6285a2d290d46518a07d69d5e22cca5b
om/android/server/AccessibilityManagerService.java
55985bed7be8c93296eee3f4f39557fba4fbaebe 24-Dec-2010 Robert Greenwalt <rgreenwalt@google.com> Make sure the ProxyProperties is always present.

Lets people know that it's non-null, though the InetAddr inside may be.

bug:3305689
Change-Id: I0fe16a9ef1feba987680c419fa2dc0e00e400d91
om/android/server/ConnectivityService.java
550c2b7d39ef43f9a049fc65544f6d3f094f2fab 28-Dec-2010 Dianne Hackborn <hackbod@android.com> am 536feda7: am 949fc0ef: Merge "frameworks/base: Fix to release references to previous live wallpaper"

* commit '536feda7b133b297d43ea62111979d150f222d88':
frameworks/base: Fix to release references to previous live wallpaper
536feda7b133b297d43ea62111979d150f222d88 28-Dec-2010 Dianne Hackborn <hackbod@android.com> am 949fc0ef: Merge "frameworks/base: Fix to release references to previous live wallpaper"

* commit '949fc0efc3203c580372e7713df5331818ae81f1':
frameworks/base: Fix to release references to previous live wallpaper
bccc78ffa57cb259010c25630055eef95c0e0c2c 24-Dec-2010 Irfan Sheriff <isheriff@google.com> Merge "Enable networks on screen on"
8e86b89860114386e6c43f55fc034a26798b73e2 22-Dec-2010 Irfan Sheriff <isheriff@google.com> Enable networks on screen on

We now all configured networks on screen on.
Also, removed event logging for scanning and rssi polling

Bug: 2129037
Change-Id: I995893d77f8575a8d987d9d8604c8272f636d12d
om/android/server/WifiService.java
1039872f597995cab2f88b9c841f8c2b8e71c451 18-Dec-2010 Robert Greenwalt <rgreenwalt@google.com> Reduce the spinning while tethering.

Doing too much stuff - don't retry when we know we shouldn't.

bug:3293460
Change-Id: Ic7b0b6486b39377d74df7a35572059ac60d03fa0
om/android/server/ConnectivityService.java
om/android/server/connectivity/Tethering.java
fefe3f689b0c1838d7a68c0d6275ab4d9f294636 23-Dec-2010 Dianne Hackborn <hackbod@google.com> am cc43401c: am 6eef0ca5: Merge "frameworks/base: Fix to release references in ActivityManagerService" into gingerbread

* commit 'cc43401cd10c681238e0be01de8fe14f5da94fb1':
frameworks/base: Fix to release references in ActivityManagerService
cc43401cd10c681238e0be01de8fe14f5da94fb1 23-Dec-2010 Dianne Hackborn <hackbod@google.com> am 6eef0ca5: Merge "frameworks/base: Fix to release references in ActivityManagerService" into gingerbread

* commit '6eef0ca59438a15d14be8a72b6b29f01da91a5b8':
frameworks/base: Fix to release references in ActivityManagerService
6eef0ca59438a15d14be8a72b6b29f01da91a5b8 23-Dec-2010 Dianne Hackborn <hackbod@google.com> Merge "frameworks/base: Fix to release references in ActivityManagerService" into gingerbread
949fc0efc3203c580372e7713df5331818ae81f1 23-Dec-2010 Dianne Hackborn <hackbod@android.com> Merge "frameworks/base: Fix to release references to previous live wallpaper"
a207ce2abafc653dd362f563f5eb46c2dea51460 23-Dec-2010 Vairavan Srinivasan <vairav@codeaurora.org> frameworks/base: Fix to release references in ActivityManagerService

ServiceRecord's bindings is a hashmap to keep track of all active
bindings to the service. This is not cleared when the service is
brought down by activity manager. This adds up the references to
IntentBindRecords and its references to ServiceRecord. Fix is to
clear the bindings.

ServiceRecord's restarter is a reference to the service and is not
cleared when the service is brought down by activity manager. This
adds up the references to ServiceRecord. Fix is to set the reference
to null when the service is brought down by activity manager.

Change-Id: Ica448cd5f60192c8adb23209b5d0e2cf0c04e446
om/android/server/am/ActivityManagerService.java
fdfc1b27fe7a02d07931e6edb1d9bdae67b84eda 23-Dec-2010 Vairavan Srinivasan <vairav@codeaurora.org> frameworks/base: Fix to release references to previous live wallpaper

The service connection to the previous live wallpaper is unbound when
a new wallpaper is effective. Although the service connection is
unbound it is not disconnected and its reference to wallpaper's
service and engine is still effective. This adds up to the total
JNI references and causes dalvik (hosting system_server) to abort.
Fix is to release the references in clearWallpaperComponentLocked.

Change-Id: Idd2bab83a56d2e6c6dd7ab9be08d5e14887aa384
om/android/server/WallpaperManagerService.java
50b9b94411edabf8c90f1981e561ec706b390da7 23-Dec-2010 Vairavan Srinivasan <vairav@codeaurora.org> frameworks/base: Fix to release references in ActivityManagerService

ServiceRecord's bindings is a hashmap to keep track of all active
bindings to the service. This is not cleared when the service is
brought down by activity manager. This adds up the references to
IntentBindRecords and its references to ServiceRecord. Fix is to
clear the bindings.

ServiceRecord's restarter is a reference to the service and is not
cleared when the service is brought down by activity manager. This
adds up the references to ServiceRecord. Fix is to set the reference
to null when the service is brought down by activity manager.

Change-Id: Ica448cd5f60192c8adb23209b5d0e2cf0c04e446
om/android/server/am/ActivityManagerService.java
fa93584a4fab6ca8d9348658dc30cedf76891753 23-Dec-2010 Jeff Brown <jeffbrown@google.com> am c6f2b3b3: Merge "Fix policy issues when screen is off. (DO NOT MERGE)" into gingerbread

* commit 'c6f2b3b302c06b8b7b81ec7e3a43a7df1813d0e0':
Fix policy issues when screen is off. (DO NOT MERGE)
00ee5b46854404a91d903e8bf42d9f900326326c 23-Dec-2010 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #3299143: Problem report for Hanping Chinese Dictionary Pro"
3b99ede362568a3d213a2b3668126965ad80677e 23-Dec-2010 Dianne Hackborn <hackbod@google.com> Fix issue #3299143: Problem report for Hanping Chinese Dictionary Pro

Let's not crash if there is no clip.

Change-Id: I295031adf37fdd0997c39a2cffc2c6f602d7694e
om/android/server/ClipboardService.java
690d20bb53ba2485f59d128b365eff991d5cc3e6 22-Dec-2010 Dianne Hackborn <hackbod@google.com> Fix issue # 3227963: SecurityException: Neither user 10023 nor...

...current process has android.permission.WAKE_LOCK

When updating a system app, we would actually uninstall the package
of the system app, which also meant removing its uid...! It was just
luck that we would get the same uid when installing the update after
that. During that time, if anyone tried to do anything related to
that uid, it would be unknown.

This change tweaks how we go about replacing system apps by making
it more like normal apps -- to make this work, if we need to disable
the system app, we generate a new PackageSetting from the current
system app and replace it into our data structures, so we can update
that without trashing the current correct information about the (still
actually there) system app.

Also fixed a problem where we were not killing the currently running
app before installing, like we do when updating a normal application.

And fixed a problem where we were not deleting the /data .apk when
uninstalling a system app update.

And added a new option to the "pm" command to clear the data associated
with an app.

Change-Id: I0e879677849aa42950a3c360bf78ad820e87674b
om/android/server/PackageManagerService.java
eb9f7a01b0f501a535d872a957c1102ebb13d1c7 30-Oct-2010 Jeff Brown <jeffbrown@google.com> Fix policy issues when screen is off. (DO NOT MERGE)

Rewrote interceptKeyBeforeQueueing to make the handling more systematic.
Behavior should be identical except:
- We never pass keys to applications when the screen is off and the keyguard
is not showing (the proximity sensor turned off the screen).
Previously we passed all non-wake keys through in this case which
caused a bug on Crespo where the screen would come back on if a soft key
was held at the time of power off because the resulting key up event
would sneak in just before the keyguard was shown. It would then be
passed through to the dispatcher which would poke user activity and
wake up the screen.
- We propagate the key flags when broadcasting media keys which
ensures that recipients can tell when the key is canceled.
- We ignore endcall or power if canceled (shouldn't happen anyways).

Changed the input dispatcher to not poke user activity for canceled
events since they are synthetic and should not wake the device.

Changed the lock screen so that it does not poke the wake lock when the
grab handle is released. This fixes a bug where the screen would come
back on immediately if the power went off while the user was holding
one of the grab handles because the sliding tab would receive an up
event after screen turned off and release the grab handles.

Bug: 3144874
Change-Id: Iebb91e10592b4ef2de4b1dd3a2e1e4254aacb697
om/android/server/InputManager.java
om/android/server/WindowManagerService.java
15c7439acb22ab079dd2ebe42bdf0d2ffd525c5d 22-Dec-2010 Jaikumar Ganesh <jaikumar@google.com> Add TYPE_BLUETOOTH network interface for reverse tethering.

Change-Id: I2aa61ce15f57aea9e8fd3a4cb56799c8bc51e998
om/android/server/ConnectivityService.java
658ecc18695620441a0f77e84904ce9bbaba7dff 22-Dec-2010 Mattias Petersson <mattias.petersson@sonyericsson.com> am 2f209e88: am 1622eee2: Improve performance of WindowState.toString()

* commit '2f209e885a86b8396fe1344043cf9858751fcb64':
Improve performance of WindowState.toString()
efe5bd77eb2a883c57912a0b4dbed122840f1fdd 22-Dec-2010 Robert Greenwalt <rgreenwalt@google.com> am 46f98746: am 5d0fafe8: Merge "Be sure and report NO_CONNECTIVITY when needed." into gingerbread

* commit '46f987465c1df4ec984e725747d4d79fc592abb7':
Be sure and report NO_CONNECTIVITY when needed.
2f209e885a86b8396fe1344043cf9858751fcb64 22-Dec-2010 Mattias Petersson <mattias.petersson@sonyericsson.com> am 1622eee2: Improve performance of WindowState.toString()

* commit '1622eee2e48678b17a4668641957f09213f98905':
Improve performance of WindowState.toString()
1622eee2e48678b17a4668641957f09213f98905 21-Dec-2010 Mattias Petersson <mattias.petersson@sonyericsson.com> Improve performance of WindowState.toString()

This fix improves the performance by caching the string that should
be returned, and reuse it next time if possible.
This will make it faster to switch between activities, approximately
half the time to create the new view when changing from landscape to
portrait. Also, the time for starting a new application is be reduced
as WindowState.toString is being called thousands of times in this
case.

Change-Id: I2b8b9bc1e251d1af43b6c85f049c01452f2573a2
om/android/server/WindowManagerService.java
eaa9e2750ff77c860df34273b64bc0b678a75748 22-Dec-2010 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #3263026: Screen rotation animation is funky..."
5f4d6433463078687bcc9e7a421efb28644440ab 22-Dec-2010 Dianne Hackborn <hackbod@google.com> Fix issue #3263026: Screen rotation animation is funky...

...with more than one activity visible

Change-Id: I7695108a3540f5dd0a59b792ca3bc84c8f680872
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityRecord.java
bb7dc3c8553b9dc4b718b93eabff77fcba10e6a0 22-Dec-2010 satok <satok@google.com> Merge "Fix NPE when the shortcut subtype was not found."
7599a7fb1ab5b75ca801f7d7e448f4c097320e01 22-Dec-2010 satok <satok@google.com> Fix NPE when the shortcut subtype was not found.

Bug: 3300904

Change-Id: I1bc2578b63bb842363d70e48c77e9f9fee8fac6b
om/android/server/InputMethodManagerService.java
f642c89964c9f53c22d0b0f12e33849a93ffbcb2 22-Dec-2010 Dianne Hackborn <hackbod@google.com> Merge "Gah forgot this."
7c0e75e744762cc0b119b1cd29e1226af1115376 22-Dec-2010 Dianne Hackborn <hackbod@google.com> Gah forgot this.

Change-Id: I8d2b31020ac309f17b967734e8ca97a36a5fae45
om/android/server/am/ActivityManagerService.java
88819b276b8a91943e7ff6f0509a87307562b30f 22-Dec-2010 Dianne Hackborn <hackbod@google.com> Rework how recent tasks are added.

Now recents is updated every time an activity is resumed. This
should ensure the recent list is more consistent, in the face of
pressing back or things crashing.

Change-Id: Ibf59419014e549fac55f18633185edcb5ffcaa3c
om/android/server/am/ActivityStack.java
46f987465c1df4ec984e725747d4d79fc592abb7 22-Dec-2010 Robert Greenwalt <rgreenwalt@google.com> am 5d0fafe8: Merge "Be sure and report NO_CONNECTIVITY when needed." into gingerbread

* commit '5d0fafe80752ad4e40fe0ec2bc06c43e669a0612':
Be sure and report NO_CONNECTIVITY when needed.
d68e321841b53263d97dcc7e1682e8f0c7877e62 21-Dec-2010 Robert Greenwalt <rgreenwalt@google.com> Be sure and report NO_CONNECTIVITY when needed.

Reports that we sometimes didn't report NO_CONNECTIVITY led to this suggested change.
Could not repro the problem, but the change looks ok anyway. Better safe than sorry.

bug:3276408
Change-Id: I0cdb48a05a5c9dfcf3a0b468a6eae43d461023b1
om/android/server/ConnectivityService.java
33b432476edbc8b8d39f5f70e594b6bc71317286 21-Dec-2010 Mattias Petersson <mattias.petersson@sonyericsson.com> Improve performance of WindowState.toString()

This fix improves the performance by caching the string that should
be returned, and reuse it next time if possible.
This will make it faster to switch between activities, approximately
half the time to create the new view when changing from landscape to
portrait. Also, the time for starting a new application is be reduced
as WindowState.toString is being called thousands of times in this
case.

Change-Id: I2b8b9bc1e251d1af43b6c85f049c01452f2573a2
om/android/server/WindowManagerService.java
16331c8a1d33defccc5cbb18694def79196c921b 20-Dec-2010 satok <satok@google.com> Add a parameter to InputMethodManagerService.getEnabledSubtype for allowing to select subtypes implicitly if no subtype is enabled.

Bug: 3142286

Change-Id: I92d019d0648c552e6d7695c3530aa81ae054d702
om/android/server/InputMethodManagerService.java
c1ff9b325562dfda88ba7d2ef1a763471d389377 20-Dec-2010 Dianne Hackborn <hackbod@google.com> am d485c76b: am c8e8a12b: Merge "Fix issue #3289835: NullPointerException in..." into gingerbread

* commit 'd485c76b5e09a8c311f8f129cbe5ec75499556be':
Fix issue #3289835: NullPointerException in...
d485c76b5e09a8c311f8f129cbe5ec75499556be 20-Dec-2010 Dianne Hackborn <hackbod@google.com> am c8e8a12b: Merge "Fix issue #3289835: NullPointerException in..." into gingerbread

* commit 'c8e8a12b3c649bbaf610d2ff17bb10a7b32fe579':
Fix issue #3289835: NullPointerException in...
43c9dd10f0fcc38e2e98efb6711e2c6c4d6e132b 19-Dec-2010 Svetoslav Ganov <svetoslavganov@google.com> Merge "Bug 3292797. Talkback accessibility doesn't work at times."
4c7cc34127efa3308e1a09b28728868911b79789 17-Dec-2010 Dianne Hackborn <hackbod@google.com> Demo hack!

To make a 800 tall screen run like a 720:

adb shell setprop persist.demo.screensizehack 800=720

Note this is a persistent property, so it will (intentionally) remain across boots.

Change-Id: I8a8a9f937399327444e8fb154b91f0e642db116e
om/android/server/WindowManagerService.java
51f36f2d7810e16d71f6a70985f3e4f5f7132c78 19-Dec-2010 Svetoslav Ganov <svetoslavganov@google.com> Bug 3292797. Talkback accessibility doesn't work at times.

Change-Id: I43c57a74675847d120a7f2e46b87a1f7f6e4137c
om/android/server/AccessibilityManagerService.java
7fee71f66afef6421b92fa48e63d4bc73f5d0c27 17-Dec-2010 satok <satok@google.com> Fix build breakage

Change-Id: I5db5bcafc61f0aea5279e2f8679094a900b6f6cc
om/android/server/InputMethodManagerService.java
f7ca8f0e4f143e63ddcd892e344f4c71cca92af8 17-Dec-2010 satok <satok@google.com> Merge "Change "more" button to call InputMethodConfigure in Settings"
88b03bd2e12c10c73e455a7eccf7d1aa324049d7 16-Dec-2010 Dianne Hackborn <hackbod@google.com> Hm somehow my log didn't make it in the last patch.

Change-Id: If7b3b041e478e1f05998323c02deb665f65073cb
om/android/server/WindowManagerService.java
64b591de33c53c0d41228ab494295cbf92d18315 16-Dec-2010 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #3291975: Google services frame work crash..."
3ec27e06a763f664b992cf1f9d8b378ea3fb53f5 16-Dec-2010 Dianne Hackborn <hackbod@google.com> Fix issue #3289835: NullPointerException in...

..PackageManagerService.grantPermissionsLP when updating system app

Change-Id: I36c1b96d2fe9a8737843d30f3a2669935fc281bb
om/android/server/PackageManagerService.java
81d5ad515a9379432b2907aa9bcc830303202c84 16-Dec-2010 Robert Greenwalt <rgreenwalt@google.com> Fix Bluetooth-tethering config of interface.

bug:3288692
Change-Id: Id7f1b680392f938000953157716bf9a8f8a66af9
om/android/server/NetworkManagementService.java
cb8f0e099c0e149b6fcc477f9b554a2688f99820 16-Dec-2010 Dianne Hackborn <hackbod@google.com> Fix issue #3291975: Google services frame work crash...

..observed after adding Google account from Gtalk

Change-Id: Ide0646e01ded6f661e4e8de990a21e4d4330b416
om/android/server/WindowManagerService.java
217f548e79ab1ac3dd9e5be8fb6feaa6dcbe4000 14-Dec-2010 satok <satok@google.com> Change "more" button to call InputMethodConfigure in Settings

- Open input methods config fragment in Settings application
- Add input to showInputMethodAndSubtypeEnabler

Change-Id: I3f5c8a6a136aeb91326aa87475edee76517a8467
om/android/server/InputMethodManagerService.java
342ea9dcf429299e504801a79fdc1551c5dfdef7 16-Dec-2010 Dianne Hackborn <hackbod@google.com> Merge "Turn thumbnails back on."
9d6fa8693e8828ad62b87c15e0b5d8c74e5993ef 16-Dec-2010 Robert Greenwalt <rgreenwalt@google.com> Merge "Correct an error code to pass CTS."
0be1e9844a16d7d7708fdb446b330533cd1d3260 15-Dec-2010 Robert Greenwalt <rgreenwalt@google.com> Correct an error code to pass CTS.

We used to report an unmatch stopUsingNetworkFeature call with an "ok, stopped" response,
but we need to report it as an error.

bug:3281837
Change-Id: I35728159e62a021cb10de4396b3f60a92df0570f
om/android/server/ConnectivityService.java
7c8a4b37765b7b491ab7979d589062ef546212bf 15-Dec-2010 Dianne Hackborn <hackbod@google.com> Turn thumbnails back on.

Change-Id: I5b895d4f3558cbae3c5920a3672f02e48c00a8b4
om/android/server/am/ActivityStack.java
b92df0f66926252cf60cdda7812bb1d50ce9378e 11-Dec-2010 Mike Lockwood <lockwood@android.com> Clean up USB notifications:

Add support for separate USB connected and configuration events

Include both USB connected/disconnected and configuration state
in USB_STATE Intent

Remove redundant USB_CONNECTED and USB_DISCONNECTED Intents
Now we just have the sticky USB_STATE broadcast

Move USB disconnnect rebouncing from Tethering to UsbService

Change-Id: Id13eb0c5d51152d2a538985d680ba1db7d2241dc
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/NotificationManagerService.java
om/android/server/UsbService.java
om/android/server/connectivity/Tethering.java
e464fba4a4bbaef40b6b1a4c0f06969484c38edb 15-Dec-2010 Christopher Tate <ctate@google.com> Merge "Don't queue multiple pending backups for the same app"
c28083ab70e0ac8f156a819264efcf930906a0c4 15-Dec-2010 Christopher Tate <ctate@google.com> Don't queue multiple pending backups for the same app

Repeated install/replace of an app before it ran its first backup pass
would wind up enqueueing multiple backup requests, all of which would
run back to back when the time came. This no longer happens.

Also, if a backup request is queued for an app that is then uninstalled
before that request is honored, we no longer fail in expensive and log-
intensive ways; we now fail cleanly, early.

Bug 3133212

Change-Id: I745f5b2f966a1c874f34a0107a438ad42fa7f005
om/android/server/BackupManagerService.java
04808c294027f8bc318643a94c85a999257d7f52 14-Dec-2010 Robert Greenwalt <rgreenwalt@google.com> Fix some IpV4-only code.

InterfaceConfiguration changed to use InetAddress and stop with the string->int->string
conversions.

bug:2542681
Change-Id: I11c4954547333c43bb840fa0469ddde57b0d043b
om/android/server/NetworkManagementService.java
om/android/server/WifiService.java
om/android/server/connectivity/Tethering.java
89f8d63a991f2dc4a961ad92ab5bb6b6c1ecd60f 14-Dec-2010 Christopher Tate <ctate@google.com> Merge "Time out orphaned / unresponsive restore sessions"
001667313fb4ccc5e8235cd1abddf59c63e4560a 14-Dec-2010 Christopher Tate <ctate@google.com> Merge "Don't restore wildly wrong sized wallpapers"
d2835935d2df8be70d1b37d3ef3b2fe0155b3422 14-Dec-2010 Dianne Hackborn <hackbod@google.com> Fix issue #3258849: Grab thumbnail when exiting an app via back

Also issue #3281400: Rotating a retained instance fragment leaks the fragment manager

And turn off fragment debug logging.

Change-Id: Ibdd7db82bb35618021bcba421ba92ced7cd691c2
om/android/server/WindowManagerService.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityStack.java
om/android/server/am/TaskRecord.java
32f4ab457d9f79251413357b75b7a233068a892c 14-Dec-2010 Irfan Sheriff <isheriff@google.com> Merge "WPS fixes and refactor"
73a3cb3848292c51d779cbb945088e8725404017 14-Dec-2010 Christopher Tate <ctate@google.com> Time out orphaned / unresponsive restore sessions

An app that fires up a restore session but then crashes or drops its
session reference will currently render restore functions totally
unavailable until the device is rebooted. This CL introduces an
inactivity timeout [currently 60 seconds] on restore sessions, after
which the session is shut down and becomes unavailable to the app
who nominally still held it.

Synchronization between the timeout and the normal asynchronous
use of the session by the application is managed by running both
the timeout action and the normal teardown process on the backup
manager service's handler thread.

Bug 3276362

Change-Id: I1f63b83e96e66b0e7eb15a1e20e375049babf06e
om/android/server/BackupManagerService.java
3f64f8d8fc05189777e83b4efd3882cbc661fdeb 11-Dec-2010 Christopher Tate <ctate@google.com> Don't restore wildly wrong sized wallpapers

If the dimensions of the original are sufficiently different from the
device's preferred dimensions, just don't restore the image. This
avoids bad letterboxing / clipping on e.g. phone <-> tablet data
migration.

The expansion/shrinkage ratios used here allow restores of saved
wallpaper images among HVGA devices, among WVGA variants, and
among tablets; but skip restoring wallpapers across those
categories (where severe clipping or letterboxing would occur).

Bug 3261863

Change-Id: I75e75d6401d18f1df10d75796ee04e21d2302cfa
om/android/server/SystemBackupAgent.java
ccc714131359eb1022d8c6702b7d82ab9e93f27c 13-Dec-2010 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 78e9f4cb to master

Change-Id: I1135361e6d66f524c3f349e2bf1f31bd4191c634
02fb46a297c4f645f2a30b574151401dd0978521 08-Dec-2010 Irfan Sheriff <isheriff@google.com> WPS fixes and refactor

- Allow IP and proxy set up for WPS
- Use string for WPS pin to avoid losing leading zeros
- Add a seperate WPS state machine and WpsConfiguration class

Change-Id: I87f43fff8bba0ae8ff02e5fc495a8bc628a8c8cf
om/android/server/WifiService.java
78e9f4cbaece783b7b87ce3fb0a157dae766012a 13-Dec-2010 Dianne Hackborn <hackbod@google.com> am e4a59519: Fix issue #3154576: battery stats checkin should include UID -> packages+ map

* commit 'e4a5951925f16f18dae91ed65567e96528f17fee':
Fix issue #3154576: battery stats checkin should include UID -> packages+ map
e4a5951925f16f18dae91ed65567e96528f17fee 07-Dec-2010 Dianne Hackborn <hackbod@google.com> Fix issue #3154576: battery stats checkin should include UID -> packages+ map

Includes some other small fixes to battery collection and a few
other things.

Output of package info looks like this:

5,0,i,uid,1000,com.android.settings
5,0,i,uid,1000,com.android.providers.subscribedfeeds
5,0,i,uid,1000,com.android.providers.settings
5,0,i,uid,1000,com.android.server.vpn
5,0,i,uid,1000,android
5,0,i,uid,1000,com.android.systemui
5,0,i,uid,1000,com.google.android.backup
5,0,i,uid,1001,com.android.phone
5,0,i,uid,1001,com.android.providers.telephony
5,0,i,uid,1022,com.android.nfc
5,0,i,uid,10021,com.google.android.location
5,0,i,uid,10021,com.google.android.syncadapters.calendar
5,0,i,uid,10021,com.google.android.gsf
5,0,i,uid,10021,com.google.android.syncadapters.contacts
5,0,i,uid,10026,com.android.providers.downloads.ui
5,0,i,uid,10026,com.android.providers.media
5,0,i,uid,10026,com.android.providers.drm
5,0,i,uid,10026,com.android.providers.downloads
5,0,i,uid,10032,com.android.launcher
5,0,i,uid,10039,com.google.android.gm
5,0,i,uid,10041,com.google.android.gallery3d
5,0,i,uid,10049,com.android.providers.calendar

Change-Id: I9e38f254eef146339113ad270f5c6e8b60fb7a1d
om/android/server/PackageManagerService.java
om/android/server/am/BatteryStatsService.java
dd60ee728d9e44a8c85ed6a99bcfa44beb0afa23 13-Dec-2010 Jean-Baptiste Queru <jbq@google.com> am 6d13b146: am e78a0009: resolved conflicts for merge of 4b94c451 to stage-korg-master

* commit '6d13b146e0444f40f45b9fe5812093c5e611b68e':
Added dropbox broadcast notification
6d13b146e0444f40f45b9fe5812093c5e611b68e 13-Dec-2010 Jean-Baptiste Queru <jbq@google.com> am e78a0009: resolved conflicts for merge of 4b94c451 to stage-korg-master

* commit 'e78a000955c283509ee8a21b8b7e448060ac8dd8':
Added dropbox broadcast notification
e78a000955c283509ee8a21b8b7e448060ac8dd8 13-Dec-2010 Jean-Baptiste Queru <jbq@google.com> resolved conflicts for merge of 4b94c451 to stage-korg-master

Change-Id: I07b974f96ca598677e58623050e4668822e68f23
30d7189067524000c738c188c4ff91f84f474d25 11-Dec-2010 Dianne Hackborn <hackbod@google.com> Fix issue #3274841: Orientation change problem with a paused activity

Plus a bunch of debug output improvements.

And some new Intent helpers for dealing with restarting an app.

Change-Id: I50ec56bca6a86c562156b13fe8a6fdf68038a12e
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityRecord.java
17d9550029c443968e488ddcfb9549563a141823 10-Dec-2010 Dianne Hackborn <hackbod@google.com> Turn off screenshot capturing for thumbnails.

May reduce occurance of graphics hangs as a temporary stop-gap until
the real problem is fixed.

Change-Id: I57f831944cc621bcb1d1d2051bb48f14e53879b1
om/android/server/am/ActivityStack.java
faa27f932e15c673106f984cbbeef23c079bcc81 10-Dec-2010 Mike Lockwood <lockwood@android.com> Merge "Rename android.hardware.Usb to UsbManager and UsbObserver to UsbService"
770126a678ccc9328a89407ffc82f4d998b25427 10-Dec-2010 Mike Lockwood <lockwood@android.com> Rename android.hardware.Usb to UsbManager and UsbObserver to UsbService

In preparation for an upcoming change that will make UsbService into a real system service

Change-Id: Id85d624cfc6b10b49a08105cfaaacc667a492c12
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/NotificationManagerService.java
om/android/server/SystemServer.java
om/android/server/UsbObserver.java
om/android/server/UsbService.java
om/android/server/connectivity/Tethering.java
7da6ac33a9de82be52e22846d5f22d502452854c 10-Dec-2010 Dianne Hackborn <hackbod@google.com> Fix issue #3272051: Use backward transition when going backwards.

Also know as:

Issue #3272051 Contacts edit view: Tapping the in-app back button
results in a forward transition

Yeah more complexity in deciding which animation to use.

Also reduce complexity in deciding which app's animation set to use,
to balance things out (and make it have less stupid behavior).

Change-Id: I78c6c5c5249a96206f7e03ce587c1dcb9a7dc14f
om/android/server/WindowManagerService.java
om/android/server/am/ActivityStack.java
a58fd15a5be03927f7ae211ee25ce165ec167681 09-Dec-2010 Christopher Tate <ctate@google.com> Merge "Add a couple of transport-descriptive methods to IBackupManager"
f5e1c296370b45503a6c48bdb7da8b829bc0b906 09-Dec-2010 Christopher Tate <ctate@google.com> Add a couple of transport-descriptive methods to IBackupManager

Privileged callers can now ask the transport for a string describing
its current state, and for an Intent that can be passed to startActivity()
in order to bring up its exported configuration UI. These will be used
in Settings in order to e.g. show the user the currently active account
being used for backup, and allow the user to choose an account.

The data being funnelled through IBackupManager here are the ones
already exposed by the transports in their implementation of the
IBackupTransport interface.

Bug: 2753632

Change-Id: I2227a2b111d8d0ddf221d63020e20c1316fff55b
om/android/server/BackupManagerService.java
c25f70a440ef9468085b8d98c8416c7e8b116753 09-Dec-2010 Andy Stadler <stadler@google.com> API CHANGE - Add hasGrantedPolicy() API

* Allows an app to detect that it needs to have additional policies granted
* Add "refreshing" parameter to setActiveAdmin() to handle this case
* Minor cleanups to eliminate warnings (mostly for unused things)

Bug: 3253179
Change-Id: I4bf639bf560557130bf98e8cfb75f996fac416f1
om/android/server/DevicePolicyManagerService.java
d2112306330ce0c162bee4b864991962ca2b655a 08-Dec-2010 Mathias Agopian <mathias@google.com> remove support for PUSH_BUFFER surfaces and overlays

the same functionality is now supported through
the h/w composer HAL, and YUV support in the GPU.

Change-Id: I8146605449954b8e8fd7f78810b7d873c2d8f5bf
om/android/server/WindowManagerService.java
b247536aa3d458750edbc6b45b2348a994d83426 07-Dec-2010 Hakan Still <hakan.still@sonyericsson.com> Added dropbox broadcast notification

To monitor the dropbox an application have to either poll the dropbox
and keep track of all entries or observ the /data/system/dropbox
directory. The later requires that the application runs as system-user.
This commit adds that a broadcast intent is sent when something is written
to the dropbox and an application can just listen on this intent and
then reads the entry with help of the DropboxManager class.
The application have to hold the permission android.permission.READ_LOGS
to get the intent.

Change-Id: I1f77f206a243df69f4ed5306078c47f7bf6181ec
om/android/server/DropBoxManagerService.java
0aae2d4e0075fd699cf40b26dca0eb2c3b3e37d2 08-Dec-2010 Dianne Hackborn <hackbod@google.com> Rework activity lifecycle so onSaveInstanceState() is after onPause().

The goal is to fix a bunch of fragment-related bugs caused by various
things trying to do fragment transactions after onPause()... which
currently throws an exception, since this is after the activity's state
has been saved so the new fragment state can be lost.

The basic change is relatively simple -- we now consider processes
hosting paused or stopping activities to be unkillable, and the client
code now does the onSaveInstanceState() as part of stopping the
activity.

For compatibility, if an app's targetSdkVersion is < HONEYCOMB, the
client side will still call onSaveInstanceState() prior to onPause()
and just hold on to that state until it needs to report it in once
being stopped.

Also included here is a change to generate thumbnails by taking
screenshots. The code for generating thumbnails by re-rendering
the view hierarchy is thus removed.

Change-Id: Iac1191646bd3cadbfe65779297795f22edf7e74a
om/android/server/ScreenRotationAnimation.java
om/android/server/WindowManagerService.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityStack.java
49ed71db425c5054e3ad9526496a7e116c89556b 07-Dec-2010 Jeff Brown <jeffbrown@google.com> Add support for fallback keycodes.

This change enables the framework to synthesize key events to implement
default behavior when an application does not handle a key.
For example, this change enables numeric keypad keys to perform
their associated special function when numlock is off.

The application is informed that it is processing a fallback keypress
so it can choose to ignore it.

Added a new keycode for switching applications.

Added ALT key deadkeys.

New default key mappings:
- ESC -> BACK
- Meta+ESC -> HOME
- Alt+ESC -> MENU
- Meta+Space -> SEARCH
- Meta+Tab -> APP_SWITCH

Fixed some comments.
Fixed some tests.

Change-Id: Id7f3b6645f3a350275e624547822f72652f3defe
om/android/server/InputManager.java
om/android/server/WindowManagerService.java
e798268f16ec6d0542616ea45ca0bb18ae2645ee 07-Dec-2010 Wink Saville <wink@google.com> Have MobileDataStateTracker & DataConnectionTracker communicate directly.

Added CMD_SET_DATA_ENABLE which is sent when data is enabled/disabled
via the ConnectivityService. It is anticipated that the communication
channel will be used for additional commands and to receive unsoliciated
commands from DataConnectionTracker back to MobileDataStateTracker.

Change-Id: I3863e7385155d503f069b1dcb7e4f766ec78b5f8
om/android/server/ConnectivityService.java
da3d5e6587c1476d489495ac93e84ebf223024c9 06-Dec-2010 Robert Greenwalt <rgreenwalt@google.com> Add a Dummy data connection for testing purposes.

Enable with:
<string-array translatable="false" name="networkAttributes">
<item>"wifi,1,1,1"</item>
<item>"dummy,7,7,0"</item>
</string-array>

in your config.xml

Change-Id: I3965edaeb4873e95131f4083b8d23d682ce17841
om/android/server/ConnectivityService.java
6dcc906c4518d52321fd3ea2d3b8f345844ba78c 07-Dec-2010 Robert Greenwalt <rgreenwalt@google.com> Merge "Make Proxy change broadcast sticky"
a2e13392412d5094e49ea0053599477401d1a67e 06-Dec-2010 Robert Greenwalt <rgreenwalt@google.com> Make Proxy change broadcast sticky

Makes it easier for apps who care. Includes the current values.

Change-Id: I5f1d3589a036ebc9910281f97d4780ecda2829f2
om/android/server/ConnectivityService.java
d752b66a3337df7578054ea827598e237819c57d 06-Dec-2010 Andy Stadler <stadler@google.com> Merge "Fix notification/builder defaults"
733c62909c1cca72be50094acb15dc1014b956ce 06-Dec-2010 Robert Greenwalt <rgreenwalt@google.com> Don't clobber the net hostname if it's already set.

Be a good citizen.

Change-Id: Ic58aeab013e2ff34201be71e01e399390edbbb5f
om/android/server/ConnectivityService.java
110988c8b70f4ab089b179b7966497d508506263 03-Dec-2010 Andy Stadler <stadler@google.com> Fix notification/builder defaults

* Builder wasn't setting mAudioStreamType to its non-zero default
* Clean up warnings (imports, unused variables, overrides)

Bug: 3250299
Change-Id: I019f54a0d6c97e71681d24144e784fa4b4737f7e
om/android/server/NotificationManagerService.java
88bf6084c339fe64ce910a35443ca2d71cfc2f23 03-Dec-2010 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #3175809: system_server crash with SEGV_MAPERR (IKXEVEREST-1372)"
87fc30828209afa25be69ac7053241f4eaeb3378 03-Dec-2010 Dianne Hackborn <hackbod@google.com> Fix issue #3175809: system_server crash with SEGV_MAPERR (IKXEVEREST-1372)

Don't crash if dump() is called before we have set mDisplay.

Change-Id: I0d3d356ff27dbc61353a5b99e348178937d5f4a5
om/android/server/WindowManagerService.java
ed9c02b56c6f56a583aa272f82818ef039face75 03-Dec-2010 Wink Saville <wink@google.com> Cleanup logging.

Change-Id: Ie73c6d97ec19b0d27e58c085b60e885d90066056
om/android/server/ConnectivityService.java
bcee0ef7ea3faa8c52b97ac3537289c20f2cc24f 03-Dec-2010 Brad Fitzpatrick <bradfitz@android.com> Merge "sampling profiler hz -> ms"
fddcb0617456da836c8a4e5e16cc4177447608be 03-Dec-2010 Jeff Brown <jeffbrown@google.com> Merge "Improve support for external keyboards."
9065504a63d6bf37bf621191fda1d1fe4da76ee3 02-Dec-2010 Jeff Brown <jeffbrown@google.com> Improve support for external keyboards.

Use Vendor ID, Product ID and optionally the Version to
locate keymaps and configuration files for external devices.

Moved virtual key definition parsing to native code so that
EventHub can identify touch screens with virtual keys and load
the appropriate key layout file.

Cleaned up a lot of old code in EventHub.

Fixed a regression in ViewRoot's fallback event handling.

Fixed a minor bug in FileMap that caused it to try to munmap
or close invalid handled when released if the attempt to map
the file failed.

Added a couple of new String8 conveniences for formatting strings.

Modified Tokenizer to fall back to open+read when mmap fails since
we can't mmap sysfs files as needed to open the virtual key
definition files in /sys/board_properties/.

Change-Id: I6ca5e5f9547619fd082ddac47e87ce185da69ee6
om/android/server/InputManager.java
d7ad0d28372bba03a3b6c5d01e0e7b0066e51374 03-Dec-2010 Brad Fitzpatrick <bradfitz@android.com> sampling profiler hz -> ms

Goes along with def41ec2e8 / Ifcfc343

Change-Id: Ia5cc90e6f8d83dcdf40802859002507980310d06
om/android/server/SamplingProfilerService.java
cd5e8b60cad508714fc9ecf42d6431ad8ccf7db1 03-Dec-2010 Jean-Baptiste Queru <jbq@google.com> am a30c12a1: am 4a88013a: resolved conflicts for merge of bf1439c5 to stage-korg-master

* commit 'a30c12a18326ed4d608382cd4f970a6e15a58bf5':
Preserve flags field of event passed to injectKeyEvent()
a30c12a18326ed4d608382cd4f970a6e15a58bf5 03-Dec-2010 Jean-Baptiste Queru <jbq@google.com> am 4a88013a: resolved conflicts for merge of bf1439c5 to stage-korg-master

* commit '4a88013a4a06a9ea80e8419f94694936e6b013f0':
Preserve flags field of event passed to injectKeyEvent()
4a88013a4a06a9ea80e8419f94694936e6b013f0 03-Dec-2010 Jean-Baptiste Queru <jbq@google.com> resolved conflicts for merge of bf1439c5 to stage-korg-master

Change-Id: Iab543a7ee449025f1df5d58afaa8f8fdd4809c99
b7090d68be1046e7b8743620592bb63c8256eeab 02-Dec-2010 Robert Greenwalt <rgreenwalt@google.com> Load persisted global proxy settings.

Was persisted before, but not loaded at boot.

Change-Id: I6d6b69ede3d212a8266847d73d07a037ae917788
om/android/server/ConnectivityService.java
d66c63e56e6b89d117bc4ff6dff9d70dec92e427 02-Dec-2010 Wink Saville <wink@google.com> Merge "Remove the need for a token parameter from AsyncChannel."
c6ded10dd1ee08c887d0e81d683a7611fbe3ca4d 29-Nov-2010 Mike Playle <mike.playle@realvnc.com> Preserve flags field of event passed to injectKeyEvent()

This patch allows users of WindowManagerService.injectKeyEvent() to
set flags on the key event being injected.

In particular this allows long presses (FLAG_LONG_PRESS) to be
injected into the window manager.
om/android/server/WindowManagerService.java
cfce303cbdd59a3883957e4bc96a0476ceeb86ac 02-Dec-2010 Wink Saville <wink@google.com> Remove the need for a token parameter from AsyncChannel.

By returning the channel object it self it is unnecessary
to have a token. Also, no current code needed it, if its
needed in the future it can be added back.

Change-Id: Ie1d2a1e885f9cd74e95663711ccefb760811bf16
om/android/server/WifiService.java
407b4e91fe7627545b8110e683953353236b4543 01-Dec-2010 Christopher Tate <ctate@google.com> API CHANGE: drags can now carry an originator-only object payload

When calling startDrag(), the app can now supply an Object to be passed
along in every DragEvent that the app winds up receiving itself. This
object is *not* passed to any other applications; it's strictly app-
local. The purpose is to allow state tracking/management to be done
directly through the drag mechanism rather than requiring out-of-band
code.

An example of the utility here might be TextEdit widgets. A drag that
starts in one TextEdit but ends in a different one should be treated as
a copy/paste operation, where the originating TextEdit is not altered.
However, a drag that starts and ends in the *same* TextEdit is a 'move'
operation within that TextEdit; the text is removed from its original
position and inserted at the drop point. To support this easily, the
drag/drop code in TextEdit can now pass a pointer to the originating
view as the local state object. Then, the drop recipient could tell
whether the drag started within the same TextEdit without needing to
implement any other out-of-band state tracking.

This CL (and its accompanying CLs in a few other packages where the
startDrag() API is being used) adds the new local-state parameter to
the API, but does not actually change the behavior of any existing
clients.

Change-Id: Icba73b2ab4a650b7a94485a19633065b0ef9058c
om/android/server/WindowManagerService.java
0f761d6b8f5d5a607c87dbcdca6fe0ec7911970e 01-Dec-2010 Dianne Hackborn <hackbod@google.com> Implement issue #3201795: Improve transition when keyboard comes up

ViewRoot now does a fade animation between a snapshot of the previous
layout to the new one when its content rect changes.

Also tweaked some things in the window manager to fix problems in
deciding when to animate the movement of a window and when not to.

Change-Id: I9b4b3bd53c8258bd39a2f2fc315e77cfc56a409c
om/android/server/ScreenRotationAnimation.java
om/android/server/WindowManagerService.java
f38b709e470849943befbe88a0daeb7324f5114b 01-Dec-2010 Irfan Sheriff <isheriff@google.com> am af2d3c7c: Merge "DO NOT MERGE Remove wifistatetracker lock access in BroadcastReceiver" into gingerbread

* commit 'af2d3c7ccebb009f31a92c1a87b0925a2891e1c4':
DO NOT MERGE Remove wifistatetracker lock access in BroadcastReceiver
1f2451007c660091b7b090c1ea332f9044515d2d 19-Nov-2010 Jeff Brown <jeffbrown@google.com> Ensure the ShortcutManager uses the correct key character map.

The ShortcutManager used to only receive the key code of the key event
that triggered the shortcut. This change now provides the shortcut
manager with the whole key event so it can look up the associated
character using the correct key character map.

To make this more efficient, added a mechanism for recycling
key events. At the moment it is only used by key events owned by the
system process, since clients of the existing API (such as Views)
might continue to hold on to key events after dispatch has finished so
they would break if the key event were recycled by the framework.

Deprecated KeyCharacterMap.BUILT_IN_KEYBOARD.

Change-Id: I4313725dd63f2be01c350c005a41c7fde9bc67e8
om/android/server/InputManager.java
om/android/server/WindowManagerService.java
47e6b1b5eef8ee99872f278f66bc498c4fcca0d8 30-Nov-2010 Jeff Brown <jeffbrown@google.com> Support non-orientation aware keyboards and other devices.

Fixed a bug with dpad keys on external keyboards being rotated
according to the display orientation by adding a new input device
configuration property called "keyboard.orientationAware".

Added a mechanism for overriding the key layout and key character
map in the input device configuration file using the new
"keyboard.layout" and "keyboard.characterMap" properties.

Also added "trackball.orientationAware", "touch.orientationAware" and
"touch.deviceType" configuration properties.

Rewrote the configuration property reading code in native code
so that it can be used by EventHub and other components.

Added basic support for installable idc, kl, and kcm files
in /data/system/devices. However, there is no provision for
copying files there yet.

Disabled long-press character pickers on full keyboards so that
key repeating works as expected.

Change-Id: I1bd9f0c3d344421db444e7d271eb09bc8bab4791
om/android/server/InputManager.java
735206f121cb2a11b3397870e6565178627e0aa3 01-Dec-2010 Mike Lockwood <lockwood@android.com> Merge "NotificationManagerService: minor cleanup"
35e16bfa9b9ad1074a7130fb2119cc109f31d4b0 01-Dec-2010 Mike Lockwood <lockwood@android.com> NotificationManagerService: minor cleanup

Change-Id: I998727662eb3c0bae20e5af3f8c5e702bf5d4f38
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/NotificationManagerService.java
f92b453a58d19531f3735dd90cd4f97a78823ae1 03-Nov-2010 Irfan Sheriff <isheriff@google.com> DO NOT MERGE Remove wifistatetracker lock access in BroadcastReceiver

The worksource reporting gets blocked by the
statetracker lock which can cause system restarts when
done from broadcastreceiver thread

Bug: 3153787
Change-Id: Ie70687e7453a1c3618bac1424562be44762b2c9d
om/android/server/WifiService.java
7d3a5bcf300aea7bffb1d46f28e244ca807f5e82 30-Nov-2010 Dianne Hackborn <hackbod@google.com> Auto-show IME for dialogs on large screens.

On a large screen the IME is not going to as significantly
cover a pan & scan window, so allow it to auto-show if the
app hasn't otherwise specified its visibility.

Also some fixes here and there.

Change-Id: I10227ec59c43454e06e6870633f53426f4d78b83
om/android/server/InputMethodManagerService.java
d93e75e45ee18e4829eddca57b99c72bd4e470f3 30-Nov-2010 Andy Stadler <stadler@google.com> Merge "Update device password expiration/alarm behavior"
043116a572c2bcb9dad4c264b38e252861fa54b4 30-Nov-2010 Andy Stadler <stadler@google.com> Update device password expiration/alarm behavior

* Change alarm math to snap to multiples of 24h before expiration
* Stop recurring alarm when no expirations upcoming
* Fix small bug in update logic when device password is updated

Change-Id: I31ce147e4f8c766245fae3e286fc50eaee4cfa22
om/android/server/DevicePolicyManagerService.java
249345b842ef7f85b3f23c7fcbc94808808c443f 29-Oct-2010 Chris Tate <ctate@google.com> Ensure that the first post-restore backup pass is correct

Some restore passes bring an ancestral dataset to the application, but
others instead act to bring an app back into sync with its own most-
recently-saved data. In the latter case the state file written by the
app after the restore is a correct basis for generating future backup
deltas, but in the former case it is not.

The app should not be required to distinguish between these cases;
the framework has all the information necessary to handle the saved
state correctly following any flavor of restore operation. This
patch makes the Backup Manager properly cause a full backup pass
following an ancestral-dataset restore. After a current-set
restore the saved state file is an accurate description for
purposes of continued backup operations, so is preserved.

Change-Id: I5982f32c9bb17fb7c953b465673ced11c40b0d95
om/android/server/BackupManagerService.java
f9d0be917b6f80efad29dce88ad2d2f117986c57 24-Nov-2010 Dianne Hackborn <hackbod@google.com> Implement rotation animations.

This introduces a small new feature for ScaleAnimation allowing
the scaling factor to be expressed as a percentage of the object
(which is the same as the existing float interpretation), a
percentage of the container, or a fixed dimension. Maybe not
useful for anything else, but I needed it for this.

Also fix a bug in how transformation matrices were propagated
from the Animation to Surface Flinger, so that rotate and skew
animations will actually work. :p

Change-Id: I301f4caa2147aa35564b5e511cb9c0b368d2425d
om/android/server/ScreenRotationAnimation.java
om/android/server/WindowManagerService.java
b416a71e56cdd50742eb897366a140775aa4cd61 25-Nov-2010 satok <satok@google.com> Fix build breakage

- Reverted unintenitionally removed function

Change-Id: If083119e31c28b6f73d8ac85f2df4a8ab12dcb7f
om/android/server/InputMethodManagerService.java
440aab54cab106030f1edafea4dec1f9d8624f9b 25-Nov-2010 satok <satok@google.com> Removed InputMethodSubtypePicker

Change-Id: I08abac5d65a30c02cc671f4f70e93df25b6c8a92
om/android/server/InputMethodManagerService.java
cd7cd2969f545ad061a9b4ecd0044f15eb1b4abb 20-Nov-2010 satok <satok@google.com> Store the current IME's token in the system bar for changing the current IME to a shortcut IME from the system bar

Bug: 3212206
Bug: 3201828

- Added a shortcut IME button. This will be used for calling a shortcut IME (e.g. Voice input)
- Made the positions of IME buttons left aligned
- IME token is required to change IME because of the security reasons.

Change-Id: I48ba5e2509b3aa1bfd2394f9201427fa6b93c6d3
om/android/server/InputMethodManagerService.java
om/android/server/StatusBarManagerService.java
b0be5d1d4a31f0ba40dc38bf9990d8935b6a5c6c 25-Nov-2010 Wink Saville <wink@google.com> Merge "Use apn types instead of host when sending notifications."
26f5a384d81487cc6bb80a78fb40d5e7e7ffc81e 25-Nov-2010 Wink Saville <wink@google.com> Use apn types instead of host when sending notifications.

Previously we were passing the apn host not the type and this
caused us to sometimes not send out network change notifications.

Also rename of getActivceApn to getActiveApnHost to make
the method clearer on what is being returned and add some debug.

A future change will rename ApnSetting.apn to ApnSetting.host
and getActiveApnString.

bug: 2995554
Change-Id: I0c405b0f823f62c9596968c8516b820d9f8a94f2
om/android/server/TelephonyRegistry.java
c1a968a8ed45181312f7d4bcdbba0cc8ddc201ba 24-Nov-2010 Brad Fitzpatrick <bradfitz@android.com> Option to enable StrictMode flashing on userdebug builds.

Change-Id: Ifc8e733ea0e0f6bda234a18ad84bcd230879e802
om/android/server/WindowManagerService.java
a111187a5b4dc5d287e29ced7d65e8d20edca140 24-Nov-2010 Dianne Hackborn <hackbod@google.com> Change rotation freeze to all be implemented in window manager.

Lots of work for no visible change in behavior, but now we can
do some fancier stuff...

Also allow rotation in all 4 directions.

Change-Id: I7e5e9537c5e359f69b83c10f65cc1ce95f371461
om/android/server/ScreenRotationAnimation.java
om/android/server/WindowManagerService.java
2820351489537698ad153c6397edf3270455edc5 24-Nov-2010 satok <satok@google.com> Add an API to set InputMethodAndSubtype

Change-Id: I66f1a4c8e0d98705614f12a737e7efcd0263b72a
om/android/server/InputMethodManagerService.java
f3db1af8d55ab247b6db67baf4fe772c18f33cab 23-Nov-2010 satok <satok@google.com> Change return type of getShortcutInputMethodsAndSubtypes to Map<InputMethodInfo, List<InputMethodSubtype>>

bug: 3201828

- Brushed up the code

Change-Id: I11ad9d1d749bd8947144ca7f1676bab3cf777fd6
om/android/server/InputMethodManagerService.java
f3d86be6d7d2999cd6bae236817688490df7da71 23-Nov-2010 Brad Fitzpatrick <bradfitz@android.com> StrictMode fingerprinting / hashCode improvements.

Change-Id: I08ff939327f7c11a562851847ae91c67b1db4f87
om/android/server/am/ActivityManagerService.java
0dccd0f0dc519b1f39b31aae9378ea8835feb94a 23-Nov-2010 Brad Fitzpatrick <bradfitz@android.com> Merge "CloseGuard cleanups."
0c8224000db6a3c876f1d3717975a22d10ecddec 23-Nov-2010 Brad Fitzpatrick <bradfitz@android.com> CloseGuard cleanups.

Change-Id: I8ece2cb7f2c7ca2c1ac72ca3080c436e50aa6c80
om/android/server/DropBoxManagerService.java
a31560598af25d5116effc2a6af0d9be12a0628d 20-Nov-2010 Mike Lockwood <lockwood@android.com> Rename android.provider.Mtp to android.provider.Ptp

We are only supporting the PTP subset of MTP in host mode and have
no plans for full MTP, so calling it Mtp was misleading.

Also moved ACTION_MTP_SESSION_END Intent name to android.provider.MediaStore
and added it to the public API.

Change-Id: Ie35d15864d5972e65a39b982aa51316ecca3725a
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/UsbObserver.java
1c24e957ad8624753f9d89b578d9d34d7ac5f80b 23-Nov-2010 Dianne Hackborn <hackbod@google.com> Fix issue #3222014: Dragging items around home screen is unresponsive

Also make the dim fade duration configurable, with a configured value
that more closely matches what UX wants.

Change-Id: Id32e2de14a2a2003d8fade6331377d8d723ac397
om/android/server/WindowManagerService.java
6804433b0af50f33a338307ae8ddb50bc49e886b 23-Nov-2010 Brad Fitzpatrick <bradfitz@android.com> StrictMode visual notification support.

Change-Id: I64a5adb683060d9649f1132414547bb3c346a2a8
om/android/server/StrictModeFlash.java
om/android/server/WindowManagerService.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
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityStack.java
om/android/server/am/PendingIntentRecord.java
om/android/server/am/TaskRecord.java
4e4569dab5c75804b01a19b2d6e6101b445c1c68 19-Nov-2010 satok <satok@google.com> Add an API to get shortcut IMEs

- If there are no selected shortcut IMEs, the most applicable voice input will be selected as a shortcut IME

Change-Id: Ibd0f7ef5101013569c303820a3adc9038a97356d
om/android/server/InputMethodManagerService.java
e9811d7dd4fee963a92430066205168b167a8434 23-Nov-2010 satok <satok@google.com> Merge "Synchronize getCurrentInputMethodSubtype"
3ef8b29fa03fe3ae1c57fd891a12afa46128fff8 22-Nov-2010 satok <satok@google.com> Synchronize getCurrentInputMethodSubtype

Change-Id: I8bcedb39baba10e7035d5c1c11f41f74943874d1
om/android/server/InputMethodManagerService.java
794be40f8b62b309004cc3f68ca9567e4ef24c6b 22-Nov-2010 Joe Onorato <joeo@google.com> new battery assets

Change-Id: I61331a6eb237f8883bf604c0767623b08c2fa41b
om/android/server/BatteryService.java
3fe7f2f2e35692fe563ae00f62995030f1987c4f 20-Nov-2010 Joe Onorato <joeo@google.com> fix warning

Change-Id: I243e9b81256af13b8296dd121b1204caed7a3996
om/android/server/WindowManagerService.java
46439cec0eb0da4d0f853f2d8712d0c00c98475b 19-Nov-2010 Joe Onorato <joeo@google.com> Update the look of the notifications. Includes adding a new Notification.Builder class.

Change-Id: I7c57b81c45defe77d6f3d22472e9cf8432bbed03
om/android/server/NotificationManagerService.java
1f35d487ba1a5208e66bc960f35f6e1d874fbd1e 20-Nov-2010 Andy Stadler <stadler@google.com> Fixes to DevicePolicyManager.setPasswordExpirationTimeout

* Fix permissions problem in DevicePolicyManager
* Allow short timeouts (primarily for testing)
* Remove unused debugging code

Bug: 3212583
Change-Id: I3770b1c6f090363e8e8d65db92839cd53de05c45
om/android/server/DevicePolicyManagerService.java
880119bf43d738ca632b5d3861eb52d655c1c0fc 19-Nov-2010 Dianne Hackborn <hackbod@google.com> Implement issue #2367442: Please add API for manipulating installer
package names

Change-Id: I0563e896a47ae1a6e77aebc2d624fb1bde52ffbc
om/android/server/PackageManagerService.java
434203a277cd2f237a71508a3d5a7d1602126cd5 12-Oct-2010 Robert Greenwalt <rgreenwalt@google.com> Notify all VMs when proxy changes.

bug:2700664
Change-Id: I74cc6e0bd6e66847bf18f524ce851e3e9d2c4e87
om/android/server/ConnectivityService.java
om/android/server/DevicePolicyManagerService.java
om/android/server/am/ActivityManagerService.java
8e11ef0d949a52fec15359ec35557b2e773b093d 19-Nov-2010 Dianne Hackborn <hackbod@google.com> Some work on issue #3201795: Improve transition when keyboard comes up

Now try to slide dialogs if they end up moving due to the IME (or
other system things) showing/hiding. Pretty hackish, but seems to
work.

Change-Id: Icd297e941cf847fa920c9605145c46be63043d52
om/android/server/WindowManagerService.java
3fc78a59b6ec4182fc3671e555dd7f5a228b4903 19-Nov-2010 Eric Laurent <elaurent@google.com> Fix issue 3192794.

Delay uevent registration and initialization or wired accessories state
until boot is completed.

Change-Id: I272fc9fbf6c34e17d211360c30c712f72ac5bb5e
om/android/server/WiredAccessoryObserver.java
884ef9a11fb25b80630265daee46c5609707751f 18-Nov-2010 satok <satok@google.com> Return the enabled subtypes for the current InputMethod when the input value of getEnabledInputMethodSubtypeList was null

Change-Id: I6892064dbc2214946871a0ba4ad08e00a2eb6c7b
om/android/server/InputMethodManagerService.java
7526da4bf28c4dffbfa8543f9e4936837864ae5d 16-Nov-2010 Praveen Bharathi <pbharathi@motorola.com> frameworks:audio: Correct accessory detection at power up

In the init loop, when all the accessories are detected the
state of previous accessory is overridden by the state of the
next accessory. Adding the one line change keeps the state of
all the detected accessories intact.

Change-Id: I4347d8daa27800426dcfb23aac199bed4add67de
Signed-off-by: Praveen Bharathi <pbharathi@motorola.com>
om/android/server/WiredAccessoryObserver.java
67ddf9cbd5d7133c7f443cd3c55841ed1109c3a0 17-Nov-2010 satok <satok@google.com> Add a function to get enabledInputMethodAndSubtype

Change-Id: Ie97635343249aa63e33028c2843cab103125ca92
om/android/server/InputMethodManagerService.java
0de1ed5bdf6f9603673632fa880dccd3b8ca1f97 17-Nov-2010 Chris Tate <ctate@google.com> Merge "Permission fix: don't require BACKUP perm for self-restores"
44ab8453e1c4c46790f792a46d026fa1017d8cfe 17-Nov-2010 Chris Tate <ctate@google.com> Permission fix: don't require BACKUP perm for self-restores

The public API is not supposed to require the BACKUP permission in order
for an application to restore its own last-known-good backup data. However,
as currently implemented, BackupManager.requestRestore() [the public API
in question] depends on private Backup Manager methods that *do* enforce
that permission. The net result is that the method cannot be successfully
used by third party applications: it will throw an exception if attempted.
This CL restructures the permission checking involved.

First, the underlying beginRestoreSession() operation can now be passed a
'null' transport name; if this is done, then the restore session is begun
on whatever the currently-active transport is. Looking up the name of the
active transport is one of the permission-guarded actions that was required
with the initial implementation.

Second, a package name can now be passed to beginRestoreSession(). If
this is done, then the restore session can only be used to perform a
single-package restore of that one application. The BACKUP permission is
not required if the caller is tying the restore to its own package name.

In combination, these changes permit BackupManager.requestRestore() to
function without the calling app needing to hold any special permission.
The no-permission case is intentionally quite narrow: the caller must
hold the permission unless they both (a) pass 'null' for the transport
name, thereby accepting whatever the currently active transport is, and
(b) pass their own package name to restrict the restore session only
to their own app.

External bug http://code.google.com/p/android/issues/detail?id=10094
Internal bug 3197202

Change-Id: Ibc9d652323f2da03727d850f991b4096af6520d2
om/android/server/BackupManagerService.java
6689ac8a56a4e64c6f0ab4fa521e7ec3e28c02df 16-Nov-2010 Brad Fitzpatrick <bradfitz@android.com> Fix more things that CloseGuard found.

Not terribly happy with how the code looks after, though.

Change-Id: I7bf5f78ef6c0ac82339a2e49488ca6e64d13c05e
om/android/server/PackageManagerService.java
om/android/server/ProcessStats.java
725d8f06ecd31cd2e31eaa06e52de052dd07c5c7 15-Nov-2010 Brad Fitzpatrick <bradfitz@android.com> Close some things in system_server that CloseGuard found.

Change-Id: I788c022235caddcb1972a34131442a683cd51eb5
om/android/server/BackupManagerService.java
om/android/server/PackageManagerService.java
7eec10e6c99c30d5ee061fec08ac89ad4254ac32 13-Nov-2010 Dianne Hackborn <hackbod@google.com> Get rid of the extended themes.

We now decide whether to use a bitmap background based on whether the
window's drawing is hardware accelerated. To do this, there is a new
"state_accelerated" that state list drawables can be parameterized on,
and the standard window background uses this to select a solid color
or bitmap drawable as appropriate.

Introduces a little hackery to have wm preview windows pretend like
they are hardware accelerated even if they aren't, so the preview looks
closer to the actual app.

Also Add a DialogWhenLarge variation for the light theme.

Change-Id: I215a79d5df65ba3eed52ab363cade9d8218a6588
om/android/server/WindowManagerService.java
om/android/server/am/ActivityRecord.java
om/android/server/am/ActivityStack.java
b66d287e3003a0934d5714fbf15e554b3c814906 09-Nov-2010 satok <satok@google.com> Add a setter of InputMethodSubtype to InputMethodManager

- Public API: void setCurrentInputMethodSubtype(int pos)

Change-Id: I55daa19ba924999def544bf841f00bf54852f3e1
om/android/server/InputMethodManagerService.java
03eb319a3a7fe6fe9ab9eba6fc1f727285850906 11-Nov-2010 satok <satok@google.com> Reset IME to the build-in IME when there is something wrong with the current IME.

Bug: 3186000

- By this change, there will be no need to find new applicable IME in Settings application
- This change handles the edge case that there is something wrong with the current IME

Change-Id: Idb42b6184ac135370064b967305faa81f1b382b2
om/android/server/InputMethodManagerService.java
735cf38b8c7f8f91ad087511e44fe79018fa61d6 11-Nov-2010 satok <satok@google.com> Add a function to switch back to the last used IME

Change-Id: Iac7bcc2ee16dd04d91a3e75b160622d246788c9a
om/android/server/InputMethodManagerService.java
a4e28d181942018ba8759989799a28fa88764ce3 09-Nov-2010 Jim Miller <jaggies@google.com> Add password expiration support to DevicePolicyManager.

Change-Id: Ib2629ec547c123ac489d7f4cbd4e0a1d4aa07620
om/android/server/DevicePolicyManagerService.java
e7520d89fe2c5dc9dd833ecd9769c981df855b61 11-Nov-2010 Brad Fitzpatrick <bradfitz@android.com> StrictMode.Span support

Support for annotating critical regions (e.g. animations) with
a tag to be uploaded.

Change-Id: I412fc78f40dc05c9a3c9f62a4b0463201dbdb767
om/android/server/am/ActivityManagerService.java
723a27ef3d7c94fc666abc52e0abd5e8526acb69 11-Nov-2010 satok <satok@google.com> Save the history of InputMethodSubtype for reverting the subtype when IME was changed.

- Re-revert the change https://android-git.corp.google.com/g/#q,78962,n,z
*** If you want to see the diff between reverted change and new change, please see the diff between patch set 1 and the latest patch set

- TODO: Add a public function "switchToLastInputMethod"

Change-Id: Ic85d54b3b68e47a22360acaeb81202a366a34586
om/android/server/InputMethodManagerService.java
a02fdf1ba03fad71cc80a89dfc74b17456d5b4a5 03-Nov-2010 Adam Cohen <adamcohen@google.com> Adding widget auto-advance capability

Change-Id: I058573f40a48fd7b5c2efa5f1041a1199919a51a
om/android/server/AppWidgetService.java
c65347f239e0adae4fe9fad5248b69a5a6d3bbe8 10-Nov-2010 Brad Fitzpatrick <bradfitz@android.com> am bf44ebae: am 9de93424: Merge "Without SD card the shutdown sequence was delayed"

* commit 'bf44ebae04f837596b9942ccb15d3d47bad4acec':
Without SD card the shutdown sequence was delayed
bf44ebae04f837596b9942ccb15d3d47bad4acec 10-Nov-2010 Brad Fitzpatrick <bradfitz@android.com> am 9de93424: Merge "Without SD card the shutdown sequence was delayed"

* commit '9de93424cc05446e3a216f406c55a3937c028416':
Without SD card the shutdown sequence was delayed
cec30a7a0280600ce12993829c7587dd7514f656 10-Nov-2010 Robert Greenwalt <rgreenwalt@google.com> Merge "Fix data state change callbacks"
6c8e20f96ae26533eb8081f4eab845ec710f9c9b 10-Nov-2010 Dianne Hackborn <hackbod@google.com> Implement new task transition animations.

Change-Id: I62c10e7b2afac4371b3739f1cd5948c655edc125
om/android/server/WindowManagerService.java
8e7e0a9fd5c377294bfe2e09fca9b7551871f3c2 09-Nov-2010 Robert Greenwalt <rgreenwalt@google.com> Fix data state change callbacks

Initial state should be unknown or we miss the first connected change.
Don't send a disconnected msg when changing network types.
Filter out redundent disconnects.
Add some logging.

bug:3060742
Change-Id: Idc797c1276b7417337a91ed60b12b1bf392d57c0
om/android/server/TelephonyRegistry.java
0ba75bb22c2992f649ee5f7605a2b45442ad4862 09-Nov-2010 Tadashi G. Takaoka <takaoka@google.com> Revert "Add a history of InputMethodSubtype for getting the last subtype of selected IME when IME was changed."

This reverts commit 1ab852fbcfe155c9d4373b7130f8515591669634.
om/android/server/InputMethodManagerService.java
5d0db4d356346bee68aec9a124df70dbaa9aaed1 09-Nov-2010 Johan Alfven <johan.alfven@sonyericsson.com> Without SD card the shutdown sequence was delayed

If the memory card is not inserted (or removed) from
the phone the shut down process is very long. It
takes almost 24 seconds. For the phone with memory
card the averige is 5-6 seconds

Make sure to send onShutDownComplete even if an SD
card is not mounted and no unmount is done.

Change-Id: I0e79b82e294a971f5e7144cdd3cc16b7ff414b9c
om/android/server/MountService.java
1ab852fbcfe155c9d4373b7130f8515591669634 05-Nov-2010 satok <satok@google.com> Add a history of InputMethodSubtype for getting the last subtype of selected IME when IME was changed.

Change-Id: I66752a881726c0ce2816a9d54de60fb0d992e968
om/android/server/InputMethodManagerService.java
646f46eddf897bff4aebcc8454004539589e0965 09-Nov-2010 Joe Onorato <joeo@google.com> make the resolver activity's items visible

Change-Id: Ic02c834c01c3d71d6e1c073f986b87ae5faa1da0
om/android/server/PackageManagerService.java
1a542c7b8ed0be049869a12d1e01e2604d052ac2 08-Nov-2010 Joe Onorato <joeo@google.com> The CHEEK_TOUCH stuff never worked. Remove it.

Bug: 3104906
Change-Id: Ia37236ba1775fc3ec8c111e2e0b85b105e0dea6a
om/android/server/PowerManagerService.java
3915bb845b032dc184dba5e60970b803390ca3ed 05-Nov-2010 Jeff Brown <jeffbrown@google.com> Tell system server whether the app handled input events.

Refactored ViewRoot, NativeActivity and related classes to tell the
dispatcher whether an input event was actually handled by the application.

This will be used to move more of the global default key processing
into the system server instead of the application.

Change-Id: If06b98b6f45c543e5ac5b1eae2b3baf9371fba28
om/android/server/InputManager.java
om/android/server/WindowManagerService.java
60029771d26ca3c51288c3d92cab1d3537147acd 08-Nov-2010 Irfan Sheriff <isheriff@google.com> Merge "add frequency band control API"
3fe3851753e3623d3c7c468efa6ee17f17f9aa74 03-Nov-2010 Brad Fitzpatrick <bradfitz@android.com> Window manager: cancel animations before losing references to them.

For possible future changes to android.view.animation.Animation to tie
into StrictMode's animation annotations on violations.

Change-Id: I3a23fa9bd5edb0500586bb0e341f83f998b28ae7
om/android/server/WindowManagerService.java
5b59e02eb542f016866985945859b033e94f9f0b 08-Nov-2010 Brad Fitzpatrick <bradfitz@android.com> Merge "StrictMode: now in more system server threads."
ab36acb39941ce981dddda9f9cf4d2d23a56fd26 05-Nov-2010 Dianne Hackborn <hackbod@google.com> Fixe some stuff.

Addresses these bugs:

3061847 - With no headers, PreferenceActivity crashes
2888426 - minor typo in DevicePolicyManagerService.ActiveAdmin.writeToXml()
3159155 - IllegalStateException:"Can not perform this action after
onSaveInstanceState" while dismissing a DialogFragment
3155995 - PopupWindow.showAtLocation does not respect LayoutParams

Also tweak the new fragment APIs to use abstract classes instead of
interfaces as base classes.

Change-Id: I9c0b4337fe0e304b737b5f7c2762762372bb3020
om/android/server/DevicePolicyManagerService.java
ec062f63a2f5fb49f825544da348e594dbf5bf3c 03-Nov-2010 Brad Fitzpatrick <bradfitz@android.com> StrictMode: now in more system server threads.

Who knew there were so many Loopers in the system server?

This adds dropbox logging for the activity manager thread, policy
thread, and window manager thread.

The goal's to catch more stuttering.

Change-Id: I999a6ff4a955f0ef549b12a38796b843ade5fe66
om/android/server/WindowManagerService.java
om/android/server/am/ActivityManagerService.java
36f7413dabfab50699135019ba55151e9227f59d 05-Nov-2010 Irfan Sheriff <isheriff@google.com> add frequency band control API

Change-Id: I6cc6cdef27d493d4ef76cec17fdca7e49d9dc8d7
om/android/server/WifiService.java
12b1401262845d9b906d64ab54260c1378ade4a5 06-Nov-2010 Joe Onorato <joeo@google.com> Merge "Turn off the ALS when the user setting doesn't ask for automatic brightness."
d28f753c943d72dcdf3b67566f911f46c8b6830d 06-Nov-2010 Joe Onorato <joeo@google.com> Turn off the ALS when the user setting doesn't ask for automatic brightness.

Bug: 3118027
Change-Id: I24a97adce55b7b403edcbd331bdc8b0fc593b76f
om/android/server/PowerManagerService.java
8806fc729b96bf806806ef8d82147d59abfc1536 05-Nov-2010 Kenny Root <kroot@google.com> am 70fc04c8: Reorganize PackageManager dump to avoid NPE

* commit '70fc04c84db8f99ac2ac60fd9719b91057aacc9b':
Reorganize PackageManager dump to avoid NPE
ed7bfbf6c87153c3f2f23d6856db4180d4bac429 05-Nov-2010 Dianne Hackborn <hackbod@google.com> Fix issue #3163426: Screen corruption when using the watermark feature

Change-Id: I23f76f04fb52bb272eccbbcc55606c09404c6ca9
om/android/server/WindowManagerService.java
70fc04c84db8f99ac2ac60fd9719b91057aacc9b 22-Oct-2010 Kenny Root <kroot@google.com> Reorganize PackageManager dump to avoid NPE

versionCode and mVersionName were added recently but ps.pkg can be null
in some situations. Move them to where it will check before
dereferencing it.

Bug: 3152896
Change-Id: If992a1f29ac7b8f595f847b7743fd2374662bb6e
om/android/server/PackageManagerService.java
9ef0283bdcd9534cc09ae37eb2b78771b95247b5 04-Nov-2010 satok <satok@google.com> Change API for getting InputMethodSubtype's mode from resource id to String

Change-Id: I00aa99f8ab9901d40806a6bb336ab718eb857e8b
om/android/server/InputMethodManagerService.java
09018c3e5399a3a741be5ed04e94385bb4082075 05-Nov-2010 Irfan Sheriff <isheriff@google.com> Merge "Initiate wake up scan only in a disconnected state"
167824671021ffdb5a8dd6769416d7262cb52be9 05-Nov-2010 Robert Greenwalt <rgreenwalt@google.com> Merge "Tell each VM to flush their DNS cache."
38b2a89df59a537fe97c6fc66c0cdaae43ff9694 05-Nov-2010 Brian Carlstrom <bdc@google.com> Merge "Fixing CloseGuard reported issue in WiredAccessoryObserver"
7b362e431f3e17a755e56bc7dbc99bd661cb46ba 05-Nov-2010 Chris Tate <ctate@google.com> Implement local-window-only drags

Change-Id: I19a9c4a045c532b99e3af9eb878797aed5cda1bf
om/android/server/WindowManagerService.java
237171f8ab476f1d3f9f54777dba62a349d2009a 05-Nov-2010 Brian Carlstrom <bdc@google.com> Fixing CloseGuard reported issue in WiredAccessoryObserver

This was previously masked by the ArrayIndexOutOfBoundsException so I
missed it on my first pass.

Change-Id: I0bdca9c888c77cb31f21def18809649321aa5427
om/android/server/WiredAccessoryObserver.java
373818eeacfa58e1067b70e38c9c521afd5b48f3 04-Nov-2010 Dianne Hackborn <hackbod@google.com> Revert "StrictMode: now in more system server threads."

This reverts commit 0721861d6111a8a03eb0d4aad14b7a90fd83cab6.
om/android/server/WindowManagerService.java
om/android/server/am/ActivityManagerService.java
090813ac95b1bd5f60f67f70bb49b0886954de09 04-Nov-2010 Irfan Sheriff <isheriff@google.com> Initiate wake up scan only in a disconnected state

When wifi is connected to an access point, we should
not wake up the device to initiate scans.

Change-Id: I1a48387a0cac7b23a8d947d8409cafc63da18d38
om/android/server/WifiService.java
a4f03f98f16dca51ac5630b4f41bec08a7da1091 04-Nov-2010 Brian Carlstrom <bdc@google.com> Merge "Integrate StrictMode with CloseGuard"
fd9ddd1a40efc801dc7512950cb9336967b6f775 04-Nov-2010 Brian Carlstrom <bdc@google.com> Integrate StrictMode with CloseGuard

In additional to adding the StringMode API for controling CloseGuard,
this checkin fixes several CloseGuard issues found booting a device.

Bug: 3041575
Change-Id: I4dffd184f49438d6d477ed81a1c2a2a5b56cc76b
om/android/server/DockObserver.java
om/android/server/InputManager.java
om/android/server/PackageManagerService.java
om/android/server/UsbObserver.java
b73617de462579f7c12c25a4c2747c576f00f6a2 17-Aug-2010 Daniel Sandler <dsandler@google.com> Rotation lock.

IWindowManager now supports two new methods,
freezeRotation() and thawRotation(), that allow a caller to
temporarily stash the device's current rotation as the
default rotation (when no other constraints are present).

The system bar uses this to implement a user-accessible
rotation lock by calling freezeRotation() and then turning
off accelerometer-based display rotation; unless overridden
by an app, the display will continue to appear in the frozen
rotation until the rotation is unlocked by the user (either
via the rotation lock icon in the system bar or by checking
"rotate screen automatically" in Settings).

Bug: 2949639
Change-Id: Icd21c169d1053719590e72401f229424b254622f
om/android/server/WindowManagerService.java
1ab022b8c8b063d95a591bf40109986c5b1bbb11 04-Nov-2010 Elliott Hughes <enh@google.com> Merge "Fix an off-by-one error."
ea9020e0854427d47e566a1394df6749f3265410 04-Nov-2010 Dianne Hackborn <hackbod@google.com> Add API to find out if there is a vibrator.

Change-Id: If29f6ee19448222433cad9fad325d0095a8e5737
om/android/server/VibratorService.java
b55dcc244dbf22704c79b5439a9d3fc9f9815308 04-Nov-2010 Elliott Hughes <enh@google.com> Fix an off-by-one error.

I/SystemServer( 104): Wired Accessory Observer
E/SystemServer( 104): Failure starting WiredAccessoryObserver
E/SystemServer( 104): java.lang.ArrayIndexOutOfBoundsException: index=3 length=3
E/SystemServer( 104): at com.android.server.WiredAccessoryObserver.<init>(WiredAccessoryObserver.java:79)
E/SystemServer( 104): at com.android.server.ServerThread.run(SystemServer.java:401)

Change-Id: I6d40259d96b8c57c0ff04eab362a66b70e9fcd25
om/android/server/WiredAccessoryObserver.java
bbd4a9f9166c3c4da98e5c6bae2978ffe485ed71 04-Nov-2010 Dianne Hackborn <hackbod@google.com> Merge "StrictMode: now in more system server threads."
03595d01188d88c169e8c9dd51b357fd545e69cc 02-Nov-2010 Robert Greenwalt <rgreenwalt@google.com> Tell each VM to flush their DNS cache.

bug:3095357
Change-Id: I93de24e3e5a7d8b94d55f4facfffc863a2b8c202
om/android/server/ConnectivityService.java
om/android/server/am/ActivityManagerService.java
dfe7fd1776f8472b303f57d4715dcc160e735dd6 04-Nov-2010 satok <satok@google.com> Merge "Find the most applicable subtype when there is no selected subtype but IME has subtypes"
8fbb1e84ee6497f89322f2e40453c1cfa83fb4ef 02-Nov-2010 satok <satok@google.com> Find the most applicable subtype when there is no selected subtype but IME has subtypes

Change-Id: I1239d67a65abd5eedebd689d02f007961b9c5d73
om/android/server/InputMethodManagerService.java
0721861d6111a8a03eb0d4aad14b7a90fd83cab6 03-Nov-2010 Brad Fitzpatrick <bradfitz@android.com> StrictMode: now in more system server threads.

Who knew there were so many Loopers in the system server?

This adds dropbox logging for the activity manager thread, policy
thread, and window manager thread.

The goal's to catch more stuttering.

Change-Id: I3ce8518ce183b3c90426750a2992e67200fee5d5
om/android/server/WindowManagerService.java
om/android/server/am/ActivityManagerService.java
26e37349831476d3225570af2dfbf1e459374c6b 03-Nov-2010 Praveen Bharathi <pbharathi@motorola.com> frameworks/base: switch audio to hdmi when cable is plugged in

Change-Id: I01c4ee968bc0ffbb6ce75370935571cc1ff6f8c7
Signed-off-by: Iliyan Malchev <malchev@google.com>
om/android/server/WiredAccessoryObserver.java
1997eebd62127d8086e60cf279678f45824cf15f 03-Nov-2010 Irfan Sheriff <isheriff@google.com> Merge "Set country code in the driver and remove channel set"
5f4b7d8a8a394940b49ecdd8b153a0eab9528c5c 03-Nov-2010 Chris Tate <ctate@google.com> Merge "Fix drag enter/exit reporting"
ed4f28b492da3ff140bbaabbbda798a08c40ea5b 30-Oct-2010 Irfan Sheriff <isheriff@google.com> Set country code in the driver and remove channel set

With dual band support, using country code
settings is the way to go

Bug: 2936741
Change-Id: I760dce4c43b1af19ee205c28f0d287420c8d9e85
om/android/server/WifiService.java
acc863cabbd6c03f4fe58e568f5bb3d119943ea9 03-Nov-2010 Irfan Sheriff <isheriff@google.com> Merge "Use AsynChannel for synchronous API"
1406bcb75150e8386b4d858f27089cc1359e7f14 28-Oct-2010 Irfan Sheriff <isheriff@google.com> Use AsynChannel for synchronous API

also cleaned up some unnecessary synchronous commands from state machine,
and fixed an issue with a synchronous WPS command

Change-Id: I55bf4379d9810e11f2ba2e03e2e703b132d1488f
om/android/server/WifiService.java
9d1ab883293b047b654935b84d0803c8c383be91 02-Nov-2010 Chris Tate <ctate@google.com> Fix drag enter/exit reporting

Now, each ViewGroup is tracking which of its child views [which might
themselves be ViewGroups] is currently under the drag point, and when the
drag leaves that child, a DRAG_EXITED is synthesized and dispatched all
the way down to the leaf view previously under the point. ENTERED is
still *not* dispatched down like this; instead, it's calculated and
synthesized directly at each level based on the new LOCATION.

The ViewRoot still tracks the leaf drag target, but solely for the
purpose of reporting changes to the OS after full dispatch of a new
LOCATION -- the entered/exited messaging is no longer initiated at the
ViewRoot level.

Change-Id: I0089cc538b7e33a0440187543fcfd2f8b12e197d
om/android/server/WindowManagerService.java
7e63e4df10ac17453ee9c94f4e6230d66665359f 02-Nov-2010 satok <satok@google.com> Merge "Update the subtype icon properly."
06e0744e9e1a04a07e2e1bf9279124223bd674da 02-Nov-2010 satok <satok@google.com> Update the subtype icon properly.

Change-Id: Ib89959d1ea13f1e6f56e6280f90532e6695c4a00
om/android/server/InputMethodManagerService.java
om/android/server/StatusBarManagerService.java
c4b5bf3c7668d3875362bb86af05b3e47937e2ee 02-Nov-2010 Jeff Brown <jeffbrown@google.com> am 7ab5d2d9: am a87ea46c: Fix bugs related to cheek event suppression.

* commit '7ab5d2d951792c9b1a1e7cfb279280c2d076506f':
Fix bugs related to cheek event suppression.
7ab5d2d951792c9b1a1e7cfb279280c2d076506f 02-Nov-2010 Jeff Brown <jeffbrown@google.com> am a87ea46c: Fix bugs related to cheek event suppression.

* commit 'a87ea46cb023763e0a9b0222da20b0a354f79d8d':
Fix bugs related to cheek event suppression.
a87ea46cb023763e0a9b0222da20b0a354f79d8d 02-Nov-2010 Jeff Brown <jeffbrown@google.com> Fix bugs related to cheek event suppression.

Two issues:

1. First, due to an inverted conditional in the input dispatcher, we were
reporting touches as long touches and vice-versa to the power manager.

2. Power manager user activity cheek event suppression also suppresses touch
events (but not long touch or up events). As a result, if cheek event
suppression was enabled, touches would not poke the user activity timer.
However due to the above logic inversion, this actually affected long
touches. Net result, if cheek suppression was enabled in the power manager
and you held your thumb on the screen long enough, the phone would
go to sleep!

Cheek event suppression is commonly turned on when making a phone call.
Interestingly, it does not seem to get turned off afterward...

This change fixes the logic inversion and exempts touches from the cheek
suppression. The reason we do the latter is because the old behavior
was actually harmful in other ways too: a touch down would be suppressed
but not a long touch or the touch up. This would cause bizarre behavior
if you touched the screen while it was dimmed. Instead of brightening
immediately, it would brighten either when you lifted your finger or
300ms later, whichever came first.

Bug: 3154895
Change-Id: Ied9ccec6718fbe86506322ff47a4e3eb58f81834
om/android/server/PowerManagerService.java
e1bef9404c82a13dcb33d29408a491cb77c962a5 02-Nov-2010 satok <satok@google.com> Merge "Fix a bug that enabled Subtype ID can't be saved propery."
21e941bf43362ddc6639a9f2d0828053360f53d7 06-Oct-2010 Praveen Bharathi <pbharathi@motorola.com> Added support for dock headset observer

Change-Id: I06b2e65e3bfa10735e6c7fd3349afa9ae7d45292
Signed-off-by: Praveen Bharathi <pbharathi@motorola.com>
om/android/server/DockObserver.java
om/android/server/HeadsetObserver.java
om/android/server/SystemServer.java
om/android/server/WiredAccessoryObserver.java
4d396052deb54399cbadbeb8abd873df6f3af342 30-Oct-2010 Jeff Brown <jeffbrown@google.com> Fix policy issues when screen is off.

Rewrote interceptKeyBeforeQueueing to make the handling more systematic.
Behavior should be identical except:
- We never pass keys to applications when the screen is off and the keyguard
is not showing (the proximity sensor turned off the screen).
Previously we passed all non-wake keys through in this case which
caused a bug on Crespo where the screen would come back on if a soft key
was held at the time of power off because the resulting key up event
would sneak in just before the keyguard was shown. It would then be
passed through to the dispatcher which would poke user activity and
wake up the screen.
- We propagate the key flags when broadcasting media keys which
ensures that recipients can tell when the key is canceled.
- We ignore endcall or power if canceled (shouldn't happen anyways).

Changed the input dispatcher to not poke user activity for canceled
events since they are synthetic and should not wake the device.

Changed the lock screen so that it does not poke the wake lock when the
grab handle is released. This fixes a bug where the screen would come
back on immediately if the power went off while the user was holding
one of the grab handles because the sliding tab would receive an up
event after screen turned off and release the grab handles.

Fixed a couple of issues where media keys were being handled inconsistently
or not at all, particularly in the case of the new PAUSE, PLAY
and RECORD keys.

Bug: 3144874
Change-Id: Ie630f5fb6f128cfdf94845f9428067045f42892c
om/android/server/InputManager.java
om/android/server/WindowManagerService.java
fd2d01302781af91d77557a99874111a4fee8365 28-Oct-2010 Wink Saville <wink@google.com> Add PhoneStateListener.onOtaspChanged.

Bug: 3102320
Change-Id: I46e8d33a4ed80e5e074e92135653d57598d4c865
om/android/server/TelephonyRegistry.java
57c767c7b7a4cdcd0c33ec453a9f2c0b853999b6 01-Nov-2010 satok <satok@google.com> Fix a bug that enabled Subtype ID can't be saved propery.

Change-Id: Iccf175c55ebfd86f3045ad27bff4f34d7963ebc7
om/android/server/InputMethodManagerService.java
e4c7b3f25ee3cb8d3fba4d15a8fbb97bc83d8dd1 30-Oct-2010 Joe Onorato <joeo@google.com> Status bar: Forward the disabled state to the status bar process when it comes up.

Bug: 3108996
Change-Id: I92c2ff645dc64ca2610e3de814e0cfef6cde88c3
om/android/server/StatusBarManagerService.java
bfb191998eba2ebc710ff9eb59480b10909ba4c9 30-Oct-2010 Brad Fitzpatrick <bradfitz@android.com> StrictMode: annotate violations with the Broadcast Intent's action, if any.

Change-Id: If36ab776bb95054a109b5475c6be041c75c7e0af
om/android/server/am/ActivityManagerService.java
06487a58be22b100daf3f950b9a1d25c3ea42aa2 29-Oct-2010 satok <satok@google.com> Add a functionarity for showing / hiding IME button on the system bar

Bug: 3077030

- IME communicates with status bar directly.

Change-Id: Ic5b6b5b7a2b8ea62372dcc9b9c36d81b9f2db651
om/android/server/InputMethodManagerService.java
om/android/server/StatusBarManagerService.java
07bd5ae3911fd0c3a8692221f94e680a1e6dd3de 28-Oct-2010 Irfan Sheriff <isheriff@google.com> fix interfaceflags for softap

Change-Id: I4a4fa1e5f033c945feb64b2544b8c78618bb1f3e
Signed-off-by: jmzhu <jmzhu@marvell.com>
om/android/server/WifiService.java
d102fea962fa0ab4bbb86363e4953a0e8a5c001f 02-Sep-2010 Jim Rodovich <rodovich@motorola.com> PowerManagerService: Avoid paralysis when light events are reported frequently.

Avoid resetting the debounce timer for automatic brightness if a new light event
is received that agrees with the direction of change of the previous event(s).

Change-Id: Id4d71f6db46ded46b24eb44cb8de9b2cfedb3f06
Signed-off-by: Mike Lockwood <lockwood@google.com>
om/android/server/PowerManagerService.java
4ca7f1e2811dc889e526de6c3d30bac8501c23d2 28-Oct-2010 Joe Onorato <joeo@google.com> Implement reminder power dialog and invalid charger dialog.

Bug: 2510318
Bug: 2974431
Change-Id: I92eb419eeffb657e5572a35a490735a96b303d6b
om/android/server/BatteryService.java
de1b359e88ef1dcafdc0c6a724f660ad0b55fc3a 26-Oct-2010 Joe Onorato <joeo@google.com> Move the battery LED code over to the battery service from the notification service (!)

Change-Id: I12d7994ae245a36b8b2c3272fcbe173881caebd0
om/android/server/BatteryService.java
om/android/server/NotificationManagerService.java
om/android/server/SystemServer.java
86417ea3f8041481a085823a1aa9f66d747231e8 27-Oct-2010 satok <satok@google.com> Remove InputMethodAndSubtypeEnabler and call intent of Settings.ACTION_INPUT_METHOD_AND_SUBTYPE_ENABLER

Change-Id: I467cfba9644ec266f6a98f7aec0886ad205fef4f
om/android/server/InputMethodManagerService.java
a8413beb39b6b75e9b77ded4388e73f22bda556e 27-Oct-2010 Irfan Sheriff <isheriff@google.com> Merge "WifiLock extensions for high performance mode"
f834dfabbcbbe1f209682f18c67f2e8b9d3e1dd7 26-Oct-2010 Dianne Hackborn <hackbod@google.com> ClipDescription no longer inherits from ClipData.

Change-Id: Ie4939f87c7e1628d9c19ecb5c0b3036d1f76ef29
om/android/server/ClipboardService.java
om/android/server/WindowManagerService.java
5876a4273e67271f0eca607af9520f7e5abbe4f3 13-Aug-2010 Irfan Sheriff <isheriff@google.com> WifiLock extensions for high performance mode

Add extension to WifiLock to allow apps to operate
in high performance mode (high power & disable suspend
optimizations for battery consumption).

Bug: 2834260
Change-Id: Id394d265b9876bf0230efb3d222056e9b80b44fd
om/android/server/WifiService.java
f235c5ab91b040b88ceb61beb819e15f1b19e9e4 22-Oct-2010 Irfan Sheriff <isheriff@google.com> add wps pin from device capability

Bug: 3119043
Bug: 3112178
Change-Id: Iaae6bcf53e11f7fac82b3c604ddc27ff05e00542
om/android/server/WifiService.java
1ebe049acc50c291729148e66438ba53e7bf951a 26-Oct-2010 Mike Lockwood <lockwood@android.com> am 1b571bd3: am 1d28a840: Merge "Location Manager: Fix LocationManager.getBestProvider filtering." into gingerbread
1b571bd3e92a3e75b55ba5ed24e6e393d96ab948 26-Oct-2010 Mike Lockwood <lockwood@android.com> am 1d28a840: Merge "Location Manager: Fix LocationManager.getBestProvider filtering." into gingerbread
e7bc4f5e45714ebc822fb7f613a047cfebc91b2a 26-Oct-2010 Joe Onorato <joeo@android.com> am a1e74744: am 11e2e9b0: Merge "Don\'t turn the button backlights on if the screen is off. Part 2." into gingerbread
a1e7474498163f8ddbe1146f8f375fbf905db41d 26-Oct-2010 Joe Onorato <joeo@android.com> am 11e2e9b0: Merge "Don\'t turn the button backlights on if the screen is off. Part 2." into gingerbread
9e3191d16c025b44fb4a614b13e1c5b8488eb574 26-Oct-2010 Mike Lockwood <lockwood@android.com> Location Manager: Fix LocationManager.getBestProvider filtering.

getBestProvider should only return location providers that the client
has permission to use.

BUG: 3124614

Change-Id: I065091d0445092563bc53fb4f7d93a1ab6bebb9a
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/LocationManagerService.java
33c42474353ea6260c426f1cb5109ad019df533e 26-Oct-2010 Jean-Baptiste Queru <jbq@google.com> am 55744530: Merge "resolved conflicts for merge of b4ae2f1b to gingerbread-plus-aosp" into gingerbread-plus-aosp

Merge commit '55744530222288c79a5e1aa61b65f7f6b2262fab'

* commit '55744530222288c79a5e1aa61b65f7f6b2262fab':
frameworks/base: Handle null from topRunningNonDelayedActivityLocked
66a5d695ed9268869ca50e304bfeabd2a021c6cd 26-Oct-2010 Jean-Baptiste Queru <jbq@google.com> resolved conflicts for merge of b4ae2f1b to gingerbread-plus-aosp

Change-Id: I9d4e2649375d9262efe8aaade0778f638d04afa8
b4ae2f1ba419212224d53db81c46ad242bebd17b 26-Oct-2010 Jean-Baptiste Queru <jbq@google.com> Merge "frameworks/base: Handle null from topRunningNonDelayedActivityLocked"
06eb33acb77b13f3dd55f11e3c1dfbc39f9c586b 25-Oct-2010 Joe Onorato <joeo@android.com> Don't turn the button backlights on if the screen is off. Part 2.

These are the logs from when I just reproduced it here. This means that we got an event after the
screen turned off. So isScreenTurningOffLocked() is working, but we need to also check that we're
not off. This bug is happening because lightSensorChangedLocked is calling
mButtonLight.setBrightness() directly instead of going through updateLightsLocked, which is where
I added that check to not turn the buttons on of the screen is off.

D/PowerManagerService( 1243): onSensorChanged: light value: 1280
I/power ( 1243): *** set_screen_state 0
D/PowerManagerService( 1243): enableLightSensor false
D/PowerManagerService( 1243): onSensorChanged: light value: 320
D/PowerManagerService( 1243): lightSensorChangedLocked 320
D/PowerManagerService( 1243): lcdValue 55
D/PowerManagerService( 1243): buttonValue 255
D/PowerManagerService( 1243): keyboardValue 0
D/SurfaceFlinger( 1243): About to give-up screen, flinger = 0x8dcf! 0

Bug: 3117801
Change-Id: I722d66cafba71b183cc987b7383d4ad7e171ba82
om/android/server/PowerManagerService.java
8fa50d4f2ddec9bd22436e41eb1dd8dd83a2a039 25-Oct-2010 Mike Lockwood <lockwood@android.com> am 6c8d8d89: am 8c32bddf: Merge "GPS: Disable verbose logging" into gingerbread

Merge commit '6c8d8d8927373fdb9ad1c853396b5dbc8295f996'

* commit '6c8d8d8927373fdb9ad1c853396b5dbc8295f996':
GPS: Disable verbose logging
6c8d8d8927373fdb9ad1c853396b5dbc8295f996 25-Oct-2010 Mike Lockwood <lockwood@android.com> am 8c32bddf: Merge "GPS: Disable verbose logging" into gingerbread

Merge commit '8c32bddfac259543f4ed87341fce42bc5ed60506' into gingerbread-plus-aosp

* commit '8c32bddfac259543f4ed87341fce42bc5ed60506':
GPS: Disable verbose logging
4a7b65e0d544ef1feff8e1e5789f469f89ebb85c 25-Oct-2010 Mike Lockwood <lockwood@android.com> GPS: Disable verbose logging

BUG: 3127049

Change-Id: I9efd9eb7ff69724b133f3b70c52e173f49ddfbc5
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/LocationManagerService.java
om/android/server/location/GpsLocationProvider.java
a2a764b9fafb19fd1654c17df996c0cf57741742 24-Oct-2010 Joe Onorato <joeo@android.com> am b34fe2f0: am 60607a90: Make sure that when the screen is off, we don\'t try to turn the buttons on too.

Merge commit 'b34fe2f0258eb1ed512b682206b7fe65116f1dbd'

* commit 'b34fe2f0258eb1ed512b682206b7fe65116f1dbd':
Make sure that when the screen is off, we don't try to turn the buttons on too.
b34fe2f0258eb1ed512b682206b7fe65116f1dbd 24-Oct-2010 Joe Onorato <joeo@android.com> am 60607a90: Make sure that when the screen is off, we don\'t try to turn the buttons on too.

Merge commit '60607a9012c9b7d39bef8fcf0284772f1b061efc' into gingerbread-plus-aosp

* commit '60607a9012c9b7d39bef8fcf0284772f1b061efc':
Make sure that when the screen is off, we don't try to turn the buttons on too.
60607a9012c9b7d39bef8fcf0284772f1b061efc 23-Oct-2010 Joe Onorato <joeo@android.com> Make sure that when the screen is off, we don't try to turn the buttons on too.

Bug: 3117801
Change-Id: I763f114a2b0426660d29bbda04ea7db12c1137e8
om/android/server/PowerManagerService.java
9d210672319fd04f51bfc6cb3c6cb1a50c1a03c1 23-Oct-2010 Chris Tate <ctate@google.com> Merge "Fix error recovery when a drag can't be started"
ef70a07753b4ac2bc0e9315cf46452f8df1ced3c 23-Oct-2010 Chris Tate <ctate@google.com> Fix error recovery when a drag can't be started

Also make sure to properly dispose *both* ends of the drag input
channel when we're done. That was being tidied up after, but was
also making the system work harder and was provoking a bit of
debug logging.

Change-Id: I1ff3100bc4c441f1609c57242864d5744ff1aaa2
om/android/server/WindowManagerService.java
599ca29986235e07f532c7b112507f6c39b5dba9 22-Oct-2010 Brad Fitzpatrick <bradfitz@android.com> Expose (internally only) the number of animations currently running.

This will be used for StrictMode to annotate violations with
whether or not they janked up an animation.

Change-Id: I5bc691f49b74c45279cd2ae044d2a81dcf1204a9
om/android/server/am/ActivityManagerService.java
e6634981f12e1d218eaf61c6488af3d8c9f0d202 22-Oct-2010 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 9c7489f8 to master

Change-Id: I1d8fd1146925f48ad690c89230d24dc8694703f4
9c7489f8bdcd08990c44250cbad64399badc72be 22-Oct-2010 Dianne Hackborn <hackbod@google.com> am 38993d8d: Merge "Fix issue #3122240: Expose xlarge in GB." into gingerbread
5383f502e4479d117c89666fb2ee1ca53f3d27cf 22-Oct-2010 Dianne Hackborn <hackbod@google.com> Fix issue #3122240: Expose xlarge in GB.

Plus some other small API cleanup.

Change-Id: I1a3c60f510f99224cccac9cc3f838f04141064f8
om/android/server/am/ActivityManagerService.java
0c4b1a82926381eff111ac921fb846a93de9d75b 22-Oct-2010 Kenny Root <kroot@google.com> Merge "Reorganize PackageManager dump to avoid NPE"
1174f71e94ec251da0f0b6220bef102f3462b300 22-Oct-2010 Kenny Root <kroot@google.com> Reorganize PackageManager dump to avoid NPE

versionCode and mVersionName were added recently but ps.pkg can be null
in some situations. Move them to where it will check before
dereferencing it.

Bug: 3121050
Change-Id: I46081f300e7a40354cb757f9eaa7ec98b9334c8b
om/android/server/PackageManagerService.java
eb95b0877aa386938ed20e9429a211eac8b8b805 21-Oct-2010 Joe Onorato <joeo@google.com> Show app services in adb bugreport (dumpstate).

There is a 60s timeout for this command. I'd rather do it as an individual timeout
for each of the services, but this is easier and will probably cover for busted apps
well enough. Also, this is running last in dumpstate, so if it's lost... oh well.

Also, clean up the formatting of the service dump so it's more readable in bugreport.

Change-Id: Ibd727f4b3366f7af9e7ef1e231868f5cedc48132
om/android/server/am/ActivityManagerService.java
8d0083423ff338abdd6a4d74dd008409abaaa4fd 22-Oct-2010 Joe Onorato <joeo@google.com> Merge "Fix bug introduced in Change I856118d8."
4c918335ef6ac44530bfefa33860a4e0b23b523c 22-Oct-2010 Mike Lockwood <lockwood@android.com> am d78c8d8b: am f6572e7e: Merge "GPS: Fix network type logic in requestRefLocation" into gingerbread

Merge commit 'd78c8d8bb9516878eb5042a28d76bd6bcf4c6780'

* commit 'd78c8d8bb9516878eb5042a28d76bd6bcf4c6780':
GPS: Fix network type logic in requestRefLocation
d78c8d8bb9516878eb5042a28d76bd6bcf4c6780 22-Oct-2010 Mike Lockwood <lockwood@android.com> am f6572e7e: Merge "GPS: Fix network type logic in requestRefLocation" into gingerbread

Merge commit 'f6572e7ee413a87f5d243b3d44f798260ac1a18b' into gingerbread-plus-aosp

* commit 'f6572e7ee413a87f5d243b3d44f798260ac1a18b':
GPS: Fix network type logic in requestRefLocation
edc0f3876ce6e14f0ce35ad950c55031694fd4f8 22-Oct-2010 Mike Lockwood <lockwood@android.com> GPS: Fix network type logic in requestRefLocation

Change-Id: I20ef81bcf029b289389dba57e6cf457fda5acbf4
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/location/GpsLocationProvider.java
1b36424419fcfb977a1c81581a2ee685df1fd1f8 22-Oct-2010 Dianne Hackborn <hackbod@google.com> am eb5aeae6: am fdbb2168: Merge "Adjust boundaries for screen sizes." into gingerbread

Merge commit 'eb5aeae676fb23b2ad748185867c085e3cd65314'

* commit 'eb5aeae676fb23b2ad748185867c085e3cd65314':
Adjust boundaries for screen sizes.
eb5aeae676fb23b2ad748185867c085e3cd65314 22-Oct-2010 Dianne Hackborn <hackbod@google.com> am fdbb2168: Merge "Adjust boundaries for screen sizes." into gingerbread

Merge commit 'fdbb2168f7a9a202ee9406d65e7ef98a6745b488' into gingerbread-plus-aosp

* commit 'fdbb2168f7a9a202ee9406d65e7ef98a6745b488':
Adjust boundaries for screen sizes.
b51dc0fe2abe300593eedb8abd35e676c9224dc6 22-Oct-2010 Dianne Hackborn <hackbod@google.com> Adjust boundaries for screen sizes.

Part of issue #3116702: New manifest tags for supported screen sizes

Kind-of.

If you turn your head side-ways.

Change-Id: I446f1e2eadba1ce284c93ff9fb0197bb0e6b0fca
om/android/server/WindowManagerService.java
d4533f1469990582e4a2dd0898429093fe2690c0 20-Oct-2010 Chris Tate <ctate@google.com> Report drag success/fail in the DRAG_ENDED message

DragEvent.getResult() returns 'true' if the drop was ultimately accepted;
false otherwise. The validity of this datum is only guaranteed when the
DragEvent's action verb is ACTION_DRAG_ENDED.

Also fixes the drag-start timeout handling (though the offending app is
not yet officially declared ANR).

Implements bug 3097807

Change-Id: I6908ac628c72ff7d6193d87060d769a559a78d0e
om/android/server/WindowManagerService.java
3fbc5600135323d5c0a3953cdc3ed48f6b8ff88e 21-Oct-2010 Wink Saville <wink@google.com> Fix bug introduced in Change I856118d8.

Change-Id: I9f1c2b2611396bb811b491b7e240b4913fa76fb4
om/android/server/TelephonyRegistry.java
f3c3c4fd14cb4185ec6df5a4355aab8b9f4039dc 21-Oct-2010 Joe Onorato <joeo@google.com> Refactor SystemUI so the status bar isn't a Service of its own.

There is now one SystemUIService, which starts the status bar service.
Pretty soon there will be other things running in here too. This way
we don't need to have each of them started by something individually.

This also moves the choice between tablet and phone status bar into
SystemUI.apk, which seems like a much better place for it.

Change-Id: Ib69ef2f43d648764f8dbb52008f5d036a1ee07d9
om/android/server/StatusBarManagerService.java
om/android/server/SystemServer.java
163d8d972b8b78979310fd31dcb17fe237d27533 21-Oct-2010 Joe Onorato <joeo@google.com> Don't remove items from mRecords while iterating over it.

This change also make removeList a member, because it's only
actually used in an error case (when the client process has
gone away).

Bug: 3118244
Bug: 3083062
Bug: 2876696
Bug: 2778958
Change-Id: I856118d8de4309cd63287d7c57cd938e1c35dab0
om/android/server/TelephonyRegistry.java
749984798c64de1594ceb123d419711eed6e90a2 21-Oct-2010 Joe Onorato <joeo@google.com> fix bad merge

Change-Id: I44b9265a7ef3accc5c794d2ef9308b050c961a81
om/android/server/TelephonyRegistry.java
385a753dead6ef15f2e30eae47f73e642b3ef7ed 21-Oct-2010 Brad Fitzpatrick <bradfitz@android.com> resolved conflicts for merge of 368fdba4 to master

Change-Id: I42b7b433c86a71a5da5db67109f056a280077c9d
4b7ba09c8bf773dbd045b4bbe7831fa16e33653d 21-Oct-2010 Wink Saville <wink@google.com> Change removeNetowrk to a synchronous channel call.

Change-ID: Iad0380d56972826615e044fa2aaee418b617d732
om/android/server/WifiService.java
4f5f7c968339a83b6af98ac8893a1ac33c7aa7bc 15-Oct-2010 Irfan Sheriff <isheriff@google.com> Fix wake and scan behavior

- Add wakelock for driver start/stop to ensure a wifilock
acquisition kick starts driver. Also cleaned up state machine
driver start/stop behavior.
- Add periodic scans when driver is started to ensure wifi
reconnections when wifilock exists or when user chooses
never to sleep
- some minor clean up

Change-Id: I844eb70491d5aa2f8c8933b3d8dd01ba237ee534
om/android/server/WifiService.java
b09773dee0881f30c2fb4d0f3534527170f25bce 09-Aug-2010 Tony Wu <Tony_Wu@acer.com.tw> Fix isUsbMassStorageConnected() will always return true

After UMS mounted, isUsbMassStorageConnected() will always return true even if USB is disconnected.
It's because mUmsEnabling will always be ture.

Change-Id: Ib24b2359ea2684eb0a9faeb880f383e87630e6e1
om/android/server/MountService.java
368fdba47a49f249aa4346edaf3f45291ca6a7ff 19-Oct-2010 Joe Onorato <joeo@google.com> am bdf1706a: Merge "Reduce logging." into gingerbread

Merge commit 'bdf1706ac680c0fe74765b8d6d34823b8ac05306' into gingerbread-plus-aosp

* commit 'bdf1706ac680c0fe74765b8d6d34823b8ac05306':
Reduce logging.
431bb2269532f2514861b908d5fafda8fa64da79 19-Oct-2010 Joe Onorato <joeo@google.com> Reduce logging.

Remember, the system and main logs are
- Shared resources
- Primarily for recording problems
- To be used only for large grained events during normal operation

Bug: 3104855
Change-Id: I136fbd101917dcbc8ebc3f96f276426b48bde7b7
om/android/server/BackupManagerService.java
om/android/server/NotificationManagerService.java
om/android/server/PackageManagerService.java
om/android/server/StatusBarManagerService.java
om/android/server/TelephonyRegistry.java
om/android/server/WifiService.java
om/android/server/connectivity/Tethering.java
om/android/server/location/GpsXtraDownloader.java
a30c88359f62391b77874b83825a6e400c5100b3 19-Oct-2010 Chris Tate <ctate@google.com> am 18580319: DO NOT MERGE. Turn down backup logging for release.

Merge commit '1858031946b3627b599475c5894655362e510351' into gingerbread-plus-aosp

* commit '1858031946b3627b599475c5894655362e510351':
DO NOT MERGE. Turn down backup logging for release.
1858031946b3627b599475c5894655362e510351 19-Oct-2010 Chris Tate <ctate@google.com> DO NOT MERGE. Turn down backup logging for release.

Change-Id: Ib9f4fd15981fcf52b5d5912995c1891836303427
om/android/server/BackupManagerService.java
1072b7f751db555c9b48fe4085a5a1391e215737 19-Oct-2010 Kenny Root <kroot@google.com> am c0e97872: am 928b0748: Merge "Don\'t symlink native library paths for old apps" into gingerbread

Merge commit 'c0e9787293b761b04bdb07908751b22458f17bbc'

* commit 'c0e9787293b761b04bdb07908751b22458f17bbc':
Don't symlink native library paths for old apps
0bc1f39643a8434d855c3166b17fcece2e7050dc 19-Oct-2010 Mike Lockwood <lockwood@google.com> am 8333d591: am 5d5a9db5: Merge "GPS: Enable some more logging" into gingerbread

Merge commit '8333d59133da8e56cfb5465c767e89c61ede28bc'

* commit '8333d59133da8e56cfb5465c767e89c61ede28bc':
GPS: Enable some more logging
dd074306e1a3847416fdb284bcf8ae7ba92aaf7e 19-Oct-2010 Mike Lockwood <lockwood@google.com> am 11eada78: am ba2ec2b4: Merge "Enable framework GPS and location manager logging" into gingerbread

Merge commit '11eada780dc82fcac2a1dad4e2dde1d310b4231c'

* commit '11eada780dc82fcac2a1dad4e2dde1d310b4231c':
Enable framework GPS and location manager logging
f186dafdfe60d77c526c4e087655e8b257bc45cd 19-Oct-2010 Joe Onorato <joeo@google.com> am 5747eebf: am a8d477f0: Merge "Pressing the power button quickly needs to turn the screen on and off correctly." into gingerbread

Merge commit '5747eebf6eb5ea91480dc576c45c752685383e37'

* commit '5747eebf6eb5ea91480dc576c45c752685383e37':
Pressing the power button quickly needs to turn the screen on and off correctly.
c0e9787293b761b04bdb07908751b22458f17bbc 19-Oct-2010 Kenny Root <kroot@google.com> am 928b0748: Merge "Don\'t symlink native library paths for old apps" into gingerbread

Merge commit '928b07480bc5372f2b959bce7b4a3b49651b49b8' into gingerbread-plus-aosp

* commit '928b07480bc5372f2b959bce7b4a3b49651b49b8':
Don't symlink native library paths for old apps
928b07480bc5372f2b959bce7b4a3b49651b49b8 19-Oct-2010 Kenny Root <kroot@google.com> Merge "Don't symlink native library paths for old apps" into gingerbread
e68d58a2981827c6f54245fb62e70303a6a7ddb8 19-Oct-2010 Kenny Root <kroot@google.com> Don't symlink native library paths for old apps

Apps that existed in an ASEC container before we put native libraries
in the ASEC container will have their native libraries in the
/data/data/<app>/lib directory. Don't try to symlink to the ASEC
container's library directory in this case.

Bug: 3108230
Change-Id: I32167341cc8ff8c005e50f456ee7c783bfb0bf22
om/android/server/PackageManagerService.java
96eeb7e1ad396ed1140b464cba31b73de89c0268 19-Oct-2010 Jaikumar Ganesh <jaikumar@google.com> Merge "Fix race condition between starting of service and getting the Profile Proxy."
7d0548d0944e48421857de4aec2822ced325bea0 19-Oct-2010 Jaikumar Ganesh <jaikumar@google.com> Fix race condition between starting of service and getting the Profile Proxy.

Incoming A2DP connections were not working.

Change-Id: I5a3322ddb39b2512495b4cd2e35593da0f605087
om/android/server/SystemServer.java
8333d59133da8e56cfb5465c767e89c61ede28bc 19-Oct-2010 Mike Lockwood <lockwood@google.com> am 5d5a9db5: Merge "GPS: Enable some more logging" into gingerbread

Merge commit '5d5a9db514a9cf42fbc189fc3af6da602d89b747' into gingerbread-plus-aosp

* commit '5d5a9db514a9cf42fbc189fc3af6da602d89b747':
GPS: Enable some more logging
5d5a9db514a9cf42fbc189fc3af6da602d89b747 19-Oct-2010 Mike Lockwood <lockwood@google.com> Merge "GPS: Enable some more logging" into gingerbread
b8d9033d9928209e68518c4b12fea74187ddb382 18-Oct-2010 Mike Lockwood <lockwood@google.com> GPS: Enable some more logging

Change-Id: I7d13c859002fa96fa8c361c0c709931c6b12eb99
Signed-off-by: Mike Lockwood <lockwood@google.com>
om/android/server/location/GpsLocationProvider.java
11eada780dc82fcac2a1dad4e2dde1d310b4231c 18-Oct-2010 Mike Lockwood <lockwood@google.com> am ba2ec2b4: Merge "Enable framework GPS and location manager logging" into gingerbread

Merge commit 'ba2ec2b44f33f55ff8507199e4e8b108a4bec7b1' into gingerbread-plus-aosp

* commit 'ba2ec2b44f33f55ff8507199e4e8b108a4bec7b1':
Enable framework GPS and location manager logging
ba2ec2b44f33f55ff8507199e4e8b108a4bec7b1 18-Oct-2010 Mike Lockwood <lockwood@google.com> Merge "Enable framework GPS and location manager logging" into gingerbread
2d4d1bf14b531de9d4238b1e41b53c77f8976405 18-Oct-2010 Mike Lockwood <lockwood@google.com> Enable framework GPS and location manager logging

Change-Id: Id54fc01e7288e7d90d7b76824b708bcb2ee88333
Signed-off-by: Mike Lockwood <lockwood@google.com>
om/android/server/LocationManagerService.java
om/android/server/location/GpsLocationProvider.java
5747eebf6eb5ea91480dc576c45c752685383e37 18-Oct-2010 Joe Onorato <joeo@google.com> am a8d477f0: Merge "Pressing the power button quickly needs to turn the screen on and off correctly." into gingerbread

Merge commit 'a8d477f0d7fd0cf01c47e37c59f26c5fa4d1cf42' into gingerbread-plus-aosp

* commit 'a8d477f0d7fd0cf01c47e37c59f26c5fa4d1cf42':
Pressing the power button quickly needs to turn the screen on and off correctly.
3d3db601cdcb884ed8179cd3fd855454ea6bafac 18-Oct-2010 Joe Onorato <joeo@google.com> Pressing the power button quickly needs to turn the screen on and off correctly.

This does the animation with the power manager lock held, which isn't great, but is safe.

Bug: 3102208
Change-Id: Ib0af3fab1cf6ba47053c10ae8b701376d63802ff
om/android/server/PowerManagerService.java
027610a76e67f39e3a435d68ec785a1cf09dcf9c 18-Oct-2010 Kenny Root <kroot@google.com> resolved conflicts for merge of 964eb438 to master

Change-Id: I0c54d6b88356d8734d7f51234b0114434414502e
875ecaa511ce36c8044ccdf48ee2a3e69dd633fe 18-Oct-2010 Dianne Hackborn <hackbod@google.com> am 13e46665: am 736f5ec4: Merge "Work on issue #3101415: Crespo apps seem to have their UID changed over time." into gingerbread

Merge commit '13e46665ff69c1a37880762d7d611aacdf02dac7'

* commit '13e46665ff69c1a37880762d7d611aacdf02dac7':
Work on issue #3101415: Crespo apps seem to have their UID changed over time.
cd0e839a2448deea50f79bddeba782c546b33893 14-Oct-2010 Nick Pelly <npelly@google.com> NFC: Move NFC service implementation out of system_server.

NFC service is now an application service in packages/apps/Nfc.

NFC service is registered through ServiceManager.addService(), and the proxy
object NfcAdapter obtains a handle to it through ServiceManager.getService().

**Important** Had to add new symbols AID_NFC / NFC_UID / android.uid.nfc and
modify service_manager.c, Process.java and PackageManagerService.java in order
to force the com.android.nfc process to take a fixed uid, so that it can use
ServiceManager.addService().

Most of the JNI has moved to packages/apps/Nfc/jni. However NdefRecord and
NdefMessage require some in-process native code, so android_com_NdefMessage.cpp
and android_com_NdefRecord.cpp stay in frameworks/base/core/jni. They link to
a very small library libnfc_ndef.so that implements NDEF message parsing. This
has been added to core.mk so all devices (even without NFC hardware) can work
with NDEF data.

Bug: 3041259
Bug: 3097445
Change-Id: If7f00cd8f2053acfc9319ca366d4a9c02bd396e6
Signed-off-by: Nick Pelly <npelly@google.com>
om/android/server/PackageManagerService.java
om/android/server/SystemServer.java
om/trustedlogic/trustednfc/android/server/NfcService.java
17692569661b9fd20d7a953fce6355b176a5ab2f 17-Oct-2010 Dianne Hackborn <hackbod@google.com> am 10d48f26: am efb58101: Debug logs for issue #3101415: Apps seem to have their UID changed over time.

Merge commit '10d48f26e72dc7978ae683e8f99cc71409eb75ef'

* commit '10d48f26e72dc7978ae683e8f99cc71409eb75ef':
Debug logs for issue #3101415: Apps seem to have their UID changed over time.
964eb4389bb62e4e9e7f65ef7b9307e052053679 17-Oct-2010 Dianne Hackborn <hackbod@google.com> am 42499170: Implement issue #3094621 and #3094609 - wipe sd card

Merge commit '424991704b5fb7a64f6cf0fcc3f4b1aabbf2a2e0' into gingerbread-plus-aosp

* commit '424991704b5fb7a64f6cf0fcc3f4b1aabbf2a2e0':
Implement issue #3094621 and #3094609 - wipe sd card
424991704b5fb7a64f6cf0fcc3f4b1aabbf2a2e0 16-Oct-2010 Dianne Hackborn <hackbod@google.com> Implement issue #3094621 and #3094609 - wipe sd card

3094621: add "wipe sd card" option to factory data reset
3094609: collapse unmount/format into one command

Also since we have decided that it is important to consider
the Crespo storage as internal storage, DevicePolicyManager
gets a new API to be able to wipe it. (No big deal, since
all of the work for this is now done in the implementation
of the new UI.)

Change-Id: I32a77c410f710a87dcdcbf6586c09bd2e48a8807
om/android/server/DevicePolicyManagerService.java
om/android/server/MasterClearReceiver.java
om/android/server/am/ActivityManagerService.java
b25d5be54b7d876aa2b445584b829a410b50e034 16-Oct-2010 Joe Onorato <joeo@android.com> am 258d0e80: am 0d65a3fc: Merge "Screen on/off animation tweaks" into gingerbread

Merge commit '258d0e805ee63685b807b5dae43efc5ecc97179e'

* commit '258d0e805ee63685b807b5dae43efc5ecc97179e':
Screen on/off animation tweaks
b478f4606e76a820e2b2b1d84f95867825441fc2 16-Oct-2010 Chris Tate <ctate@google.com> Drag/drop changes

* Increase the opacity of the drag thumbnail a bit
* Properly present window-local drag locations; this fixes drags into
the status bar
* Pass the current drag touch point in DRAG_STARTED. This may
be reconsidered, but might conceivably be useful to someone.

Change-Id: I77690e82e9831ed6be412990c1c9da92e700a501
om/android/server/WindowManagerService.java
6ba052b4847d85831c38c9b8e2942cef4987e55b 16-Oct-2010 Jeff Brown <jeffbrown@google.com> am c1a564b1: Merge "Add support for secure system overlays. (DO NOT MERGE)" into gingerbread

Merge commit 'c1a564b108c511c0bdd699567c245b031930e718' into gingerbread-plus-aosp

* commit 'c1a564b108c511c0bdd699567c245b031930e718':
Add support for secure system overlays. (DO NOT MERGE)
13e46665ff69c1a37880762d7d611aacdf02dac7 16-Oct-2010 Dianne Hackborn <hackbod@google.com> am 736f5ec4: Merge "Work on issue #3101415: Crespo apps seem to have their UID changed over time." into gingerbread

Merge commit '736f5ec476526f3431d81dec5fb695bdee27e21a' into gingerbread-plus-aosp

* commit '736f5ec476526f3431d81dec5fb695bdee27e21a':
Work on issue #3101415: Crespo apps seem to have their UID changed over time.
10d48f26e72dc7978ae683e8f99cc71409eb75ef 16-Oct-2010 Dianne Hackborn <hackbod@google.com> am efb58101: Debug logs for issue #3101415: Apps seem to have their UID changed over time.

Merge commit 'efb581018bbede2ecdc76bcd9722ded5b6903254' into gingerbread-plus-aosp

* commit 'efb581018bbede2ecdc76bcd9722ded5b6903254':
Debug logs for issue #3101415: Apps seem to have their UID changed over time.
3b2b354ec1ba070eae13391d004d97a3e1403050 15-Oct-2010 Jeff Brown <jeffbrown@google.com> Add support for secure system overlays.

Manual merge from Gingerbread.

This change adds a new window type for secure system overlays
created by the system itself from non-secure system overlays that
might be created by applications that have the system alert permission.
Secure views ignore the presence of secure system overlays.

Bug: 3098519
Change-Id: Id876736fd8bf332ff9a5428bde59f5268aa49c3a
om/android/server/LoadAverageService.java
om/android/server/am/ActivityManagerService.java
36e7790b6b3c2c36c67fbe5dc2e2313cdd537349 16-Oct-2010 Jean-Baptiste Queru <jbq@google.com> Merge a851d8d0 from gingerbread

Change-Id: Iea0e3fa1662d6326ab337821fe52a65a9dfd989a
2d3f159aa9622e05a18e7f93cecd57ad673955ae 15-Oct-2010 Jeff Brown <jeffbrown@google.com> Add support for secure system overlays. (DO NOT MERGE)

This change adds a new window type for secure system overlays
created by the system itself from non-secure system overlays that
might be created by applications that have the system alert permission.
Secure views ignore the presence of secure system overlays.

Bug: 3098519
Change-Id: I8f8398f4fdeb0469e5d71124c21bedf121bd8c07
om/android/server/LoadAverageService.java
om/android/server/am/ActivityManagerService.java
8bdf5935c0db4a66ab33a10b43398d2523cfa15d 15-Oct-2010 Dianne Hackborn <hackbod@google.com> Work on issue #3101415: Crespo apps seem to have their UID changed over time.

fsync!

Change-Id: Ie6c5397202579935ac69bf61d3e7b3081ecf269c
om/android/server/BatteryService.java
om/android/server/DropBoxManagerService.java
om/android/server/PackageManagerService.java
om/android/server/WallpaperManagerService.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/UsageStatsService.java
fcab0f5502410b975afe045354bbae31ccba68a5 15-Oct-2010 Kenny Root <kroot@google.com> am 8fda1636: am bdf8034c: Merge "OBB: use PBKDF2 for key generation." into gingerbread

Merge commit '8fda1636e3e35f060b9046294efd3c062a1fdb84'

* commit '8fda1636e3e35f060b9046294efd3c062a1fdb84':
OBB: use PBKDF2 for key generation.
efb581018bbede2ecdc76bcd9722ded5b6903254 15-Oct-2010 Dianne Hackborn <hackbod@google.com> Debug logs for issue #3101415: Apps seem to have their UID changed over time.

- Activity manager now prints the pid doing a startActivity request.
- Package manager now remembers messages about problems it has parsing
packages.xml.

Change-Id: I11a75aa3953dbfa5dd41cfbdf69116c764ec228f
om/android/server/PackageManagerService.java
om/android/server/am/ActivityStack.java
09b35d2fe51c59b6495df3492e12ecd5009e4cf0 15-Oct-2010 Kenny Root <kroot@google.com> am 89b73a75: am 361a6ad1: Merge "Handle native library deletion in scanPackage" into gingerbread

Merge commit '89b73a75467d85c58467c5b8c080c77d25860fe0'

* commit '89b73a75467d85c58467c5b8c080c77d25860fe0':
Handle native library deletion in scanPackage
bc21fdefdfbeba1754c6cd339c7dd8e8f1d6fd48 14-Oct-2010 Nick Pelly <npelly@google.com> NFC: Move NFC service implementation out of system_server.

NFC service is now an application service in packages/apps/Nfc.

NFC service is registered through ServiceManager.addService(), and the proxy
object NfcAdapter obtains a handle to it through ServiceManager.getService().

**Important** Had to add new symbols AID_NFC / NFC_UID / android.uid.nfc and
modify service_manager.c, Process.java and PackageManagerService.java in order
to force the com.android.nfc process to take a fixed uid, so that it can use
ServiceManager.addService().

Most of the JNI has moved to packages/apps/Nfc/jni. However NdefRecord and
NdefMessage require some in-process native code, so android_com_NdefMessage.cpp
and android_com_NdefRecord.cpp stay in frameworks/base/core/jni. They link to
a very small library libnfc_ndef.so that implements NDEF message parsing. This
has been added to core.mk so all devices (even without NFC hardware) can work
with NDEF data.

Bug: 3041259
Bug: 3097445
Change-Id: If8f00ce8f2053acfc9319ca366d4a9c02bd396e6
Signed-off-by: Nick Pelly <npelly@google.com>
om/android/server/PackageManagerService.java
om/android/server/SystemServer.java
om/trustedlogic/trustednfc/android/server/NfcService.java
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
912932c2d95017d939856b0f5558259b1b73aebd 15-Oct-2010 Dianne Hackborn <hackbod@google.com> am 4ce930da: am 259c8499: Merge "Fix issue #3089800: adb shell am -W causes ActivityManager crash" into gingerbread

Merge commit '4ce930da993c778c8b75da61a9ee3793f9aa84ea'

* commit '4ce930da993c778c8b75da61a9ee3793f9aa84ea':
Fix issue #3089800: adb shell am -W causes ActivityManager crash
f36c6db108364dea89b1e3c27c0b15103e560d87 15-Oct-2010 Nick Pelly <npelly@google.com> NFC API revision round 2.

- Add the second half of the new NFC API: NfcAdapter, Tag, NdefTag,
RawTagConnection, NdefTagConnection.
- Add implementations for all of the new NFC API.

Change-Id: I8da9fd1d2971ed2c8b76f2a93f207fa9e305b0f6
Signed-off-by: Nick Pelly <npelly@google.com>

Conflicts:

Android.mk
CleanSpec.mk
core/java/android/app/ContextImpl.java
om/trustedlogic/trustednfc/android/server/NfcService.java
258d0e805ee63685b807b5dae43efc5ecc97179e 15-Oct-2010 Joe Onorato <joeo@android.com> am 0d65a3fc: Merge "Screen on/off animation tweaks" into gingerbread

Merge commit '0d65a3fc075b7dbdbfaba6b570217d87e307d75f' into gingerbread-plus-aosp

* commit '0d65a3fc075b7dbdbfaba6b570217d87e307d75f':
Screen on/off animation tweaks
609695dab0f0318459d32ff5dfc529d7398e751b 14-Oct-2010 Joe Onorato <joeo@android.com> Screen on/off animation tweaks

- Pass to surface flinger whether we want animations or not.
- Don't use the animation when the screen goes off because of the prox sensor.
- Turn the screen-on animation back off
- Also, now the animation setting controls whether or not we do the animation.

Bug: 3097475
Bug: 3098508
Change-Id: I205d5564d6668b33a8dc1c40d8cc06c4aad305cf
om/android/server/PowerManagerService.java
a32dcf7f724137842b9b8d72add4e690fac74984 14-Oct-2010 Chris Tate <ctate@google.com> Actually draw the drag thumbnail

Now sets the layer and thumbnail dimensions correctly. Also removed the
leftover bits of the now-replaced thumbnail measurement/drawing mechanism.

Fixes bug 3077339

Change-Id: I02983648e0a7ce2ce5fee10825f744e20a3a5b8d
om/android/server/WindowManagerService.java
e55fa3b0fe4d97ada0904c72cc946d51c1b111a5 14-Oct-2010 Andy Stadler <stadler@android.com> am 8a703c77: am 8e2be267: Add versionCode and versionName to dumpsys packages

Merge commit '8a703c772ef233998fccfbdb159c8879c72fa5d3'

* commit '8a703c772ef233998fccfbdb159c8879c72fa5d3':
Add versionCode and versionName to dumpsys packages
eb86aaaab34687a77454fa130b08788db1317d74 14-Oct-2010 Joe Onorato <joeo@google.com> am 9a12a3c8: am ba799098: Merge changes I76513387,I335fb671 into gingerbread

Merge commit '9a12a3c8d4bb20042cf69e07d268e3a04ac71f96'

* commit '9a12a3c8d4bb20042cf69e07d268e3a04ac71f96':
Remove dead code, and make the animation a setting.
turn off the electron beam
8fda1636e3e35f060b9046294efd3c062a1fdb84 14-Oct-2010 Kenny Root <kroot@google.com> am bdf8034c: Merge "OBB: use PBKDF2 for key generation." into gingerbread

Merge commit 'bdf8034c657147226b2390eef113ff841e0d6065' into gingerbread-plus-aosp

* commit 'bdf8034c657147226b2390eef113ff841e0d6065':
OBB: use PBKDF2 for key generation.
bdf8034c657147226b2390eef113ff841e0d6065 14-Oct-2010 Kenny Root <kroot@google.com> Merge "OBB: use PBKDF2 for key generation." into gingerbread
3b1abba6bbc895d63da3e82e9b158c01bd12eddd 14-Oct-2010 Kenny Root <kroot@google.com> OBB: use PBKDF2 for key generation.

Switch to using PBKDF2 for the key generation for OBBs. Any previously
generated OBBs will stop being read correctly. A small pbkdf2gen program
is available to allow generation of appropriate keys with the salts.

Bug: 3059950
Change-Id: If4305c989fd692fd1150eb270dbf751e09c37295
om/android/server/MountService.java
184498ce5a8d77e1d9c45693363829daaeef9611 08-Oct-2010 Joe Onorato <joeo@google.com> Allow notifications to not specify a contentIntent.

If they don't, the click events will be passed through to the individual
views in the notification view, which may have their own PendingIntents
attached.

Previously, it was against the UX spec to allow this, but now we are
changing that and will have buttons in there.

Change-Id: I674234212f64b2b8802a0708b7eed0614e147ca3
om/android/server/NotificationManagerService.java
db6303e51ef2779b2b6b8b6dc557b5de9b7fdcf0 14-Oct-2010 Daniel Sandler <dsandler@google.com> Merge "Dynamically show the menu button on the system bar."
0a9b54e88b9cbb30748b5f0b331aec3f3ef8d639 14-Oct-2010 Kenny Root <kroot@google.com> resolved conflicts for merge of 8bb7a1df to master

Change-Id: Ieec036f494a54eab74a27b954d1423bf981dd3f9
89b73a75467d85c58467c5b8c080c77d25860fe0 13-Oct-2010 Kenny Root <kroot@google.com> am 361a6ad1: Merge "Handle native library deletion in scanPackage" into gingerbread

Merge commit '361a6ad16dedfed871c76e8fa64eb45aa82a0088' into gingerbread-plus-aosp

* commit '361a6ad16dedfed871c76e8fa64eb45aa82a0088':
Handle native library deletion in scanPackage
361a6ad16dedfed871c76e8fa64eb45aa82a0088 13-Oct-2010 Kenny Root <kroot@google.com> Merge "Handle native library deletion in scanPackage" into gingerbread
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
e02d808abf370965c3c4e4d38af11bc69110fde2 08-Oct-2010 Daniel Sandler <dsandler@google.com> Dynamically show the menu button on the system bar.

Windows with FLAG_NEEDS_MENU_KEY (or windowNeedsMenuKey=true
in their theme) will cause the system bar to show a menu
icon. (Note that the phone's status bar currently ignores
this, but phones tend to have hardware menu keys anyway.)

Additionally, all windows whose package's SDK version is
pre-Honeycomb will have FLAG_NEEDS_MENU_KEY set by default.

Bug: 3003728

Change-Id: I2d983763a726ea4f32cd1af9b0390e30478b11d1
om/android/server/StatusBarManagerService.java
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
om/android/server/SystemServer.java
70e4210ad9119bfb7e8b7d93ade667518332e882 12-Oct-2010 Kenny Root <kroot@google.com> Handle native library deletion in scanPackage

The deletion of native libraries was initially added to
FileInstallArgs.cleanUpResourcesLI() as a way to get rid of old native
libraries during an upgrade, but it runs well after scanPackage unpacks
the new native libraries. scanPackage now removes old libraries before
unpacking the new ones, so we don't need this code anymore.

Bug: 3087739
Change-Id: I54aca830ec34d6440ba22f117d55aa3107bf5b75
om/android/server/PackageManagerService.java
4ce930da993c778c8b75da61a9ee3793f9aa84ea 13-Oct-2010 Dianne Hackborn <hackbod@google.com> am 259c8499: Merge "Fix issue #3089800: adb shell am -W causes ActivityManager crash" into gingerbread

Merge commit '259c849989ccd30b0bb4569d11f125ed2c0c1911' into gingerbread-plus-aosp

* commit '259c849989ccd30b0bb4569d11f125ed2c0c1911':
Fix issue #3089800: adb shell am -W causes ActivityManager crash
259c849989ccd30b0bb4569d11f125ed2c0c1911 13-Oct-2010 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #3089800: adb shell am -W causes ActivityManager crash" into gingerbread
ba0492d5edd3e6e24d948c531b74ffb5fc9b922e 13-Oct-2010 Dianne Hackborn <hackbod@google.com> Fix issue #3089800: adb shell am -W causes ActivityManager crash

Change-Id: I5508afeb523d84e552117f94c8b70e2bae2c33fa
om/android/server/am/ActivityStack.java
6066da89a464d2bd5f002f5e687d40876ed5ce21 13-Oct-2010 Nick Pelly <npelly@google.com> am 590b73bc: NFC API revision round 2.

Merge commit '590b73bc5b8e5f7b59bff1d9264a52388a5162e6' into gingerbread-plus-aosp

* commit '590b73bc5b8e5f7b59bff1d9264a52388a5162e6':
NFC API revision round 2.
590b73bc5b8e5f7b59bff1d9264a52388a5162e6 12-Oct-2010 Nick Pelly <npelly@google.com> NFC API revision round 2.

- Add the second half of the new NFC API: NfcAdapter, Tag, NdefTag,
RawTagConnection, NdefTagConnection.
- Add implementations for all of the new NFC API.

Change-Id: I8da9fd1d2971ed2c8b76f2a93f207fa9e305b0f6
Signed-off-by: Nick Pelly <npelly@google.com>
om/trustedlogic/trustednfc/android/server/NfcService.java
ab275bb637af007deeed34676dd5aad3aa7746cc 13-Oct-2010 Kenny Root <kroot@google.com> am 1c67b7af: am a4e95dfe: Merge "Grant URI permissions to the MCS" into gingerbread

Merge commit '1c67b7af0147080de807db3cc564899db85b43a8'

* commit '1c67b7af0147080de807db3cc564899db85b43a8':
Grant URI permissions to the MCS
c88a1f955c56a6cc0527ddf045ac93c657ca859d 13-Oct-2010 Joe Onorato <joeo@android.com> am 14854820: am c0ad216c: Merge "Add a configuration option to turn on the screen when you unplug the device." into gingerbread

Merge commit '14854820eac895a925791fb41ccd330447fd4f02'

* commit '14854820eac895a925791fb41ccd330447fd4f02':
Add a configuration option to turn on the screen when you unplug the device.
8a703c772ef233998fccfbdb159c8879c72fa5d3 13-Oct-2010 Andy Stadler <stadler@android.com> am 8e2be267: Add versionCode and versionName to dumpsys packages

Merge commit '8e2be267f53bd1d2f1531f56732ead4138ac5c58' into gingerbread-plus-aosp

* commit '8e2be267f53bd1d2f1531f56732ead4138ac5c58':
Add versionCode and versionName to dumpsys packages
8e2be267f53bd1d2f1531f56732ead4138ac5c58 13-Oct-2010 Andy Stadler <stadler@android.com> Add versionCode and versionName to dumpsys packages

bug: 3090491
Change-Id: If116baaeb83bd282c5c5534fde6248f19830a71c
om/android/server/PackageManagerService.java
9a12a3c8d4bb20042cf69e07d268e3a04ac71f96 12-Oct-2010 Joe Onorato <joeo@google.com> am ba799098: Merge changes I76513387,I335fb671 into gingerbread

Merge commit 'ba799098608c7be8ff1e18adfa7dc1f452205a7e' into gingerbread-plus-aosp

* commit 'ba799098608c7be8ff1e18adfa7dc1f452205a7e':
Remove dead code, and make the animation a setting.
turn off the electron beam
b8203e9718350e0b5ada07848c40a639220472b3 12-Oct-2010 Chris Tate <ctate@google.com> Pass the starting touch point in the DRAG_STARTED message

Fixes bug 3089251

Change-Id: I072742dc6c5745083cdac8dcfa19fb1f2bbbf404
om/android/server/WindowManagerService.java
b08a1af667b16cb1faaea2aec1cf2a0e4659cb3f 12-Oct-2010 Joe Onorato <joeo@android.com> Remove dead code, and make the animation a setting.

When we don't do the brightness fade, turn off the electron beam instead.

Change-Id: I76513387c4fb420a67e59e005f6e8c3bc72f7f08
om/android/server/PowerManagerService.java
1ab5de7f2101537c14a8a7e1224de3a0bdeac7c9 12-Oct-2010 Chris Tate <ctate@google.com> am a75803e9: am 0a789236: Merge "Temporarily turn on backup/restore debug logs" into gingerbread

Merge commit 'a75803e9502a5687d825d7ff8f62ec70b540a3c2'

* commit 'a75803e9502a5687d825d7ff8f62ec70b540a3c2':
Temporarily turn on backup/restore debug logs
7031e7a60d916ff7f0b8d848ffbf4ad7252b388b 12-Oct-2010 Joe Onorato <joeo@android.com> am 5be893a7: am 446547af: Merge "Don\'t throw when userActivity fails because of the permission check." into gingerbread

Merge commit '5be893a71aa72f54660496dd01cfad66adb86b8f'

* commit '5be893a71aa72f54660496dd01cfad66adb86b8f':
Don't throw when userActivity fails because of the permission check.
5e6338d4a80e10fe5911fc4317d1d5958d8b033d 12-Oct-2010 Brad Fitzpatrick <bradfitz@android.com> am 2af4c51e: am 6bb7a4a6: Go one day into 1970 for timezone code.

Merge commit '2af4c51e9a82848e3efce4621559a69fda965665'

* commit '2af4c51e9a82848e3efce4621559a69fda965665':
Go one day into 1970 for timezone code.
5fdc0c7397ee2d638bc310e5ce2830b938d7c008 12-Oct-2010 Brad Fitzpatrick <bradfitz@android.com> resolved conflicts for merge of 14d151bf to master

Change-Id: Ib1ac9acfd6dc71b5fa4e1456a056d1e9dee65fda
e28c8f286d9bd4c7b558d6ffb8bd2fb1226ada2e 12-Oct-2010 Kenny Root <kroot@google.com> Merge "Add API to check for emulated external storage"
301f78bbbe44e78583d9b4ecb2d9bd96feeabdec 12-Oct-2010 Mike Lockwood <lockwood@android.com> am 431dd3b1: am 86564dc6: Merge "GPS: Add update_network_state call to AGpsRillInterface" into gingerbread

Merge commit '431dd3b1bc8f2acf7cbcf08463649b5629baf398'

* commit '431dd3b1bc8f2acf7cbcf08463649b5629baf398':
GPS: Add update_network_state call to AGpsRillInterface
e1ff214e32ed5c546a7603b07b054908c4d93312 12-Oct-2010 Kenny Root <kroot@google.com> Add API to check for emulated external storage

When the storage is emulated, we don't want to install ASEC containers
to it. This adds the API to check when the external storage is emulated
and uses it to check whether or not to install packages to the external
storage in an ASEC container.

Bug: 3024387
Change-Id: Ia0318aca9e4938a4897deaada5603a4c7c1d0f48
om/android/server/MountService.java
d10cd5765a2b706fc174f16b951d6b0a5d3740d3 10-Oct-2010 Romain Guy <romainguy@google.com> Always create OpenGL accelerated windows in RGBA 8888.

Bug #3081600

The OpenGL renderer in libhwui uses a single EGL context per process and
thus create it with an RGBA 8888 EGL configuration. To ensure that all
windows are compatible with this configuration, this change modifies
the window manager and SurfaceFlinger.

The window manager now checks the window's flags and if the window is
hardware accelerated, it forces the window's pixel format to be
translucent when creating the surface. The window itself is still
marked as opaque if we know that the window will be opaque on screen.
This keeps existing optimizations in place.

Similarly in SurfaceFlinger, a translucent Surface can now be created
with the Surface.OPAQUE flag, indicating SurfaceFlinger that the surface
does not require blending, despite its RGBA 8888 configuration.

Change-Id: Ic747b6b12564ba064412d842117880fcc199eb7c
om/android/server/WindowManagerService.java
5994359f3009a3ebfbd37d82bb9a665e9b947851 12-Oct-2010 Chris Tate <ctate@google.com> Be sure to hold the window manager lock around *Lw() methods

Change-Id: Ia0271df34b084bf1d3dc39373dd66b6afe96c379
om/android/server/WindowManagerService.java
40e7a62789bf338c7b4f8243543896dcfc372e44 12-Oct-2010 Jean-Baptiste Queru <jbq@google.com> am 6d1321f0: am 65f23e71: Merge "Corrected visibility reporting error in WindowManager"

Merge commit '6d1321f02f8e8c201469f17a7a62a4d063821b9a'

* commit '6d1321f02f8e8c201469f17a7a62a4d063821b9a':
Corrected visibility reporting error in WindowManager
6a443f2ee1770347c16016d719a603f96d9733ba 12-Oct-2010 Jean-Baptiste Queru <jbq@google.com> am d54a97a0: am fb1e5529: Merge "Fix time zone info in kernel is nothing after reboot"

Merge commit 'd54a97a0efc5cdd8088a277b0e6787ea24711e0c'

* commit 'd54a97a0efc5cdd8088a277b0e6787ea24711e0c':
Fix time zone info in kernel is nothing after reboot
4231124c9df51727a42cb1c09777816797c912cb 12-Oct-2010 Jeff Brown <jeffbrown@google.com> Merge "Fix an event injection bug when the policy is bypassed."
e20c9e0264190f94324197a8271cf03811a4ca58 11-Oct-2010 Jeff Brown <jeffbrown@google.com> Fix an event injection bug when the policy is bypassed.

Added the concept of a "trusted" event to distinguish between events from
attached input devices or trusted injectors vs. other applications.
This change enables us to move certain policy decisions out of the
dispatcher and into the policy itself where they can be handled more
systematically.

Cherry pick of b931a1b4 from gingerbread into master.

Change-Id: I700a5f07b8b227878cea9437a289a45a245c0424
om/android/server/InputManager.java
om/android/server/WindowManagerService.java
76f8688e9b9a71cb064119022a3f69c2e17b8b65 12-Oct-2010 Jean-Baptiste Queru <jbq@google.com> am 779d1778: am bd1454f5: Merge "Include debugger connection status in error entry"

Merge commit '779d1778b6147ee1b57428af234d1498a26f031e'

* commit '779d1778b6147ee1b57428af234d1498a26f031e':
Include debugger connection status in error entry
dd8b0c90400a1c59d4d71d768c02eed961596bc8 12-Oct-2010 Jeff Brown <jeffbrown@google.com> am 41aabeb5: am 1e6a3a53: Merge "Added more robust tracking and cancelation of events." into gingerbread

Merge commit '41aabeb51305d19747687f246080f44fc2a74435'

* commit '41aabeb51305d19747687f246080f44fc2a74435':
Added more robust tracking and cancelation of events.
8bb7a1dfbb43dda49fb3c4f86181bcd7f969a832 12-Oct-2010 Kenny Root <kroot@google.com> am b4de3dca: Merge "OBB: rearrange to be entirely asynchronous" into gingerbread

Merge commit 'b4de3dca96b9ff18562062e181dcd8b83e641e45' into gingerbread-plus-aosp

* commit 'b4de3dca96b9ff18562062e181dcd8b83e641e45':
OBB: rearrange to be entirely asynchronous
f2e0681ada3ffe1de994a51dcebd6ef045d27434 12-Oct-2010 Jeff Brown <jeffbrown@google.com> am 1da8d4d1: Merge "Fix an event injection bug when the policy is bypassed." into gingerbread

Merge commit '1da8d4d1697cec871dea8c30dad67e90db10bde6' into gingerbread-plus-aosp

* commit '1da8d4d1697cec871dea8c30dad67e90db10bde6':
Fix an event injection bug when the policy is bypassed.
1c67b7af0147080de807db3cc564899db85b43a8 12-Oct-2010 Kenny Root <kroot@google.com> am a4e95dfe: Merge "Grant URI permissions to the MCS" into gingerbread

Merge commit 'a4e95dfea4f3635d6cb845873fce0566c20cc88e' into gingerbread-plus-aosp

* commit 'a4e95dfea4f3635d6cb845873fce0566c20cc88e':
Grant URI permissions to the MCS
b4de3dca96b9ff18562062e181dcd8b83e641e45 12-Oct-2010 Kenny Root <kroot@google.com> Merge "OBB: rearrange to be entirely asynchronous" into gingerbread
af9d667ccf3e24058214cf4cc0a8aa8bc5100e3c 08-Oct-2010 Kenny Root <kroot@google.com> OBB: rearrange to be entirely asynchronous

Rearrange structure of MountService handling of OBBs to be entirely
asynchronous so we don't rely on locking as much. We still need the
locking to support dumpsys which has been improved to output all the
data structures for OBBs.

Added more tests to cover more of the error return codes.

Oh and fix a logic inversion bug.

Change-Id: I34f541192dbbb1903b24825889b8fa8f43e6e2a9
om/android/server/MountService.java
1da8d4d1697cec871dea8c30dad67e90db10bde6 12-Oct-2010 Jeff Brown <jeffbrown@google.com> Merge "Fix an event injection bug when the policy is bypassed." into gingerbread
b931a1b4183386ba840edc1bcc507eccf11b5cbe 11-Oct-2010 Jeff Brown <jeffbrown@google.com> Fix an event injection bug when the policy is bypassed.

Added the concept of a "trusted" event to distinguish between events from
attached input devices or trusted injectors vs. other applications.
This change enables us to move certain policy decisions out of the
dispatcher and into the policy itself where they can be handled more
systematically.

Change-Id: I4d56fdcdd31aaa675d452088af39a70c4e039970
om/android/server/InputManager.java
om/android/server/WindowManagerService.java
a4e95dfea4f3635d6cb845873fce0566c20cc88e 12-Oct-2010 Kenny Root <kroot@google.com> Merge "Grant URI permissions to the MCS" into gingerbread
fdb39feedd34087c9a5c7492ca31a38ec46bc2ed 12-Oct-2010 Joe Onorato <joeo@android.com> Merge "Fix sometimes mExpandedView will appear while screen transforming."
14854820eac895a925791fb41ccd330447fd4f02 12-Oct-2010 Joe Onorato <joeo@android.com> am c0ad216c: Merge "Add a configuration option to turn on the screen when you unplug the device." into gingerbread

Merge commit 'c0ad216c8ebc74b59074a7538533605eebfd65c3' into gingerbread-plus-aosp

* commit 'c0ad216c8ebc74b59074a7538533605eebfd65c3':
Add a configuration option to turn on the screen when you unplug the device.
c0ad216c8ebc74b59074a7538533605eebfd65c3 12-Oct-2010 Joe Onorato <joeo@android.com> Merge "Add a configuration option to turn on the screen when you unplug the device." into gingerbread
6d747656628aa86ee2190a3e5939d447623294a5 12-Oct-2010 Joe Onorato <joeo@android.com> Add a configuration option to turn on the screen when you unplug the device.

Bug: 3068624
Change-Id: I7366ece2528b31feee920f4600a475e81a0f3709
om/android/server/PowerManagerService.java
111285763204cabff682b381928fd5447a5c6a90 11-Oct-2010 Kenny Root <kroot@google.com> Grant URI permissions to the MCS

When the PackageManagerService is asked to install from a URI, it might
be explicitly granted the permission to read from the URI content
provider. We need to pass along these permissions to the
MediaContainerService (DefaultContainerService) to ensure the MCS can
read from the content provider.

Change-Id: Ie7ddaeb638af82b60792a4c3f8c99e1e8eef1916
om/android/server/PackageManagerService.java
a75803e9502a5687d825d7ff8f62ec70b540a3c2 11-Oct-2010 Chris Tate <ctate@google.com> am 0a789236: Merge "Temporarily turn on backup/restore debug logs" into gingerbread

Merge commit '0a7892367f46e3653e9857195ec19356f848b7f8' into gingerbread-plus-aosp

* commit '0a7892367f46e3653e9857195ec19356f848b7f8':
Temporarily turn on backup/restore debug logs
0a7892367f46e3653e9857195ec19356f848b7f8 11-Oct-2010 Chris Tate <ctate@google.com> Merge "Temporarily turn on backup/restore debug logs" into gingerbread
a9c5043b24e288655a38970dd1e999e2bce5f326 11-Oct-2010 Chris Tate <ctate@google.com> Temporarily turn on backup/restore debug logs

Several people are seeing odd behaviors around backup/restore at present.
Enable expanded logging to help pin down exactly what is happening.

Change-Id: I95ca013017cb07e633f2ba765583de3cf0e056af
om/android/server/BackupManagerService.java
5be893a71aa72f54660496dd01cfad66adb86b8f 11-Oct-2010 Joe Onorato <joeo@android.com> am 446547af: Merge "Don\'t throw when userActivity fails because of the permission check." into gingerbread

Merge commit '446547af37fd10142f15f6a9b3ac3007c6473981' into gingerbread-plus-aosp

* commit '446547af37fd10142f15f6a9b3ac3007c6473981':
Don't throw when userActivity fails because of the permission check.
446547af37fd10142f15f6a9b3ac3007c6473981 11-Oct-2010 Joe Onorato <joeo@android.com> Merge "Don't throw when userActivity fails because of the permission check." into gingerbread
2af4c51e9a82848e3efce4621559a69fda965665 11-Oct-2010 Brad Fitzpatrick <bradfitz@android.com> am 6bb7a4a6: Go one day into 1970 for timezone code.

Merge commit '6bb7a4a68ae79dab56b23d1c7111bf7eb3aa55fe' into gingerbread-plus-aosp

* commit '6bb7a4a68ae79dab56b23d1c7111bf7eb3aa55fe':
Go one day into 1970 for timezone code.
6bb7a4a68ae79dab56b23d1c7111bf7eb3aa55fe 11-Oct-2010 Brad Fitzpatrick <bradfitz@android.com> Go one day into 1970 for timezone code.

Change-Id: I80251de79db6684ef3fa1ec835b400d9e3547401
om/android/server/SystemServer.java
4b9f62d1a25d05996ac20dd2178e2e79f7aefbc4 11-Oct-2010 Joe Onorato <joeo@android.com> Don't throw when userActivity fails because of the permission check.

Just log. But don't log too often.

Bug: 3083024
Change-Id: I66f942a67ed6c481afb4079045c66931a4c81688
om/android/server/PowerManagerService.java
14d151bf41736b8f8e4f13c72a2c612286257c99 11-Oct-2010 Brad Fitzpatrick <bradfitz@android.com> am ce2f1909: Merge "On boot, advance time to at least 1970." into gingerbread

Merge commit 'ce2f1909c74a1b90995f06a865d21260b062300b' into gingerbread-plus-aosp

* commit 'ce2f1909c74a1b90995f06a865d21260b062300b':
On boot, advance time to at least 1970.
ce2f1909c74a1b90995f06a865d21260b062300b 11-Oct-2010 Brad Fitzpatrick <bradfitz@android.com> Merge "On boot, advance time to at least 1970." into gingerbread
35ca9d8a357d3e8c514740ebdbab154e865fdbbf 11-Oct-2010 Brad Fitzpatrick <bradfitz@android.com> On boot, advance time to at least 1970.

Otherwise various Java APIs start doing their documented "correct"
thing, which is to fail.

Bug: 3081605
Change-Id: I90f8cde745d2ddab78419e37f60eea1e81a58127
om/android/server/SystemServer.java
431dd3b1bc8f2acf7cbcf08463649b5629baf398 11-Oct-2010 Mike Lockwood <lockwood@android.com> am 86564dc6: Merge "GPS: Add update_network_state call to AGpsRillInterface" into gingerbread

Merge commit '86564dc673db6dd752c326e53404677a3db43bec' into gingerbread-plus-aosp

* commit '86564dc673db6dd752c326e53404677a3db43bec':
GPS: Add update_network_state call to AGpsRillInterface
50130bbc884a7ad7db39dbc4f54e76e8be87761f 11-Oct-2010 Mike Lockwood <lockwood@android.com> GPS: Add update_network_state call to AGpsRillInterface

Change-Id: I404a7a45773f592de7dfe75a8287fef15515ea8b
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/location/GpsLocationProvider.java
d6499dc69fd54d3ec735e267410f832c302acc97 08-Oct-2010 Vairavan Srinivasan <vairav@codeaurora.org> frameworks/base: Handle null from topRunningNonDelayedActivityLocked

startActivityUncheckedLocked tries to move the target task to front
when it is not at front. topRunningNonDelayedActivityLocked is used
to find the current task, however null value isn't handled. This
null causes an unhandled exception leading to the android framework
reboot.

Change-Id: I2a43cda50483e28a4456846d8b3ccb30d7cf110e
om/android/server/am/ActivityManagerService.java
c2a443250768086a609c5666f23d93316d84252c 11-Oct-2010 Wink Saville <wink@google.com> am 83d97f46: am 96619f9f: Merge "Add some error-case logging." into gingerbread

Merge commit '83d97f460412f117998f4d446fd65ca79761a294'

* commit '83d97f460412f117998f4d446fd65ca79761a294':
Add some error-case logging.
72f23bb1a5e09d113506348fcd30be9d755fff28 11-Oct-2010 Mike Lockwood <lockwood@android.com> am 748b413e: am 1c3ef787: Merge "GPS: Do not call sGpsInterface->init() multiple times" into gingerbread

Merge commit '748b413e94c73b760c63a03126df2c4712a1ae05'

* commit '748b413e94c73b760c63a03126df2c4712a1ae05':
GPS: Do not call sGpsInterface->init() multiple times
cc6083964325081cc2d8ffce098e20e856a5cf0a 11-Oct-2010 Dianne Hackborn <hackbod@google.com> am 681f327e: am 62d8874e: Merge "Fix retaining of granted permissions when updating of system app." into gingerbread

Merge commit '681f327e839a40a4d55d3567af341b9e90f62378'

* commit '681f327e839a40a4d55d3567af341b9e90f62378':
Fix retaining of granted permissions when updating of system app.
65bdf4e6342e45d5862e63342f73ada2f8a93f96 11-Oct-2010 Dianne Hackborn <hackbod@google.com> am c58e9bff: am db56b9bd: Merge "Maybe fix #3076572: phone process crashes in SipService, trying to get wifi lock" into gingerbread

Merge commit 'c58e9bff10200daaad6d06d57745edcc33314325'

* commit 'c58e9bff10200daaad6d06d57745edcc33314325':
Maybe fix #3076572: phone process crashes in SipService, trying to get wifi lock
6d1321f02f8e8c201469f17a7a62a4d063821b9a 11-Oct-2010 Jean-Baptiste Queru <jbq@google.com> am 65f23e71: Merge "Corrected visibility reporting error in WindowManager"

Merge commit '65f23e71bdf7d9ca8c4aa8ed126ac2bc9a2cbf43' into gingerbread-plus-aosp

* commit '65f23e71bdf7d9ca8c4aa8ed126ac2bc9a2cbf43':
Corrected visibility reporting error in WindowManager
65f23e71bdf7d9ca8c4aa8ed126ac2bc9a2cbf43 11-Oct-2010 Jean-Baptiste Queru <jbq@google.com> Merge "Corrected visibility reporting error in WindowManager"
d54a97a0efc5cdd8088a277b0e6787ea24711e0c 11-Oct-2010 Jean-Baptiste Queru <jbq@google.com> am fb1e5529: Merge "Fix time zone info in kernel is nothing after reboot"

Merge commit 'fb1e5529724d121aa47485e7245b69965088fbb4' into gingerbread-plus-aosp

* commit 'fb1e5529724d121aa47485e7245b69965088fbb4':
Fix time zone info in kernel is nothing after reboot
fb1e5529724d121aa47485e7245b69965088fbb4 11-Oct-2010 Jean-Baptiste Queru <jbq@google.com> Merge "Fix time zone info in kernel is nothing after reboot"
ca936f1661a1cd3ccf45343e0453bc942fb94aeb 11-Oct-2010 Mike Lockwood <lockwood@google.com> am 98e1f384: am aecab79b: Merge "Remove races in Geocoder/LocationProvider Proxy" into gingerbread

Merge commit '98e1f3840f06d3dfea987154da25d5351460d080'

* commit '98e1f3840f06d3dfea987154da25d5351460d080':
Remove races in Geocoder/LocationProvider Proxy
779d1778b6147ee1b57428af234d1498a26f031e 11-Oct-2010 Jean-Baptiste Queru <jbq@google.com> am bd1454f5: Merge "Include debugger connection status in error entry"

Merge commit 'bd1454f5005619b69d887fee6a7a4891b3323d18' into gingerbread-plus-aosp

* commit 'bd1454f5005619b69d887fee6a7a4891b3323d18':
Include debugger connection status in error entry
41aabeb51305d19747687f246080f44fc2a74435 10-Oct-2010 Jeff Brown <jeffbrown@google.com> am 1e6a3a53: Merge "Added more robust tracking and cancelation of events." into gingerbread

Merge commit '1e6a3a53fc4d56e3a0f86c8721dedfd46e738a32' into gingerbread-plus-aosp

* commit '1e6a3a53fc4d56e3a0f86c8721dedfd46e738a32':
Added more robust tracking and cancelation of events.
1e6a3a53fc4d56e3a0f86c8721dedfd46e738a32 10-Oct-2010 Jeff Brown <jeffbrown@google.com> Merge "Added more robust tracking and cancelation of events." into gingerbread
b699726018a0049665d8ad6b90dbc5af0e18f135 09-Oct-2010 Jeff Brown <jeffbrown@google.com> Added more robust tracking and cancelation of events.

This change fixes several issues where events would be dropped in the
input dispatch pipeline in such a way that the dispatcher could not
accurately track the state of the input device.

Given more robust tracking, we can now also provide robust cancelation
of input events in cases where an application might otherwise become
out of sync with the event stream due to ANR, app switch, policy decisions,
or forced focus transitions.

Pruned some of the input dispatcher log output.

Moved the responsibility for calling intercept*BeforeQueueing into
the input dispatcher instead of the input reader and added support for
early interception of injected events for events coming from trusted
sources. This enables behaviors like injection of media keys while
the screen is off, haptic feedback of injected virtual keys, so injected
events become more "first class" in a way.

Change-Id: Iec6ff1dd21e5f3c7feb80ea4feb5382bd090dbd9
om/android/server/InputManager.java
615e2fa1755ea3b6b8196f783842cd394ad3beb2 10-Oct-2010 Dianne Hackborn <hackbod@google.com> am b77455ee: am 78d68836: Implement tracking of package install times.

Merge commit 'b77455ee290691b036ac79236a93e57ff294ef0c'

* commit 'b77455ee290691b036ac79236a93e57ff294ef0c':
Implement tracking of package install times.
5bc3addb453ba1daad366862a24be654a06ff447 10-Oct-2010 Kenny Root <kroot@google.com> am 0689b60b: am 54e01e0f: Merge "Symlink application lib directory when on SD card" into gingerbread

Merge commit '0689b60b8644d7c4c76e5cdf7e6ce5cc4c5be124'

* commit '0689b60b8644d7c4c76e5cdf7e6ce5cc4c5be124':
Symlink application lib directory when on SD card
83d97f460412f117998f4d446fd65ca79761a294 10-Oct-2010 Wink Saville <wink@google.com> am 96619f9f: Merge "Add some error-case logging." into gingerbread

Merge commit '96619f9f0653a5c7f407c52ab565b5ddf23ad696' into gingerbread-plus-aosp

* commit '96619f9f0653a5c7f407c52ab565b5ddf23ad696':
Add some error-case logging.
572172befbdf020e96ee4b10506b2b7cd5f1a09b 09-Oct-2010 Robert Greenwalt <rgreenwalt@google.com> Add some error-case logging.

Turning off all debug logging is a good thing, but it leaves us blind when errors come in.
bug:3075537

Change-Id: I8a4e7f2ce094574ec45cec268bdbc46449540c9f
om/android/server/ConnectivityService.java
7a2eff1fc79f3594ea4ef0f1c6aaa7a1d914dd1b 10-Oct-2010 Kenny Root <kroot@google.com> am c0c2076e: am e0c5ae7b: Merge "Eliminate MCS_GIVE_UP state" into gingerbread

Merge commit 'c0c2076e9a4dfd3b30b988d4ddd78abf9ed83166'

* commit 'c0c2076e9a4dfd3b30b988d4ddd78abf9ed83166':
Eliminate MCS_GIVE_UP state
3aa837cc0f459e1acf89280b724c0a70c50e61dd 10-Oct-2010 Kenny Root <kroot@google.com> am c296f22e: am 0145e36c: Revert "Only allow 8 OBBs to be mounted by a UID"

Merge commit 'c296f22e713257271f95c2115df9e13d05d5687a'

* commit 'c296f22e713257271f95c2115df9e13d05d5687a':
Revert "Only allow 8 OBBs to be mounted by a UID"
748b413e94c73b760c63a03126df2c4712a1ae05 10-Oct-2010 Mike Lockwood <lockwood@android.com> am 1c3ef787: Merge "GPS: Do not call sGpsInterface->init() multiple times" into gingerbread

Merge commit '1c3ef78782cb3461ef83e0c337d03b6f677c94e5' into gingerbread-plus-aosp

* commit '1c3ef78782cb3461ef83e0c337d03b6f677c94e5':
GPS: Do not call sGpsInterface->init() multiple times
b6e5fa895c03eeefaa810eaceb498254096c093d 10-Oct-2010 Mike Lockwood <lockwood@android.com> GPS: Do not call sGpsInterface->init() multiple times

Change-Id: I5f2b55959bd67864168690c1fe619e55edc18268
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/location/GpsLocationProvider.java
682d143decaa390f55428ac7b6c730831f54077d 09-Oct-2010 Kenny Root <kroot@google.com> am 6ed0cfd3: am 5919ac6b: OBB: track binder death observers

Merge commit '6ed0cfd3e798e3014c9f1099631249463d25140c'

* commit '6ed0cfd3e798e3014c9f1099631249463d25140c':
OBB: track binder death observers
06f89ca9b17e3944af330efc2510818dca87d885 09-Oct-2010 Kenny Root <kroot@google.com> am 36455d03: am a3ee5c03: Merge "Add MountService tests and fix a bug it found" into gingerbread

Merge commit '36455d03256024981b1bf21557722a010b5e092a'

* commit '36455d03256024981b1bf21557722a010b5e092a':
Add MountService tests and fix a bug it found
fa9921e4bca92025810b946955910fbdfe6c8482 09-Oct-2010 Dianne Hackborn <hackbod@google.com> am e89bf502: am ef083ec0: Merge "Work on issue #3062691: GPS enable bypass via com.android.settings.widget.SettingsAppWidgetProvider" into gingerbread

Merge commit 'e89bf50261902bf263887923bf95595ec8eae069'

* commit 'e89bf50261902bf263887923bf95595ec8eae069':
Work on issue #3062691: GPS enable bypass via com.android.settings.widget.SettingsAppWidgetProvider
39b4867d483cc9aba36b26a81074d9f606661671 09-Oct-2010 Jason Chen <jasonchen@google.com> Revert "Merge "Allow notifications to not specify a contentIntent.""

This reverts commit 8885321046622d6a8c0a4214af98dc27eecd48a0, reversing
changes made to 61b8aaadd742f0be708cd37971d2c9e822bf778a.
om/android/server/NotificationManagerService.java
681f327e839a40a4d55d3567af341b9e90f62378 09-Oct-2010 Dianne Hackborn <hackbod@google.com> am 62d8874e: Merge "Fix retaining of granted permissions when updating of system app." into gingerbread

Merge commit '62d8874eb74045b37140857ea3b31f198f0adffa' into gingerbread-plus-aosp

* commit '62d8874eb74045b37140857ea3b31f198f0adffa':
Fix retaining of granted permissions when updating of system app.
62d8874eb74045b37140857ea3b31f198f0adffa 09-Oct-2010 Dianne Hackborn <hackbod@google.com> Merge "Fix retaining of granted permissions when updating of system app." into gingerbread
c58e9bff10200daaad6d06d57745edcc33314325 09-Oct-2010 Dianne Hackborn <hackbod@google.com> am db56b9bd: Merge "Maybe fix #3076572: phone process crashes in SipService, trying to get wifi lock" into gingerbread

Merge commit 'db56b9bd39e739474684987b83f386f50596aa5d' into gingerbread-plus-aosp

* commit 'db56b9bd39e739474684987b83f386f50596aa5d':
Maybe fix #3076572: phone process crashes in SipService, trying to get wifi lock
2fe979fc611263965d25f9fb0d484fac99f4ef83 09-Oct-2010 Dianne Hackborn <hackbod@google.com> Fix retaining of granted permissions when updating of system app.

Was broken when the app is using a shared user ID.

Change-Id: I088334f6540889969ee4367fa502807ce3f94f6a
om/android/server/PackageManagerService.java
80a752c5373cfa906568302c831710b5c22a8155 08-Oct-2010 Joe Onorato <joeo@google.com> Allow notifications to not specify a contentIntent.

If they don't, the click events will be passed through to the individual
views in the notification view, which may have their own PendingIntents
attached.

Previously, it was against the UX spec to allow this, but now we are
changing that and will have buttons in there.

Change-Id: Ie3b2e96c6a1c4449fa86ed571f3ad0f047320d31
om/android/server/NotificationManagerService.java
ecfd7f7d9588728a4579fab8af1722cefeb32d40 08-Oct-2010 Dianne Hackborn <hackbod@google.com> Maybe fix #3076572: phone process crashes in SipService, trying to get wifi lock

WifiService needs to keep the calling identity cleared while
it is doing all of its internal work.

Change-Id: I2bd720e26efcf5ad5839693307d61e51f0658ace
om/android/server/WifiService.java
98e1f3840f06d3dfea987154da25d5351460d080 08-Oct-2010 Mike Lockwood <lockwood@google.com> am aecab79b: Merge "Remove races in Geocoder/LocationProvider Proxy" into gingerbread

Merge commit 'aecab79b4ec4727a59a5532c7db2683c617e8c21' into gingerbread-plus-aosp

* commit 'aecab79b4ec4727a59a5532c7db2683c617e8c21':
Remove races in Geocoder/LocationProvider Proxy
aecab79b4ec4727a59a5532c7db2683c617e8c21 08-Oct-2010 Mike Lockwood <lockwood@google.com> Merge "Remove races in Geocoder/LocationProvider Proxy" into gingerbread
a1b0d6966e45e847aa47cc35eac8ea4e624d6a99 08-Oct-2010 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of efa4f7f8 to master

Change-Id: I00dff76594326a6f6e69515a9cba673602ed269d
0ff647b030287ab78eacfc2ba8da1a2bad5759ec 08-Oct-2010 satok <satok@google.com> Add a cancel button to InputMethodPicker and InputMethodSubtypePicker

Change-Id: Ia64b9716c18da5a541c7fc04a507541d2ab952da
om/android/server/InputMethodManagerService.java
b77455ee290691b036ac79236a93e57ff294ef0c 08-Oct-2010 Dianne Hackborn <hackbod@google.com> am 78d68836: Implement tracking of package install times.

Merge commit '78d688369a2240009d3bbe4126996a973b2e2fe2' into gingerbread-plus-aosp

* commit '78d688369a2240009d3bbe4126996a973b2e2fe2':
Implement tracking of package install times.
26b29d1b87e2a5b4535f8ce11bf138181722e247 08-Oct-2010 satok <satok@google.com> Merge "Show "more" button in the dialog of InputMethodSubtypePicker"
78d688369a2240009d3bbe4126996a973b2e2fe2 07-Oct-2010 Dianne Hackborn <hackbod@google.com> Implement tracking of package install times.

Provides information about the time at which the package was
first installed and the time it was last updated.

Change-Id: Icb43f77b5b669a1ce685e8913046b8be386b6175
om/android/server/PackageManagerService.java
0689b60b8644d7c4c76e5cdf7e6ce5cc4c5be124 08-Oct-2010 Kenny Root <kroot@google.com> am 54e01e0f: Merge "Symlink application lib directory when on SD card" into gingerbread

Merge commit '54e01e0f980cfb78153d5481f7e67cef90416174' into gingerbread-plus-aosp

* commit '54e01e0f980cfb78153d5481f7e67cef90416174':
Symlink application lib directory when on SD card
6a6b007c77e5cab7ee435506a4f65824f52028b6 08-Oct-2010 Kenny Root <kroot@google.com> Symlink application lib directory when on SD card

This will help legacy games that use dlopen() to directly access the
/data/data/<app>/lib directory before the
ApplicationInfo.nativeLibraryDir was part of the API.

Change-Id: Ie9f3e7239b6334708b5d086ffafe66a507f6d9da
om/android/server/Installer.java
om/android/server/PackageManagerService.java
df255c2283b2bcf2d5e70d095a4d2333c1cb80a3 08-Oct-2010 Robert Greenwalt <rgreenwalt@google.com> Stop using unauthorized dns

We were using somebody elses dns without permission - rude. Switch to using
secondary google public dns.

bug:3045768
Change-Id: I042262bb96d3efed4c0265dc7ff6ac418e4d4f1e
om/android/server/connectivity/Tethering.java
c0c2076e9a4dfd3b30b988d4ddd78abf9ed83166 07-Oct-2010 Kenny Root <kroot@google.com> am e0c5ae7b: Merge "Eliminate MCS_GIVE_UP state" into gingerbread

Merge commit 'e0c5ae7b55f1eb49b0aed94339bfb8e3cd8fefb9' into gingerbread-plus-aosp

* commit 'e0c5ae7b55f1eb49b0aed94339bfb8e3cd8fefb9':
Eliminate MCS_GIVE_UP state
c296f22e713257271f95c2115df9e13d05d5687a 07-Oct-2010 Kenny Root <kroot@google.com> am 0145e36c: Revert "Only allow 8 OBBs to be mounted by a UID"

Merge commit '0145e36cad1472acafb492b3f009ca6eba9593ea' into gingerbread-plus-aosp

* commit '0145e36cad1472acafb492b3f009ca6eba9593ea':
Revert "Only allow 8 OBBs to be mounted by a UID"
2cddeb4b82d02b540234b7b2ca0e2c0f163fc5d6 07-Oct-2010 Joe Onorato <joeo@google.com> am 2c164747: am f7872780: Merge "PowerManagerService needs yet another flag..." into gingerbread

Merge commit '2c164747d364c3e51964d03ecefc5752c7c0c6ba'

* commit '2c164747d364c3e51964d03ecefc5752c7c0c6ba':
PowerManagerService needs yet another flag...
c5610a4c1308e2d52108131fbdef35e432a414b6 07-Oct-2010 Kenny Root <kroot@google.com> am cfc80bd5: am 2c3360fe: Merge "Remove lingering system app native libs in /data" into gingerbread

Merge commit 'cfc80bd5c1e4f0207357b288b1b7b8374a31ba70'

* commit 'cfc80bd5c1e4f0207357b288b1b7b8374a31ba70':
Remove lingering system app native libs in /data
13297fddcbac3247d78f4c7e6408fa6dd8011d9f 07-Oct-2010 Kenny Root <kroot@google.com> am f2cc2e52: am 8735c4cd: Merge "Get correct native library path on reinstall" into gingerbread

Merge commit 'f2cc2e522177683145b2daa0de0ed898b865824d'

* commit 'f2cc2e522177683145b2daa0de0ed898b865824d':
Get correct native library path on reinstall
058ad782e6822ece352bb35d17ef28cc2498b2f5 07-Oct-2010 Mike Lockwood <lockwood@android.com> Merge "resolved conflicts for merge of 6327a9fe to master"
22f41918fa4d260a4cd2bd432946845b644ecc3a 07-Oct-2010 Mike Lockwood <lockwood@android.com> resolved conflicts for merge of 6327a9fe to master

Change-Id: I1a398a7100abf75d8df7ae9a3d6110829645ae64
480afe70fa75b74b618f1f6243e7e2be1f41419a 07-Oct-2010 Kenny Root <kroot@google.com> Eliminate MCS_GIVE_UP state

It's basically a duplicate of MCS_UNBIND state, so just get rid of it
which simplifies the state transitions.

Bug: 3067076
Change-Id: I34111be88dd727af8ad59c9f49debd54ede827ea
om/android/server/MountService.java
7d56e3d3cb5070a20e3c64671132b96dbf9961c5 07-Oct-2010 Joe Onorato <joeo@google.com> Merge "Add extra to ACTION_BATTERY_CHANGED to indicate an invalid charger is attached."
0145e36cad1472acafb492b3f009ca6eba9593ea 06-Oct-2010 Kenny Root <kroot@google.com> Revert "Only allow 8 OBBs to be mounted by a UID"

This reverts commit 27358a69b33eaa268ee75ef778ec824c8085adcc.

Conflicts:

services/java/com/android/server/MountService.java

Change-Id: Ia14be97b4f22e95daba0d191cfc62adf3d1469cd
om/android/server/MountService.java
7f35c8cc88bea5230f001dd4356f864845d202e5 07-Oct-2010 satok <satok@google.com> Show "more" button in the dialog of InputMethodSubtypePicker

- Handle subtypes correctly in InputMethodPicker

Change-Id: I0ff9baec46724ca9dee2a7943fee69d4b204589e
om/android/server/InputMethodManagerService.java
6ed0cfd3e798e3014c9f1099631249463d25140c 07-Oct-2010 Kenny Root <kroot@google.com> am 5919ac6b: OBB: track binder death observers

Merge commit '5919ac6b4188285324646772501ef4b97b353cf4' into gingerbread-plus-aosp

* commit '5919ac6b4188285324646772501ef4b97b353cf4':
OBB: track binder death observers
36455d03256024981b1bf21557722a010b5e092a 07-Oct-2010 Kenny Root <kroot@google.com> am a3ee5c03: Merge "Add MountService tests and fix a bug it found" into gingerbread

Merge commit 'a3ee5c0351e51f7a978ddddc37644f46051ca6ed' into gingerbread-plus-aosp

* commit 'a3ee5c0351e51f7a978ddddc37644f46051ca6ed':
Add MountService tests and fix a bug it found
e89bf50261902bf263887923bf95595ec8eae069 07-Oct-2010 Dianne Hackborn <hackbod@google.com> am ef083ec0: Merge "Work on issue #3062691: GPS enable bypass via com.android.settings.widget.SettingsAppWidgetProvider" into gingerbread

Merge commit 'ef083ec008a3ec69180340912e7f0137472c97d9' into gingerbread-plus-aosp

* commit 'ef083ec008a3ec69180340912e7f0137472c97d9':
Work on issue #3062691: GPS enable bypass via com.android.settings.widget.SettingsAppWidgetProvider
43a87c5c874f1b8fbf582ff522f10051a6434906 07-Oct-2010 Tony Wu <Tony_Wu@acer.com.tw> Fix sometimes mExpandedView will appear while screen transforming.

While watching YouTube and receiving a call, after hang up the call,
mExpandedView may flash when screen transform from Phone to YouTube.

Change-Id: Ib25a0cd1086c278b91a2b34e21744a3c432a8f35
om/android/server/status/StatusBarService.java
47a44916e2fb33cf4751906386d5f5c903b28d8b 06-Oct-2010 satok <satok@google.com> Add InputMethodEnabler for enabling input methods and subtypes

- Copyed functionarity from LanguageSettings.java

TODO: Save enabled InputMethodSubtypes

Change-Id: I7b4fb1a79cb8b3229f88773d261430e23ba7aae2
om/android/server/InputMethodManagerService.java
5ada6cb0591c1106e3591a3b7adcdc77a1322209 05-Oct-2010 Christopher Tate <ctate@google.com> More drag/drop adjustments:

* Make View.onDragEvent() public instead of protected.
* No longer @hide View.startDrag()
* Properly manage the boundaries of DRAG_STARTED / DRAG_ENDED notifications
to windows (and as a result don't send bogus empty DRAG_STARTED events or
double-recycle pooled DragEvents)

Change-Id: Ib75f5c1417640c82a5b043c555e02d6e6f4b4d9c
om/android/server/WindowManagerService.java
72b526a13c9b548a1e1a0239f670e36744cb0fdc 07-Oct-2010 Dianne Hackborn <hackbod@google.com> am cb9f1e4d: am 6f7e10ca: Merge "Make it easier to figure out whether an app can go on sd card." into gingerbread

Merge commit 'cb9f1e4d30ab4f9203e30abe807cbe33d07db4a0'

* commit 'cb9f1e4d30ab4f9203e30abe807cbe33d07db4a0':
Make it easier to figure out whether an app can go on sd card.
5919ac6b4188285324646772501ef4b97b353cf4 05-Oct-2010 Kenny Root <kroot@google.com> OBB: track binder death observers

An incorrect assumption about how death observers were tracked lead to
an IllegalArgumentException in some cases. Make sure the linking and
unlinking of the Binder to its ObbState death observer is symmetric to
avoid this problem.

Bug: 3062360
Change-Id: Idd016db12551c80cd74d00f11cf6569bd3b4ce21
om/android/server/MountService.java
a3ee5c0351e51f7a978ddddc37644f46051ca6ed 07-Oct-2010 Kenny Root <kroot@google.com> Merge "Add MountService tests and fix a bug it found" into gingerbread
17eb6fb07cc6965f09c51adc70b3c291f57a784a 07-Oct-2010 Kenny Root <kroot@google.com> Add MountService tests and fix a bug it found

Add some MountService tests that are based partially on some stuff done
in PackageManagerTests. This allows us to test the OBB changes in an
easy way.

Also, it found some bugs in the DefaultContainerService connection state
machine, so fix those while we're at it.

Change-Id: I18f38593be754eb32fb6e842f88eec47e2beefce
om/android/server/MountService.java
043fcd9847a804bc6394728e5785aecc495e6347 06-Oct-2010 Dianne Hackborn <hackbod@google.com> Work on issue #3062691: GPS enable bypass via com.android.settings.widget.SettingsAppWidgetProvider

Exposes an Intent I need (okay it fixes an unrelated thing in the power widget),
and fixes some dump output.

Change-Id: I51d6c93a6ac879bab64e9d5aa21129e2bbcd461b
om/android/server/AlarmManagerService.java
om/android/server/am/BroadcastRecord.java
ed5d7d17c9e9837ce7a6a10698cce9f6e4101acd 02-Oct-2010 Irfan Sheriff <isheriff@google.com> Add LinkAddress

LinkAddress stores IP address + prefix for a network link

Change-Id: Id3e74e9d0a62121d097ebdc9be064eeea257ba1f
om/android/server/TelephonyRegistry.java
759bece170b7e29fd9a4544eed90438c37c8fc31 06-Oct-2010 Robert Greenwalt <rgreenwalt@google.com> Merge "Turn on some debugging info"
ba175a5e1331883ef4ecfc2b751789a3492efca1 06-Oct-2010 Robert Greenwalt <rgreenwalt@google.com> Turn on some debugging info

bug:3060742
Change-Id: I86f4e0b3f678c80e1bee11abd32ab0b9e0563b09
om/android/server/ConnectivityService.java
efa4f7f87d5009d7f69c8429b29938be1cf21584 06-Oct-2010 Dianne Hackborn <hackbod@google.com> am 4e6baf24: Merge "Fix issue #3001368: API REVIEW: android.app.Activity" into gingerbread

Merge commit '4e6baf2473e522e6d53afa01348c564148bfbad7' into gingerbread-plus-aosp

* commit '4e6baf2473e522e6d53afa01348c564148bfbad7':
Fix issue #3001368: API REVIEW: android.app.Activity
3c4c2b7e6f0674068d13b42d4dcf0fd009df0c49 06-Oct-2010 Dianne Hackborn <hackbod@google.com> Fix issue #3001368: API REVIEW: android.app.Activity

Bye bye, lots of junk.

Change-Id: Idd72fc525851277362b2a1ff3bb0f7865fe655fd
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityRecord.java
om/android/server/am/ActivityStack.java
om/android/server/am/ProcessRecord.java
2c164747d364c3e51964d03ecefc5752c7c0c6ba 05-Oct-2010 Joe Onorato <joeo@google.com> am f7872780: Merge "PowerManagerService needs yet another flag..." into gingerbread

Merge commit 'f7872780ca3dae9584251b1e3495aed12110254c' into gingerbread-plus-aosp

* commit 'f7872780ca3dae9584251b1e3495aed12110254c':
PowerManagerService needs yet another flag...
f7872780ca3dae9584251b1e3495aed12110254c 05-Oct-2010 Joe Onorato <joeo@google.com> Merge "PowerManagerService needs yet another flag..." into gingerbread
8274a0e53630f80ab356f69ddad895ed9638574e 05-Oct-2010 Joe Onorato <joeo@google.com> PowerManagerService needs yet another flag...

... to make sure that if you press the power button to turn off the
screen, that the prox sensor won't turn it back on.

Bug: 3011618
Change-Id: Id16c1d65417539d4592f485b1c3efb737540c3cd
om/android/server/PowerManagerService.java
90f4aafa336d9f2f07281ead3c846d323a710015 27-Sep-2010 Dianne Hackborn <hackbod@google.com> Implement permission granting in clipboard.

Change-Id: I9a7a949d1aaf4b3beabceaf807fb7d3b040e4ea8
om/android/server/ClipboardService.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/UriPermissionOwner.java
cfc80bd5c1e4f0207357b288b1b7b8374a31ba70 05-Oct-2010 Kenny Root <kroot@google.com> am 2c3360fe: Merge "Remove lingering system app native libs in /data" into gingerbread

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

* commit '2c3360fe9c03536cbfd77267170b73c120c071ac':
Remove lingering system app native libs in /data
f2cc2e522177683145b2daa0de0ed898b865824d 05-Oct-2010 Kenny Root <kroot@google.com> am 8735c4cd: Merge "Get correct native library path on reinstall" into gingerbread

Merge commit '8735c4cda00de26127d694bfbc81e192c4caca44' into gingerbread-plus-aosp

* commit '8735c4cda00de26127d694bfbc81e192c4caca44':
Get correct native library path on reinstall
6327a9feceb43645b9e4c187be568d82f747de1a 05-Oct-2010 Mike Lockwood <lockwood@android.com> resolved conflicts for merge of 2f65a99f to gingerbread-plus-aosp

Change-Id: I9830756577dc6a64b03bc2be8788986d9034b059
831baa2e2566bf1d243c06918672abd5ff786105 05-Oct-2010 Kenny Root <kroot@google.com> Remove lingering system app native libs in /data

If a system app had a lingering native library in /data/data/<app>/lib,
it would prefer that over the one in /system/lib due to recent changed
in the Dalvik JNI class loading code.

To "fix" that we need to check if there are any native libraries in a
/data/data/<app>/lib directory for any non-updated system apps and
delete them during scanning.

Change-Id: If3a22e41a8531e9e5a44ba001dcea46253d47d45
om/android/server/PackageManagerService.java
38014763a2ceec005682066da01849adf95839bd 05-Oct-2010 Dianne Hackborn <hackbod@google.com> am 89230e3b: am 458fc5f5: Merge "Fix issue #3041660: Camera image flips upside down when rotating device" into gingerbread

Merge commit '89230e3b7b9ec455373e3f60b62ff65589a9c57d'

* commit '89230e3b7b9ec455373e3f60b62ff65589a9c57d':
Fix issue #3041660: Camera image flips upside down when rotating device
8735c4cda00de26127d694bfbc81e192c4caca44 05-Oct-2010 Kenny Root <kroot@google.com> Merge "Get correct native library path on reinstall" into gingerbread
bd135c193102186b73b50da90985a714a90a8b0d 05-Oct-2010 Kenny Root <kroot@google.com> Get correct native library path on reinstall

If an application moved between internal and external storage during a
reinstall, we were getting the wrong path. This change fixes going from
internal to external and external to internal which need different
fixes.

Bug: 3019708
Change-Id: If5859aeab7505cbbb35ae5724de1224a8733f2e8
om/android/server/PackageManagerService.java
f6904c4bb4f0994f2b569515cafa426681f4100b 05-Oct-2010 Ficus Kirkpatrick <ficus@android.com> Merge "Reduce log spam."
6fd771b3466687a21d4a4488167a20a4fc92351b 05-Oct-2010 Ficus Kirkpatrick <ficus@android.com> Reduce log spam.

Remove the WifiService ACTION_BATTERY_CHANGED log message.

Change-Id: Idfcdf1661f9243a9eb043419490a7138533f3357
om/android/server/WifiService.java
8863c43d9efda108c880814b0a18688b75d70153 04-Oct-2010 Mark Vandevoorde <mtv@google.com> Remove races in Geocoder/LocationProvider Proxy

The proxy must ensure that enable/disable calls are not reordered when
proxied; this change adds synchronization to prevent such reordering
that could happen following an onServiceConnected() callback, and to
ensure cross-thread visibility of writes.

Also, when the package is updated, the old service instance must be
unbound and the new one bound. This changes uses a separate
Connection object per service instance (package version) to avoid
confusing the binder objects.

Change-Id: I0907f7eed211b97ccfffa395754f1eb8ea8d8fec
om/android/server/LocationManagerService.java
om/android/server/location/GeocoderProxy.java
om/android/server/location/LocationProviderProxy.java
1e84da822e7aa4d494b31c8759917d2751611f84 27-Jul-2010 Miguel Torroja <migueltb@broadcom.com> GPS: Add support for AGpsRilInterface.

Adding changes to be able to have access to missing data to SUPL
(celld, imsi, WAP_PUSH and SMS)

Change-Id: I0207f7f7ea6595ed3fd7021cb732feddf52e4cf9
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/location/GpsLocationProvider.java
cb9f1e4d30ab4f9203e30abe807cbe33d07db4a0 05-Oct-2010 Dianne Hackborn <hackbod@google.com> am 6f7e10ca: Merge "Make it easier to figure out whether an app can go on sd card." into gingerbread

Merge commit '6f7e10ca0aa869c4b3ed4c37e56cf9d471fd9283' into gingerbread-plus-aosp

* commit '6f7e10ca0aa869c4b3ed4c37e56cf9d471fd9283':
Make it easier to figure out whether an app can go on sd card.
d87c2594c688b4ed8fc9c14053abfbc5ea87fb5e 29-Sep-2010 satok <satok@google.com> Add utility of enabled InputMethod settings to InputMethodManagerService

- Add setter of enabled InputMethodSubtypes
- Enabled InputMethods are saved as follows:
-- enabled_inputmethod0;enabled_subtype0;enabled_subtype1:enabled_inputmethod1
- TODO: Fix Settings application to parse new Enabled InputMethod string.
-- Currently IMMS doesn't save InputMethodSubtypes so this will not break Settings application.

Change-Id: Icd0f13de396ce286ff6563e8c2775d53bcdacbf3
om/android/server/InputMethodManagerService.java
54e570f78b45d6c47578a4a2513097b590b6d43f 05-Oct-2010 Dianne Hackborn <hackbod@google.com> Make it easier to figure out whether an app can go on sd card.

Change-Id: I9195a0881b2c435b138f39c2ab1505dc820caf10
om/android/server/am/ActivityStack.java
2c095f367779ef32130c72849936a2e3013c8492 04-Oct-2010 Christopher Tate <ctate@google.com> Refinements to drag/drop

Thumbnail measurement & drawing has been moved out into a delegate
class called View.DragThumbnailBuilder. This consolidates the
thumbnail-related code as well as ensuring that the drag initiator
does not have to know a priori where to place the thumbnail relative
to the touch point *before* the thumbnail measurement step, as was
previously the case.

startDrag() no longer needs to be told where the current touch point
is at the time the drag is launched.

Drag events are now dispatched only to VISIBLE views.

Dispatch shouldn't double-recycle events any more when the target
window is local to the system process.

Change-Id: I49419103765a0cad2e18ddfcdd6dacb94daf1ff1
om/android/server/InputManager.java
om/android/server/WindowManagerService.java
89230e3b7b9ec455373e3f60b62ff65589a9c57d 04-Oct-2010 Dianne Hackborn <hackbod@google.com> am 458fc5f5: Merge "Fix issue #3041660: Camera image flips upside down when rotating device" into gingerbread

Merge commit '458fc5f52e25d7a8b4e482010711aed66f0b4999' into gingerbread-plus-aosp

* commit '458fc5f52e25d7a8b4e482010711aed66f0b4999':
Fix issue #3041660: Camera image flips upside down when rotating device
e5439f228f603f60febe058f633d91d5af2fff76 03-Oct-2010 Dianne Hackborn <hackbod@google.com> Fix issue #3041660: Camera image flips upside down when rotating device

Apps now must explicitly opt in to having their rotation changed while
forcing landscape mode. Also add some new orientation constants for other
things apps may want to do.

Change-Id: If64d84b5ef54793ee717ebda9b4c76408efc9bfd
om/android/server/WindowManagerService.java
b4152eda1da54fc25abd14cb3f61982332bbc8bc 04-Oct-2010 Joe Onorato <joeo@google.com> Merge "work around race condition which causes us to try to load the phone status bar on the tablet."
dc565f4b3ae90c296d51658c98fd9f6b53cf2492 04-Oct-2010 Joe Onorato <joeo@google.com> work around race condition which causes us to try to load the phone
status bar on the tablet.

Change-Id: Id5ad1192b4667622957fd0c48870ea22a480e0b5
om/android/server/SystemServer.java
1869ad04c9762d1d9911861af647870f3a09ada0 04-Oct-2010 Dianne Hackborn <hackbod@google.com> am 4e183215: am 1073e3fa: Merge "Don\'t write settings multiple times when unmounting." into gingerbread

Merge commit '4e183215bac239bbc039df361fed034a965030ec'

* commit '4e183215bac239bbc039df361fed034a965030ec':
Don't write settings multiple times when unmounting.
4e183215bac239bbc039df361fed034a965030ec 04-Oct-2010 Dianne Hackborn <hackbod@google.com> am 1073e3fa: Merge "Don\'t write settings multiple times when unmounting." into gingerbread

Merge commit '1073e3fa72a59af15ff4243b65a789ddb61bcded' into gingerbread-plus-aosp

* commit '1073e3fa72a59af15ff4243b65a789ddb61bcded':
Don't write settings multiple times when unmounting.
3aeee33c720fc87d97625b8040d155ca0ee88848 03-Oct-2010 Dianne Hackborn <hackbod@google.com> Don't write settings multiple times when unmounting.

The package manager would write its settings multiple times,
once for each app on the SD card, when unmounting external storage.
This was kind-of slow.

Change-Id: Ic5ce12022a9ce26857d1db3071e316750b03f05a
om/android/server/PackageManagerService.java
edeb7a5a391ddec6df6d34ecb1f64ef2bb376dbb 02-Oct-2010 Kenny Root <kroot@google.com> am 7e40e67f: am d9e88d22: Merge "Add "none" for vold and deprecate mkobb -c" into gingerbread

Merge commit '7e40e67f73e0e9fa61a9601d82e8a207ffdca039'

* commit '7e40e67f73e0e9fa61a9601d82e8a207ffdca039':
Add "none" for vold and deprecate mkobb -c
27dec99148c9d1cddb99269b131d8220098dc79f 02-Oct-2010 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 4d28e8c5 to master

Change-Id: I2449488a84e44b3fb5f820b50951b2b2bfa3bcbf
7e40e67f73e0e9fa61a9601d82e8a207ffdca039 02-Oct-2010 Kenny Root <kroot@google.com> am d9e88d22: Merge "Add "none" for vold and deprecate mkobb -c" into gingerbread

Merge commit 'd9e88d22f0ffefdc6a3b9c59168bd1bb6d402486' into gingerbread-plus-aosp

* commit 'd9e88d22f0ffefdc6a3b9c59168bd1bb6d402486':
Add "none" for vold and deprecate mkobb -c
d9e88d22f0ffefdc6a3b9c59168bd1bb6d402486 01-Oct-2010 Kenny Root <kroot@google.com> Merge "Add "none" for vold and deprecate mkobb -c" into gingerbread
12ffd9bf4c2cc9075ea7602b4932f823ba940f80 01-Oct-2010 Kenny Root <kroot@google.com> Add "none" for vold and deprecate mkobb -c

If vold isn't told "none" for the key, it will try to mount it as an
encrypted container.

Also remove the -c option from mkobb since it can be triggered by
including a key as well.

Change-Id: I40a8ff3f778bfda682312630e6687ecc14b51844
om/android/server/MountService.java
4d28e8c5c69fe81849b1b450f9af38b053079d97 01-Oct-2010 Dianne Hackborn <hackbod@google.com> am 1fa69735: Merge "Fix issue #3037083: Problem report for Pinball" into gingerbread

Merge commit '1fa69735d9e786da4b20c3ab3da3aa66f3cf8116' into gingerbread-plus-aosp

* commit '1fa69735d9e786da4b20c3ab3da3aa66f3cf8116':
Fix issue #3037083: Problem report for Pinball
6493e64c2a3d5fa6adf0e6331a061d5bc67649fa 01-Oct-2010 Dianne Hackborn <hackbod@google.com> Fix issue #3037083: Problem report for Pinball

The app was toggling between hiding and showing the status bar, because
the dialog was large enough to fill the screen but didn't set to hide
the status bar.

It turns out that the code to determine the top fullscreen window is
intrinsically unstable, since it relies on comparing a window's frame
with the screen, yet the window frame can change as a result of changes
such as hiding the status bar.

Instead, we now simplify all of this to just say that the top fillxfill
window gets to control the status bar.

Change-Id: I22913adf7235fe0d52612f6738c7c94351274e38
om/android/server/WindowManagerService.java
d1034c1967178302cad9085d15ae9849497babb2 01-Oct-2010 Kenny Root <kroot@google.com> am 637a8d84: am 29423918: Fix regression in OBB key handling

Merge commit '637a8d84bacd0b6973a16843259f0c11845f2cd2'

* commit '637a8d84bacd0b6973a16843259f0c11845f2cd2':
Fix regression in OBB key handling
637a8d84bacd0b6973a16843259f0c11845f2cd2 01-Oct-2010 Kenny Root <kroot@google.com> am 29423918: Fix regression in OBB key handling

Merge commit '2942391801b79816c5eb77d7ac94c4a65f26af48' into gingerbread-plus-aosp

* commit '2942391801b79816c5eb77d7ac94c4a65f26af48':
Fix regression in OBB key handling
2942391801b79816c5eb77d7ac94c4a65f26af48 01-Oct-2010 Kenny Root <kroot@google.com> Fix regression in OBB key handling

Change-Id: If583cbdb8be68ffed094a5fde7ee00e1914c5841
om/android/server/MountService.java
dc71b9e4d67327065a992924a021cad4bc100fa2 01-Oct-2010 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 6a3eddb4 to master

Change-Id: I1ca1d100274d4a733ef2bf58b0d5d7217b4f858e
557ed7aa290497fb5764acb3f577edbe78bad5b9 01-Oct-2010 Joe Onorato <joeo@android.com> am 0457db37: am ab2e6284: Merge "Use the private version of userActivity." into gingerbread

Merge commit '0457db37de22d430df0e55a7552dcfe81b701627'

* commit '0457db37de22d430df0e55a7552dcfe81b701627':
Use the private version of userActivity.
9664b24172188765653812b4eda03223c32272eb 01-Oct-2010 Kenny Root <kroot@google.com> am 8d85beca: am 8b28441a: Merge "Being already unmounted is not a failure" into gingerbread

Merge commit '8d85beca80f0c84344ffb527ec7cab0ca7b53d4f'

* commit '8d85beca80f0c84344ffb527ec7cab0ca7b53d4f':
Being already unmounted is not a failure
13cc0a06fce4ec54574c9bf2084752961a144c24 01-Oct-2010 Kenny Root <kroot@google.com> am 4309b52f: am 735de3b3: Hash keys with MD5; track IBinders not IInterface

Merge commit '4309b52fe19de5241113d8f9ebcdf52741e086a9'

* commit '4309b52fe19de5241113d8f9ebcdf52741e086a9':
Hash keys with MD5; track IBinders not IInterface
fc32a6023676c2f1b13c890c7295cccad6f0000c 01-Oct-2010 Kenny Root <kroot@google.com> am 0f064de8: am 27358a69: Only allow 8 OBBs to be mounted by a UID

Merge commit '0f064de830d11ddb08a3c000b894b46aa530348a'

* commit '0f064de830d11ddb08a3c000b894b46aa530348a':
Only allow 8 OBBs to be mounted by a UID
9e95468bbb4b4cb48d817cee2960681aa876b12a 01-Oct-2010 Kenny Root <kroot@google.com> am 6ce5f60c: am 38cf8867: Remove OBBs from state list when volume unmounted

Merge commit '6ce5f60c791401ed0faf5d36baf4fc6612358676'

* commit '6ce5f60c791401ed0faf5d36baf4fc6612358676':
Remove OBBs from state list when volume unmounted
6a3eddb469b282f7d904e5dbcb375ad44ada3ee3 01-Oct-2010 Dianne Hackborn <hackbod@google.com> am 0a69f597: Merge "Rub in a little \'ol log-b-gone." into gingerbread

Merge commit '0a69f597604254bc37721b135ab612eaacdd0cbd' into gingerbread-plus-aosp

* commit '0a69f597604254bc37721b135ab612eaacdd0cbd':
Rub in a little 'ol log-b-gone.
0a69f597604254bc37721b135ab612eaacdd0cbd 01-Oct-2010 Dianne Hackborn <hackbod@google.com> Merge "Rub in a little 'ol log-b-gone." into gingerbread
cef65eeb0315c3118bf8860d6f723cb49ff6bc52 01-Oct-2010 Dianne Hackborn <hackbod@google.com> Rub in a little 'ol log-b-gone.

Mmmmmm... great fresh scent!

Change-Id: I050e70b31b5d4a9c6731f15a4b51a3620a33a78d
om/android/server/ConnectivityService.java
om/android/server/DevicePolicyManagerService.java
om/android/server/InputMethodManagerService.java
om/android/server/IntentResolver.java
om/android/server/NetworkManagementService.java
om/android/server/PackageManagerService.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityRecord.java
om/android/server/am/ActivityStack.java
om/android/server/am/UsageStatsService.java
0457db37de22d430df0e55a7552dcfe81b701627 01-Oct-2010 Joe Onorato <joeo@android.com> am ab2e6284: Merge "Use the private version of userActivity." into gingerbread

Merge commit 'ab2e6284845794079d809e62c52c6c380b31c4b5' into gingerbread-plus-aosp

* commit 'ab2e6284845794079d809e62c52c6c380b31c4b5':
Use the private version of userActivity.
ab2e6284845794079d809e62c52c6c380b31c4b5 01-Oct-2010 Joe Onorato <joeo@android.com> Merge "Use the private version of userActivity." into gingerbread
8d85beca80f0c84344ffb527ec7cab0ca7b53d4f 01-Oct-2010 Kenny Root <kroot@google.com> am 8b28441a: Merge "Being already unmounted is not a failure" into gingerbread

Merge commit '8b28441adab59f2bb0d92c8a717af75331249e08' into gingerbread-plus-aosp

* commit '8b28441adab59f2bb0d92c8a717af75331249e08':
Being already unmounted is not a failure
4da02392a12e26f94a072e0a8584dbebfa29c4e3 01-Oct-2010 Kenny Root <kroot@google.com> Being already unmounted is not a failure

Change-Id: I5943096444e3d4d4cc5fd63f64a09c32f649a227
om/android/server/MountService.java
4309b52fe19de5241113d8f9ebcdf52741e086a9 01-Oct-2010 Kenny Root <kroot@google.com> am 735de3b3: Hash keys with MD5; track IBinders not IInterface

Merge commit '735de3b38abbd6564082a819377673ee593744a6' into gingerbread-plus-aosp

* commit '735de3b38abbd6564082a819377673ee593744a6':
Hash keys with MD5; track IBinders not IInterface
0f064de830d11ddb08a3c000b894b46aa530348a 01-Oct-2010 Kenny Root <kroot@google.com> am 27358a69: Only allow 8 OBBs to be mounted by a UID

Merge commit '27358a69b33eaa268ee75ef778ec824c8085adcc' into gingerbread-plus-aosp

* commit '27358a69b33eaa268ee75ef778ec824c8085adcc':
Only allow 8 OBBs to be mounted by a UID
6ce5f60c791401ed0faf5d36baf4fc6612358676 01-Oct-2010 Kenny Root <kroot@google.com> am 38cf8867: Remove OBBs from state list when volume unmounted

Merge commit '38cf8867a8d3e8d5159abd0bd0e6a3b0b8348b94' into gingerbread-plus-aosp

* commit '38cf8867a8d3e8d5159abd0bd0e6a3b0b8348b94':
Remove OBBs from state list when volume unmounted
735de3b38abbd6564082a819377673ee593744a6 30-Sep-2010 Kenny Root <kroot@google.com> Hash keys with MD5; track IBinders not IInterface

Using a plaintext password doesn't work unless it's a certain length, so
just hash the plaintext password with MD5 to make it the right length
for the twofish encryption.

Tracking the IInterface doesn't make much sense since it's different
each time, so track the IBinder instead. That way we can unlinkToDeath
the binder when the last thing it's holding onto goes away.

Change-Id: Id828d25b4d74f27e9d8b4bfb3909c964469cc473
om/android/server/MountService.java
27358a69b33eaa268ee75ef778ec824c8085adcc 30-Sep-2010 Kenny Root <kroot@google.com> Only allow 8 OBBs to be mounted by a UID

Change-Id: I4f017c5408af903c6c9ba007a2cf7f488a7fcd27
om/android/server/MountService.java
38cf8867a8d3e8d5159abd0bd0e6a3b0b8348b94 26-Sep-2010 Kenny Root <kroot@google.com> Remove OBBs from state list when volume unmounted

Don't keep tracking OBBs when the volume they're located on goes away.
Remove them from our state tracking maps and then send a notification to
any listener that is still around.

Add a dump handler to MountService so the state of the mount lists
can be inspected.

Change the API to just make a callback directly to the change listener
when mount is called when it's already mounted or unmount called when
it's already unmounted.

Change-Id: Idb4afbb943ca5ca775825f908bff334e3ce1cfcc
om/android/server/MountService.java
1a74cc347add7ad213378ff1b3abc848bd3dd185 01-Oct-2010 Christopher Tate <ctate@google.com> Merge "Drag/drop APIs and infrastructure"
a39ccb6c4ae7dbf522a3fd0c450a95653c6418ea 01-Oct-2010 Joe Onorato <joeo@android.com> Use the private version of userActivity.

We were flunking the enforcement of DEVICE_POWER since apps don't need that permission to use a wake
lock.

Bug: 3051596
Change-Id: I1910d8402adb3e9a4d8635de5d2a301f6286f216
om/android/server/PowerManagerService.java
a53146c5569f8ff5f7eb55e9ad35d23ddacf2add 07-Sep-2010 Christopher Tate <ctate@google.com> Drag/drop APIs and infrastructure

A View initiates a drag-and-drop operation (hereafter just called a "drag")
by calling its startDrag(ClipData) method. Within the processing of that
call, two callbacks are made into the originating View. The first is to
onMeasureDragThumbnail(). Similarly to the core onMeasure() method, this
callback must respond by calling setDragThumbnailDimension(width, height) to
declare the size of the drag thumbnail image that should be used. Following
this, the View's onDrawDragThumbnail(canvas) method will be invoked to
actually produce the bits of the thumbnail image.

If all goes well, startDrag() will return 'true', and the drag is off and
running. (The other arguments to startDrag() provide reconciliation between
the current finger position and where the thumbnail should be placed on
the screen relative to it.)

Potential receipients of the ClipData behind the drag are notified by a
new dispatch mechanism, roughly parallel to motion event dispatch. The core
routine is the View's onDragEvent(event) callback, with the mechanics of
dispatch itself being routed through dispatchDragEvent(event) -- as in
the case of motion events, the dispatch logic is in ViewGroup, with leaf
View objects not needing to consider the dispatch flow.

Several different event 'actions' are delivered through this dispatch
mechanism:

ACTION_DRAG_STARTED: this event is propagated to every View in every window
(including windows created during the course of a drag). It serves as a
global notification that a drag has started with a payload whose matching
ClipDescription is supplied with the event. A View that is prepared to
consume the data described in this event should return 'true' from their
onDragEvent() method, and ideally will also make some visible on-screen
indication that they are a potential target of the drop.

ACTION_DRAG_ENTERED: this event is sent once when the drag point
enters the View's bounds. It is an opportunity for the View to set up
feedback that they are the one who will see the drop if the finger goes
up now.

ACTION_DRAG_LOCATION: when the drag point is over a given View, that
View will receive a stream of DRAG_LOCATION events, providing an
opportunity for the View to show visual feedback tied to the drag point.

ACTION_DRAG_EXITED: like DRAG_ENTERED, but called when the drag point
leaves the View's bounds. The View should undo any visuals meant to
emphasize their being the hovered-over target.

ACTION_DROP: when the drag ends at a given point, the View under that
point is sent this event, with the full ClipData of the payload.

ACTION_DRAG_ENDED: paralleling the DRAG_STARTED action, this is the global
broadcast that the drag has ended and all Views should return to their
normal visual state. This happens after the DROP event.

Change-Id: Ia8d0fb1516bce8c735d87ffd101af0976d7e84b6
om/android/server/InputManager.java
om/android/server/WindowManagerService.java
5972e52e15e075e40dfcdc3ffaed1b7c4e2afac1 01-Oct-2010 Mike Lockwood <lockwood@android.com> resolved conflicts for merge of 53b07027 to master

Change-Id: Ia5ce86d84454a4be76e71aeb77942ba8d88d2700
53b070275568af0d1016e019fdf0aa1ed28665f1 30-Sep-2010 Mike Lockwood <lockwood@android.com> am 727d67d4: Merge "location: rebind to network location and geocoder services after package update" into gingerbread

Merge commit '727d67d4fb8721b0291312e4cca33927dfba0e31' into gingerbread-plus-aosp

* commit '727d67d4fb8721b0291312e4cca33927dfba0e31':
location: rebind to network location and geocoder services after package update
e97ae40dffe7d7f8917c51c4f3f6c1b18c238565 29-Sep-2010 Mike Lockwood <lockwood@android.com> location: rebind to network location and geocoder services after package update

Change-Id: I2d7db3512b9edd7e0ba27d97442967fc2278e3b9
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/LocationManagerService.java
om/android/server/location/GeocoderProxy.java
om/android/server/location/LocationProviderProxy.java
d4c2a2f18728651c3d4191654389886cab5bf2bb 30-Sep-2010 Joe Onorato <joeo@android.com> am 198297b4: am f01a8730: Merge "Revert "Revert "Check for the DEVICE_POWER permission in userActivity.""" into gingerbread

Merge commit '198297b495d975cd4889f5136cd69368bd319eed'

* commit '198297b495d975cd4889f5136cd69368bd319eed':
Revert "Revert "Check for the DEVICE_POWER permission in userActivity.""
ea7ee3f4d31b92828df005d021cf482f6332514a 30-Sep-2010 Kenny Root <kroot@google.com> am 8bd545ab: am 212d81a0: Merge "Move all the permissions check up for unmount" into gingerbread

Merge commit '8bd545ab4f7e75634c970b50ed15c20858d6ac0c'

* commit '8bd545ab4f7e75634c970b50ed15c20858d6ac0c':
Move all the permissions check up for unmount
4715bd91f5949a1919156a5a5cb50f0cccda645e 29-Sep-2010 Nick Pelly <npelly@google.com> resolved conflicts for merge of f4c3b7e9 to master

Change-Id: Idcdc521144f3072058b2bb6cb383e42c852e64f4
198297b495d975cd4889f5136cd69368bd319eed 29-Sep-2010 Joe Onorato <joeo@android.com> am f01a8730: Merge "Revert "Revert "Check for the DEVICE_POWER permission in userActivity.""" into gingerbread

Merge commit 'f01a873029641da2155ca1882f311d8f4e92675a' into gingerbread-plus-aosp

* commit 'f01a873029641da2155ca1882f311d8f4e92675a':
Revert "Revert "Check for the DEVICE_POWER permission in userActivity.""
0c32c09cd3a99a7f397313048ecf9d4c5afaaa91 29-Sep-2010 Joe Onorato <joeo@android.com> Revert "Revert "Check for the DEVICE_POWER permission in userActivity.""

This reverts commit 4da4827504df019d4e64dd864f70526ff6d384a0.
om/android/server/PowerManagerService.java
8bd545ab4f7e75634c970b50ed15c20858d6ac0c 29-Sep-2010 Kenny Root <kroot@google.com> am 212d81a0: Merge "Move all the permissions check up for unmount" into gingerbread

Merge commit '212d81a004f50e51ed8f6d803b79f4b71546b351' into gingerbread-plus-aosp

* commit '212d81a004f50e51ed8f6d803b79f4b71546b351':
Move all the permissions check up for unmount
212d81a004f50e51ed8f6d803b79f4b71546b351 29-Sep-2010 Kenny Root <kroot@google.com> Merge "Move all the permissions check up for unmount" into gingerbread
f1121dc1d35c7e8c317c278aad0dd4ad1358d870 29-Sep-2010 Kenny Root <kroot@google.com> Move all the permissions check up for unmount

We have already scanned the state of the OBB in mountObb, so check the
caller against the stored state in the unmountObb call. This allows us
to ensure the calling binder is the same one that mounted it since we
tie the lifecycle of the OBB to the lifecycle of the binder.

Change-Id: I45d9cfbab5d3f5b37a6a9b594b10bd8b91cccc45
om/android/server/MountService.java
39357708b7b1017210985c9814d5a9328655aba9 29-Sep-2010 Ulf Rosdahl <ulf.rosdahl@sonyericsson.com> Corrected visibility reporting error in WindowManager

Correction for the error:
When a window is done animating and about to be destroyed,
it is still checked for visibility in the method
updateReportedVisibilityLocked in the WindowManager.
In the case where other windows are ready to be reported as
visible, this, not yet destroyed window which has the state
not visible, will prevent the visibility report message from
being sent.

Change-Id: I9e307a678a204f0883ccd78c2645c373d3f81066
om/android/server/WindowManagerService.java
f4c3b7e916b417fabb468ec0a565dc79cd7ba2b3 29-Sep-2010 Nick Pelly <npelly@google.com> am 038cabe0: NFC integration

Merge commit '038cabe0247ee46df62f9363f1a303bc5b9c1028' into gingerbread-plus-aosp

* commit '038cabe0247ee46df62f9363f1a303bc5b9c1028':
NFC integration
038cabe0247ee46df62f9363f1a303bc5b9c1028 24-Sep-2010 Nick Pelly <npelly@google.com> NFC integration

Source: Trusted_NFC_Device_Host_AA03.01e02_google.zip code drop (23-Sep-2010)

Conflicts:

core/java/android/app/ApplicationContext.java
core/java/android/provider/Settings.java
core/jni/Android.mk
core/jni/AndroidRuntime.cpp
core/res/AndroidManifest.xml
include/utils/Asset.h

Change-Id: I62c92f4c79f5ee65126c97602f6bc1c15794e573
Signed-off-by: Nick Pelly <npelly@google.com>
om/android/server/SystemServer.java
om/trustedlogic/trustednfc/android/server/NfcService.java
5d5bf48c9843231d55ded61f6ce50488ef280554 29-Sep-2010 Mike Lockwood <lockwood@android.com> am 05e11050: am a25eabad: Merge "Revert "Check for the DEVICE_POWER permission in userActivity."" into gingerbread

Merge commit '05e110506156a1b782232833b907afb428802b69'

* commit '05e110506156a1b782232833b907afb428802b69':
Revert "Check for the DEVICE_POWER permission in userActivity."
05e110506156a1b782232833b907afb428802b69 29-Sep-2010 Mike Lockwood <lockwood@android.com> am a25eabad: Merge "Revert "Check for the DEVICE_POWER permission in userActivity."" into gingerbread

Merge commit 'a25eabad23d7b8fd430ada757ae4e9f2559f8845' into gingerbread-plus-aosp

* commit 'a25eabad23d7b8fd430ada757ae4e9f2559f8845':
Revert "Check for the DEVICE_POWER permission in userActivity."
4da4827504df019d4e64dd864f70526ff6d384a0 29-Sep-2010 Mike Lockwood <lockwood@android.com> Revert "Check for the DEVICE_POWER permission in userActivity."

The change broke SetupWizard and probably other apps

This reverts commit 059f8f93e6e89f80dfb85cfdbcd3bce64c7b1e2c.
om/android/server/PowerManagerService.java
7440fc2e0e0257043b967a80dceb0b33797d1d12 28-Sep-2010 Jaikumar Ganesh <jaikumar@google.com> Wifi: Update code for new BT Apis.

Change-Id: I1deb0a9a1533958cdb79179bebd2d3b435b0b07c
om/android/server/WifiService.java
3f03496ad97b5f60ab432bca2d17a3e07b4ade47 28-Sep-2010 Jaikumar Ganesh <jaikumar@google.com> Update code for new BT APIs.

Change-Id: I53aa17b6c2a5ee50d47df91960a7f997eb7b1107
om/android/server/am/BatteryStatsService.java
bff405f91001237ec94ec64f86fa2370c4509559 29-Sep-2010 Kenny Root <kroot@google.com> resolved conflicts for merge of d8e8186c to master

Change-Id: Ica3f6cd958717ea7033cab8b4bf9cd3425c1e1c5
75a44c6196e19ef404be1eb3d61bfea2b23caf10 29-Sep-2010 Joe Onorato <joeo@android.com> am f5bdeba1: am ea2cf2f9: Merge "Check for the DEVICE_POWER permission in userActivity." into gingerbread

Merge commit 'f5bdeba197aba659e2dd3849a5bdfba8826c036d'

* commit 'f5bdeba197aba659e2dd3849a5bdfba8826c036d':
Check for the DEVICE_POWER permission in userActivity.
d8e8186c887fe47977721315f439465771a96374 29-Sep-2010 Kenny Root <kroot@google.com> am 05105f7a: Update OBB API to include callbacks

Merge commit '05105f7abe02b2dff91d6260b3628c8b97816bab' into gingerbread-plus-aosp

* commit '05105f7abe02b2dff91d6260b3628c8b97816bab':
Update OBB API to include callbacks
05105f7abe02b2dff91d6260b3628c8b97816bab 23-Sep-2010 Kenny Root <kroot@google.com> Update OBB API to include callbacks

Add a callback for users of the StorageManager API to be able to receive
notifications when the requested operation completes for mountObb and
unmountObb.

Add NDK API to get to ObbInfo like the Java API has.

Also update the docs for the API and remove the "STOPSHIP" comments.

Change-Id: I23a4409c7f8b74d3169614beba920b4d667990a4
om/android/server/MountService.java
f5bdeba197aba659e2dd3849a5bdfba8826c036d 29-Sep-2010 Joe Onorato <joeo@android.com> am ea2cf2f9: Merge "Check for the DEVICE_POWER permission in userActivity." into gingerbread

Merge commit 'ea2cf2f936b03f1720bc43863e41c89ea2a7903a' into gingerbread-plus-aosp

* commit 'ea2cf2f936b03f1720bc43863e41c89ea2a7903a':
Check for the DEVICE_POWER permission in userActivity.
059f8f93e6e89f80dfb85cfdbcd3bce64c7b1e2c 29-Sep-2010 Joe Onorato <joeo@android.com> Check for the DEVICE_POWER permission in userActivity.

Change-Id: I6c8038a960bdf32dfad3b0571d86f51f87784370
om/android/server/PowerManagerService.java
e8fd1952089b98e63410e85f734b2727eeee1450 28-Sep-2010 Dianne Hackborn <hackbod@google.com> am b763a6dc: am 08cf57d7: Merge "Fixes to granting URI permissions - take into account path perms." into gingerbread

Merge commit 'b763a6dc41dcce76585c56657903ae72c5422ae1'

* commit 'b763a6dc41dcce76585c56657903ae72c5422ae1':
Fixes to granting URI permissions - take into account path perms.
b974d0c8f21000354bec04dea9cc6c938cdccccd 28-Sep-2010 Irfan Sheriff <isheriff@google.com> am 6db64689: am c89dd54c: Remove logging on wifilock acquire/release

Merge commit '6db6468956fa6d71d68e410a532ed7b1bcaecf74'

* commit '6db6468956fa6d71d68e410a532ed7b1bcaecf74':
Remove logging on wifilock acquire/release
b763a6dc41dcce76585c56657903ae72c5422ae1 28-Sep-2010 Dianne Hackborn <hackbod@google.com> am 08cf57d7: Merge "Fixes to granting URI permissions - take into account path perms." into gingerbread

Merge commit '08cf57d791e50ecafe2728a7617a6487aeb6d6d5' into gingerbread-plus-aosp

* commit '08cf57d791e50ecafe2728a7617a6487aeb6d6d5':
Fixes to granting URI permissions - take into account path perms.
08cf57d791e50ecafe2728a7617a6487aeb6d6d5 28-Sep-2010 Dianne Hackborn <hackbod@google.com> Merge "Fixes to granting URI permissions - take into account path perms." into gingerbread
48058e8536f93543bf962b3af2bea985422fa868 28-Sep-2010 Dianne Hackborn <hackbod@google.com> Fixes to granting URI permissions - take into account path perms.

Change-Id: I8073061a578eda90dadd3b0b909047aae0d64f2d
om/android/server/am/ActivityManagerService.java
6db6468956fa6d71d68e410a532ed7b1bcaecf74 28-Sep-2010 Irfan Sheriff <isheriff@google.com> am c89dd54c: Remove logging on wifilock acquire/release

Merge commit 'c89dd54ceeec99173d51d1196e2c03a58f120211' into gingerbread-plus-aosp

* commit 'c89dd54ceeec99173d51d1196e2c03a58f120211':
Remove logging on wifilock acquire/release
c89dd54ceeec99173d51d1196e2c03a58f120211 28-Sep-2010 Irfan Sheriff <isheriff@google.com> Remove logging on wifilock acquire/release

Bug: 3042300
Change-Id: Ia3ce184f53bdd9afee1c78bb9c294af57364f266
om/android/server/WifiService.java
03d2ca6ee039e779e935afaa44b57ef09ee2e7bb 28-Sep-2010 Christian Lindeberg <christian.lindeberg@sonyericsson.com> Include debugger connection status in error entry

Include the debugger connection status when adding error entry
to DropBox if debugger is connected, "Debugger: Connected".

This can be useful to sort out crashes comming from developers
vs from regular usage.

Change-Id: Ic309066c63778af1577f2b91a95ffca0bd40338c
om/android/server/am/ActivityManagerService.java
400f12b4dde36bc3e4c02e7f861bad33d1f42a17 28-Sep-2010 Hung-ying Tyan <tyanh@google.com> Fix build.

Change-Id: Iae02fabe42013705592f75748388daf8fa5ed54e
om/android/server/SystemServer.java
a57afb6a6c9f4fb451535c3d6f49c3bdf4b59125 27-Sep-2010 Hung-ying Tyan <tyanh@google.com> resolved conflicts for merge of 2a36a778 to master

Change-Id: Ia70adeef06afddd29c827405fb5657bf9f5a29a3
b740491871fdb4782164406b850bc080978ee63c 28-Sep-2010 Nick Kralevich <nnk@google.com> am d0cb228b: am 23142acf: Merge "squeeze a few more bits of randomness into /dev/random" into gingerbread

Merge commit 'd0cb228b9af0b67fa3372ee075287e7409249550'

* commit 'd0cb228b9af0b67fa3372ee075287e7409249550':
squeeze a few more bits of randomness into /dev/random
cca1f0e3476edd09cdd81b075a6b7780a2959b46 27-Sep-2010 Dianne Hackborn <hackbod@google.com> Allow all apps to call ContentResolver.getType().

I can't find the bug number for this, but it is needed for some things
we are doing where the app building an intent may not have access to the
URI in the data field. This is for HC, but doing in GB to avoid introducing
integration issues.

Change-Id: I0cac971854198b18775d2a73deb80f23431bfbe2
om/android/server/am/ActivityManagerService.java
om/android/server/am/UriPermission.java
8c66580759b3085866e1f9f1ca9af1a60220e574 28-Sep-2010 repo sync . build/envsetup.sh lunch passion-en <clchen@google.com> am 4fc3d2f0: DO NOT MERGE

Merge commit '4fc3d2f0b3237390c37ccc4701bc68e4aa5f9b7a' into gingerbread-plus-aosp

* commit '4fc3d2f0b3237390c37ccc4701bc68e4aa5f9b7a':
DO NOT MERGE
4fc3d2f0b3237390c37ccc4701bc68e4aa5f9b7a 28-Sep-2010 repo sync . build/envsetup.sh lunch passion-eng <clchen@google.com> DO NOT MERGE

This is a manual cherrypick of:
Change I3a76de15: Fixing font scale in WindowManagerService. There was
a bug that causes WindowManagerService to lose the fontScale setting.

Change-Id: I9b993e11f6a3e75735d8ed05596083893543d732
om/android/server/WindowManagerService.java
2a36a778d384403cd92b1016ed5c860d3f2c3521 28-Sep-2010 Hung-ying Tyan <tyanh@google.com> am 68ef7f3c: Merge "Move SipService out of SystemServer to phone process." into gingerbread

Merge commit '68ef7f3c3a8deb0e14b0b6325876b23cecc191b3' into gingerbread-plus-aosp

* commit '68ef7f3c3a8deb0e14b0b6325876b23cecc191b3':
Move SipService out of SystemServer to phone process.
68ef7f3c3a8deb0e14b0b6325876b23cecc191b3 28-Sep-2010 Hung-ying Tyan <tyanh@google.com> Merge "Move SipService out of SystemServer to phone process." into gingerbread
e65041225ec0bbc3d67a3b70cdc6d598a5760043 27-Sep-2010 Jeff Brown <jeffbrown@google.com> Add support for transferring touch focus.

Prerequisite for drag and drop.

Change-Id: Iedbe93ed0f3e1c4083130fe66b4ba06d416afce0
om/android/server/InputManager.java
d0cb228b9af0b67fa3372ee075287e7409249550 28-Sep-2010 Nick Kralevich <nnk@google.com> am 23142acf: Merge "squeeze a few more bits of randomness into /dev/random" into gingerbread

Merge commit '23142acffab69738b967812fdbdf7bbda18a44d8' into gingerbread-plus-aosp

* commit '23142acffab69738b967812fdbdf7bbda18a44d8':
squeeze a few more bits of randomness into /dev/random
23142acffab69738b967812fdbdf7bbda18a44d8 28-Sep-2010 Nick Kralevich <nnk@google.com> Merge "squeeze a few more bits of randomness into /dev/random" into gingerbread
b91ec410c8ecd09390e7122115e2ab6b7aafefb8 27-Sep-2010 Nick Kralevich <nnk@google.com> squeeze a few more bits of randomness into /dev/random

Change-Id: Ida30c33985411f353c828b43ea26ca1b7e6502af
om/android/server/EntropyService.java
7e54ef71db3320a751571bba5259fba816399421 25-Sep-2010 Hung-ying Tyan <tyanh@google.com> Move SipService out of SystemServer to phone process.

Companion CL: https://android-git/g/#change,70187
http://b/issue?id=2998069

Change-Id: I90923ac522ef363a4e04292f652d413c5a1526ad
om/android/server/SystemServer.java
om/android/server/sip/SipHelper.java
om/android/server/sip/SipService.java
om/android/server/sip/SipSessionGroup.java
om/android/server/sip/SipSessionListenerProxy.java
a8bce7c8acb3904eb69bf21276c0ca2635c76a20 27-Sep-2010 Dianne Hackborn <hackbod@google.com> am d8691d73: Merge "Allow all apps to call ContentResolver.getType()." into gingerbread

Merge commit 'd8691d73d158acd9ffc63748126e822afd656707' into gingerbread-plus-aosp

* commit 'd8691d73d158acd9ffc63748126e822afd656707':
Allow all apps to call ContentResolver.getType().
d8691d73d158acd9ffc63748126e822afd656707 27-Sep-2010 Dianne Hackborn <hackbod@google.com> Merge "Allow all apps to call ContentResolver.getType()." into gingerbread
2079843412ef2e56c17cb5d96a31785938e97da5 27-Sep-2010 Hung-ying Tyan <tyanh@google.com> am 45a83a89: am fccd5bc7: Fix build.

Merge commit '45a83a896701f61f72082f7116b85d1537ebf4cb'

* commit '45a83a896701f61f72082f7116b85d1537ebf4cb':
Fix build.
45a83a896701f61f72082f7116b85d1537ebf4cb 27-Sep-2010 Hung-ying Tyan <tyanh@google.com> am fccd5bc7: Fix build.

Merge commit 'fccd5bc78f94b7dcfbcf78ddca83719c9cd1a74f' into gingerbread-plus-aosp

* commit 'fccd5bc78f94b7dcfbcf78ddca83719c9cd1a74f':
Fix build.
6cf8f64be3c079ef76d708a56b55a2b7ca6dbd2f 27-Sep-2010 Hung-ying Tyan <tyanh@google.com> am c5027642: am 025a39af: SIP: misc fixes

Merge commit 'c5027642ff3909911d27e4abaa5e3abf1615b38d'

* commit 'c5027642ff3909911d27e4abaa5e3abf1615b38d':
SIP: misc fixes
031d8786824a385fa47750e5e8aa75f40d70cae9 27-Sep-2010 Hung-ying Tyan <tyanh@google.com> am fe2d279c: am 00a22064: SipService: handle cross-domain authentication error

Merge commit 'fe2d279c5ef571340f20d433badd9f68072299af'

* commit 'fe2d279c5ef571340f20d433badd9f68072299af':
SipService: handle cross-domain authentication error
c5027642ff3909911d27e4abaa5e3abf1615b38d 27-Sep-2010 Hung-ying Tyan <tyanh@google.com> am 025a39af: SIP: misc fixes

Merge commit '025a39af346f39743c1e384b9000ce1baee36562' into gingerbread-plus-aosp

* commit '025a39af346f39743c1e384b9000ce1baee36562':
SIP: misc fixes
fe2d279c5ef571340f20d433badd9f68072299af 27-Sep-2010 Hung-ying Tyan <tyanh@google.com> am 00a22064: SipService: handle cross-domain authentication error

Merge commit '00a22064efef4f574e439079aae2deae1a087a31' into gingerbread-plus-aosp

* commit '00a22064efef4f574e439079aae2deae1a087a31':
SipService: handle cross-domain authentication error
fccd5bc78f94b7dcfbcf78ddca83719c9cd1a74f 27-Sep-2010 Hung-ying Tyan <tyanh@google.com> Fix build.

Change-Id: Ie47b63f02764e8a1ca1d36f502b6b4134859ff0d
om/android/server/sip/SipSessionGroup.java
025a39af346f39743c1e384b9000ce1baee36562 23-Sep-2010 Hung-ying Tyan <tyanh@google.com> SIP: misc fixes

+ check REQUEST_TERMINATED response on INVITE not CANCEL,
+ check if a TransactionTerminatedEvent matches the ongoing transaction,
+ add log to track SipConnection disconnect events.

Change-Id: I28325be62ac44e4a7507d3c4b5b78b066c0ea2ad
om/android/server/sip/SipSessionGroup.java
00a22064efef4f574e439079aae2deae1a087a31 25-Sep-2010 Hung-ying Tyan <tyanh@google.com> SipService: handle cross-domain authentication error

and add new CROSS_DOMAIN_AUTHENTICATION error code and OUT_OF_NETWORK
DisconnectCause.

http://b/issue?id=3020185

Change-Id: Icc0a341599d5a72b7cb2d43675fbddc516544978
om/android/server/sip/SipSessionGroup.java
831f898756daef932ec2502d3965d4184217e726 27-Sep-2010 Kenny Root <kroot@google.com> am 8f767774: am 465618ed: Merge "Use buffered output during packages.xml write" into gingerbread

Merge commit '8f767774230cba9b5cfc298f2e24972a79cd0182'

* commit '8f767774230cba9b5cfc298f2e24972a79cd0182':
Use buffered output during packages.xml write
8f767774230cba9b5cfc298f2e24972a79cd0182 27-Sep-2010 Kenny Root <kroot@google.com> am 465618ed: Merge "Use buffered output during packages.xml write" into gingerbread

Merge commit '465618ed567c418442890fcf91b6ee361b22b88b' into gingerbread-plus-aosp

* commit '465618ed567c418442890fcf91b6ee361b22b88b':
Use buffered output during packages.xml write
8313fc7e94e46e5cc09f457a15a771a325b9f74f 27-Sep-2010 Dianne Hackborn <hackbod@google.com> Allow all apps to call ContentResolver.getType().

I can't find the bug number for this, but it is needed for some things
we are doing where the app building an intent may not have access to the
URI in the data field. This is for HC, but doing in GB to avoid introducing
integration issues.

Change-Id: I0cac971854198b18775d2a73deb80f23431bfbe2
om/android/server/am/ActivityManagerService.java
om/android/server/am/UriPermission.java
9f306d78a4adae80989eecb411af454225ff55a9 26-Sep-2010 Kenny Root <kroot@google.com> Use buffered output during packages.xml write

FileOutputStream writes data one byte at a time, so use the
BufferedOutputStream to wrap it and write once all the XML serialization
is done.

Change-Id: I419a6fcac2ac9a72a6cf41d4ca6e7ab6c7505618
om/android/server/PackageManagerService.java
22ba86cfafaedab650a3bb85417ed4d9c0c57675 25-Sep-2010 Jeff Brown <jeffbrown@google.com> am ca25d2c3: am 4d94a766: Fixed some timeout and lock reentrance issues with broadcasts.

Merge commit 'ca25d2c31dc20f69597be8f34d6da9167d53b4d0'

* commit 'ca25d2c31dc20f69597be8f34d6da9167d53b4d0':
Fixed some timeout and lock reentrance issues with broadcasts.
ca25d2c31dc20f69597be8f34d6da9167d53b4d0 25-Sep-2010 Jeff Brown <jeffbrown@google.com> am 4d94a766: Fixed some timeout and lock reentrance issues with broadcasts.

Merge commit '4d94a766c3f7cf32dd3f5d543048fa801ad22813' into gingerbread-plus-aosp

* commit '4d94a766c3f7cf32dd3f5d543048fa801ad22813':
Fixed some timeout and lock reentrance issues with broadcasts.
4d94a766c3f7cf32dd3f5d543048fa801ad22813 23-Sep-2010 Jeff Brown <jeffbrown@google.com> Fixed some timeout and lock reentrance issues with broadcasts.

When starting a broadcast, the ActivityManagerService posts a delayed
BROADCAST_TIMEOUT_MSG to handle timeouts. If a premature timeout occurs,
we post a new BROADCAST_TIMEOUT_MSG to extend the timeout time for the
current receiver. However, if the current receiver does timeout, the
message is consumed and no replacement is ever posted.

To fix the dropped timeouts, we track whether we have a pending broadcast
timeout message and setup a new one when we begin working on the next receiver.

As a last resort, performNextBroadcast contains code to detect whether
a broadcast appears to be hung (timeout handling failed). If so, it
calls broadcastTimeout to cause it to timeout immediately.
However, performNextBroadcast is holding on to the ActivityManagerService
lock while doing this but broadcastTimout expected to be called
while the lock was not held since after updating the broadcast record state,
it calls appNotResponding.

To fix the unintentended lock reentrance, changed broadcastTimeout to
assume the lock is already held (and the callers ensure this) then
added code to perform the ANR asynchronously.

Renamed a few methods to add "Locked" suffixes where appropriate and added
a few comments for tricky areas uncovered during review.

Change-Id: I3cb5b06d6b6a4a338f32c0998db721f6acf3b082
om/android/server/am/ActivityManagerService.java
405e012681aa563b1d7b66c671c90ed2deb26e41 25-Sep-2010 Dianne Hackborn <hackbod@google.com> am deaa8ff1: am a7ef18fc: Merge "Some debugging support." into gingerbread

Merge commit 'deaa8ff1b10d38add4f7c276e7be2ffc19359a14'

* commit 'deaa8ff1b10d38add4f7c276e7be2ffc19359a14':
Some debugging support.
3011b6617232d1ef7c1687d1db9e780fce978d30 25-Sep-2010 Hung-ying Tyan <tyanh@google.com> am d6d83279: am 194bbcce: SIP: longer timeout for making call, shorter for cancelling

Merge commit 'd6d83279183db749de07bfdac79fe4180fc848d0'

* commit 'd6d83279183db749de07bfdac79fe4180fc848d0':
SIP: longer timeout for making call, shorter for cancelling
deaa8ff1b10d38add4f7c276e7be2ffc19359a14 25-Sep-2010 Dianne Hackborn <hackbod@google.com> am a7ef18fc: Merge "Some debugging support." into gingerbread

Merge commit 'a7ef18fca50d0db99a161d8c7e2d8979f0445503' into gingerbread-plus-aosp

* commit 'a7ef18fca50d0db99a161d8c7e2d8979f0445503':
Some debugging support.
a7ef18fca50d0db99a161d8c7e2d8979f0445503 25-Sep-2010 Dianne Hackborn <hackbod@google.com> Merge "Some debugging support." into gingerbread
d6d83279183db749de07bfdac79fe4180fc848d0 25-Sep-2010 Hung-ying Tyan <tyanh@google.com> am 194bbcce: SIP: longer timeout for making call, shorter for cancelling

Merge commit '194bbcce9ba15634500f542b9ea017b2cf154b45' into gingerbread-plus-aosp

* commit '194bbcce9ba15634500f542b9ea017b2cf154b45':
SIP: longer timeout for making call, shorter for cancelling
194bbcce9ba15634500f542b9ea017b2cf154b45 23-Sep-2010 Hung-ying Tyan <tyanh@google.com> SIP: longer timeout for making call, shorter for cancelling

http://b/3021865

Change-Id: I354ebcc00f1ac68e4b7b466745c36aeb314f9138
om/android/server/sip/SipSessionGroup.java
f333123d50776507891b90a6eda4a3b8fa305bb6 24-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of 2d457a32 to master

Change-Id: I08fc7881010083407a102f471483cd6d5b9774b4
f123e49bf0708719b51a7064ae134c097abe4a54 24-Sep-2010 Dianne Hackborn <hackbod@google.com> Some debugging support.

- New feature to "am monitor" to have it automatically launch
gdbserv for you when a crash/ANR happens, and tell you how to
run the client.

- Update dumpstate to match new location of binder debug logs

- Various commented out logs that are being used to track down
issues.

Change-Id: Ia5dd0cd2df983a1fc6be697642a4590aa02a26a5
om/android/server/WindowManagerService.java
2d457a32a653ad06487cf0fef9ef400f3055099a 24-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> am 8f97fe55: Merge "Move long Connectivity tasks to handler thread." into gingerbread

Merge commit '8f97fe551e7bd95abf395eed303b975eaa8f0158' into gingerbread-plus-aosp

* commit '8f97fe551e7bd95abf395eed303b975eaa8f0158':
Move long Connectivity tasks to handler thread.
8f97fe551e7bd95abf395eed303b975eaa8f0158 24-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> Merge "Move long Connectivity tasks to handler thread." into gingerbread
50d9f32506d1cf3f8b21caa1f34780db6b80abd5 24-Sep-2010 Chia-chi Yeh <chiachi@android.com> am 33460d83: am 658bec95: SDP: remove dead code.

Merge commit '33460d836fc2a062290d72ebcfb73af51ffa9c36'

* commit '33460d836fc2a062290d72ebcfb73af51ffa9c36':
SDP: remove dead code.
22a62d1342a973ed7d38bb7d1751a472365e2897 24-Sep-2010 Hung-ying Tyan <tyanh@google.com> resolved conflicts for merge of ee813bae to master

Change-Id: I84ca961fb18b29313b5ec6041a79ca87a1a1cd68
77cf6f29f97f9ef6213a0a9b8b6ec2215fff20ff 24-Sep-2010 Joe Onorato <joeo@android.com> am 982c07e9: am cbb7b05e: Merge "Crash apps when they provide bad notifications instead of crashing the system process." into gingerbread

Merge commit '982c07e908c4cb66db224ccfd0810bf8bd449835'

* commit '982c07e908c4cb66db224ccfd0810bf8bd449835':
Crash apps when they provide bad notifications instead of crashing the system process.
01a411326e8d3370643ca181966ae3214ea700fd 24-Sep-2010 Chung-yih Wang <cywang@google.com> am 1e2df14a: am f43ac911: Merge "Handle OPTIONS requests from SIP servers." into gingerbread

Merge commit '1e2df14a85f098d63b618531db733a21429d4037'

* commit '1e2df14a85f098d63b618531db733a21429d4037':
Handle OPTIONS requests from SIP servers.
846df9f5171c4ef32f038cca651b6b9c0b6c3083 24-Sep-2010 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 8952a448 to master

Change-Id: I9c752a5d10ae8d8e5ead1243b6abd4795204fc0b
33460d836fc2a062290d72ebcfb73af51ffa9c36 24-Sep-2010 Chia-chi Yeh <chiachi@android.com> am 658bec95: SDP: remove dead code.

Merge commit '658bec956785e074edc4f6c9fe739c366e37be33' into gingerbread-plus-aosp

* commit '658bec956785e074edc4f6c9fe739c366e37be33':
SDP: remove dead code.
658bec956785e074edc4f6c9fe739c366e37be33 23-Sep-2010 Chia-chi Yeh <chiachi@android.com> SDP: remove dead code.

Change-Id: I2a5764a2b9cabc54b0ac18666e494c1cb39c4e9b
om/android/server/sip/SipSessionGroup.java
ee813baee49c94f87916d6a179bd5d16837e228a 24-Sep-2010 Hung-ying Tyan <tyanh@google.com> am 84a357bb: Refactoring SIP classes to get ready for API review.

Merge commit '84a357bb6a8005e1c5e924e96a8ecf310e77c47c' into gingerbread-plus-aosp

* commit '84a357bb6a8005e1c5e924e96a8ecf310e77c47c':
Refactoring SIP classes to get ready for API review.
84a357bb6a8005e1c5e924e96a8ecf310e77c47c 15-Sep-2010 Hung-ying Tyan <tyanh@google.com> Refactoring SIP classes to get ready for API review.

+ replace SipAudioCall and its Listener interfaces with real implementations,
+ remove SipAudioCallImpl.java, most of it is has become part of SipAudioCall,
+ add SipSession and its Listener classes to wrap ISipSession and ISipSessionListener,
+ move SipSessionState to SipSession.State,
+ make SipManager keep context and remove the context argument from many methods of its,
+ rename SipManager.getInstance() to newInstance(),
+ rename constant names for action strings and extra keys to follow conventions,
+ set thread names for debugging purpose.

Change-Id: Ie1790dc0e8f49c06c7fc80d33fec0f673a9c3044
om/android/server/sip/SipService.java
om/android/server/sip/SipSessionGroup.java
om/android/server/sip/SipSessionListenerProxy.java
982c07e908c4cb66db224ccfd0810bf8bd449835 24-Sep-2010 Joe Onorato <joeo@android.com> am cbb7b05e: Merge "Crash apps when they provide bad notifications instead of crashing the system process." into gingerbread

Merge commit 'cbb7b05e35368b104c27089f5f16640680f567c2' into gingerbread-plus-aosp

* commit 'cbb7b05e35368b104c27089f5f16640680f567c2':
Crash apps when they provide bad notifications instead of crashing the system process.
cbb7b05e35368b104c27089f5f16640680f567c2 24-Sep-2010 Joe Onorato <joeo@android.com> Merge "Crash apps when they provide bad notifications instead of crashing the system process." into gingerbread
eaa0718780a29df8fbe42c59beecee5557fdf785 24-Sep-2010 Joe Onorato <joeo@android.com> Crash apps when they provide bad notifications instead of crashing the system process.

Bug: 2958415
Change-Id: I9cbef340fb20a64eca8493950b814399c26ce197
om/android/server/am/ServiceRecord.java
8dcc28be065bb5997ed97d58c9592324b891023a 23-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> Move long Connectivity tasks to handler thread.

Reduce ANR potential.
bug:2942829

Change-Id: I21610b462d5ab91821015cd16eecd86d2c0580d1
om/android/server/ConnectivityService.java
1e2df14a85f098d63b618531db733a21429d4037 24-Sep-2010 Chung-yih Wang <cywang@google.com> am f43ac911: Merge "Handle OPTIONS requests from SIP servers." into gingerbread

Merge commit 'f43ac911379c15b6a1a240a931b0f3cbfb2fae53' into gingerbread-plus-aosp

* commit 'f43ac911379c15b6a1a240a931b0f3cbfb2fae53':
Handle OPTIONS requests from SIP servers.
f43ac911379c15b6a1a240a931b0f3cbfb2fae53 24-Sep-2010 Chung-yih Wang <cywang@google.com> Merge "Handle OPTIONS requests from SIP servers." into gingerbread
8952a4488e81205e3013b6b456dec503e05eebd0 24-Sep-2010 Dianne Hackborn <hackbod@google.com> am 287952c3: Fix issue #3022508: Crash during media scan

Merge commit '287952c35e148811c106bc0f5036eabf20f71562' into gingerbread-plus-aosp

* commit '287952c35e148811c106bc0f5036eabf20f71562':
Fix issue #3022508: Crash during media scan
287952c35e148811c106bc0f5036eabf20f71562 23-Sep-2010 Dianne Hackborn <hackbod@google.com> Fix issue #3022508: Crash during media scan

Don't kill processes for excessive wake lock use, even if they
are in the background, as long as they have running services.

Also fix some problems with this, such as not noting the kill
in battery stats.

And add killing of processes for cpu usage as well, along with
some optimizations to computing CPU usage.

And fix BatteryWaster to be better behaving for testing these
cases.

Add new "monitor" command to am to watch as the activity manager
does stuff (so we can catch things at the point of ANR).

Finally some miscellaneous debug output for the stuff here, as
well as in progress debugging of an ANR.

Change-Id: Ib32f55ca50fb7486b4be4eb5e695f8f60c882cd1
om/android/server/ProcessStats.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/ProcessRecord.java
eecb5b9873bf2c2e61929a35c2762f03dd2bfeb0 23-Sep-2010 Dianne Hackborn <hackbod@google.com> am 2983e038: am 045398e6: Merge "Fix a deadlock I ran into." into gingerbread

Merge commit '2983e038d189a257f1e5abb9c120bd1feb253773'

* commit '2983e038d189a257f1e5abb9c120bd1feb253773':
Fix a deadlock I ran into.
2983e038d189a257f1e5abb9c120bd1feb253773 23-Sep-2010 Dianne Hackborn <hackbod@google.com> am 045398e6: Merge "Fix a deadlock I ran into." into gingerbread

Merge commit '045398e6243fa4e83fb6435df4e8ffc6a7487a70' into gingerbread-plus-aosp

* commit '045398e6243fa4e83fb6435df4e8ffc6a7487a70':
Fix a deadlock I ran into.
045398e6243fa4e83fb6435df4e8ffc6a7487a70 23-Sep-2010 Dianne Hackborn <hackbod@google.com> Merge "Fix a deadlock I ran into." into gingerbread
c6c9a7df582f68a924238592573a45674d3fd0ce 23-Sep-2010 Irfan Sheriff <isheriff@google.com> Merge "Add Wifi Protected Setup support"
0b4d2fb11405e2e785ec30cabe7bb311c654c0d2 23-Sep-2010 Chung-yih Wang <cywang@google.com> Handle OPTIONS requests from SIP servers.

Change-Id: I849d5ea4c4c56a06d25ccdc6b959274c59c47200
om/android/server/sip/SipSessionGroup.java
35dcaece115e2f8e227c2e579d38c42b65ead85e 23-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> am 9c38a6dc: am e87ebb08: Merge "Cleanup Netd to prevent getting hung." into gingerbread

Merge commit '9c38a6dc13ba55fccb9c66f347307a1b4ae68105'

* commit '9c38a6dc13ba55fccb9c66f347307a1b4ae68105':
Cleanup Netd to prevent getting hung.
5ee89800bee7c6c755778795a536e0e2f12b85ff 17-Sep-2010 Irfan Sheriff <isheriff@google.com> Add Wifi Protected Setup support

Add WPS PBC and WPS pin method support with pin obtained
from AP

Bug: 2277571

Change-Id: I6ff8e447ab8c5e59456a55152588fd4d6386c610
om/android/server/WifiService.java
9c38a6dc13ba55fccb9c66f347307a1b4ae68105 23-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> am e87ebb08: Merge "Cleanup Netd to prevent getting hung." into gingerbread

Merge commit 'e87ebb08fba88628a65eae88fc5bc7911cfa7d97' into gingerbread-plus-aosp

* commit 'e87ebb08fba88628a65eae88fc5bc7911cfa7d97':
Cleanup Netd to prevent getting hung.
e87ebb08fba88628a65eae88fc5bc7911cfa7d97 23-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> Merge "Cleanup Netd to prevent getting hung." into gingerbread
ab751aa085433e9f735d2e7603459c6c7e9d2fb0 14-Sep-2010 satok <satok@google.com> Add methods for managing subtypes

- added showInputMethodSubtypePicker to public API
-- show the selector dialog for subtypes
- added getter, setter and event handler to InputMethodManagerService
- extract InputMethodSubtype to the top level class for using it in aidl
- TODO: make an enabler for input method subtypes
- TODO: handle the event of changing an input method subtype in LatinIME

Change-Id: I49f8c6675ac4b06511635d14a37bd398738eff33
om/android/server/InputMethodManagerService.java
0674069aa4fb75064d4617466cb625699c44e04d 23-Sep-2010 Dianne Hackborn <hackbod@google.com> Fix a deadlock I ran into.

Activity manager was calling into the backup service (and other
things) with its lock held.

Change-Id: Id55093e09cc5fe81b73b85968184816d956e0ae8
om/android/server/am/ActivityManagerService.java
40d073cf87b6339810d5e66f2ce9dd0f3af57ef1 23-Sep-2010 Brad Fitzpatrick <bradfitz@android.com> am 1c384697: am 89647b11: Don\'t do single byte writes in DropBoxManagerService

Merge commit '1c3846979a657e4e2b1f7864fa6defb65b3bbf42'

* commit '1c3846979a657e4e2b1f7864fa6defb65b3bbf42':
Don't do single byte writes in DropBoxManagerService
1c3846979a657e4e2b1f7864fa6defb65b3bbf42 23-Sep-2010 Brad Fitzpatrick <bradfitz@android.com> am 89647b11: Don\'t do single byte writes in DropBoxManagerService

Merge commit '89647b1172cdf40a3681922150122b0bd2ea83f1' into gingerbread-plus-aosp

* commit '89647b1172cdf40a3681922150122b0bd2ea83f1':
Don't do single byte writes in DropBoxManagerService
89647b1172cdf40a3681922150122b0bd2ea83f1 23-Sep-2010 Brad Fitzpatrick <bradfitz@android.com> Don't do single byte writes in DropBoxManagerService

Bug: 3018772
Change-Id: I6990041f059aeb2a4c29e59b1a3d78d19bf9b02f
om/android/server/DropBoxManagerService.java
483c4b1d1fca7695a3af8d0ad8402f9f452ac41b 23-Sep-2010 Amith Yamasani <yamasani@google.com> am abdd2c7f: am 95f600b5: Merge "Fix NPE in PowerManagerService on boot, if some settings are corrupted." into gingerbread

Merge commit 'abdd2c7f03651e95424133c2be948238c6dc7bf6'

* commit 'abdd2c7f03651e95424133c2be948238c6dc7bf6':
Fix NPE in PowerManagerService on boot, if some settings are corrupted.
e5c3afb29241fd3faae309f973645d7f6a7ed111 22-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> Cleanup Netd to prevent getting hung.

If the sending of the command fails we should note it and not wait forever
for the response.

We should also not say we're ready until we actually are.

bug:2993205
Change-Id: I380f0312ac4693ad184a526b330fdfa23f6ac558
om/android/server/NativeDaemonConnector.java
om/android/server/NetworkManagementService.java
om/android/server/SystemServer.java
abdd2c7f03651e95424133c2be948238c6dc7bf6 23-Sep-2010 Amith Yamasani <yamasani@google.com> am 95f600b5: Merge "Fix NPE in PowerManagerService on boot, if some settings are corrupted." into gingerbread

Merge commit '95f600b55f617fcc94985fee07927aff48160362' into gingerbread-plus-aosp

* commit '95f600b55f617fcc94985fee07927aff48160362':
Fix NPE in PowerManagerService on boot, if some settings are corrupted.
8b61983ee81f4819319d22e05ddf473a9c64be77 23-Sep-2010 Amith Yamasani <yamasani@google.com> Fix NPE in PowerManagerService on boot, if some settings are corrupted.

Bug: 2715038
Change-Id: I10c08b359ff3cde732c37eb6dff0877cdb021cd9
om/android/server/PowerManagerService.java
00ec86940370bdeb4b255fd5f8bb2e1da9c8ac17 22-Sep-2010 Mike Lockwood <lockwood@android.com> am 6cec0dc0: am 32371695: Merge "GpsLocationProvider: Fix race condition while bringing up APN for SUPL." into gingerbread

Merge commit '6cec0dc0e47459553a3a6572abd28a8e49ce5875'

* commit '6cec0dc0e47459553a3a6572abd28a8e49ce5875':
GpsLocationProvider: Fix race condition while bringing up APN for SUPL.
6cec0dc0e47459553a3a6572abd28a8e49ce5875 22-Sep-2010 Mike Lockwood <lockwood@android.com> am 32371695: Merge "GpsLocationProvider: Fix race condition while bringing up APN for SUPL." into gingerbread

Merge commit '32371695daf917701f78a86224b58bfda0381e27' into gingerbread-plus-aosp

* commit '32371695daf917701f78a86224b58bfda0381e27':
GpsLocationProvider: Fix race condition while bringing up APN for SUPL.
32371695daf917701f78a86224b58bfda0381e27 22-Sep-2010 Mike Lockwood <lockwood@android.com> Merge "GpsLocationProvider: Fix race condition while bringing up APN for SUPL." into gingerbread
bb205456698053b1f77891ee1a94e3ddebee1f10 22-Sep-2010 Hung-ying Tyan <tyanh@google.com> am 8f05b5c8: am ca54cdaf: Merge "SipService: fix thread/socket leak" into gingerbread

Merge commit '8f05b5c8d3c310bc70a3eff04911ea9cf4eba87a'

* commit '8f05b5c8d3c310bc70a3eff04911ea9cf4eba87a':
SipService: fix thread/socket leak
8f05b5c8d3c310bc70a3eff04911ea9cf4eba87a 22-Sep-2010 Hung-ying Tyan <tyanh@google.com> am ca54cdaf: Merge "SipService: fix thread/socket leak" into gingerbread

Merge commit 'ca54cdaf66449cd4f81d8887ec603392b8f3779c' into gingerbread-plus-aosp

* commit 'ca54cdaf66449cd4f81d8887ec603392b8f3779c':
SipService: fix thread/socket leak
ca54cdaf66449cd4f81d8887ec603392b8f3779c 22-Sep-2010 Hung-ying Tyan <tyanh@google.com> Merge "SipService: fix thread/socket leak" into gingerbread
2acfd34ccbd39258422333c9c66c586297c97683 22-Sep-2010 Mike Lockwood <lockwood@android.com> GpsLocationProvider: Fix race condition while bringing up APN for SUPL.

If handleUpdateNetworkState() is called before
ConnectivityManager.startUsingNetworkFeature() returns, then we will not
call native_agps_data_conn_open() to inform the GPS that the APN is up.
So we now set mAGpsDataConnectionState to AGPS_DATA_CONNECTION_OPENING
before calling ConnectivityManager.startUsingNetworkFeature() to avoid
this problem.

Change-Id: I5e1597d6494dc8ab68e608911c546a7a04f2ea07
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/location/GpsLocationProvider.java
fc51f2c972c7a3a829f556c4c19f16c60c87d7e7 22-Sep-2010 Hung-ying Tyan <tyanh@google.com> SipService: fix thread/socket leak

Should call SipSessionGroup.close() instead of closeNotToReceiveCalls() to stop
the SIP stack (which will stop the MessageProcessor thread and close its socket).

Might be related to ANR's reported by:
http://b/issue?id=3021924
http://b/issue?id=3021927

Change-Id: I4ead1d81fc9abac983f5753b825d20bc1cc79866
om/android/server/sip/SipService.java
adaba84ad76f70d833e140d5c28a0de58c8f19d2 22-Sep-2010 Dianne Hackborn <hackbod@google.com> Merge "Work on fragments in layouts."
625ac271f80777668f832a344486a6fcdc06d0ae 18-Sep-2010 Dianne Hackborn <hackbod@google.com> Work on fragments in layouts.

- Change semantics if IDs associated with these fragments, to
work correctly when placed in a container. If the container
has an ID or you have supplied a tag, the fragment's ID is
optional.

- To do this, there is a new LayoutInflater API that allows code
creating views to access the parent container that view will
be in.

- Fix issues with state management around these fragments. Now
correctly retains state when switching to a layout that doesn't
include the fragment.

Also:

- Add new simple list layouts for items that want to show an
activated state.
- Add new Activity.dump() that can be invoked with adb shell
dumpsys; the default implementation dumps fragment state.

Change-Id: I192f35e3ea8c53fbd26cf909095f2a994abfc1b6
om/android/server/am/ActivityManagerService.java
a7553c5e330a6f743f6a62d610373214b1001663 22-Sep-2010 Jeff Brown <jeffbrown@google.com> am 77d9a5a5: am 98bcb41d: Merge "Fix race reading input configuration during system startup." into gingerbread

Merge commit '77d9a5a55fa52074f18012cf997854a82500fd59'

* commit '77d9a5a55fa52074f18012cf997854a82500fd59':
Fix race reading input configuration during system startup.
77d9a5a55fa52074f18012cf997854a82500fd59 22-Sep-2010 Jeff Brown <jeffbrown@google.com> am 98bcb41d: Merge "Fix race reading input configuration during system startup." into gingerbread

Merge commit '98bcb41d9b434bbe486b33681d9d091d6072d1f1' into gingerbread-plus-aosp

* commit '98bcb41d9b434bbe486b33681d9d091d6072d1f1':
Fix race reading input configuration during system startup.
57c59376f4432bdb285acb242bd9b3bec81f6bca 22-Sep-2010 Jeff Brown <jeffbrown@google.com> Fix race reading input configuration during system startup.

Change-Id: I9360c4ec5c29937fce06b44ffc71fca58c8b3d5f
om/android/server/InputManager.java
d404a9be14715efdea447ec4ed3e7677ab72e641 21-Sep-2010 Irfan Sheriff <isheriff@google.com> am 0859b764: Make wifi scan async. (don\'t auto-merge)

Merge commit '0859b764719735e4b9aea5df6051ece13e212841' into gingerbread-plus-aosp

* commit '0859b764719735e4b9aea5df6051ece13e212841':
Make wifi scan async. (don't auto-merge)
0859b764719735e4b9aea5df6051ece13e212841 07-Sep-2010 Irfan Sheriff <isheriff@google.com> Make wifi scan async. (don't auto-merge)

When an entity (NLP for example) acquires
a WifiLock and initiates a scan, scan can
get blocked until driver starts.

scan returns no useful info, scan results
are broadcast when obtained.

Bug: 2964633
Change-Id: Iaefc32bb6b82f0718285a18ac600e6bbbb096e77
om/android/server/WifiService.java
19531dacfee9fcfd527ab04223fb91ae019ec05c 21-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> am f532e958: am 6548f395: Merge "Inet status bug fix" into gingerbread

Merge commit 'f532e9583ec0111b1c198e895ed1b2fd83c3d5cf'

* commit 'f532e9583ec0111b1c198e895ed1b2fd83c3d5cf':
Inet status bug fix
5e6ec0aeea7ec39cdf1f622da2da53a95eaea5fa 21-Sep-2010 Dianne Hackborn <hackbod@google.com> am e665698f: am 6f33b65f: Merge "Fix issue #2999757: "Application Redirected" dialogue showing up erratically" into gingerbread

Merge commit 'e665698ffe539bdb99122dcf83e19844ebea92b8'

* commit 'e665698ffe539bdb99122dcf83e19844ebea92b8':
Fix issue #2999757: "Application Redirected" dialogue showing up erratically
1bbef40e406814b327e7a987edf9cb56180c3512 21-Sep-2010 Dianne Hackborn <hackbod@google.com> am 2d19a676: am 51aaab3d: Merge "Fix #2999258: ANR in Settings after every reboot" into gingerbread

Merge commit '2d19a676860bf773c984315fe03d9568913f9314'

* commit '2d19a676860bf773c984315fe03d9568913f9314':
Fix #2999258: ANR in Settings after every reboot
4524c6244884d4b3aff0b6b00372427b6a42ebd8 21-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of 749e6bc5 to master

Change-Id: Ica492307505d53e57863d4363b5f75abd798bcd8
f532e9583ec0111b1c198e895ed1b2fd83c3d5cf 21-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> am 6548f395: Merge "Inet status bug fix" into gingerbread

Merge commit '6548f395a974d2a8dcefe29b3a498d1ca87d8aef' into gingerbread-plus-aosp

* commit '6548f395a974d2a8dcefe29b3a498d1ca87d8aef':
Inet status bug fix
6548f395a974d2a8dcefe29b3a498d1ca87d8aef 21-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> Merge "Inet status bug fix" into gingerbread
029be81302c7a00901e0af34afc06ddabb2805ef 21-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> Inet status bug fix

Don't wipe out the connected status every time we get a cellular status change.
Don't filter out disconnect event for wifi - we need them.

bug:3009923
Change-Id: I68cadac5f44d6eb4e0fe711fda7c5d218abb45bd
om/android/server/ConnectivityService.java
e665698ffe539bdb99122dcf83e19844ebea92b8 21-Sep-2010 Dianne Hackborn <hackbod@google.com> am 6f33b65f: Merge "Fix issue #2999757: "Application Redirected" dialogue showing up erratically" into gingerbread

Merge commit '6f33b65f8033cf8644eb4ba727421b90bd4c0ae9' into gingerbread-plus-aosp

* commit '6f33b65f8033cf8644eb4ba727421b90bd4c0ae9':
Fix issue #2999757: "Application Redirected" dialogue showing up erratically
034093a4ae94c0363cad36c60b41d41ea59420b1 21-Sep-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2999757: "Application Redirected" dialogue showing up erratically

Give up on this for now.

Change-Id: Ic66a36d468f8bcb313d9bde2809124cdfd74adb3
om/android/server/am/ActivityStack.java
2d19a676860bf773c984315fe03d9568913f9314 21-Sep-2010 Dianne Hackborn <hackbod@google.com> am 51aaab3d: Merge "Fix #2999258: ANR in Settings after every reboot" into gingerbread

Merge commit '51aaab3d6ba01263c3e1d81ca0567e0ad5cddb2d' into gingerbread-plus-aosp

* commit '51aaab3d6ba01263c3e1d81ca0567e0ad5cddb2d':
Fix #2999258: ANR in Settings after every reboot
51aaab3d6ba01263c3e1d81ca0567e0ad5cddb2d 21-Sep-2010 Dianne Hackborn <hackbod@google.com> Merge "Fix #2999258: ANR in Settings after every reboot" into gingerbread
749e6bc5cc429b4db2353c264413f229f2694aa6 21-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> am 313af5a3: Merge "Add Inet Condition log to bugreports" into gingerbread

Merge commit '313af5a3b5ba51eb75dea35eb568c841aa4beb6a' into gingerbread-plus-aosp

* commit '313af5a3b5ba51eb75dea35eb568c841aa4beb6a':
Add Inet Condition log to bugreports
313af5a3b5ba51eb75dea35eb568c841aa4beb6a 21-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> Merge "Add Inet Condition log to bugreports" into gingerbread
8891fdc1da12993d23c7039ee82ffc243d071ce5 21-Sep-2010 Dianne Hackborn <hackbod@google.com> Fix #2999258: ANR in Settings after every reboot

The main problem here was in the error recovery when we are waiting
for a process to start but it has failed for some reason. The code
was just setting mPendingBroadcast to null, but this would cause
an eventual ANR because the state was not set back to IDLE so we
would continue waiting for the broadcast without trying to restart
its process.

Now we set it to idle. We also need to reset the "nextReceiver"
index, so there is a new mPendingBroadcastRecvIndex variable holding
what it should be set back to.

While digging into this, I found a number of other lesser problems:

- There is a race when booting the system where we set mSystemReady
to true before restarting the upgrade processes. This could allow
a broadcast to happen between those two and its process to immediately
be removed. To fix this, there is a new mProcessesReady that is set
once we are truly ready to start launching processes.

- There were various places where we were calling sendBroadcastLocked()
without the flag to send only to receivers... if this is called before
mProcessesReady is set, then we would end up sticking any process for
the broadcast on the holding list to not get launched until later
(and hang up all broadcasts as they want for it). Now we always make
sure to set this appropriately.

- sendBroadcastInPackage() was not doing all of the validation that
sendBroadcast() does.

And of course a bunch of new debugging logs that were done in the
course of tracking this down.

Change-Id: I6134bbd94fdb73db8b693507b29499eae012d543
om/android/server/am/ActivityManagerService.java
141e00c212ab1cd9d6def55edadc3e709d88f9d5 21-Sep-2010 Marc Blank <mblank@google.com> Fix broken build due to rename of Geocoder.isImplemented

Change-Id: I350d560bc99661550f939f70b6abcb40bbe44bfc
om/android/server/location/ComprehensiveCountryDetector.java
537ce32c71284f7bef40371778926f34d41f277e 21-Sep-2010 Mike Lockwood <lockwood@android.com> am 24956d36: am 307aef01: Merge "LocationManager: Hide location provider and geocode provider APIs." into gingerbread

Merge commit '24956d36f46dd7be0b029a7b2b43c1020ae8a4c5'

* commit '24956d36f46dd7be0b029a7b2b43c1020ae8a4c5':
LocationManager: Hide location provider and geocode provider APIs.
fde5e965d48b2f3f8672f720e8a95ad647c7a214 21-Sep-2010 Dianne Hackborn <hackbod@google.com> am 65b5a65e: am 4db643eb: Merge "In theory the package manager now scans /vendor/app" into gingerbread

Merge commit '65b5a65e790458be0d6f70fafa9e151ba22a9e2e'

* commit '65b5a65e790458be0d6f70fafa9e151ba22a9e2e':
In theory the package manager now scans /vendor/app
48a781a0a5f83da7c81cf0e7230151a751740a09 21-Sep-2010 Dianne Hackborn <hackbod@google.com> am 4b187e80: am 8e1b84e7: Merge "Some battery improvements:" into gingerbread

Merge commit '4b187e804fdfdbc825e17646e82e0218e316a339'

* commit '4b187e804fdfdbc825e17646e82e0218e316a339':
Some battery improvements:
24956d36f46dd7be0b029a7b2b43c1020ae8a4c5 21-Sep-2010 Mike Lockwood <lockwood@android.com> am 307aef01: Merge "LocationManager: Hide location provider and geocode provider APIs." into gingerbread

Merge commit '307aef01257cbba42f095f7020a4a3b753f3807b' into gingerbread-plus-aosp

* commit '307aef01257cbba42f095f7020a4a3b753f3807b':
LocationManager: Hide location provider and geocode provider APIs.
307aef01257cbba42f095f7020a4a3b753f3807b 21-Sep-2010 Mike Lockwood <lockwood@android.com> Merge "LocationManager: Hide location provider and geocode provider APIs." into gingerbread
e15735a9e0c0b1448b68f2d6b3247404fc1df417 20-Sep-2010 Mike Lockwood <lockwood@android.com> LocationManager: Hide location provider and geocode provider APIs.

Also rename Geocoder.isImplemented() to Geocoder.isPresent()

BUG: 3000738
BUG: 3001413

Change-Id: I56bb4e9a9c59f8b79de585eeb168f74c3ff1a853
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/LocationManagerService.java
0ce12e210eaef554e96752af2553dadc431d6d09 21-Sep-2010 Dianne Hackborn <hackbod@google.com> am e25a264c: Merge "DO NOT MERGE. Wifi service now blames apps for its wake lock use." into gingerbread

Merge commit 'e25a264c4e3739913798d9b7d91af5dc964b0f15' into gingerbread-plus-aosp

* commit 'e25a264c4e3739913798d9b7d91af5dc964b0f15':
DO NOT MERGE. Wifi service now blames apps for its wake lock use.
e25a264c4e3739913798d9b7d91af5dc964b0f15 21-Sep-2010 Dianne Hackborn <hackbod@google.com> Merge "DO NOT MERGE. Wifi service now blames apps for its wake lock use." into gingerbread
c8314b05b4f283873e65df9209f3426a201ca6ad 20-Sep-2010 Dianne Hackborn <hackbod@google.com> DO NOT MERGE. Wifi service now blames apps for its wake lock use.

Change-Id: Ic57d8f77527bbfea6a129b8f348fe9108157b4d8
om/android/server/WifiService.java
65b5a65e790458be0d6f70fafa9e151ba22a9e2e 21-Sep-2010 Dianne Hackborn <hackbod@google.com> am 4db643eb: Merge "In theory the package manager now scans /vendor/app" into gingerbread

Merge commit '4db643eb8430d063b1adc4ba164bfa1c1281bdf3' into gingerbread-plus-aosp

* commit '4db643eb8430d063b1adc4ba164bfa1c1281bdf3':
In theory the package manager now scans /vendor/app
4db643eb8430d063b1adc4ba164bfa1c1281bdf3 21-Sep-2010 Dianne Hackborn <hackbod@google.com> Merge "In theory the package manager now scans /vendor/app" into gingerbread
3b4bac7a2a940483c81a6bfda21039e02e62157d 20-Sep-2010 Dianne Hackborn <hackbod@google.com> In theory the package manager now scans /vendor/app

Not tested.

Change-Id: Ib6120d645074c95dd0afd1476f6167aec5d50bb9
om/android/server/PackageManagerService.java
4b187e804fdfdbc825e17646e82e0218e316a339 21-Sep-2010 Dianne Hackborn <hackbod@google.com> am 8e1b84e7: Merge "Some battery improvements:" into gingerbread

Merge commit '8e1b84e7654ddeeb77a03f5eca10c6669b1cb42b' into gingerbread-plus-aosp

* commit '8e1b84e7654ddeeb77a03f5eca10c6669b1cb42b':
Some battery improvements:
ce2ef766cad1bb186ea522f76c4ac6a8bb3dfa87 20-Sep-2010 Dianne Hackborn <hackbod@google.com> Some battery improvements:

- New API for iterating over history that will allow a better implementation
in the future.
- Now do writes asynchronously.

Also improve the documentation for Activity.onRetainNonInstanceState().

Change-Id: Idf67f2796a8868eb62f288bcbb2bad29876c8554
om/android/server/WindowManagerService.java
om/android/server/am/ActivityManagerService.java
4e8dfefb06227a911eb5abfcb2591d8eae5db42b 20-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> Add Inet Condition log to bugreports

Reports who reports what condition on which network at what time. Where is implied.

Change-Id: I89fbc7323dec438041859fcc934169fa325f0133
om/android/server/ConnectivityService.java
23fd61b18824e7f2eaa6de22bf9bd126bc0275b0 20-Sep-2010 Hung-ying Tyan <tyanh@google.com> am 97bc368b: am b17eae9e: SipService: move event handling out of system server\'s main thread

Merge commit '97bc368bc445c0015de6dd6557feff0dd5527d9d'

* commit '97bc368bc445c0015de6dd6557feff0dd5527d9d':
SipService: move event handling out of system server's main thread
97bc368bc445c0015de6dd6557feff0dd5527d9d 20-Sep-2010 Hung-ying Tyan <tyanh@google.com> am b17eae9e: SipService: move event handling out of system server\'s main thread

Merge commit 'b17eae9e227475a323f61519abc8a7d35ddf8828' into gingerbread-plus-aosp

* commit 'b17eae9e227475a323f61519abc8a7d35ddf8828':
SipService: move event handling out of system server's main thread
b17eae9e227475a323f61519abc8a7d35ddf8828 18-Sep-2010 Hung-ying Tyan <tyanh@google.com> SipService: move event handling out of system server's main thread

http://b/issue?id=2998047

Change-Id: Ibe0b6a19bb8b453fa852a94b3daf3cb80d7377b0
om/android/server/sip/SipService.java
2417132611936918cec91a85269a4e2e2752e9de 20-Sep-2010 Hung-ying Tyan <tyanh@google.com> am 37d1b249: am 97963794: SIP: convert enum to static final int.

Merge commit '37d1b2496ed4e636062d8bb451e723b975c80920'

* commit '37d1b2496ed4e636062d8bb451e723b975c80920':
SIP: convert enum to static final int.
37d1b2496ed4e636062d8bb451e723b975c80920 20-Sep-2010 Hung-ying Tyan <tyanh@google.com> am 97963794: SIP: convert enum to static final int.

Merge commit '97963794af1e18674dd111e3ad344d90b16c922c' into gingerbread-plus-aosp

* commit '97963794af1e18674dd111e3ad344d90b16c922c':
SIP: convert enum to static final int.
97963794af1e18674dd111e3ad344d90b16c922c 17-Sep-2010 Hung-ying Tyan <tyanh@google.com> SIP: convert enum to static final int.

Converts SipErrorCode and SipSessionState.

Change-Id: Iee3a465649ea89d395b2336bbd673c25113e5f93
om/android/server/sip/SipService.java
om/android/server/sip/SipSessionGroup.java
om/android/server/sip/SipSessionListenerProxy.java
03d8a8f1f760df74a6cdc5c3d5b1a755517b45cf 20-Sep-2010 Hung-ying Tyan <tyanh@google.com> resolved conflicts for merge of cf1620d6 to master

Change-Id: I7a1436ec4c6a96801c096f61e9dc3571c1927cae
cf1620d6dd6c172a2a3bf91d2d9c137527218629 20-Sep-2010 Hung-ying Tyan <tyanh@google.com> am 5b930c49: Merge "SIP: add config flag for wifi-only configuration." into gingerbread

Merge commit '5b930c49b12bdb1461a18491db768c642c38d498' into gingerbread-plus-aosp

* commit '5b930c49b12bdb1461a18491db768c642c38d498':
SIP: add config flag for wifi-only configuration.
5b930c49b12bdb1461a18491db768c642c38d498 20-Sep-2010 Hung-ying Tyan <tyanh@google.com> Merge "SIP: add config flag for wifi-only configuration." into gingerbread
c4b87477c076d61062950becc132b7483e3fb198 19-Sep-2010 Hung-ying Tyan <tyanh@google.com> SIP: add config flag for wifi-only configuration.

http://b/issue?id=2994029

Change-Id: I328da9b0f8b70d660dbcefffdac8250341792101
om/android/server/sip/SipService.java
b5994789af9c676f8e067a4a8706d2177b7cc142 19-Sep-2010 Mike Lockwood <lockwood@android.com> am ba56dfce: DO NOT MERGE Tethering: Delay 1000ms before processing USB disconnect events

Merge commit 'ba56dfce7c751081f2289aa33533dcf4822dc12b' into gingerbread-plus-aosp

* commit 'ba56dfce7c751081f2289aa33533dcf4822dc12b':
DO NOT MERGE Tethering: Delay 1000ms before processing USB disconnect events
ba56dfce7c751081f2289aa33533dcf4822dc12b 23-Aug-2010 Mike Lockwood <lockwood@android.com> DO NOT MERGE Tethering: Delay 1000ms before processing USB disconnect events

This change is already in master

On some devices, switching the USB configuration to enable RNDIS can
result in multiple USB disconnect/reconnect events being generated.

Change-Id: I14b02aaca11bb708f6b3334e41a2f4d4fa7b7296
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/connectivity/Tethering.java
03f3cb083d708d4d3226b80ed42c9d2876a56edc 18-Sep-2010 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 1f377298 to master

Change-Id: I0d92abae3a86792b47777f795143acc0489adfe4
d192dad69e9e5a820c5c11d8cd34460c9cc2ed11 14-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> Enhance http proxy support

Make it read proxys the correct way from CS so it works for all network types.
Add utility class for apache http client support.

bug:2700664
Change-Id: If81917b19b5f0636247a6519a1ec78bd8dbf3596
om/android/server/ConnectivityService.java
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
om/android/server/WifiService.java
om/android/server/am/BatteryStatsService.java
6308514cbff740772534338ed641d3243cca52fe 17-Sep-2010 Hung-ying Tyan <tyanh@google.com> am 156edcc9: am 9404e633: Merge "Add timer to SIP session creation process." into gingerbread

Merge commit '156edcc9f64e010d6b6de97e9a77adfccee353eb'

* commit '156edcc9f64e010d6b6de97e9a77adfccee353eb':
Add timer to SIP session creation process.
156edcc9f64e010d6b6de97e9a77adfccee353eb 17-Sep-2010 Hung-ying Tyan <tyanh@google.com> am 9404e633: Merge "Add timer to SIP session creation process." into gingerbread

Merge commit '9404e633a55cd325b57732cdd776053b3886b611' into gingerbread-plus-aosp

* commit '9404e633a55cd325b57732cdd776053b3886b611':
Add timer to SIP session creation process.
9352cf1a4d46492fc48a20f7d825a9bcb6e8b365 16-Sep-2010 Hung-ying Tyan <tyanh@google.com> Add timer to SIP session creation process.

+ add timer parameter to ISipSession.make/changeCall(),
+ add timer paramter to SipAudioCall.make/answer/hold/continueCall()'s,
+ add timer parameter to SipManager.makeAudioCall(),
+ modify implementation in SipSessionGroup, SipAudioCallImpl accordingly,
+ make SipPhone to use it with 8-second timeout.

http://b/issue?id=2994748

Change-Id: I661a887e5810087ddc5e2318335e2fa427f80ec6
om/android/server/sip/SipSessionGroup.java
f61101f6266be243c481d163b95e65d67b8d1669 17-Sep-2010 Wink Saville <wink@google.com> Add LinkCapabilities

Change-Id: Ia1599ade936b79f12526252c0a2e6b453abb136e
om/android/server/TelephonyRegistry.java
fa03cfaeeb9b0bec4b9c497420852be9a2939ee1 16-Sep-2010 Hung-ying Tyan <tyanh@google.com> am f4fd88f8: am c7510581: SipService: add log control, suppress ping log.

Merge commit 'f4fd88f8d8cacff718268b6349bcb8c6a28006f3'

* commit 'f4fd88f8d8cacff718268b6349bcb8c6a28006f3':
SipService: add log control, suppress ping log.
f4fd88f8d8cacff718268b6349bcb8c6a28006f3 16-Sep-2010 Hung-ying Tyan <tyanh@google.com> am c7510581: SipService: add log control, suppress ping log.

Merge commit 'c7510581b81d63536db7d46ca8533106c8cf57c6' into gingerbread-plus-aosp

* commit 'c7510581b81d63536db7d46ca8533106c8cf57c6':
SipService: add log control, suppress ping log.
c7510581b81d63536db7d46ca8533106c8cf57c6 15-Sep-2010 Hung-ying Tyan <tyanh@google.com> SipService: add log control, suppress ping log.

Change-Id: I78332ddee1272be41b1fbc80c603e41200c6be1a
om/android/server/sip/SipHelper.java
om/android/server/sip/SipService.java
om/android/server/sip/SipSessionGroup.java
0c2b04bb53ec1c6a293b81fb5d56a0579c18b466 16-Sep-2010 Chung-yih Wang <cywang@google.com> am 1e27dc97: am 0e063382: Fix the unhandled authentication message.

Merge commit '1e27dc978d5e929679f96eaed541c14b37cd1118'

* commit '1e27dc978d5e929679f96eaed541c14b37cd1118':
Fix the unhandled authentication message.
1e27dc978d5e929679f96eaed541c14b37cd1118 16-Sep-2010 Chung-yih Wang <cywang@google.com> am 0e063382: Fix the unhandled authentication message.

Merge commit '0e0633828928481658c0e09e5893f6214b57ba38' into gingerbread-plus-aosp

* commit '0e0633828928481658c0e09e5893f6214b57ba38':
Fix the unhandled authentication message.
fa8186c71662ae9c869adbf379ccc2d917638881 16-Sep-2010 Jeff Brown <jeffbrown@google.com> am 7642c82c: am f4d788c9: Merge "Make input dispatcher only ANR for foreground windows." into gingerbread

Merge commit '7642c82c291051919aad87c797e2dc1d77ed55e1'

* commit '7642c82c291051919aad87c797e2dc1d77ed55e1':
Make input dispatcher only ANR for foreground windows.
0e0633828928481658c0e09e5893f6214b57ba38 15-Sep-2010 Chung-yih Wang <cywang@google.com> Fix the unhandled authentication message.

bug id: http://b/2991911

Change-Id: Iec86e3aee0fb12034ee25bc0e93fd575c1208a5f
om/android/server/sip/SipSessionGroup.java
5b7c5e055233154d2a82cc2d084cf983d12bb3a7 16-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> am f434dd16: am 134b28a7: Merge "Update Inet Connection Status display" into gingerbread

Merge commit 'f434dd1660f222a1ee85e77c98893b90857805c2'

* commit 'f434dd1660f222a1ee85e77c98893b90857805c2':
Update Inet Connection Status display
7642c82c291051919aad87c797e2dc1d77ed55e1 16-Sep-2010 Jeff Brown <jeffbrown@google.com> am f4d788c9: Merge "Make input dispatcher only ANR for foreground windows." into gingerbread

Merge commit 'f4d788c9309bc5480100d980608472e4cb04f309' into gingerbread-plus-aosp

* commit 'f4d788c9309bc5480100d980608472e4cb04f309':
Make input dispatcher only ANR for foreground windows.
f4d788c9309bc5480100d980608472e4cb04f309 16-Sep-2010 Jeff Brown <jeffbrown@google.com> Merge "Make input dispatcher only ANR for foreground windows." into gingerbread
519e024d1e682ca458cc2dab743589a12992c0e1 16-Sep-2010 Jeff Brown <jeffbrown@google.com> Make input dispatcher only ANR for foreground windows.

Redesigned the input dispatcher's ANR timeout mechanism so it is much
closer to Froyo's policy. ANR is only ever signalled if the dispatcher
is waiting on a window to finish processing its previous event(s) and
there is new pending input.

In the old code, we tracked the dispatch timeout separately for each
input channel. This was somewhat complicated and also resulted in the
situation where applications could ANR long after the user had pushed
them into the background.

Change-Id: I666ecada0952d4b95f1d67b9f733842b745c7f4b
om/android/server/InputManager.java
om/android/server/InputWindow.java
om/android/server/WindowManagerService.java
f434dd1660f222a1ee85e77c98893b90857805c2 16-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> am 134b28a7: Merge "Update Inet Connection Status display" into gingerbread

Merge commit '134b28a7f049719cb74fd5baadbbcc5915bc861b' into gingerbread-plus-aosp

* commit '134b28a7f049719cb74fd5baadbbcc5915bc861b':
Update Inet Connection Status display
134b28a7f049719cb74fd5baadbbcc5915bc861b 16-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> Merge "Update Inet Connection Status display" into gingerbread
1e9aac2bd855f12708d3049eff4435fa4a2f4317 16-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> Update Inet Connection Status display

Cellular signal strength should also be green - these assets aren't, but
the art guys are working on that.

Also using a new intent so we don't overload the CONNECTIVITY_ACTION and
confuse the apps.
bug:2994024

Change-Id: I6fe8f65dd6e9869d9724064c4fae45340491a4d8
om/android/server/ConnectivityService.java
3e5246b2eb405b6ae304e7755ae5935a16e6ecc7 16-Sep-2010 Hung-ying Tyan <tyanh@google.com> am 8a33e964: am 5306e0a8: Merge "SIP: add PEER_NOT_REACHABLE error feedback." into gingerbread

Merge commit '8a33e964c48d22469487c8ec1d951826b7e3e562'

* commit '8a33e964c48d22469487c8ec1d951826b7e3e562':
SIP: add PEER_NOT_REACHABLE error feedback.
bb5fb60c7cb93bdd264ca5f94e3ac79cb2993e47 16-Sep-2010 Hung-ying Tyan <tyanh@google.com> am 8d9e8de2: am 096df819: Merge "SipService: send SERVER_ERROR if server doesn\'t provide nonce" into gingerbread

Merge commit '8d9e8de2c920e8c9dc2da33410780ec739076bb9'

* commit '8d9e8de2c920e8c9dc2da33410780ec739076bb9':
SipService: send SERVER_ERROR if server doesn't provide nonce
6545fcfd9642860389619dd5c83f6e6bfd455e5b 16-Sep-2010 Kenny Root <kroot@google.com> am 79a1ee42: am cee0b97e: Merge "Free AssetManager weak refs before unmounting" into gingerbread

Merge commit '79a1ee4249aadc84558dad2e275b8edde198da76'

* commit '79a1ee4249aadc84558dad2e275b8edde198da76':
Free AssetManager weak refs before unmounting
e28d80a80a6806b5550139b9ea8c25a90d01a379 16-Sep-2010 Steve Howard <showard@google.com> am d2de99e3: am 536ee090: Merge "Fix name shadowing bug with revoking URI permissions." into gingerbread

Merge commit 'd2de99e377408dc28dca5e4c61a816879595fbf3'

* commit 'd2de99e377408dc28dca5e4c61a816879595fbf3':
Fix name shadowing bug with revoking URI permissions.
6734b9f68062b04e602be0069ab028045c1fe3ec 14-Sep-2010 Amith Yamasani <yamasani@google.com> Provide automatic date/time based on NTP lookup.

Do this on a periodic basis as well as when the AUTO_TIME setting changes to true.

If we recently acquired NITZ time from the telephony provider, then don't override
with NTP time.
om/android/server/NetworkTimeUpdateService.java
om/android/server/SystemServer.java
eba36ff80dff139f4ba0bde7ccc53ff2bef4ba15 15-Sep-2010 Dianne Hackborn <hackbod@google.com> am 227afd3a: am 1188f5e7: Merge "Fix problem where power manager was calling battery stats with bad wl type." into gingerbread

Merge commit '227afd3a1b1a32891e5e20c79fd98b2ccf982426'

* commit '227afd3a1b1a32891e5e20c79fd98b2ccf982426':
Fix problem where power manager was calling battery stats with bad wl type.
b835d9abd6d7c89bb1226fc83d1e96b3b04b9ee3 15-Sep-2010 Brad Fitzpatrick <bradfitz@android.com> am f26ac1f8: am 96d6c345: Merge "Unify some duplicate StrictMode-enabling code." into gingerbread

Merge commit 'f26ac1f8ed27d9e88bbde8978557c34788c7509c'

* commit 'f26ac1f8ed27d9e88bbde8978557c34788c7509c':
Unify some duplicate StrictMode-enabling code.
562ec84987780e8938f8d1210790ba7280da470a 15-Sep-2010 Brad Fitzpatrick <bradfitz@android.com> am 79cc46d1: am fb85bc66: Merge "Add missing wallpaper service lock." into gingerbread

Merge commit '79cc46d1b039fe6e16aa84b5f1e460afea52e672'

* commit '79cc46d1b039fe6e16aa84b5f1e460afea52e672':
Add missing wallpaper service lock.
8a33e964c48d22469487c8ec1d951826b7e3e562 15-Sep-2010 Hung-ying Tyan <tyanh@google.com> am 5306e0a8: Merge "SIP: add PEER_NOT_REACHABLE error feedback." into gingerbread

Merge commit '5306e0a85dabd4c18a7b3f81acc0f582f9429482' into gingerbread-plus-aosp

* commit '5306e0a85dabd4c18a7b3f81acc0f582f9429482':
SIP: add PEER_NOT_REACHABLE error feedback.
8d9e8de2c920e8c9dc2da33410780ec739076bb9 15-Sep-2010 Hung-ying Tyan <tyanh@google.com> am 096df819: Merge "SipService: send SERVER_ERROR if server doesn\'t provide nonce" into gingerbread

Merge commit '096df8197b9133703d2ed0abb69813db0c8b4129' into gingerbread-plus-aosp

* commit '096df8197b9133703d2ed0abb69813db0c8b4129':
SipService: send SERVER_ERROR if server doesn't provide nonce
fbfb6f2f04ec721c0a9fa5913b44326dbf4140d0 15-Sep-2010 Hung-ying Tyan <tyanh@google.com> am 188a8f1b: am 89a7180a: Merge "SipService: ignore connect event for non-active networks." into gingerbread

Merge commit '188a8f1b72452bc294daa2186e93771543be0478'

* commit '188a8f1b72452bc294daa2186e93771543be0478':
SipService: ignore connect event for non-active networks.
685da21c1c3787ca555d956dc520558d6b747e42 15-Sep-2010 Kenny Root <kroot@google.com> am 3ca26914: am 30434415: Merge "Dedupe timestamp in PackageSettings" into gingerbread

Merge commit '3ca2691446d333d52b1c0a39e6df74e03c2407cc'

* commit '3ca2691446d333d52b1c0a39e6df74e03c2407cc':
Dedupe timestamp in PackageSettings
fcc7fb8a1a317fef462db577cdf6c24401c15dd4 15-Sep-2010 Hung-ying Tyan <tyanh@google.com> am 3692af92: am 99bf4e45: SIP: remove dependency on javax.sip

Merge commit '3692af92ab290a561a927079cbf1f778f57fe5f9'

* commit '3692af92ab290a561a927079cbf1f778f57fe5f9':
SIP: remove dependency on javax.sip
458606396900ad056cba3ee79a068a59e0520a24 15-Sep-2010 Chung-yih Wang <cywang@google.com> am 316e72cb: am 5dde95b8: Merge "Fix the bug of authentication in an outgoing call." into gingerbread

Merge commit '316e72cb05637735c67ae02911dd0dbe096c71f5'

* commit '316e72cb05637735c67ae02911dd0dbe096c71f5':
Fix the bug of authentication in an outgoing call.
074663c7625e84caad1b6305c8b88968c28a4618 15-Sep-2010 Hung-ying Tyan <tyanh@google.com> am ca83c25d: am 4565933f: Merge "SipService: deliver connectivity change to all sessions." into gingerbread

Merge commit 'ca83c25decd0d4dc9c765a2b42424c7974bd496a'

* commit 'ca83c25decd0d4dc9c765a2b42424c7974bd496a':
SipService: deliver connectivity change to all sessions.
5306e0a85dabd4c18a7b3f81acc0f582f9429482 15-Sep-2010 Hung-ying Tyan <tyanh@google.com> Merge "SIP: add PEER_NOT_REACHABLE error feedback." into gingerbread
096df8197b9133703d2ed0abb69813db0c8b4129 15-Sep-2010 Hung-ying Tyan <tyanh@google.com> Merge "SipService: send SERVER_ERROR if server doesn't provide nonce" into gingerbread
ae076d3981fda732d54b6c6e37e5659b2e7ba130 15-Sep-2010 Hung-ying Tyan <tyanh@google.com> SIP: add PEER_NOT_REACHABLE error feedback.

http://b/issue?id=3002033

Change-Id: Ib64b08919d214acbab89945ac19dc113a68e62ad
om/android/server/sip/SipSessionGroup.java
79a1ee4249aadc84558dad2e275b8edde198da76 15-Sep-2010 Kenny Root <kroot@google.com> am cee0b97e: Merge "Free AssetManager weak refs before unmounting" into gingerbread

Merge commit 'cee0b97eed0a460e2da58500e24d3e4dac5cb9f6' into gingerbread-plus-aosp

* commit 'cee0b97eed0a460e2da58500e24d3e4dac5cb9f6':
Free AssetManager weak refs before unmounting
cee0b97eed0a460e2da58500e24d3e4dac5cb9f6 15-Sep-2010 Kenny Root <kroot@google.com> Merge "Free AssetManager weak refs before unmounting" into gingerbread
d2de99e377408dc28dca5e4c61a816879595fbf3 15-Sep-2010 Steve Howard <showard@google.com> am 536ee090: Merge "Fix name shadowing bug with revoking URI permissions." into gingerbread

Merge commit '536ee090ef75add0f7244c1c22be83fe03a66010' into gingerbread-plus-aosp

* commit '536ee090ef75add0f7244c1c22be83fe03a66010':
Fix name shadowing bug with revoking URI permissions.
536ee090ef75add0f7244c1c22be83fe03a66010 15-Sep-2010 Steve Howard <showard@google.com> Merge "Fix name shadowing bug with revoking URI permissions." into gingerbread
0de8ddb0cfd65968387b51fb0d4f505b81d8b0a2 15-Sep-2010 Steve Howard <showard@google.com> Fix name shadowing bug with revoking URI permissions.

Change-Id: Ibfcb0dc73c6b1a111dbb8d56e6f0b78084f5e4e6
om/android/server/am/UriPermission.java
4c9a5be4a3749f305ad56fe841e5d07c03c8ac95 15-Sep-2010 Jaikumar Ganesh <jaikumar@google.com> Merge "Rework Bluetooth tethering networking configuration."
707952ecd4b6cae25aabcf51f94d702a65847e9e 14-Sep-2010 Jaikumar Ganesh <jaikumar@google.com> Rework Bluetooth tethering networking configuration.

Limit it to 5 for now, and store the iface.

Change-Id: Ia6044b8e8f886dcd587ab0bb57273e0c11b6cd74
om/android/server/connectivity/Tethering.java
aa48540222ef11115b29b8d7f2b7bd1ece772418 14-Sep-2010 Kenny Root <kroot@google.com> Free AssetManager weak refs before unmounting

AssetManagers are kept in WeakReference pools so there's a change
another thread in the system_server has opened a file on the external
card. Attempt to force a garbage collection to free these references
each time we're about to unmount a volume on the external storage.

Change-Id: I6e816e8c67b179887e488dc6758b43bcdd5914fb
om/android/server/MountService.java
227afd3a1b1a32891e5e20c79fd98b2ccf982426 14-Sep-2010 Dianne Hackborn <hackbod@google.com> am 1188f5e7: Merge "Fix problem where power manager was calling battery stats with bad wl type." into gingerbread

Merge commit '1188f5e76cfcd512c4e2fae00ac0bfba3150bd7b' into gingerbread-plus-aosp

* commit '1188f5e76cfcd512c4e2fae00ac0bfba3150bd7b':
Fix problem where power manager was calling battery stats with bad wl type.
1188f5e76cfcd512c4e2fae00ac0bfba3150bd7b 14-Sep-2010 Dianne Hackborn <hackbod@google.com> Merge "Fix problem where power manager was calling battery stats with bad wl type." into gingerbread
88203cb111cd9605edcdedb402f8f2a96f8f01e1 14-Sep-2010 Hung-ying Tyan <tyanh@google.com> SipService: send SERVER_ERROR if server doesn't provide nonce

in authentication response.

Change-Id: I93e8c0d6754399ca2f382033085e40fc4c6ccb19
om/android/server/sip/SipSessionGroup.java
f26ac1f8ed27d9e88bbde8978557c34788c7509c 14-Sep-2010 Brad Fitzpatrick <bradfitz@android.com> am 96d6c345: Merge "Unify some duplicate StrictMode-enabling code." into gingerbread

Merge commit '96d6c3454c3550486a2efa25ca0c83732b5e2eaf' into gingerbread-plus-aosp

* commit '96d6c3454c3550486a2efa25ca0c83732b5e2eaf':
Unify some duplicate StrictMode-enabling code.
79cc46d1b039fe6e16aa84b5f1e460afea52e672 14-Sep-2010 Brad Fitzpatrick <bradfitz@android.com> am fb85bc66: Merge "Add missing wallpaper service lock." into gingerbread

Merge commit 'fb85bc66c467be96fe8420338321df6f15359d7d' into gingerbread-plus-aosp

* commit 'fb85bc66c467be96fe8420338321df6f15359d7d':
Add missing wallpaper service lock.
96d6c3454c3550486a2efa25ca0c83732b5e2eaf 14-Sep-2010 Brad Fitzpatrick <bradfitz@android.com> Merge "Unify some duplicate StrictMode-enabling code." into gingerbread
fb85bc66c467be96fe8420338321df6f15359d7d 14-Sep-2010 Brad Fitzpatrick <bradfitz@android.com> Merge "Add missing wallpaper service lock." into gingerbread
194b19a4b3ff877d2720ed35e607e329fcfa8186 14-Sep-2010 Brad Fitzpatrick <bradfitz@android.com> Add missing wallpaper service lock.

Unimportant, but found while reading the code for other reasons.

Change-Id: I9f2fad3ff5d081aef7a35e5f33ec5de7dc92195e
om/android/server/WallpaperManagerService.java
70be1673abf6334d2caf60fdc0504088b0e0859c 14-Sep-2010 Dianne Hackborn <hackbod@google.com> Fix problem where power manager was calling battery stats with bad wl type.

Also fiddle code to reduce duplication.

Change-Id: I3f1b086e53ef88dac1ec1896fe711b3cfe7fdd58
om/android/server/PowerManagerService.java
188a8f1b72452bc294daa2186e93771543be0478 14-Sep-2010 Hung-ying Tyan <tyanh@google.com> am 89a7180a: Merge "SipService: ignore connect event for non-active networks." into gingerbread

Merge commit '89a7180a242043a0b4d6695bf386c93365bf6797' into gingerbread-plus-aosp

* commit '89a7180a242043a0b4d6695bf386c93365bf6797':
SipService: ignore connect event for non-active networks.
89a7180a242043a0b4d6695bf386c93365bf6797 14-Sep-2010 Hung-ying Tyan <tyanh@google.com> Merge "SipService: ignore connect event for non-active networks." into gingerbread
12bec5ddf58ad3a69728810480e6194c806567d6 14-Sep-2010 Hung-ying Tyan <tyanh@google.com> SipService: ignore connect event for non-active networks.

+ sanity check and remove redundant code.

Change-Id: I4d3e226851ad7fc4d88ddcd0a5c58f7e33b6c14a
om/android/server/sip/SipService.java
3ca2691446d333d52b1c0a39e6df74e03c2407cc 14-Sep-2010 Kenny Root <kroot@google.com> am 30434415: Merge "Dedupe timestamp in PackageSettings" into gingerbread

Merge commit '3043441511e4483d24dc6f42e1ee7f7e9dc71be2' into gingerbread-plus-aosp

* commit '3043441511e4483d24dc6f42e1ee7f7e9dc71be2':
Dedupe timestamp in PackageSettings
3692af92ab290a561a927079cbf1f778f57fe5f9 14-Sep-2010 Hung-ying Tyan <tyanh@google.com> am 99bf4e45: SIP: remove dependency on javax.sip

Merge commit '99bf4e45c4566172189735b34b368b76660ca57a' into gingerbread-plus-aosp

* commit '99bf4e45c4566172189735b34b368b76660ca57a':
SIP: remove dependency on javax.sip
316e72cb05637735c67ae02911dd0dbe096c71f5 14-Sep-2010 Chung-yih Wang <cywang@google.com> am 5dde95b8: Merge "Fix the bug of authentication in an outgoing call." into gingerbread

Merge commit '5dde95b8fe0fea1a115a68f8acf826371da89da7' into gingerbread-plus-aosp

* commit '5dde95b8fe0fea1a115a68f8acf826371da89da7':
Fix the bug of authentication in an outgoing call.
ca83c25decd0d4dc9c765a2b42424c7974bd496a 14-Sep-2010 Hung-ying Tyan <tyanh@google.com> am 4565933f: Merge "SipService: deliver connectivity change to all sessions." into gingerbread

Merge commit '4565933f03a99750a333e97e95408c404984510f' into gingerbread-plus-aosp

* commit '4565933f03a99750a333e97e95408c404984510f':
SipService: deliver connectivity change to all sessions.
3043441511e4483d24dc6f42e1ee7f7e9dc71be2 14-Sep-2010 Kenny Root <kroot@google.com> Merge "Dedupe timestamp in PackageSettings" into gingerbread
50d66f9fcdac84b2af65a82be56728f54b1a7ef0 14-Sep-2010 Brad Fitzpatrick <bradfitz@android.com> Unify some duplicate StrictMode-enabling code.

Change-Id: Ifb92f35d9e245dbdb5e201597d8be702bce9e8b8
om/android/server/SystemServer.java
99bf4e45c4566172189735b34b368b76660ca57a 14-Sep-2010 Hung-ying Tyan <tyanh@google.com> SIP: remove dependency on javax.sip

and change errorCodeString to errorCode in
SipRegistrationListener.onRegistrationFailed().

Change-Id: Id9618f5a4b0effaed04f8b0dc60347499d9e4501
om/android/server/sip/SipSessionGroup.java
7d137e40cd36290c6bfb5beaf66f4018ae92c97f 14-Sep-2010 Chung-yih Wang <cywang@google.com> Fix the bug of authentication in an outgoing call.

Since we missed the check of another challenge header in the
proxy authentication response.

Change-Id: Ie5b9d22c6c55b4d65619d2194c88845e7dd59f15
om/android/server/sip/SipSessionGroup.java
4565933f03a99750a333e97e95408c404984510f 14-Sep-2010 Hung-ying Tyan <tyanh@google.com> Merge "SipService: deliver connectivity change to all sessions." into gingerbread
f86369ad0adcbfc5c4b635d4475c237ee6134044 14-Sep-2010 Dianne Hackborn <hackbod@google.com> am 527c0283: am a0eb56ac: Merge "Work on issue #2991868: A toast pops up informing users..." into gingerbread

Merge commit '527c02838bed1188b9211752b4cf2fc0c03e8202'

* commit '527c02838bed1188b9211752b4cf2fc0c03e8202':
Work on issue #2991868: A toast pops up informing users...
527c02838bed1188b9211752b4cf2fc0c03e8202 14-Sep-2010 Dianne Hackborn <hackbod@google.com> am a0eb56ac: Merge "Work on issue #2991868: A toast pops up informing users..." into gingerbread

Merge commit 'a0eb56ac59751ab7fb060980e14edcacca439635' into gingerbread-plus-aosp

* commit 'a0eb56ac59751ab7fb060980e14edcacca439635':
Work on issue #2991868: A toast pops up informing users...
d231aa880ab006d51ffe03454c1fc082f1c97bb8 13-Sep-2010 Hung-ying Tyan <tyanh@google.com> SipService: deliver connectivity change to all sessions.

+ add DATA_CONNECTION_LOST to SipErrorCode
+ convert it to Connection.DisconnectCause.LOST_SIGNAL in SipPhone

http://b/issue?id=2992548

Change-Id: Ie8983c1b81077b21f46304cf60b8e61df1ffd241
om/android/server/sip/SipService.java
om/android/server/sip/SipSessionGroup.java
8c5755aab5bac94a15e923d07c423629737fa6a2 14-Sep-2010 Dianne Hackborn <hackbod@google.com> Work on issue #2991868: A toast pops up informing users...

...that Market took over the screen after signing into a Google account

Don't warn the user about a new activity coming up on an activity that
is finishing.

Change-Id: I573073139d42a485473d0c8a7df450c1a23c35c3
om/android/server/am/ActivityStack.java
e746f03c6c8b8d0897d322ab524d545ace200fcd 14-Sep-2010 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 53686433 to master

Change-Id: I27004dc464f5771d3205ae5757c6eccc5b16854d
7d794fbd305d9954a93136af7d54654e05f2508f 14-Sep-2010 Kenny Root <kroot@google.com> Dedupe timestamp in PackageSettings

Timestamp data was duplicated making the management of timestamp
unnecessarily complicated.

Change-Id: Ia13be6ee9809a314232453e8627a54f9c9d8374d
om/android/server/PackageManagerService.java
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
om/android/server/BackupManagerService.java
om/android/server/LocationManagerService.java
om/android/server/PowerManagerService.java
om/android/server/VibratorService.java
om/android/server/WifiService.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/BatteryStatsService.java
om/android/server/location/GpsLocationProvider.java
om/android/server/location/LocationProviderInterface.java
om/android/server/location/LocationProviderProxy.java
om/android/server/location/MockProvider.java
om/android/server/location/PassiveProvider.java
0b5a8bd57993f9a1c199c93fa3c9038fdece628d 13-Sep-2010 Hung-ying Tyan <tyanh@google.com> am a5dce0c1: am 3d7606aa: SIP: enhance timeout and registration status feedback.

Merge commit 'a5dce0c15ac05724b4595d62d521a481c7e1f86a'

* commit 'a5dce0c15ac05724b4595d62d521a481c7e1f86a':
SIP: enhance timeout and registration status feedback.
a5dce0c15ac05724b4595d62d521a481c7e1f86a 13-Sep-2010 Hung-ying Tyan <tyanh@google.com> am 3d7606aa: SIP: enhance timeout and registration status feedback.

Merge commit '3d7606aa607b24817e37c264f2141ed7b2d50be0' into gingerbread-plus-aosp

* commit '3d7606aa607b24817e37c264f2141ed7b2d50be0':
SIP: enhance timeout and registration status feedback.
3d7606aa607b24817e37c264f2141ed7b2d50be0 12-Sep-2010 Hung-ying Tyan <tyanh@google.com> SIP: enhance timeout and registration status feedback.

http://b/issue?id=2984419
http://b/issue?id=2991065

Change-Id: I2d3b1dd3a70079ff347f7256f4684aea07847f4e
om/android/server/sip/SipService.java
om/android/server/sip/SipSessionGroup.java
5d8b320428957e377e93abf009b731bb8312bf9b 13-Sep-2010 Kenny Root <kroot@google.com> am 1361a5bd: am 07a9e8d3: Merge changes Ie3648509,I53db73c3 into gingerbread

Merge commit '1361a5bd1eba1cae16c301622324153c3d50b84c'

* commit '1361a5bd1eba1cae16c301622324153c3d50b84c':
Move native library removal function to helper
Initialize native library path in PackageSetting
1361a5bd1eba1cae16c301622324153c3d50b84c 13-Sep-2010 Kenny Root <kroot@google.com> am 07a9e8d3: Merge changes Ie3648509,I53db73c3 into gingerbread

Merge commit '07a9e8d39f818e54f0feccff10c99b9629007a64' into gingerbread-plus-aosp

* commit '07a9e8d39f818e54f0feccff10c99b9629007a64':
Move native library removal function to helper
Initialize native library path in PackageSetting
07a9e8d39f818e54f0feccff10c99b9629007a64 13-Sep-2010 Kenny Root <kroot@google.com> Merge changes Ie3648509,I53db73c3 into gingerbread

* changes:
Move native library removal function to helper
Initialize native library path in PackageSetting
b3787d57fffbb898f4767f7a94031cafe974a0b0 13-Sep-2010 Jeff Brown <jeffbrown@google.com> am 0f0541e4: am b88102f5: Input dispatcher ANR handling enhancements.

Merge commit '0f0541e40cfef51eb5c3769e53c1aa853b53aaf6'

* commit '0f0541e40cfef51eb5c3769e53c1aa853b53aaf6':
Input dispatcher ANR handling enhancements.
0f0541e40cfef51eb5c3769e53c1aa853b53aaf6 13-Sep-2010 Jeff Brown <jeffbrown@google.com> am b88102f5: Input dispatcher ANR handling enhancements.

Merge commit 'b88102f5b7e51552a3576cf197b4c8cf96f193d1' into gingerbread-plus-aosp

* commit 'b88102f5b7e51552a3576cf197b4c8cf96f193d1':
Input dispatcher ANR handling enhancements.
b88102f5b7e51552a3576cf197b4c8cf96f193d1 08-Sep-2010 Jeff Brown <jeffbrown@google.com> Input dispatcher ANR handling enhancements.

This change is essentially a rewrite of the main input dispatcher loop
with the target identification folded in. Since the input dispatcher now
has all of the window state, it can make better decisions about
when to ANR.

Added a .5 second deadline for processing app switch keys. This behavior
predates Gingerbread but had not previously been ported.

Fixed some timing inaccuracies in the ANR accounting that could cause
applications to ANR sooner than they should have.

Added a mechanism for tracking key and motion events that have been
dispatched to a window so that appropriate cancelation events can be
synthesized when recovering from ANR. This change helps to keep
applications in sync so they don't end up with stuck buttons upon
recovery from ANRs.

Added more comments to describe the tricky parts of PollLoop.

Change-Id: I13dffca27acb436fc383980db536abc4d8b9e6f1
om/android/server/InputManager.java
om/android/server/InputMethodManagerService.java
om/android/server/WindowManagerService.java
f63b0f44eb53f535a65bd83dbc1d8b95abc501da 12-Sep-2010 Joe Onorato <joeo@google.com> Connect my plumbing to dsandler's awesome lights out mode.

It took a little bit of refactoring to move the authoritative state
about whether the lights are on or not into the StatusBarManagerService,
so that if the system ui process crashes, the bar comes up in the
right mode.

Change-Id: I95cfaf8f78ca4443ded5262272ea755d44dc5d17
om/android/server/StatusBarManagerService.java
9305647eb61bb60a1f42481a0c0d208dc9bbe965 10-Sep-2010 Joe Onorato <joeo@google.com> Plumb lights out mode through from the window manager to the status bar running in the system ui process.

Lights out mode itself isn't implemented.

Change-Id: Ieeef0eb9ae5be23000f770e74e8ee66472f4c673
om/android/server/StatusBarManagerService.java
om/android/server/WindowManagerService.java
8f7cc02c7c4bd542376648dbd54be3ceb8521f73 12-Sep-2010 Kenny Root <kroot@google.com> Move native library removal function to helper

Moves the remoteNativeLibrariesLI call to NativeLibraryHelper to prepare
for being able to symlink the /data/data/<package>/lib dir to the ASEC
container.

Change-Id: Ie3648509c6b6293a8d9bdd815610ab408df5047f
om/android/server/PackageManagerService.java
806cc13a08f04a69ded4df0ae1557c19816843a8 12-Sep-2010 Kenny Root <kroot@google.com> Initialize native library path in PackageSetting

During boot-up we weren't paying attention to the nativeLibraryPath that
was read from the package settings XML file which reset the path to the
default /data/data/<package>/lib directory.

This adds nativeLibraryPath as an argument to the PackageSettings
constructor and related functions that will pull that value in from the
settings file.

It also removes the call to nativeLibraryDir.mkdir() which installd does
by itself.

Change-Id: I53db73c3b1bc90997a4a73f7f2fbaee125e6f67e
om/android/server/PackageManagerService.java
2088fb0191811618e9ac53be18cf6f8a046980ca 11-Sep-2010 Jean-Baptiste Queru <jbq@google.com> am 03821dc6: am 962e4826: Merge "Allow two SurfaceViews inbetween the app and the wallpaper."

Merge commit '03821dc6ea9f96e2b420ab327b727fdcefd880d3'

* commit '03821dc6ea9f96e2b420ab327b727fdcefd880d3':
Allow two SurfaceViews inbetween the app and the wallpaper.
c74a1b441490e5648ac4388baeccb78cae4ab364 11-Sep-2010 Brad Fitzpatrick <bradfitz@android.com> Fix build caused by automerger and missing imports in master.

gingerbread had an import android.os.*. master doesn't. auto-merger
applied it fine, but it doesn't compile.

Change-Id: I28d7b5053616a40223eeb29a0669831d5ca76d9e
om/android/server/SystemServer.java
03821dc6ea9f96e2b420ab327b727fdcefd880d3 11-Sep-2010 Jean-Baptiste Queru <jbq@google.com> am 962e4826: Merge "Allow two SurfaceViews inbetween the app and the wallpaper."

Merge commit '962e482606e3f8f8c0b8e540888eaef56a1c8603' into gingerbread-plus-aosp

* commit '962e482606e3f8f8c0b8e540888eaef56a1c8603':
Allow two SurfaceViews inbetween the app and the wallpaper.
0b29554188f57ff1eec4150fa24f9a6a6603ed0f 11-Sep-2010 Brad Fitzpatrick <bradfitz@android.com> am 37fc8cc7: am b724d251: Merge "Enable strictmode logging in system_server & add a lock." into gingerbread

Merge commit '37fc8cc7b87133eddacaeab60cabefaf4a7b9bdd'

* commit '37fc8cc7b87133eddacaeab60cabefaf4a7b9bdd':
Enable strictmode logging in system_server & add a lock.
37fc8cc7b87133eddacaeab60cabefaf4a7b9bdd 10-Sep-2010 Brad Fitzpatrick <bradfitz@android.com> am b724d251: Merge "Enable strictmode logging in system_server & add a lock." into gingerbread

Merge commit 'b724d2519a900744a477bd57df6a2f8703c87e72' into gingerbread-plus-aosp

* commit 'b724d2519a900744a477bd57df6a2f8703c87e72':
Enable strictmode logging in system_server & add a lock.
1e02d36b0f1dc833cf8a837c7619fbe6478694c8 10-Sep-2010 Brad Fitzpatrick <bradfitz@android.com> Enable strictmode logging in system_server & add a lock.

We weren't logging strictmode violation in the system_server process
in non-user builds (only system apps), even though the rest of the
strictmode logging supports it.

Also add a missing lock in ActivityManagerService.

Change-Id: If2af96a7e4fdde604a647b836097f0029ef1334b
om/android/server/SystemServer.java
om/android/server/am/ActivityManagerService.java
a97ccc02e18cd21c9cf1caaf63c4a680bf3c6f0a 10-Sep-2010 Hung-ying Tyan <tyanh@google.com> am 5f93c39c: am ca3c24db: Merge "SIP: add SipErrorCode for error feedback." into gingerbread

Merge commit '5f93c39cdb2f75dda805691987ccd4e570f6cb74'

* commit '5f93c39cdb2f75dda805691987ccd4e570f6cb74':
SIP: add SipErrorCode for error feedback.
5f93c39cdb2f75dda805691987ccd4e570f6cb74 10-Sep-2010 Hung-ying Tyan <tyanh@google.com> am ca3c24db: Merge "SIP: add SipErrorCode for error feedback." into gingerbread

Merge commit 'ca3c24db3ae4b7a513f1ca76b1e7a3f56a020680' into gingerbread-plus-aosp

* commit 'ca3c24db3ae4b7a513f1ca76b1e7a3f56a020680':
SIP: add SipErrorCode for error feedback.
ca3c24db3ae4b7a513f1ca76b1e7a3f56a020680 10-Sep-2010 Hung-ying Tyan <tyanh@google.com> Merge "SIP: add SipErrorCode for error feedback." into gingerbread
903e1031605d715e904811b0dd06cc6a518f0048 09-Sep-2010 Hung-ying Tyan <tyanh@google.com> SIP: add SipErrorCode for error feedback.

Change-Id: I8b071d4933479b780a403d0bfa30511f4c23ca8f
om/android/server/sip/SipSessionGroup.java
om/android/server/sip/SipSessionListenerProxy.java
203e9529c5d9a883088cc28439e003106397d6a4 10-Sep-2010 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 62d005ec to master

Change-Id: I552d7adffe70a2bd94113ffb70cdc3e625fca0bd
62d005ec945f509b50a3a2d412b18721d4017e05 10-Sep-2010 Dianne Hackborn <hackbod@google.com> am a7d868d4: Merge "Add toast when an app intercepts the launch of another app." into gingerbread

Merge commit 'a7d868d4f99dfaf85e13498210aecf1ad8efd859' into gingerbread-plus-aosp

* commit 'a7d868d4f99dfaf85e13498210aecf1ad8efd859':
Add toast when an app intercepts the launch of another app.
a7d868d4f99dfaf85e13498210aecf1ad8efd859 10-Sep-2010 Dianne Hackborn <hackbod@google.com> Merge "Add toast when an app intercepts the launch of another app." into gingerbread
0dad364adb9e9cbc2f7fa115602552f4897387ad 10-Sep-2010 Dianne Hackborn <hackbod@google.com> Add toast when an app intercepts the launch of another app.

The activity manager looks for cases where one app launches immediately
after another. If this happens, a brief toast is shown telling the user
when app is actually running and what was originally starting.

Change-Id: If94cf5bd393dd0bc0f09789dae044fde1386c481
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityRecord.java
om/android/server/am/ActivityStack.java
om/android/server/am/LaunchWarningWindow.java
d14f0dfd58af653a2d41424d472fe97de6af0a78 10-Sep-2010 Rich Cannings <richc@google.com> am 73698457: am 6bff8c79: Merge "Remove the use of FileInputStream.available()" into gingerbread

Merge commit '736984573a1975d69d1c6efd87e4af9ca16e505f'

* commit '736984573a1975d69d1c6efd87e4af9ca16e505f':
Remove the use of FileInputStream.available()
736984573a1975d69d1c6efd87e4af9ca16e505f 10-Sep-2010 Rich Cannings <richc@google.com> am 6bff8c79: Merge "Remove the use of FileInputStream.available()" into gingerbread

Merge commit '6bff8c7994f35c5b8021f1f3da43f70739f472e0' into gingerbread-plus-aosp

* commit '6bff8c7994f35c5b8021f1f3da43f70739f472e0':
Remove the use of FileInputStream.available()
8d578836dc4f9fb41532b8b3dd7a6b168d6f4f9d 10-Sep-2010 Rich Cannings <richc@google.com> Remove the use of FileInputStream.available()

Bug: 2976294
Change-Id: I34b13cedbf1d2338163ef74454817c318a3a24f5
om/android/server/PackageManagerService.java
dc936251c4b6f33158b9f55afb8b86a776c01c86 10-Sep-2010 Mike Lockwood <lockwood@android.com> am 91cf049f: am 76e4fa19: Merge "Only pulse notification light if a new notification has been received since the screen was last turned off" into gingerbread

Merge commit '91cf049f34b4f3d53d39e868104f11156a332b65'

* commit '91cf049f34b4f3d53d39e868104f11156a332b65':
Only pulse notification light if a new notification has been received since the screen was last turned off
91cf049f34b4f3d53d39e868104f11156a332b65 10-Sep-2010 Mike Lockwood <lockwood@android.com> am 76e4fa19: Merge "Only pulse notification light if a new notification has been received since the screen was last turned off" into gingerbread

Merge commit '76e4fa19264793e3ed7e2ee7afccfc808a1a7458' into gingerbread-plus-aosp

* commit '76e4fa19264793e3ed7e2ee7afccfc808a1a7458':
Only pulse notification light if a new notification has been received since the screen was last turned off
057d5e9824a01a03c13d5a32d3c7f5023d01586e 09-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> Fix the build

broken merge resolution.

Change-Id: Idf1abef1ef79ddc43b9eaba1e0e523085702e2fe
om/android/server/ConnectivityService.java
76e4fa19264793e3ed7e2ee7afccfc808a1a7458 09-Sep-2010 Mike Lockwood <lockwood@android.com> Merge "Only pulse notification light if a new notification has been received since the screen was last turned off" into gingerbread
ca4306c976d393c3cd04270bc2de0af2f4f30fa5 09-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of ec52c98d to master

Change-Id: I31297232c9d918a967b93c3ae977f81b6a94f2ed
ec52c98d441aa592a203f547c0edec79c25bf28e 09-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> am 0727a865: Merge "Add network condition reporting." into gingerbread

Merge commit '0727a865d83b944c2fecc0bf1228a36976fe5300' into gingerbread-plus-aosp

* commit '0727a865d83b944c2fecc0bf1228a36976fe5300':
Add network condition reporting.
0727a865d83b944c2fecc0bf1228a36976fe5300 09-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> Merge "Add network condition reporting." into gingerbread
d7085fcf6567452a9d6fc69b0c6b1bf556f4c1b9 09-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> Add network condition reporting.

Apps can report if they like their connection to the nets
and we display either not-really-connected or fully-connected
icons. Final icons TBD.

bug:2978624
Change-Id: I28be52085edfe54571c0d4559aba0df883548654
om/android/server/ConnectivityService.java
2117f6fa3880e55e6a90fbd8b3a12d469c9b738b 09-Sep-2010 Mike Lockwood <lockwood@android.com> Only pulse notification light if a new notification has been received since the screen was last turned off

BUG: 2980248

Change-Id: I4dca527a191fae4ad87eeff8ad32594fd6aeb417
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/NotificationManagerService.java
98093a941835eff049370dbfd204a8c0a3d253c2 09-Sep-2010 Chung-yih Wang <cywang@google.com> am b2118252: am 4d1e0121: Change the keep-alive interval to 10 seconds.

Merge commit 'b2118252545f4b3ab43ffb2cda4b956f8f85ff69'

* commit 'b2118252545f4b3ab43ffb2cda4b956f8f85ff69':
Change the keep-alive interval to 10 seconds.
b2118252545f4b3ab43ffb2cda4b956f8f85ff69 09-Sep-2010 Chung-yih Wang <cywang@google.com> am 4d1e0121: Change the keep-alive interval to 10 seconds.

Merge commit '4d1e0121277b566b5e1c22e790a3b607b75d945d' into gingerbread-plus-aosp

* commit '4d1e0121277b566b5e1c22e790a3b607b75d945d':
Change the keep-alive interval to 10 seconds.
4d1e0121277b566b5e1c22e790a3b607b75d945d 09-Sep-2010 Chung-yih Wang <cywang@google.com> Change the keep-alive interval to 10 seconds.

Change-Id: I216cee622f57ee18533de3960d4da1a41e01f1ae
om/android/server/sip/SipService.java
debd36f7c9038ae62b766f2e43681b56ff177400 09-Sep-2010 Brad Fitzpatrick <bradfitz@android.com> am f2bf6d6e: am 65634a79: Merge "Don\'t block in the BackupManagerService.dataChanged() Binder call." into gingerbread

Merge commit 'f2bf6d6e705b655a546a9e6435e6acef3a82cda3'

* commit 'f2bf6d6e705b655a546a9e6435e6acef3a82cda3':
Don't block in the BackupManagerService.dataChanged() Binder call.
f2bf6d6e705b655a546a9e6435e6acef3a82cda3 09-Sep-2010 Brad Fitzpatrick <bradfitz@android.com> am 65634a79: Merge "Don\'t block in the BackupManagerService.dataChanged() Binder call." into gingerbread

Merge commit '65634a7935ed6f173179e7ac91a05288693b2bbf' into gingerbread-plus-aosp

* commit '65634a7935ed6f173179e7ac91a05288693b2bbf':
Don't block in the BackupManagerService.dataChanged() Binder call.
65634a7935ed6f173179e7ac91a05288693b2bbf 09-Sep-2010 Brad Fitzpatrick <bradfitz@android.com> Merge "Don't block in the BackupManagerService.dataChanged() Binder call." into gingerbread
467e8e13327bd9ad2dbabfa0a9b31f860202c7b1 08-Sep-2010 Dianne Hackborn <hackbod@google.com> am 5fdacb8a: am ee455f5a: Merge "People holding partial wake locks now get blamed for CPU usage." into gingerbread

Merge commit '5fdacb8a2818136218afdea4308ad1b10049a201'

* commit '5fdacb8a2818136218afdea4308ad1b10049a201':
People holding partial wake locks now get blamed for CPU usage.
94bf9431e5464c7757890abfe0716997151f153f 08-Sep-2010 Jake Hamby <jhamby@google.com> am e7578344: am 5872e9d7: Merge "Allow incoming SMS until internal storage is almost full." into gingerbread

Merge commit 'e75783440a55fb0a5ef75066be94a11898f652f0'

* commit 'e75783440a55fb0a5ef75066be94a11898f652f0':
Allow incoming SMS until internal storage is almost full.
5fdacb8a2818136218afdea4308ad1b10049a201 08-Sep-2010 Dianne Hackborn <hackbod@google.com> am ee455f5a: Merge "People holding partial wake locks now get blamed for CPU usage." into gingerbread

Merge commit 'ee455f5a9572bc0d23c3328f6c22da91dc109a50' into gingerbread-plus-aosp

* commit 'ee455f5a9572bc0d23c3328f6c22da91dc109a50':
People holding partial wake locks now get blamed for CPU usage.
e75783440a55fb0a5ef75066be94a11898f652f0 08-Sep-2010 Jake Hamby <jhamby@google.com> am 5872e9d7: Merge "Allow incoming SMS until internal storage is almost full." into gingerbread

Merge commit '5872e9d7f31e5a4c5f3d871dba02b6d72a7ada78' into gingerbread-plus-aosp

* commit '5872e9d7f31e5a4c5f3d871dba02b6d72a7ada78':
Allow incoming SMS until internal storage is almost full.
ee455f5a9572bc0d23c3328f6c22da91dc109a50 08-Sep-2010 Dianne Hackborn <hackbod@google.com> Merge "People holding partial wake locks now get blamed for CPU usage." into gingerbread
b380c4d7edc158788a85c906900232675c0164ac 08-Sep-2010 Jeff Brown <jeffbrown@google.com> resolved conflicts for merge of a05088c1 to master

Change-Id: I7973f9f28586dec9b9659f8f662f40db7997a521
0d903a84d04d241a648ec429e3a0e82c712677fd 08-Sep-2010 Dianne Hackborn <hackbod@google.com> People holding partial wake locks now get blamed for CPU usage.

For the duration of the wake lock, 50% of all CPU usage is now
accounted against the app(s) holding partial wake locks, evenly
distributed between them. This is only while the device is on
battery and screen off.

Change-Id: I3e5c978b792b6ef17bf8540705bfe8343dadd464
om/android/server/am/ActivityManagerService.java
om/android/server/am/ProcessRecord.java
bb3716332321e22537a5015be13e2229fb9b90bc 24-Aug-2010 Jake Hamby <jhamby@google.com> Allow incoming SMS until internal storage is almost full.

Fix for bug 2382830: new incoming SMS should not be rejected when
running low on internal phone storage.

Testing revealed that the /data partition should have at least 256 KiB
available in order to prevent random app crashes (including system apps)
due to SQLite transaction failures. With 256 KiB free, the device should
safely boot without storage full errors. This takes into account the
36-40 KiB that the YAFFS2 filesystem reports as available even after
the partition has been completely filled. I've set the default full
threshold to 1 MiB to provide a generous safety margin.

For this bug, I changed the DeviceStorageMonitorService demon to send
two new hidden notifications for device storage "full" and "not full",
when the free space falls below the full threshold (default 1 MiB,
but configurable as a system setting), in addition to the existing
storage low/okay notifications sent when the storage crosses the threshold
of 90% full (also configurable).

The SMS code was changed to use these new notifications so that it can
accept messages until the data partition has been filled to the maximum
safe capacity rather than stopping when it hits 90% full. There should
be no negative impact on battery life because the additional check in
the storage polling service should be offset by an optimization to cache
the free threshold values which were previously being computed every time
through the loop.

While testing this change, I discovered that SMSDispatcher was being
instantiated twice, the first time in GSMPhone/CDMAPhone, and the second
time in SimSmsInterfaceManager / RuimSmsInterfaceManager. Changed the code
to pass the original SMSDispatcher to the Sim/RuimSmsInterfaceManager
constructor.

Change-Id: Ie0c6d05294778ab6ee42e0fa01313af96d824c77
om/android/server/DeviceStorageMonitorService.java
a05088c18d22f822e78e7b91d60f518dc3dc06fc 08-Sep-2010 Jeff Brown <jeffbrown@google.com> am 85a31767: Add support for secure views.

Merge commit '85a3176704b5bfbeece9bd928369fbb76eec7dc6' into gingerbread-plus-aosp

* commit '85a3176704b5bfbeece9bd928369fbb76eec7dc6':
Add support for secure views.
85a3176704b5bfbeece9bd928369fbb76eec7dc6 02-Sep-2010 Jeff Brown <jeffbrown@google.com> Add support for secure views.

Added the MotionEvent.FLAG_WINDOW_IS_OBSCURED flag which is set by the
input manager whenever another visible window is partly or wholly obscured
the target of a touch event so that applications can filter touches
accordingly.

Added a "filterTouchesWhenObscured" attribute to View which can be used to
enable filtering of touches when the view's window is obscured.

Change-Id: I936d9c85013fd2d77fb296a600528d30a29027d2
om/android/server/InputWindow.java
om/android/server/WindowManagerService.java
d48a709e3e8caf49e2926cd1c7017d659bcee848 08-Sep-2010 Chung-yih Wang <cywang@google.com> am 576b492c: am 5de1d36d: Log outbound proxy address if exists for debugging.

Merge commit '576b492c15a079c9d3d818f3f7fadc4408c2908a'

* commit '576b492c15a079c9d3d818f3f7fadc4408c2908a':
Log outbound proxy address if exists for debugging.
576b492c15a079c9d3d818f3f7fadc4408c2908a 08-Sep-2010 Chung-yih Wang <cywang@google.com> am 5de1d36d: Log outbound proxy address if exists for debugging.

Merge commit '5de1d36dd0415c4cf9afdf093a4915951ef6c770' into gingerbread-plus-aosp

* commit '5de1d36dd0415c4cf9afdf093a4915951ef6c770':
Log outbound proxy address if exists for debugging.
b8a8a578c2483d84ef96fd7050bbbcbc48d49a37 08-Sep-2010 Mike Lockwood <lockwood@android.com> Fix Intent.ACTION_REBOOT

Turns out this would be useful for automated testing.

Change-Id: Idd5e35a8d4a354447b17a77fe0b606f78df844d0
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/ShutdownActivity.java
3dd42334ee971ad668eb8ca97f8b363292fc828d 08-Sep-2010 Brad Fitzpatrick <bradfitz@android.com> Don't block in the BackupManagerService.dataChanged() Binder call.

This unnecessarily blocks callers.

Bug: 2977348
Change-Id: I5267e575cdd5eb2136379f9710126b62a1bd75ad
om/android/server/BackupManagerService.java
5de1d36dd0415c4cf9afdf093a4915951ef6c770 08-Sep-2010 Chung-yih Wang <cywang@google.com> Log outbound proxy address if exists for debugging.

Change-Id: I2d2dffe3536e674b6956164c400e397c2f00f212
om/android/server/sip/SipSessionGroup.java
3a47e9524aba5fa3bc27932a42a995bc36a0bdbd 07-Sep-2010 Hung-ying Tyan <tyanh@google.com> am b6432ca4: am 960b31e3: Merge "SipService: unset session listener if listener is gone." into gingerbread

Merge commit 'b6432ca4a090c02a07038f926e9e514d8cb1b657'

* commit 'b6432ca4a090c02a07038f926e9e514d8cb1b657':
SipService: unset session listener if listener is gone.
b6432ca4a090c02a07038f926e9e514d8cb1b657 07-Sep-2010 Hung-ying Tyan <tyanh@google.com> am 960b31e3: Merge "SipService: unset session listener if listener is gone." into gingerbread

Merge commit '960b31e3b3b40f92665be4b7a79da7f05ea19751' into gingerbread-plus-aosp

* commit '960b31e3b3b40f92665be4b7a79da7f05ea19751':
SipService: unset session listener if listener is gone.
1b1601d740c34de4680ec96368002893aa5f71de 04-Sep-2010 Hung-ying Tyan <tyanh@google.com> SipService: unset session listener if listener is gone.

Change-Id: I0b85ee7bcb32c24cf64dfc3edc40c0cad9717562
om/android/server/sip/SipSessionListenerProxy.java
deff9c85ec5c9884d731817e43058589d6fd4631 04-Sep-2010 Mike Lockwood <lockwood@android.com> Add extra to ACTION_BATTERY_CHANGED to indicate an invalid charger is attached.

Change-Id: I24a24a49d2e3ddee8fbce590ef75ea323b3be97b
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/BatteryService.java
004abb12238d34cf9567d70eac194983636524bd 03-Sep-2010 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 3d7d3690 to master

Change-Id: I1d1d7a448b3ae8a86600addfa75f2448a98327bf
3d7d3690defa2e63a60b0d9133608cf771cdbca7 03-Sep-2010 Dianne Hackborn <hackbod@google.com> am e25b4bc7: Merge "These are not ready to be exposed. Also rename them to be better." into gingerbread

Merge commit 'e25b4bc76fef584b38ce4e72f919fba119bdfa99' into gingerbread-plus-aosp

* commit 'e25b4bc76fef584b38ce4e72f919fba119bdfa99':
These are not ready to be exposed. Also rename them to be better.
e25b4bc76fef584b38ce4e72f919fba119bdfa99 03-Sep-2010 Dianne Hackborn <hackbod@google.com> Merge "These are not ready to be exposed. Also rename them to be better." into gingerbread
482566ed5cc7307b0401361509fb06acc5476115 03-Sep-2010 Dianne Hackborn <hackbod@google.com> These are not ready to be exposed. Also rename them to be better.

Change-Id: I7c234144497084b7769f8c46761b7d74d1c583d5
om/android/server/am/ActivityManagerService.java
462bac9222428c227b3704c1be0744b00c3bad73 03-Sep-2010 Marco Nelissen <marcone@google.com> am e7884d68: am d85621c9: Don\'t crash when extra logging is enabled.

Merge commit 'e7884d68a613e579a12a52455f6b5b13a90a0f8a'

* commit 'e7884d68a613e579a12a52455f6b5b13a90a0f8a':
Don't crash when extra logging is enabled.
e7884d68a613e579a12a52455f6b5b13a90a0f8a 03-Sep-2010 Marco Nelissen <marcone@google.com> am d85621c9: Don\'t crash when extra logging is enabled.

Merge commit 'd85621c938286a568b1173e7ab29f80ab93d27e1' into gingerbread-plus-aosp

* commit 'd85621c938286a568b1173e7ab29f80ab93d27e1':
Don't crash when extra logging is enabled.
d85621c938286a568b1173e7ab29f80ab93d27e1 03-Sep-2010 Marco Nelissen <marcone@google.com> Don't crash when extra logging is enabled.

Change-Id: I76cf8db0f51ed33e91acee9636180e8d7c0b5ff9
om/android/server/PackageManagerService.java
4d42bdec8229802945e57a634374e113ff234dfe 03-Sep-2010 Kenny Root <kroot@google.com> am 0eec8948: am 305bcbf0: Decrease PackageManagerService wait time for vold

Merge commit '0eec8948f89c5216464d8204cadd69d7a6ec3669'

* commit '0eec8948f89c5216464d8204cadd69d7a6ec3669':
Decrease PackageManagerService wait time for vold
0eec8948f89c5216464d8204cadd69d7a6ec3669 03-Sep-2010 Kenny Root <kroot@google.com> am 305bcbf0: Decrease PackageManagerService wait time for vold

Merge commit '305bcbf0c961840c4505770d084a1caacc074dbb' into gingerbread-plus-aosp

* commit '305bcbf0c961840c4505770d084a1caacc074dbb':
Decrease PackageManagerService wait time for vold
305bcbf0c961840c4505770d084a1caacc074dbb 03-Sep-2010 Kenny Root <kroot@google.com> Decrease PackageManagerService wait time for vold

Up the blocking queue maximum to twice the number of containers we
allow which should let "asec list" complete without blocking the thread
several times.

Change the threads for the NativeDaemonConnector to vold and netd to be
more descriptive instead of the same name.

Bug: 2501075
Change-Id: I7e7949845a6c70a3d619aec0fa79ceef3c17a4be
om/android/server/MountService.java
om/android/server/NetworkManagementService.java
om/android/server/PackageManagerService.java
de7fb55369e9051d5c565414e7c0cbd7d15dcdc4 03-Sep-2010 Wink Saville <wink@google.com> Merge "Fix and simplify ConnectivityService singleton."
73dc2592bed890c3ea3be5e472bcda977eaf6b1c 03-Sep-2010 Pal Szasz <pal.szasz@sonyericsson.com> Allow two SurfaceViews inbetween the app and the wallpaper.

When two SurfaceViews are used by an application, which is
transparent and uses the wallpaper, only one of the SurfaceViews
will be visible.

The problem is that when trying to find the correct location
for the wallpaper, the window manager locates the activity
window and skips every window below it which is related.
For the first SurfaceView this will be ok, since the
SurfaceViews's attached window is the previous window.
However for the second SurfaceView this condition will fail
(the 2nd SurfaceViews attached window is not the previous
window (which is the 1st SurfaceView)).

The fix adds an extra check which detects this usecase
(the windows are related if the attached window is the same
as the attached window of the previous window).

Change-Id: I368e9dd53455dc310f48d6d8c0be68350ff2b79e
om/android/server/WindowManagerService.java
1d5c87b75321b3f7decfe0874f9b472318a4b473 03-Sep-2010 Kenny Root <kroot@google.com> am fb79b7da: am 12da9d74: Fix buffer compacting in NativeDaemonConnector

Merge commit 'fb79b7dab3ccaf490e8cbb18c9feed7080e4b54f'

* commit 'fb79b7dab3ccaf490e8cbb18c9feed7080e4b54f':
Fix buffer compacting in NativeDaemonConnector
fb79b7dab3ccaf490e8cbb18c9feed7080e4b54f 03-Sep-2010 Kenny Root <kroot@google.com> am 12da9d74: Fix buffer compacting in NativeDaemonConnector

Merge commit '12da9d7472ae87b841575d5358e19f143d12f900' into gingerbread-plus-aosp

* commit '12da9d7472ae87b841575d5358e19f143d12f900':
Fix buffer compacting in NativeDaemonConnector
12da9d7472ae87b841575d5358e19f143d12f900 03-Sep-2010 Kenny Root <kroot@google.com> Fix buffer compacting in NativeDaemonConnector

The buffer was being compacted in the read loop, but the start offset on
the compacted buffer wasn't being considered after the next read.

Bug: 2501075
Change-Id: I163297d751cf800d0bbc66df66b1a0fa0785de49
om/android/server/NativeDaemonConnector.java
bb08caf54bdb201d9b85393152f1b400eb4abe2b 03-Sep-2010 Wink Saville <wink@google.com> Fix and simplify ConnectivityService singleton.

Change-Id: Idb74854db9d801c1cc138eb5ca866cf01940ff6d
om/android/server/ConnectivityService.java
3d67c5688f4855acbfd6de103b278ceee74a4451 02-Sep-2010 repo sync <chiachi@android.com> resolved conflicts for merge of 12eaf9d5 to master

Change-Id: Icb706bdf350a9c471070fa3e2296cde77ef3703d
12eaf9d50c2ed30a561eb433ad69a388e54c482d 02-Sep-2010 Chia-chi Yeh <chiachi@android.com> am dc296b0d: Merge "SipService: reduce the usage of javax.sdp.*." into gingerbread

Merge commit 'dc296b0d4bd6fef8764c10fb4cd59c85bc5186f6' into gingerbread-plus-aosp

* commit 'dc296b0d4bd6fef8764c10fb4cd59c85bc5186f6':
SipService: reduce the usage of javax.sdp.*.
95b15c35608fe3ea679c8a478c6cbd841623371e 02-Sep-2010 Chia-chi Yeh <chiachi@android.com> SipService: reduce the usage of javax.sdp.*.

After this change, SipAudioCallImpl is the only place still using it.

Change-Id: I5693bffa54f9e19cbfa70b45dfcf40fba04dedbb
om/android/server/sip/SipHelper.java
om/android/server/sip/SipService.java
om/android/server/sip/SipSessionGroup.java
om/android/server/sip/SipSessionListenerProxy.java
a5034b5d802d0573808dc0fab7a71f9283ad3994 02-Sep-2010 Dianne Hackborn <hackbod@google.com> am 75823339: am a1c69e08: Fix a small bug when granting permissions through activity results.

Merge commit '75823339cd03e5b25b576cd7a2b5941254017c4a'

* commit '75823339cd03e5b25b576cd7a2b5941254017c4a':
Fix a small bug when granting permissions through activity results.
75823339cd03e5b25b576cd7a2b5941254017c4a 02-Sep-2010 Dianne Hackborn <hackbod@google.com> am a1c69e08: Fix a small bug when granting permissions through activity results.

Merge commit 'a1c69e084b5242ad4e4a1ef2fe8d99ba259b5af4' into gingerbread-plus-aosp

* commit 'a1c69e084b5242ad4e4a1ef2fe8d99ba259b5af4':
Fix a small bug when granting permissions through activity results.
a1c69e084b5242ad4e4a1ef2fe8d99ba259b5af4 02-Sep-2010 Dianne Hackborn <hackbod@google.com> Fix a small bug when granting permissions through activity results.

Change-Id: I2a5c4025fb5f566e29c219fde4d50ed2eba6e174
om/android/server/am/ActivityStack.java
0ed0221e9c01753eb8cf312ea9d148a0097a99a1 02-Sep-2010 Jim Miller <jaggies@google.com> Merge "Fix 2579224: Add a separate timeout for lockscreen vs display"
00092874b1fea2354b6a3048974abfc4bba69258 02-Sep-2010 Joe Onorato <joeo@android.com> Revert "Changed ConnectivityService#getServiceInstance so its a singleton."

This reverts commit 28961cc02f350ccd1770fb5af2f0d4c9793e4aec which causes this exception:

E/SystemServer( 2653): Failure starting Connectivity Service
E/SystemServer( 2653): java.lang.IllegalMonitorStateException: object not locked by thread before wait()
E/SystemServer( 2653): at java.lang.Object.wait(Native Method)
E/SystemServer( 2653): at java.lang.Object.wait(Object.java:358)
E/SystemServer( 2653): at com.android.server.ConnectivityService$ConnectivityThread.getServiceInstance(ConnectivityService.java:186)
E/SystemServer( 2653): at com.android.server.ConnectivityService.getInstance(ConnectivityService.java:200)
E/SystemServer( 2653): at com.android.server.ServerThread.run(SystemServer.java:262)

Change-Id: Idd139e426e61a1913b0bf343e2f0a0b1990ba8bb
om/android/server/ConnectivityService.java
bc4603b0b1f1242387655274e39649882ca391d1 31-Aug-2010 Jim Miller <jaggies@google.com> Fix 2579224: Add a separate timeout for lockscreen vs display

This change adds a second timeout to the SecuritySettings page
separate from the standard display timeout.

Change-Id: I41fe10e31688308f52695ad3ee30a4b0507112bd
om/android/server/PowerManagerService.java
f83d4f1779eb4801275a56023c343459a95009af 02-Sep-2010 Hung-ying Tyan <tyanh@google.com> resolved conflicts for merge of 3e4975a5 to master

Change-Id: Icd382fc43c8a1975801ab42eb184b633520149c7
3e4975a52ccd9dade7fffc9f8c144bff0f4c3cb1 02-Sep-2010 Hung-ying Tyan <tyanh@google.com> am 3424c02e: Add software features for SIP and VOIP

Merge commit '3424c02e6b931a8bbd651ae75217bebd008b2605' into gingerbread-plus-aosp

* commit '3424c02e6b931a8bbd651ae75217bebd008b2605':
Add software features for SIP and VOIP
3424c02e6b931a8bbd651ae75217bebd008b2605 27-Aug-2010 Hung-ying Tyan <tyanh@google.com> Add software features for SIP and VOIP

and block SipService creation and SIP API if the feature is not available.

Change-Id: Icf780af1ac20dda4d8180cea3e5b20e21a8350bc
om/android/server/SystemServer.java
om/android/server/sip/SipService.java
59f6b0da29034747bb66466739cb565047c912b8 02-Sep-2010 Kenny Root <kroot@google.com> am 9088a3d1: am 7c1bd7fd: Fix logic error in downgrade of system apps

Merge commit '9088a3d153ef28dfa383fda0935d99bdc0c2b2f6'

* commit '9088a3d153ef28dfa383fda0935d99bdc0c2b2f6':
Fix logic error in downgrade of system apps
188aa566e6a46889d4d453e912750c1263c9d2fa 02-Sep-2010 Kenny Root <kroot@google.com> am 11d12f7e: am fca5677a: Merge "Add null check for package settings" into gingerbread

Merge commit '11d12f7efc588b0e945c42952e67d96f2421dc26'

* commit '11d12f7efc588b0e945c42952e67d96f2421dc26':
Add null check for package settings
e90aa5e97e3a5502a8334ed6ceb98305f6e01361 01-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> Add a default dns entry if none is provided

Fixes part of emulator which isn't telling us about dns servers.
Gets some stuff running, but browser is still broken.

bug:2961703
Change-Id: I53b946eba434aca1bb524c2acaf77922377948d1
om/android/server/ConnectivityService.java
9088a3d153ef28dfa383fda0935d99bdc0c2b2f6 01-Sep-2010 Kenny Root <kroot@google.com> am 7c1bd7fd: Fix logic error in downgrade of system apps

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

* commit '7c1bd7fdbf9ac539c9832693b403511b2fc7bac7':
Fix logic error in downgrade of system apps
28961cc02f350ccd1770fb5af2f0d4c9793e4aec 01-Sep-2010 Wink Saville <wink@google.com> Changed ConnectivityService#getServiceInstance so its a singleton.

Change-Id: I27b5688a50917b01fb2fcd1c124da77ccae226b5
om/android/server/ConnectivityService.java
11d12f7efc588b0e945c42952e67d96f2421dc26 01-Sep-2010 Kenny Root <kroot@google.com> am fca5677a: Merge "Add null check for package settings" into gingerbread

Merge commit 'fca5677aeefc3b9cbaecefbb10d5ccbaff974391' into gingerbread-plus-aosp

* commit 'fca5677aeefc3b9cbaecefbb10d5ccbaff974391':
Add null check for package settings
7c1bd7fdbf9ac539c9832693b403511b2fc7bac7 01-Sep-2010 Kenny Root <kroot@google.com> Fix logic error in downgrade of system apps

A logic error would allow not deleting data when uninstalling a system
app upgrade that's of a newer release than the on on the system
partition. If the system app had a database upgrade and this happened,
you might be in trouble.

Luckily it appears no one ever does this in code. You'd have to manually
get there doing:

adb uninstall -k updated.system.package

Change-Id: I3110fedf2d147975a0635c71898d985dd642a2c1
om/android/server/PackageManagerService.java
9ee9274e5ebd131cef02d543fdb5cd1c1ae9a9f6 01-Sep-2010 Kenny Root <kroot@google.com> Add null check for package settings

A few lines down "ps" is run through a null check, so apparently there
could be some screwy system conditions where this is encountered. And,
in fact, this was encountered through an updated system pacakge that
managed to delete the package from /system/app during testing. It left
the PackageSetting in mDisabledSysPackages which would cause a deference
of a null variable.

Change-Id: Ic7faca569abd16a87a8a69c20df08c11a274a001
om/android/server/PackageManagerService.java
2394c164a76f6d3f8ad9f1c1517f58f72adab9d7 01-Sep-2010 Dianne Hackborn <hackbod@google.com> am ec438e14: am 361199b5: Add PackageManager API to get information about a provider component.

Merge commit 'ec438e1448ebc578ee5a4c4beb1e26292cdedd6e'

* commit 'ec438e1448ebc578ee5a4c4beb1e26292cdedd6e':
Add PackageManager API to get information about a provider component.
ec438e1448ebc578ee5a4c4beb1e26292cdedd6e 01-Sep-2010 Dianne Hackborn <hackbod@google.com> am 361199b5: Add PackageManager API to get information about a provider component.

Merge commit '361199b5e742c6635d4d7a03de6cf37b31cf442c' into gingerbread-plus-aosp

* commit '361199b5e742c6635d4d7a03de6cf37b31cf442c':
Add PackageManager API to get information about a provider component.
1bfdac8c6da0a9c6d5bdfa22c5bca674b904febc 01-Sep-2010 Dianne Hackborn <hackbod@google.com> am 3f124cc5: am 22cd420b: Merge "Improve debug output when an ANR happens." into gingerbread

Merge commit '3f124cc5ec31024acac057d0f848125f8da5e905'

* commit '3f124cc5ec31024acac057d0f848125f8da5e905':
Improve debug output when an ANR happens.
361199b5e742c6635d4d7a03de6cf37b31cf442c 31-Aug-2010 Dianne Hackborn <hackbod@google.com> Add PackageManager API to get information about a provider component.

Kind-of useful when all you have is a ComponentName.

Change-Id: I9a99f12daabb29e97e882e09c43ca0df70c00651
om/android/server/PackageManagerService.java
3f124cc5ec31024acac057d0f848125f8da5e905 01-Sep-2010 Dianne Hackborn <hackbod@google.com> am 22cd420b: Merge "Improve debug output when an ANR happens." into gingerbread

Merge commit '22cd420bfa431b4ad55e699afadf109dcc54f201' into gingerbread-plus-aosp

* commit '22cd420bfa431b4ad55e699afadf109dcc54f201':
Improve debug output when an ANR happens.
6b1afebdaca6c27d49a243c4283e5e2e4924de8c 01-Sep-2010 Dianne Hackborn <hackbod@google.com> Improve debug output when an ANR happens.

- Collect data at better times.
- Collect per-thread CPU usage as soon as possible after the ANR, and print
in log.
- Based on new per-thread CPU usage, limit the number of processes we
collect stacks from to not include inactive not interesting procs.
- Improve the way ProcessStats compute and reports its data.

Change-Id: I12b17fb47d593d175be69bb792c1f57179bf4fdf
om/android/server/ProcessStats.java
om/android/server/Watchdog.java
om/android/server/am/ActivityManagerService.java
43c926da089ba2c7ed9935e4015f65bd7c9d0eba 31-Aug-2010 Jean-Baptiste Queru <jbq@google.com> am d6a5f2df: am d3e803ae: Revert "Shutdown when capacity is 0% and no charging or when battery is dead"

Merge commit 'd6a5f2dff9c9db3e154a461127a7cfcea05c1f90'

* commit 'd6a5f2dff9c9db3e154a461127a7cfcea05c1f90':
Revert "Shutdown when capacity is 0% and no charging or when battery is dead"
d6a5f2dff9c9db3e154a461127a7cfcea05c1f90 31-Aug-2010 Jean-Baptiste Queru <jbq@google.com> am d3e803ae: Revert "Shutdown when capacity is 0% and no charging or when battery is dead"

Merge commit 'd3e803ae28c369996f9acf6036ea99af5561949c' into gingerbread-plus-aosp

* commit 'd3e803ae28c369996f9acf6036ea99af5561949c':
Revert "Shutdown when capacity is 0% and no charging or when battery is dead"
d3e803ae28c369996f9acf6036ea99af5561949c 31-Aug-2010 Jean-Baptiste Queru <jbq@google.com> Revert "Shutdown when capacity is 0% and no charging or when battery is dead"

This reverts commit fd04143a47770256dabcfa4d8447127b3ec8b2bf.

This break most automated tests because with this change, if the
device is fully charged, it will simply turn off the screen, regardless
if USB is connected to hsot PC or not; so for our tests, most of them
are always connected to host PC, and fully charged 99% of the time,
as soon as the screen turns off, the front-end test Activity will be
suspended.

Change-Id: I1e6590611af43812f1bac223dd31570d1d90cfc5
om/android/server/BatteryService.java
22f5ee93746f37823265b8cb9b1e94e572607514 31-Aug-2010 Jeff Brown <jeffbrown@google.com> am 36f0cb26: am 8d60866e: Input device calibration and capabilities.

Merge commit '36f0cb26cbb4ef62995ff2e5a540cf8814e7f030'

* commit '36f0cb26cbb4ef62995ff2e5a540cf8814e7f030':
Input device calibration and capabilities.
02f4f0eb4919453e8dbf40549d4ae9c05f05b8dd 31-Aug-2010 Brad Fitzpatrick <bradfitz@android.com> am 734d2707: am bb660d7e: Merge "Renaming SharedPreferences.startCommit to apply" into gingerbread

Merge commit '734d270769c609c7d3a1f2ec46e1d329d9682ab4'

* commit '734d270769c609c7d3a1f2ec46e1d329d9682ab4':
Renaming SharedPreferences$Editor.startCommit to apply
36f0cb26cbb4ef62995ff2e5a540cf8814e7f030 31-Aug-2010 Jeff Brown <jeffbrown@google.com> am 8d60866e: Input device calibration and capabilities.

Merge commit '8d60866e2100db70ecf0502c14768a384514d7e9' into gingerbread-plus-aosp

* commit '8d60866e2100db70ecf0502c14768a384514d7e9':
Input device calibration and capabilities.
734d270769c609c7d3a1f2ec46e1d329d9682ab4 31-Aug-2010 Brad Fitzpatrick <bradfitz@android.com> am bb660d7e: Merge "Renaming SharedPreferences.startCommit to apply" into gingerbread

Merge commit 'bb660d7e1bed3a07a1804bd9641d9634bfaa4972' into gingerbread-plus-aosp

* commit 'bb660d7e1bed3a07a1804bd9641d9634bfaa4972':
Renaming SharedPreferences$Editor.startCommit to apply
8d60866e2100db70ecf0502c14768a384514d7e9 30-Aug-2010 Jeff Brown <jeffbrown@google.com> Input device calibration and capabilities.

Finished the input device capability API.
Added a mechanism for calibrating touch devices to obtain more
accurate information about the touch contact area.
Improved pointer location to show new coordinates and capabilities.
Optimized pointer location display and formatting to avoid allocating large
numbers of temporary objects. The GC churn was causing the application to
stutter very badly when more than a couple of fingers were down).
Added more diagnostics.

Change-Id: Ie25380278ed6f16c5b04cd9df848015850383498
om/android/server/InputManager.java
om/android/server/WindowManagerService.java
66fce5068a8a3aeb28aaf713843891b286a75280 31-Aug-2010 Brad Fitzpatrick <bradfitz@android.com> Renaming SharedPreferences$Editor.startCommit to apply

Also removes the artifical restriction that only one apply() can be in
flight at once. That was old from when I thought it'd end up being
required, but wasn't.

Change-Id: I3540ea8be6e0760d6a51d218186f71655c2f3f55
om/android/server/BootReceiver.java
37e65ebb7eb932e1a144b1cab262e11ca5fd109b 30-Aug-2010 Robert Greenwalt <robdroid@android.com> Rename NetworkProperties to LinkProperties

Also add copy constructors and use them when giving out data.

Change-Id: Id320eb8fb91d0bd250305ce7bb4f628570215615
om/android/server/ConnectivityService.java
om/android/server/TelephonyRegistry.java
6c8beb0cb4eb41e4d33dd928fd87c0d504495127 31-Aug-2010 Kenny Root <kroot@google.com> am 8a5ab396: am 2e86809b: Merge "Native libraries on SD" into gingerbread

Merge commit '8a5ab396cf4f3bb76a3e820f16f946e313b73fcf'

* commit '8a5ab396cf4f3bb76a3e820f16f946e313b73fcf':
Native libraries on SD
8a5ab396cf4f3bb76a3e820f16f946e313b73fcf 31-Aug-2010 Kenny Root <kroot@google.com> am 2e86809b: Merge "Native libraries on SD" into gingerbread

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

* commit '2e86809b6c79375d23c0975914efc3b66e89ac90':
Native libraries on SD
0ac83f5a7c05ff5b7e213e5953590bfbeb4efb43 31-Aug-2010 Kenny Root <kroot@google.com> Native libraries on SD

* Add native library tests during package move

* Fix omission that let PackageSettings and ApplicationInfo get out of
sync.

Change-Id: Ic4958f971cb2c9cfd270522fdc120b4031c1124a
om/android/server/PackageManagerService.java
ec959a7e38d4a6551bb18e096a912ff8c75c50b3 30-Aug-2010 Imre Sunyi <imre.sunyi@sonyericsson.com> am 1429f465: am fd04143a: Shutdown when capacity is 0% and no charging or when battery is dead

Merge commit '1429f465f42bb9e3ef3ecfd1ee9af214901fc999'

* commit '1429f465f42bb9e3ef3ecfd1ee9af214901fc999':
Shutdown when capacity is 0% and no charging or when battery is dead
1429f465f42bb9e3ef3ecfd1ee9af214901fc999 30-Aug-2010 Imre Sunyi <imre.sunyi@sonyericsson.com> am fd04143a: Shutdown when capacity is 0% and no charging or when battery is dead

Merge commit 'fd04143a47770256dabcfa4d8447127b3ec8b2bf' into gingerbread-plus-aosp

* commit 'fd04143a47770256dabcfa4d8447127b3ec8b2bf':
Shutdown when capacity is 0% and no charging or when battery is dead
44af754cf0c9ad9a8162e1bd2af60737e81a8beb 28-Aug-2010 Daniel Sandler <dsandler@android.com> am d02bdaab: Remove experimental immersive mode support. DO NOT MERGE

Merge commit 'd02bdaab495641ab50e2123fdfd99a819cc40540' into gingerbread-plus-aosp

* commit 'd02bdaab495641ab50e2123fdfd99a819cc40540':
Remove experimental immersive mode support. DO NOT MERGE
d02bdaab495641ab50e2123fdfd99a819cc40540 26-Aug-2010 Daniel Sandler <dsandler@android.com> Remove experimental immersive mode support. DO NOT MERGE

Bug: 2949215

Change-Id: I7d998ef571ef7e149bb96261430e92150b80b77d
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityRecord.java
818c830c59fb8fb0fe7576f1e5a073ab599227c8 28-Aug-2010 Kenny Root <kroot@google.com> am 83285781: am 7046bd92: Merge "Allow native shared libraries in ASEC containers" into gingerbread

Merge commit '8328578152fbfd23952a6cda4b2e60853d78eb74'

* commit '8328578152fbfd23952a6cda4b2e60853d78eb74':
Allow native shared libraries in ASEC containers
59e61354801b378c074b85f0dea0da62481298c9 28-Aug-2010 Brad Fitzpatrick <bradfitz@android.com> am d71021cb: am 0c731f99: Merge "Send broadcast intent when configured location providers change." into gingerbread

Merge commit 'd71021cb30bd20dabd6783f4235d5f245a7bd1a3'

* commit 'd71021cb30bd20dabd6783f4235d5f245a7bd1a3':
Send broadcast intent when configured location providers change.
fc40701c8b170706a87eed9a758bf3307c572b99 28-Aug-2010 Robert Greenwalt <robdroid@android.com> Merge "resolved conflicts for merge of 4ea54f44 to master"
8328578152fbfd23952a6cda4b2e60853d78eb74 28-Aug-2010 Kenny Root <kroot@google.com> am 7046bd92: Merge "Allow native shared libraries in ASEC containers" into gingerbread

Merge commit '7046bd924f77c54585b9e0e0c95e5edd2ceb55a3' into gingerbread-plus-aosp

* commit '7046bd924f77c54585b9e0e0c95e5edd2ceb55a3':
Allow native shared libraries in ASEC containers
85387d7ba36e56b291cbde87acb5a5b2200fe01c 26-Aug-2010 Kenny Root <kroot@google.com> Allow native shared libraries in ASEC containers

This change moves the native library handling earlier in the package
installation process so that it may be inserted into ASEC containers
before they are finalized in the DefaultContainerService.

Note that native libraries on SD card requires that vold mount ASEC
containers without the "noexec" flag on the mount point.

Change-Id: Ib34b1886bf6f94b99bb7b3781db6e9b5a58807ba
om/android/server/PackageManagerService.java
7f7ce40f90cf00dc046fb9520d77d29e96b474d6 28-Aug-2010 Brad Fitzpatrick <bradfitz@android.com> resolved conflicts for merge of 28130bae to master

Change-Id: I13df8dc12092c3d2536e12216df9130d5914380a
d71021cb30bd20dabd6783f4235d5f245a7bd1a3 28-Aug-2010 Brad Fitzpatrick <bradfitz@android.com> am 0c731f99: Merge "Send broadcast intent when configured location providers change." into gingerbread

Merge commit '0c731f99b05630e16dce572ac206ab75c90891cd' into gingerbread-plus-aosp

* commit '0c731f99b05630e16dce572ac206ab75c90891cd':
Send broadcast intent when configured location providers change.
0c5a04014d3833c9a82772a832d3bc6410fc52ac 27-Aug-2010 Brad Fitzpatrick <bradfitz@android.com> Send broadcast intent when configured location providers change.

See e.g. http://code.google.com/p/android/issues/detail?id=10042

This is also needed by the power control widget, which has no reliable
way otherwise of staying in-sync.

Change-Id: I8f2b6b79b1843329bae952a25ea56f15e3cf92aa
om/android/server/LocationManagerService.java
28130baefb4fa6d1e0ff9c92337295ba74461cf7 27-Aug-2010 Brad Fitzpatrick <bradfitz@android.com> resolved conflicts for merge of 6b50986a to gingerbread-plus-aosp

Change-Id: I7c5ec7ae717e75ad242e2c1ad4537052e4eea718
41bfa37cb2ca244432061bddb1c8bf802545ae6e 27-Aug-2010 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 409b7120 to master

Change-Id: I1741e205b5ff5ae62a38ab3b096bcc3d96883538
1040dc465cbf5ca8f834a87c949e476abefa3f76 27-Aug-2010 Dianne Hackborn <hackbod@google.com> Improve clipboard API.

- Rename ClippedData to ClipData.
- Introudce ClipDescription subclass.
- Add convenience APIs for creating a ClipData.
- Add ClipboardManager API to get just the ClipDescription.
- Define MIME types associated with a clip.

Change-Id: If97ef91aa99a4dd0ec74ccaea504345c9ef12b5c
om/android/server/ClipboardService.java
585ac0fc8dde3fe35ec4c71c8f215f2c84139b8b 27-Aug-2010 Robert Greenwalt <robdroid@android.com> resolved conflicts for merge of 4ea54f44 to master

Change-Id: Ia77bb59a6e1950648c8ebf7db307e204f93a9f56
om/android/server/ConnectivityService.java
333b8cba996c8ebb8ca55ebfc5cc536bdd64af94 26-Aug-2010 Brad Fitzpatrick <bradfitz@android.com> SharedPreferences$Editor.startCommit()

Adds a fire-and-forget save method (startCommit) to the
SharedPreferences.Editor, which is the way most people use it anyway.

This commit adds the implementation. The previous commit added the
interface and docs:

previous change: Idf9934b445da1fb72b79f0192218b47c0a7f5a34
git commit: edf32d01316bd3432c023f17747461b08ae36375

In addition, this change:

-- adds a generic "runPendingWorkFinishers" mechanism to
ActivityThread to wait on async operations that are still
in flight and use it for this.

-- ties runPendingWorkFinishers into Activity.onPause,
BroadcastReceiver, and Service.

-- makes sSharedPreferences keyed on name, not File, to avoid
unnnecessary allocations

-- documents and guarantees what thread
OnSharedPreferenceChangeListener callbacks run on

-- makes a few things in frameworks/base use startCommit(), notably
Preference.java (which was ignoring the return value anyway)

Change-Id: I1c8db60ad45643226fe6d246d3e513eeb7bd0ebd
om/android/server/BootReceiver.java
1578bf109012c3cd20c1b41a9df533df485c8e27 27-Aug-2010 Joe Onorato <joeo@google.com> am 03b3de0f: am 00d1772d: am 797e688b: Continue trying to make the turn off quickly after call feature work.

Merge commit '03b3de0faf7fe6b8e4bfbf828793767ac3e77a37'

* commit '03b3de0faf7fe6b8e4bfbf828793767ac3e77a37':
Continue trying to make the turn off quickly after call feature work.
267f4d6a22aade4f63831e166312647212816a3d 27-Aug-2010 Joe Onorato <joeo@google.com> am 8f0f1b1e: am 274ad982: Merge "Just disable widgets that come from apps on sd cards, because they don\'t work anyway." into gingerbread

Merge commit '8f0f1b1e9defc61c2831e8856b18f2e00cfd789d'

* commit '8f0f1b1e9defc61c2831e8856b18f2e00cfd789d':
Just disable widgets that come from apps on sd cards, because they don't work anyway.
0add80b454c5fe99a158a9537666a4c8ab999359 27-Aug-2010 Joe Onorato <joeo@google.com> am 32982c70: am cc45381e: Merge "Fix typo that makes apps on sd work better with app widgets." into gingerbread

Merge commit '32982c701cee6f73262200468419b80343a0bea7'

* commit '32982c701cee6f73262200468419b80343a0bea7':
Fix typo that makes apps on sd work better with app widgets.
409b71201a982e188c05238d95a2eb53ea9e0cf7 26-Aug-2010 Dianne Hackborn <hackbod@google.com> am 02486b13: Hide heavy-weight API.

Merge commit '02486b1327e3007c62d253dd89ba9db1852b87f8' into gingerbread-plus-aosp

* commit '02486b1327e3007c62d253dd89ba9db1852b87f8':
Hide heavy-weight API.
02486b1327e3007c62d253dd89ba9db1852b87f8 26-Aug-2010 Dianne Hackborn <hackbod@google.com> Hide heavy-weight API.

And give it a better name, for when it is later un-hidden.

Change-Id: Iae0d3054d44f873b9f953bc41d175a47802a185e
om/android/server/am/ActivityStack.java
4e8620f868e2490782ebb960404140ea9482c91d 25-Aug-2010 Ben Dodson <bjdodson@google.com> Updated documentation for upcoming fix for @code tags

Change-Id: Id7b163179132b9cf180afecb4e9e10ee39bcd415
om/android/server/WifiService.java
03b3de0faf7fe6b8e4bfbf828793767ac3e77a37 26-Aug-2010 Joe Onorato <joeo@google.com> am 00d1772d: am 797e688b: Continue trying to make the turn off quickly after call feature work.

Merge commit '00d1772d8cfb94066b757034055ac38897d161da' into gingerbread-plus-aosp

* commit '00d1772d8cfb94066b757034055ac38897d161da':
Continue trying to make the turn off quickly after call feature work.
00d1772d8cfb94066b757034055ac38897d161da 26-Aug-2010 Joe Onorato <joeo@google.com> am 797e688b: Continue trying to make the turn off quickly after call feature work.

Merge commit '797e688b3bebbf1f50a8ad08528740b064f79153' into gingerbread

* commit '797e688b3bebbf1f50a8ad08528740b064f79153':
Continue trying to make the turn off quickly after call feature work.
8f0f1b1e9defc61c2831e8856b18f2e00cfd789d 26-Aug-2010 Joe Onorato <joeo@google.com> am 274ad982: Merge "Just disable widgets that come from apps on sd cards, because they don\'t work anyway." into gingerbread

Merge commit '274ad9824a20b61dfbb785621567fd0414a965a4' into gingerbread-plus-aosp

* commit '274ad9824a20b61dfbb785621567fd0414a965a4':
Just disable widgets that come from apps on sd cards, because they don't work anyway.
32982c701cee6f73262200468419b80343a0bea7 26-Aug-2010 Joe Onorato <joeo@google.com> am cc45381e: Merge "Fix typo that makes apps on sd work better with app widgets." into gingerbread

Merge commit 'cc45381e596c6d2b351d2c5e9d07f4113e1d58b6' into gingerbread-plus-aosp

* commit 'cc45381e596c6d2b351d2c5e9d07f4113e1d58b6':
Fix typo that makes apps on sd work better with app widgets.
274ad9824a20b61dfbb785621567fd0414a965a4 26-Aug-2010 Joe Onorato <joeo@google.com> Merge "Just disable widgets that come from apps on sd cards, because they don't work anyway." into gingerbread
cc45381e596c6d2b351d2c5e9d07f4113e1d58b6 26-Aug-2010 Joe Onorato <joeo@google.com> Merge "Fix typo that makes apps on sd work better with app widgets." into gingerbread
797e688b3bebbf1f50a8ad08528740b064f79153 26-Aug-2010 Joe Onorato <joeo@google.com> Continue trying to make the turn off quickly after call feature work.

The previous implementation worked if the set timeout is short enough, which mine was. This one
carries the remaining amount of timeout override forward through all of the countdown steps.

Bug: 2844990
Change-Id: I040df22f9f9ddf98c355ac6845b7624e95f84f33
om/android/server/PowerManagerService.java
4ea54f442e6e5c0932bc0a1da8c932bb1c9ccb0b 26-Aug-2010 Robert Greenwalt <robdroid@android.com> Merge "resolved conflicts for merge of b998f311 to gingerbread-plus-aosp" into gingerbread-plus-aosp
15edaceb2d46f18c32fb20a3d3dae556c1078bb6 26-Aug-2010 satok <satok@google.com> am 913a8925: DO NOT MERGE. Backport master InputMethodManagerService.java to gingerbread

Merge commit '913a8925c07e854a80bf5df87561f290d3a56d61' into gingerbread-plus-aosp

* commit '913a8925c07e854a80bf5df87561f290d3a56d61':
DO NOT MERGE. Backport master InputMethodManagerService.java to gingerbread
913a8925c07e854a80bf5df87561f290d3a56d61 26-Aug-2010 satok <satok@google.com> DO NOT MERGE. Backport master InputMethodManagerService.java to gingerbread

Change-Id: Ied15b4f2f447ee3e3b858d4ca65c21c30dfa4eba
om/android/server/InputMethodManagerService.java
fd04143a47770256dabcfa4d8447127b3ec8b2bf 26-Aug-2010 Imre Sunyi <imre.sunyi@sonyericsson.com> Shutdown when capacity is 0% and no charging or when battery is dead

Android framework does not shutdown when battery capacity is 0% and a
charger is attached (USB or AC). This handling is incomplete since a
charger might very well be attached but charging has stopped because
USB suspended or the charging algorithm has stopped because of
battery safety handling. Also shutdown when battery is reported 'dead'.
This might happen although charging is present.

Change-Id: If328260ebf4d38f912e4d2fad204431cbb19c993
om/android/server/BatteryService.java
c8f8497b9cac63a923dbdb1c08e247ba32c19e5e 26-Aug-2010 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 66d633d2 to master

Change-Id: I6c38d7c4d127954dfca17082215c587a3cd4a586
66d633d208370c384db020daade975db1f3af736 26-Aug-2010 Dianne Hackborn <hackbod@google.com> am 3003a017: Merge "Don\'t retain global ref to last inflated context." into gingerbread

Merge commit '3003a017d312a55e3804d6cf4a80044b1f1d7993' into gingerbread-plus-aosp

* commit '3003a017d312a55e3804d6cf4a80044b1f1d7993':
Don't retain global ref to last inflated context.
3003a017d312a55e3804d6cf4a80044b1f1d7993 26-Aug-2010 Dianne Hackborn <hackbod@google.com> Merge "Don't retain global ref to last inflated context." into gingerbread
7e269644fcc319835f1e7f762f3cbd8087e3e22f 26-Aug-2010 Dianne Hackborn <hackbod@google.com> Don't retain global ref to last inflated context.

Also rework URI permission granting to support upcoming
clipboard use.

Change-Id: I9842920350955531c5a511c2ecc5215e8c783343
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityRecord.java
om/android/server/am/ActivityStack.java
om/android/server/am/ServiceRecord.java
om/android/server/am/UriPermission.java
om/android/server/am/UriPermissionOwner.java
6d92e3c9ad9deab11752944cca57107feb15bcbe 26-Aug-2010 Chung-yih Wang <cywang@google.com> am 5e0d8337: am ea52d35e: Merge "Add dynamic uid info for tracking the sip service usage." into gingerbread

Merge commit '5e0d833710aaba2562f39eb8021a4289bc3bcc5a'

* commit '5e0d833710aaba2562f39eb8021a4289bc3bcc5a':
Add dynamic uid info for tracking the sip service usage.
5e0d833710aaba2562f39eb8021a4289bc3bcc5a 26-Aug-2010 Chung-yih Wang <cywang@google.com> am ea52d35e: Merge "Add dynamic uid info for tracking the sip service usage." into gingerbread

Merge commit 'ea52d35e5685094f4d2cca5012239bde66f2c4fe' into gingerbread-plus-aosp

* commit 'ea52d35e5685094f4d2cca5012239bde66f2c4fe':
Add dynamic uid info for tracking the sip service usage.
ea52d35e5685094f4d2cca5012239bde66f2c4fe 26-Aug-2010 Chung-yih Wang <cywang@google.com> Merge "Add dynamic uid info for tracking the sip service usage." into gingerbread
5424c8dcacf1c227fe7deb0185510614122ab447 25-Aug-2010 Chung-yih Wang <cywang@google.com> Add dynamic uid info for tracking the sip service usage.

Change-Id: Ibc340401b63799326b08aee6eba602a3e753b13f
om/android/server/sip/SipService.java
b21b62327c10e92baf1a88e77f1c6d5576a17d62 26-Aug-2010 Robert Greenwalt <robdroid@android.com> resolved conflicts for merge of b998f311 to gingerbread-plus-aosp

Change-Id: I7ceb0b624e78d85542d1c36bfabeb5dc31961505
261d509270d41508ca99d5a1a0d0dd8e7e4bd966 26-Aug-2010 Konstantin Lopyrev <klopyrev@google.com> am 5a54e980: am 6947cc59: Merge "Preventing the hierarchy viewer from getting stuck, once when trying to load the window data for SurfaceView and the Wallpaper, and in the case the captured node has disappeared." into gingerbread

Merge commit '5a54e98022d640900f94102c077d8dff447f3c76'

* commit '5a54e98022d640900f94102c077d8dff447f3c76':
Preventing the hierarchy viewer from getting stuck, once when trying to load the window data for SurfaceView and the Wallpaper, and in the case the captured node has disappeared.
5a54e98022d640900f94102c077d8dff447f3c76 26-Aug-2010 Konstantin Lopyrev <klopyrev@google.com> am 6947cc59: Merge "Preventing the hierarchy viewer from getting stuck, once when trying to load the window data for SurfaceView and the Wallpaper, and in the case the captured node has disappeared." into gingerbread

Merge commit '6947cc594276df899a0c4662224455f40846bd0a' into gingerbread-plus-aosp

* commit '6947cc594276df899a0c4662224455f40846bd0a':
Preventing the hierarchy viewer from getting stuck, once when trying to load the window data for SurfaceView and the Wallpaper, and in the case the captured node has disappeared.
6947cc594276df899a0c4662224455f40846bd0a 26-Aug-2010 Konstantin Lopyrev <klopyrev@google.com> Merge "Preventing the hierarchy viewer from getting stuck, once when trying to load the window data for SurfaceView and the Wallpaper, and in the case the captured node has disappeared." into gingerbread
917d88213ecce0f0723186fff82b8163e57192a2 26-Aug-2010 Dianne Hackborn <hackbod@google.com> am fde7fdd3: am 50395e80: Merge "Fix a fun bug with multiple service bindings from an activity." into gingerbread

Merge commit 'fde7fdd38d45e6bdb12cba9917a23d18e9f3457c'

* commit 'fde7fdd38d45e6bdb12cba9917a23d18e9f3457c':
Fix a fun bug with multiple service bindings from an activity.
fde7fdd38d45e6bdb12cba9917a23d18e9f3457c 26-Aug-2010 Dianne Hackborn <hackbod@google.com> am 50395e80: Merge "Fix a fun bug with multiple service bindings from an activity." into gingerbread

Merge commit '50395e80718e77d27ec5e2d474b255e05de68d82' into gingerbread-plus-aosp

* commit '50395e80718e77d27ec5e2d474b255e05de68d82':
Fix a fun bug with multiple service bindings from an activity.
43d9ac81f7722bb539ee67023f10b9f43abbf202 26-Aug-2010 Dianne Hackborn <hackbod@google.com> Fix a fun bug with multiple service bindings from an activity.

There was a flaw in the service management, when the same activity
is doing a bindService() for the same service IBinder. In this case
the activity would correctly keep a list of all generated connections,
however some other data structures would assume there is only one
connection per IBinder, and thus only remember the last.

When that last connection was unbound, the service would be destroyed
since it thought there were no more connections. Then when the
activity was finished, it would try to destroy the service again and
end up with an ANR because the service was already gone and would
not respond.

Change-Id: I59bde38bc24e78147b90b0a7cd525c2a1d20489f
om/android/server/am/ActivityManagerService.java
om/android/server/am/ServiceRecord.java
43b9b48f792e0b1b166af7f7fb6a32172e7f11c2 25-Aug-2010 Konstantin Lopyrev <klopyrev@google.com> Preventing the hierarchy viewer from getting stuck, once when trying to load the window data for SurfaceView and the Wallpaper, and in the case the captured node has disappeared.

Change-Id: Iaff6bd501a2bb3faa7a394fff740479f6a95e899
om/android/server/WindowManagerService.java
3ded7cb58cd5b31b712e95f9cfecf86f69fb4cae 25-Aug-2010 Robert Greenwalt <robdroid@android.com> am 510f9f86: am 6d734693: Merge "Send all Connectivity broadcasts." into gingerbread

Merge commit '510f9f869fea26b5c11bfc738e7637c988e9d3d0'

* commit '510f9f869fea26b5c11bfc738e7637c988e9d3d0':
Send all Connectivity broadcasts.
331fbdc7e9588018dac28de8b6196653cea1f08b 24-Aug-2010 Joe Onorato <joeo@google.com> Just disable widgets that come from apps on sd cards, because they don't work anyway.

Change-Id: I2d7ef4a63bcbd43547e40c01e997d813cc01e800
om/android/server/AppWidgetService.java
94258cd70438e444e139a26da12fd7e5a8782332 24-Aug-2010 Joe Onorato <joeo@google.com> Fix typo that makes apps on sd work better with app widgets.

Bug: 2489571
Change-Id: Idbfb91d960b952aaf32c604b7e52592d77b5ef2e
om/android/server/AppWidgetService.java
510f9f869fea26b5c11bfc738e7637c988e9d3d0 24-Aug-2010 Robert Greenwalt <robdroid@android.com> am 6d734693: Merge "Send all Connectivity broadcasts." into gingerbread

Merge commit '6d7346933580c107f461885dc273d7298a46b0df' into gingerbread-plus-aosp

* commit '6d7346933580c107f461885dc273d7298a46b0df':
Send all Connectivity broadcasts.
6d7346933580c107f461885dc273d7298a46b0df 24-Aug-2010 Robert Greenwalt <robdroid@android.com> Merge "Send all Connectivity broadcasts." into gingerbread
773b769a7e2ac82384a620f1338d5e9035f43a5b 24-Aug-2010 Dianne Hackborn <hackbod@google.com> am 6e549d1c: am f467ca08: Merge "More watermark work." into gingerbread

Merge commit '6e549d1c99ac41e44f30c8408f4b5382a0d281cb'

* commit '6e549d1c99ac41e44f30c8408f4b5382a0d281cb':
More watermark work.
9d6b59c08e81b6cfd2db6b4f68c64c0c97a9f9ff 24-Aug-2010 Robert Greenwalt <robdroid@android.com> Send all Connectivity broadcasts.

We were using a flag so new broadcasts replaced old. If people are expecting
to see all the broadcasts they sometimes would fail.

bug:2892383
Change-Id: I63df17fe8f8c68f59e1ad6297fe93e169b4463b4
om/android/server/ConnectivityService.java
103bff317be898498afa1a2f33b960f09592da74 24-Aug-2010 Dianne Hackborn <hackbod@google.com> am 5474b0f8: am 39792d22: Fix bugs with granting permissions through onNewIntent().

Merge commit '5474b0f8603ee66413c3e44600ca46f162f3089e'

* commit '5474b0f8603ee66413c3e44600ca46f162f3089e':
Fix bugs with granting permissions through onNewIntent().
748795096f2b60b31cced8ed04221b89c0aceea4 24-Aug-2010 android-build SharedAccount <android-build@sekiwake.mtv.corp.google.com> Merge commit '7e8f0c7454339d240761684807135fbc490e99f6'
6e549d1c99ac41e44f30c8408f4b5382a0d281cb 24-Aug-2010 Dianne Hackborn <hackbod@google.com> am f467ca08: Merge "More watermark work." into gingerbread

Merge commit 'f467ca08dda9efece674efb0cc70c45fab4973a6' into gingerbread-plus-aosp

* commit 'f467ca08dda9efece674efb0cc70c45fab4973a6':
More watermark work.
b9fb1705e805b7074f5ccc3bf398181706854bfb 24-Aug-2010 Dianne Hackborn <hackbod@google.com> More watermark work.

Change-Id: I1d20bc1f8679a9750b247126436e8ef7e47a77be
om/android/server/WindowManagerService.java
d9df0124deec9108e60696b1469472e7e7f898e3 24-Aug-2010 Irfan Sheriff <isheriff@google.com> Merge "Clean up synchronous calls"
d8134ff9d8178470116108bb7815fd0ab2a606a1 23-Aug-2010 Irfan Sheriff <isheriff@google.com> Clean up synchronous calls

We dont plan to have asynchronous versions of the existing
synchronous calls since we have added more powerful
asynchronous calls. Remove functionality to check for
synchronous calls.

Also, remove unused sync call for fetching status

Change-Id: I2982cb7b2aabc88a63289d49686a6e3645085263
om/android/server/WifiService.java
8e1441f0b598d687e32f31fb508763ae98841b15 23-Aug-2010 Mike Lockwood <lockwood@android.com> Merge "Tethering: Delay 1000ms before processing USB disconnect events"
6eef5c687677b5965f769c62f50edda25abb431e 23-Aug-2010 Mike Lockwood <lockwood@android.com> Tethering: Delay 1000ms before processing USB disconnect events

On some devices, switching the USB configuration to enable RNDIS can
result in multiple USB disconnect/reconnect events being generated.

Change-Id: Id0bfe54293bd51211f84976be2d72f8b1ad0100d
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/connectivity/Tethering.java
b65444df013020000a0d60491e9cf14c950c9500 21-Aug-2010 Irfan Sheriff <isheriff@google.com> am 80db4381: Merge "DO NOT MERGE Enable all networks on screen on" into gingerbread

Merge commit '80db4381c010c4dec74c2bf1e02380759e4ff97b' into gingerbread-plus-aosp

* commit '80db4381c010c4dec74c2bf1e02380759e4ff97b':
DO NOT MERGE Enable all networks on screen on
80db4381c010c4dec74c2bf1e02380759e4ff97b 21-Aug-2010 Irfan Sheriff <isheriff@google.com> Merge "DO NOT MERGE Enable all networks on screen on" into gingerbread
d78b868ce32ccd96e414f096577fddd78ec5defb 21-Aug-2010 Jeff Brown <jeffbrown@google.com> am 36beeca4: am 3d8c9bdb: Raise motion event throttle to 60Hz from 35Hz.

Merge commit '36beeca4c34af2aed6a070e43b69993daff67661'

* commit '36beeca4c34af2aed6a070e43b69993daff67661':
Raise motion event throttle to 60Hz from 35Hz.
feb02e7695c99d6eab0884f2424cff5bf48f4df4 21-Aug-2010 Jeff Brown <jeffbrown@google.com> am d25f0aea: am 99401b29: Merge "Add support for throttling motion events." into gingerbread

Merge commit 'd25f0aea1cebe93aff55a75374e172f87115f1b3'

* commit 'd25f0aea1cebe93aff55a75374e172f87115f1b3':
Add support for throttling motion events.
37444f4239b26944d24f039c537d411ac7004243 21-Aug-2010 Dianne Hackborn <hackbod@google.com> am d172594e: am cf6d2a1d: Merge "Fix issue #2845673: android:exported="false" is not obeyed" into gingerbread

Merge commit 'd172594e3a1e25f1f2c190e99421cb7d4963389b'

* commit 'd172594e3a1e25f1f2c190e99421cb7d4963389b':
Fix issue #2845673: android:exported="false" is not obeyed
fae66c3ab59c741aad631e6f2dd82b77b1d4a353 16-Aug-2010 Irfan Sheriff <isheriff@google.com> DO NOT MERGE Enable all networks on screen on

Connectivity to a disabled network never happens.
An old dhcp issue for example prevents
connectivity again in future. Allow connectivity
on all networks on screen on.

Bug: 2129037
Change-Id: I42afc17ddb5cd238e46d7e50f1b6e708e107b35d
om/android/server/WifiService.java
2b05a95bccafddac15debdfb5c39107aa3418783 20-Aug-2010 Robert Greenwalt <robdroid@android.com> am 4b1bdc02: Merge "DO NOT MERGE Fixing Connectivity" into gingerbread

Merge commit '4b1bdc0209650436ebe0dad1020080cc891e97b6' into gingerbread-plus-aosp

* commit '4b1bdc0209650436ebe0dad1020080cc891e97b6':
DO NOT MERGE Fixing Connectivity
4b1bdc0209650436ebe0dad1020080cc891e97b6 20-Aug-2010 Robert Greenwalt <robdroid@android.com> Merge "DO NOT MERGE Fixing Connectivity" into gingerbread
5474b0f8603ee66413c3e44600ca46f162f3089e 20-Aug-2010 Dianne Hackborn <hackbod@google.com> am 39792d22: Fix bugs with granting permissions through onNewIntent().

Merge commit '39792d2262352ae775091876d5488d2412a2ff92' into gingerbread-plus-aosp

* commit '39792d2262352ae775091876d5488d2412a2ff92':
Fix bugs with granting permissions through onNewIntent().
39792d2262352ae775091876d5488d2412a2ff92 20-Aug-2010 Dianne Hackborn <hackbod@google.com> Fix bugs with granting permissions through onNewIntent().

It would grant the permission to the temporary ActivityRecord,
not the real one, so it never got cleaned up.

Also allow granting of permissions to services because... well,
it would be really really useful. And it introduces some
refactoring that we'll need to support cut/paste.

Change-Id: If521f509042e7baad7f5dc9bec84b6ba0d90ba09
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityRecord.java
om/android/server/am/ActivityStack.java
om/android/server/am/BroadcastRecord.java
om/android/server/am/ServiceRecord.java
om/android/server/am/UriPermission.java
8afddad7e7ce7275e26dc1ebfb359fbdd1d5920b 20-Aug-2010 Robert Greenwalt <robdroid@android.com> DO NOT MERGE Fixing Connectivity

Passing Gateway addr info from telephony into ConnectivityService so it can
add/remove the default route as needed. Fixed differently on master.

bug:2927822
Change-Id: I9a3ee7cd23c4717e7c60098f0595aa3f77c44b15
om/android/server/TelephonyRegistry.java
7e8f0c7454339d240761684807135fbc490e99f6 20-Aug-2010 Hung-ying Tyan <tyanh@google.com> am b9a17931: Merge "SipSession: make potential time-consuming ops run on background thread" into gingerbread

Merge commit 'b9a1793195853d6f4a8656d029f0ab47a544d31d' into gingerbread-plus-aosp

* commit 'b9a1793195853d6f4a8656d029f0ab47a544d31d':
SipSession: make potential time-consuming ops run on background thread
64ba8e4038ade025da5e02f882219432d6bf1016 04-Nov-2009 Robert CH Chou <Robert_CH_Chou@acer.com.tw> Fix time zone info in kernel is nothing after reboot

If sys_tz is not set correctly, the timestamp of
filesystem will be in-consistent with android's time,
until time zone is set from android's UI. Set kernel
timezone while initializing AlarmManagerService.

Change-Id: Ic85def954fc9388e943e3dee45767d8179825a49
om/android/server/AlarmManagerService.java
dba514c6d8e8263d4b8f31cb2fdebfc1d4f84c35 20-Aug-2010 Hung-ying Tyan <tyanh@google.com> SipSession: make potential time-consuming ops run on background thread

http://b/issue?id=2933071

Change-Id: I0467cb5fc41bc2d6e010d20c99b7f0392fb0889e
om/android/server/sip/SipSessionGroup.java
9bc709d46e1165ca0c9a02bd970767c401b990e5 10-Aug-2010 Banavathu, Srinivas Naik <snb@codeaurora.org> Add an API to request route to an IPv6 host.

Add API to create a route to an IPv6 host through a particular
interface.

Change-Id: I7649051e94832576e02b5f5ad17abe093d21d48e
om/android/server/ConnectivityService.java
e498475b187277309c81b38240c7e71ec049e369 19-Aug-2010 Irfan Sheriff <isheriff@google.com> asynchronous driver commands

Make some of the common driver commands scan/disconnect/reconnect/reassociate
asynchronous. We already have broadcasts to indicate results.

Change-Id: I343c6be077fb11a3d488e586ab10ab2373b269d8
om/android/server/WifiService.java
36beeca4c34af2aed6a070e43b69993daff67661 19-Aug-2010 Jeff Brown <jeffbrown@google.com> am 3d8c9bdb: Raise motion event throttle to 60Hz from 35Hz.

Merge commit '3d8c9bdbed0c31143227697bd0d94fd234fe08ad' into gingerbread-plus-aosp

* commit '3d8c9bdbed0c31143227697bd0d94fd234fe08ad':
Raise motion event throttle to 60Hz from 35Hz.
3d8c9bdbed0c31143227697bd0d94fd234fe08ad 19-Aug-2010 Jeff Brown <jeffbrown@google.com> Raise motion event throttle to 60Hz from 35Hz.

Bug: 2931575
Change-Id: Ib8b1793addcda74b2fa6de2ce61b6133b8ffda9d
om/android/server/InputManager.java
d25f0aea1cebe93aff55a75374e172f87115f1b3 19-Aug-2010 Jeff Brown <jeffbrown@google.com> am 99401b29: Merge "Add support for throttling motion events." into gingerbread

Merge commit '99401b29c3f39488a058d3eb616009b751879a77' into gingerbread-plus-aosp

* commit '99401b29c3f39488a058d3eb616009b751879a77':
Add support for throttling motion events.
99401b29c3f39488a058d3eb616009b751879a77 19-Aug-2010 Jeff Brown <jeffbrown@google.com> Merge "Add support for throttling motion events." into gingerbread
d172594e3a1e25f1f2c190e99421cb7d4963389b 19-Aug-2010 Dianne Hackborn <hackbod@google.com> am cf6d2a1d: Merge "Fix issue #2845673: android:exported="false" is not obeyed" into gingerbread

Merge commit 'cf6d2a1de274e9a4156b12be811a180eb36412ab' into gingerbread-plus-aosp

* commit 'cf6d2a1de274e9a4156b12be811a180eb36412ab':
Fix issue #2845673: android:exported="false" is not obeyed
adec63015fd9bd05498572486f38f0436a1199ad 19-Aug-2010 Danica Chang <danicachang@google.com> Merge "fixed bug in stringToIpAddr, which was returning the ip address in reverse"
7b9efd00ecbde416b75f70cc9fe2b0d128ddb9c7 19-Aug-2010 Danica Chang <danicachang@google.com> Merge "bluetooth tethering"
ae9fc03bdccda709101291bbcd3beaa5b6daebfc 19-Aug-2010 Jeff Brown <jeffbrown@google.com> Add support for throttling motion events.

Change-Id: I24b3a17753e91ecda60a60fe5cd2e6b3260e033d
om/android/server/InputManager.java
6118069b1dc4c487d02d3df5b883e756dc42b605 19-Aug-2010 Irfan Sheriff <isheriff@google.com> Fix WRITE_SECURE_SETTINGS permission issue

The refactor with the new state machine had introduced
a bug with writes to secure settings in public API for
which apps might not have permission.

Bug: 2895750
Change-Id: I7d236253201a47b836996859aa3de2806ad8a800
om/android/server/WifiService.java
b424b633bb3664bed924d2ea89036290a57eb2bd 19-Aug-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2845673: android:exported="false" is not obeyed

Thou shall obey.

Change-Id: I09f163a0db7cc9189c8d7f5116cc8ca9d4f7a76c
om/android/server/am/ActivityManagerService.java
6fdd0c6274c81b337ad35b70480f881daf7354c3 11-Aug-2010 Danica Chang <danicachang@google.com> bluetooth tethering

Change-Id: Id6d5fb1922facc7013abc29214d3e1141995b767
om/android/server/ConnectivityService.java
om/android/server/NativeDaemonConnector.java
om/android/server/connectivity/Tethering.java
3719f8568e809ffd30f90adc38993256a9d3d066 18-Aug-2010 Jean-Baptiste Queru <jbq@google.com> DO NOT MERGE resolved conflicts for merge of 8c11e952 to gingerbread-plus-aosp

Change-Id: I29703133654f0f80a4425914d290e9dc50cbc3cc
46906276448dd36e7a5cca38fbe9fdb3142f7948 02-Jun-2010 Kenny Root <kroot@google.com> Amend previous ndc commit

Submitted wrong patchset. This includes the delta for the latest
patchset.

Change-Id: I63bb9a37dd9100550ae07a3a1c9fdd9fd71724e1
om/android/server/MountService.java
a34c9ca30ea25d0c4d8ae51da7858c4ea58b7f25 01-Jun-2010 Kenny Root <kroot@google.com> Add more error checking for ndc

In NativeDaemonConnector.doCommand() calls, there was inconsistent error
checking. This change adds error checking for every call and makes it so
that any call to .doCommand() that gets an error code won't cause the
code to hang forever.

Change-Id: If714282b6642f278fb8137f652af1a012670253b
om/android/server/MountService.java
om/android/server/NativeDaemonConnector.java
om/android/server/NetworkManagementService.java
24a03083ca5cf33342debb9a230a591f098f7fd8 03-Jun-2010 David 'Digit' Turner <digit@google.com> PackageManagerService: always install native binaries from .apk

The previous implementation fails to work properly when the .apk
and installed versions of the binaries have the same size and date.

Change-Id: I063817a935da9ad459858d7eec8bb3d940607850
om/android/server/PackageManagerService.java
8c11e952305327183db9f7be719e4c94fde15a7c 13-Aug-2010 Irfan Sheriff <isheriff@google.com> DO NOT MERGE WifiLock extensions for high performance mode

Add extension to WifiLock to allow apps to operate
in high performance mode (high power & disable suspend
optimizations for battery consumption).

Bug: 2834260
Change-Id: I8b33d307f3d569bc92ba2139b9ed224ffc147547
om/android/server/WifiService.java
6394c0e52cf641d93f678fd052499aa952e3595d 16-Aug-2010 Winson Chung <winsonc@google.com> Adding callback and fix to RemoteViewsFactory on notifyDataSetChanged.
Also removing extra parameter in AppWidgetManager.notifyDataSetChanged.

Change-Id: Ic771fe045ae793a6dacf09f1230e7c1c4b59a13e
om/android/server/AppWidgetService.java
2dd2197805edb4d9547b143deef2226413218f4c 16-Aug-2010 Adam Cohen <adamcohen@google.com> -> Enabled partial updates to app widgets through AppWidgetManager.
Partial updates are not cached by the AppWidgetService.
-> Added the ability to insert commands with no parameters into
RemoteViews objects.
-> Added showNext() and showPrevious() methods to RemoteViews.
-> Made showNext() / showPrevious() of AdapterViewFlipper remotable.

Change-Id: Ic5491bb374424a54728c4ca92b94b1f00dfb87ff
om/android/server/AppWidgetService.java
f089b90d21dd83515b79e8d3ca57d36e8663651c 17-Aug-2010 Jean-Baptiste Queru <jbq@google.com> am 5085848d: am 209e6518: Merge "Make the LED colors when charging customizable by the vendor"

Merge commit '5085848ddbadaafa088ed85753156adc2e54554d'

* commit '5085848ddbadaafa088ed85753156adc2e54554d':
Make the LED colors when charging customizable by the vendor
5085848ddbadaafa088ed85753156adc2e54554d 17-Aug-2010 Jean-Baptiste Queru <jbq@google.com> am 209e6518: Merge "Make the LED colors when charging customizable by the vendor"

Merge commit '209e651805dd40ea87df7ff67f2755605be9308c' into gingerbread-plus-aosp

* commit '209e651805dd40ea87df7ff67f2755605be9308c':
Make the LED colors when charging customizable by the vendor
234325b832136dcdbed0c86fdcefa95fb04451a4 17-Aug-2010 Jean-Baptiste Queru <jbq@google.com> am c708e383: Merge "Revert "InputMethodService: Fix ignore case in showInputMethodPickerFromClient""

Merge commit 'c708e38356e9c381b640ef96db3b0b0fdd41d433' into gingerbread-plus-aosp

* commit 'c708e38356e9c381b640ef96db3b0b0fdd41d433':
Revert "InputMethodService: Fix ignore case in showInputMethodPickerFromClient"
209e651805dd40ea87df7ff67f2755605be9308c 17-Aug-2010 Jean-Baptiste Queru <jbq@google.com> Merge "Make the LED colors when charging customizable by the vendor"
64d078425a5a74c1f12ad1a270cf5d55af648798 17-Aug-2010 Mike Lockwood <lockwood@android.com> am 26434836: am b6ef8bad: Merge "GPS: Initialize XTRA support when GPS is enabled" into gingerbread

Merge commit '264348361e0660948a09fe516a535b7c60998def'

* commit '264348361e0660948a09fe516a535b7c60998def':
GPS: Initialize XTRA support when GPS is enabled
264348361e0660948a09fe516a535b7c60998def 17-Aug-2010 Mike Lockwood <lockwood@android.com> am b6ef8bad: Merge "GPS: Initialize XTRA support when GPS is enabled" into gingerbread

Merge commit 'b6ef8bad8a48fdc28770cf34d0c9efefc7fdd815' into gingerbread-plus-aosp

* commit 'b6ef8bad8a48fdc28770cf34d0c9efefc7fdd815':
GPS: Initialize XTRA support when GPS is enabled
1a1cd3a878b6389c097e34d114b60cf953edaeaa 17-Aug-2010 Mike Lockwood <lockwood@android.com> GPS: Initialize XTRA support when GPS is enabled

BUG: 2923148

Change-Id: If9a643e385c6c567b30f47d4caa35fa812a2ba43
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/location/GpsLocationProvider.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:
12af0e3eb39b88ede77e0eb8faf62c1a72dba413 16-Aug-2010 satok <satok@android.com> Revert "InputMethodService: Fix ignore case in showInputMethodPickerFromClient"

This reverts commit f2e67a5779d404b4791c6ab5b0d30dfb2c463514.

Open Source Project CL: https://review.source.android.com/#change,16419
This change unexpectedly started preventing users from changing Input-Method.

How to reproduce
1. Long press "?123" button in LatinIME
2. Select "Input method"
3. No window will open.

Change-Id: Ie0d4b58900a9b06aa9d43f9fa0bea5165294fa30
om/android/server/InputMethodManagerService.java
13984a253de7b32d803c2c216759cd7b730ee7fe 16-Aug-2010 satok <satok@google.com> Revert "InputMethodService: Fix ignore case in showInputMethodPickerFromClient"

This reverts commit f2e67a5779d404b4791c6ab5b0d30dfb2c463514.

bug: 2914259
open source change: https://review.source.android.com/#change,16419
Change-Id: I39df188a52ad9566aa523ce31f696886d4cdb980
om/android/server/InputMethodManagerService.java
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.
567722eee190f7cf88dc7ea95167db76d5514842 16-Aug-2010 Dianne Hackborn <hackbod@google.com> Merge "Fix problems with determining when to kill apps for wake usage." into gingerbread
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
om/android/server/am/ActivityManagerService.java
om/android/server/am/ProcessRecord.java
om/android/server/am/ServiceRecord.java
c7a98341b053bd8090accca151e8f3522f2dd126 14-Aug-2010 Wink Saville <wink@google.com> Add documentation to NetworkStateTracker and a small change to the API.

Also, removed some unused NetworkStateTracker event codes.

The API change was to add context and target to startMonitor, this makes
it easier to document what the actual interface contract is.

Change-Id: If9b52486c3c281fe4794bc78417c8b03888414b1
om/android/server/ConnectivityService.java
om/android/server/WifiService.java
993f85f3194000d0eb212f361431c9319548b144 14-Aug-2010 Robert Greenwalt <robdroid@android.com> am e300b8c1: Merge "DO NOT MERGE Always set/remove default routes." into gingerbread

Merge commit 'e300b8c10c306b575bbbec29d5572ba92a97785e' into gingerbread-plus-aosp

* commit 'e300b8c10c306b575bbbec29d5572ba92a97785e':
DO NOT MERGE Always set/remove default routes.
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:
e300b8c10c306b575bbbec29d5572ba92a97785e 14-Aug-2010 Robert Greenwalt <robdroid@android.com> Merge "DO NOT MERGE Always set/remove default routes." into gingerbread
b738fb9938631a2e4540f9a9308f49e6be5565b8 13-Aug-2010 Robert Greenwalt <robdroid@android.com> DO NOT MERGE Always set/remove default routes.

Must clean up default route if a default 3g connection is replaced
by a non-default (ie, mms) connection on teh same interface.

Also stop mucking with all connections dns and routes - do it only
for the connection that has changed.

bug:2865974
Change-Id: Ifdf49080fa0413a4d826813706c809975a562dfa
om/android/server/ConnectivityService.java
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
om/android/server/PowerManagerService.java
om/android/server/WindowManagerService.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/BatteryStatsService.java
om/android/server/am/ProcessRecord.java
om/android/server/am/ServiceRecord.java
c983960a926d07c44f7f01424fa37d4872b126da 12-Aug-2010 Irfan Sheriff <isheriff@google.com> Merge "Asynchronous API"
e04653cbd0e8303eba92088344312b827e6b0bab 09-Aug-2010 Irfan Sheriff <isheriff@google.com> Asynchronous API

Add asynchronous API for simplified connect, save
and remove.

Add a SUPPLICANT_CONFIG_CHANGED_ACTION broadcast to
notifiy a supplicant configuration change.

Change-Id: I69ae116246094de4a469cb2af5baf37e5ad4d6dd
om/android/server/WifiService.java
5caaf378d845c8e0453e10f89d7f5d6b339e474d 12-Aug-2010 Dianne Hackborn <hackbod@google.com> am 9185e26a: am fb86ce93: Add watermark support.

Merge commit '9185e26a8f06dd7013a528ffa2fe6b3f4aa58b7e'

* commit '9185e26a8f06dd7013a528ffa2fe6b3f4aa58b7e':
Add watermark support.
9185e26a8f06dd7013a528ffa2fe6b3f4aa58b7e 12-Aug-2010 Dianne Hackborn <hackbod@google.com> am fb86ce93: Add watermark support.

Merge commit 'fb86ce93079db4465a61489275c65bcf8ce4669e' into gingerbread-plus-aosp

* commit 'fb86ce93079db4465a61489275c65bcf8ce4669e':
Add watermark support.
fb86ce93079db4465a61489275c65bcf8ce4669e 12-Aug-2010 Dianne Hackborn <hackbod@google.com> Add watermark support.

Use these system properties:

ro.watermark.text
ro.watermark.height
ro.watermark.x
ro.watermark.y
ro.watermark.color
ro.watermark.shadow.radius
ro.watermark.shadow.dx
ro.watermark.shadow.dy
ro.watermark.shadow.color

If ro.watermark.text is not set, no watermark will be shown. All others
have reasonable defaults if they are not set.

Change-Id: Ibe4a01e6f1c576494ae2462e2688cdfaa8c62cb8
om/android/server/WindowManagerService.java
b219a83ff6278eeef981e6908abf871876a68699 12-Aug-2010 Jeff Brown <jeffbrown@google.com> am f66f8a58: am 95af0c14: Merge "Add support for the PointerLocation overlay." into gingerbread

Merge commit 'f66f8a58cc4412bd258e1d5b11cac17a617bdc58'

* commit 'f66f8a58cc4412bd258e1d5b11cac17a617bdc58':
Add support for the PointerLocation overlay.
f66f8a58cc4412bd258e1d5b11cac17a617bdc58 12-Aug-2010 Jeff Brown <jeffbrown@google.com> am 95af0c14: Merge "Add support for the PointerLocation overlay." into gingerbread

Merge commit '95af0c14a64ef264d2b362ded4ca2b5a169d1066' into gingerbread-plus-aosp

* commit '95af0c14a64ef264d2b362ded4ca2b5a169d1066':
Add support for the PointerLocation overlay.
95af0c14a64ef264d2b362ded4ca2b5a169d1066 12-Aug-2010 Jeff Brown <jeffbrown@google.com> Merge "Add support for the PointerLocation overlay." into gingerbread
ed6075943fcff12dca041bd38c3313da68faa73f 12-Aug-2010 Dianne Hackborn <hackbod@google.com> am 2d8b9fe0: am bd1c082c: Merge "New system property "sys.boot_completed" set to 1 when boot completed." into gingerbread

Merge commit '2d8b9fe0f9fe44c17ccc4d041f726df490548984'

* commit '2d8b9fe0f9fe44c17ccc4d041f726df490548984':
New system property "sys.boot_completed" set to 1 when boot completed.
2d8b9fe0f9fe44c17ccc4d041f726df490548984 12-Aug-2010 Dianne Hackborn <hackbod@google.com> am bd1c082c: Merge "New system property "sys.boot_completed" set to 1 when boot completed." into gingerbread

Merge commit 'bd1c082cf90d07e3ccb017b72e59b5ccad81dd07' into gingerbread-plus-aosp

* commit 'bd1c082cf90d07e3ccb017b72e59b5ccad81dd07':
New system property "sys.boot_completed" set to 1 when boot completed.
bd1c082cf90d07e3ccb017b72e59b5ccad81dd07 12-Aug-2010 Dianne Hackborn <hackbod@google.com> Merge "New system property "sys.boot_completed" set to 1 when boot completed." into gingerbread
a41ca77fabe1c7ad12ebb9b69b9e786c07d49fa0 11-Aug-2010 Jeff Brown <jeffbrown@google.com> Add support for the PointerLocation overlay.

This change involves adding a new method to IWindowManager,
monitorInput() that returns an InputChannel to receive a copy of all
input that is dispatched to applications. The caller must have
the READ_INPUT_STATE permission to make this request (similar to
other window manager methods such as getKeycodeState).

Change-Id: Icd14d810174a5b2928671ef16de73af88302aea0
om/android/server/InputManager.java
om/android/server/WindowManagerService.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
f4c454bac9cfd804603e65c5195f49a344adf82d 11-Aug-2010 Dianne Hackborn <hackbod@google.com> New system property "sys.boot_completed" set to 1 when boot completed.

Change-Id: Ie3fc0b1efdfb637b0c780064a71e8c1575e15ca3
om/android/server/am/ActivityManagerService.java
5320b326a48a473f58d0e99a81d75f277254b958 11-Aug-2010 Vairavan Srinivasan <vairav@codeaurora.org> am 79cb9a5d: am f2e67a57: InputMethodService: Fix ignore case in showInputMethodPickerFromClient

Merge commit '79cb9a5d2d455af22c56b8cee045962c61668422'

* commit '79cb9a5d2d455af22c56b8cee045962c61668422':
InputMethodService: Fix ignore case in showInputMethodPickerFromClient
dc15e5b90395f125670488cce138055c5880906f 11-Aug-2010 Jean-Baptiste Queru <jbq@google.com> am 44e43d1f: resolved conflicts for merge of efcac2ff to gingerbread-plus-aosp

Merge commit '44e43d1f6593ae912b3818692058196233cd4ac9'

* commit '44e43d1f6593ae912b3818692058196233cd4ac9':
InputMethodManagerService: Fix acore crash on boot up
79cb9a5d2d455af22c56b8cee045962c61668422 11-Aug-2010 Vairavan Srinivasan <vairav@codeaurora.org> am f2e67a57: InputMethodService: Fix ignore case in showInputMethodPickerFromClient

Merge commit 'f2e67a5779d404b4791c6ab5b0d30dfb2c463514' into gingerbread-plus-aosp

* commit 'f2e67a5779d404b4791c6ab5b0d30dfb2c463514':
InputMethodService: Fix ignore case in showInputMethodPickerFromClient
1ca94798ccd3a9b20f7824231cfb1f5fdf6bc719 30-Jul-2010 Jean-Baptiste Queru <jbq@google.com> Fix build: HistoryRecord is now ActivityRecord

Change-Id: I5f402e76fbff58ec59ea26b6765e7455801a6cd0
om/android/server/am/ActivityManagerService.java
44e43d1f6593ae912b3818692058196233cd4ac9 11-Aug-2010 Jean-Baptiste Queru <jbq@google.com> resolved conflicts for merge of efcac2ff to gingerbread-plus-aosp

Change-Id: Id6bd5ab1d6eda0372f2fd8eecb8f1d204066c4d5
f2e67a5779d404b4791c6ab5b0d30dfb2c463514 10-Aug-2010 Vairavan Srinivasan <vairav@codeaurora.org> InputMethodService: Fix ignore case in showInputMethodPickerFromClient

Fix to avoid posting MSG_SHOW_IM_PICKER in
showInputMethodPickerFromClient when ignoring the request from the
client.

Change-Id: Iff8a0809aea892b4493d5cffbb91adba2d74414e
om/android/server/InputMethodManagerService.java
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
om/android/server/MountService.java
efcac2ffba6262829093c4388c35f93b0ba0510e 10-Aug-2010 Srilakshmi Punuru <spunur@codeaurora.org> InputMethodManagerService: Fix acore crash on boot up

At bootup, while starting the service, if the default Input Method is not set,
it is trying to disable the icon even before the statusbar variable and the input
method icon are initialized. Hence, initializing them before building the input method list.

Change-Id: Ibde2ca3bd379d6620d84b75662ffad1a95a24fc6
om/android/server/InputMethodManagerService.java
f8d057320094e0ffb1621f8f9a3f3e9e7c4f5cb1 11-Aug-2010 Danica Chang <danicachang@google.com> fixed bug in stringToIpAddr, which was returning the ip address in reverse

Change-Id: Ia1872636fb928a4076fe18ba50c6d1ea85f16dd9
om/android/server/NetworkManagementService.java
4c2d70d4e7a51c52adfbf09431b4ecf73886008a 11-Aug-2010 Jean-Baptiste Queru <jbq@google.com> am a6c28cb0: am 2ffe74de: Merge "Fix isUsbMassStorageConnected() will always return true"

Merge commit 'a6c28cb014c32b9522c41385075c9db77296f6e7'

* commit 'a6c28cb014c32b9522c41385075c9db77296f6e7':
Fix isUsbMassStorageConnected() will always return true
a6c28cb014c32b9522c41385075c9db77296f6e7 11-Aug-2010 Jean-Baptiste Queru <jbq@google.com> am 2ffe74de: Merge "Fix isUsbMassStorageConnected() will always return true"

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

* commit '2ffe74ded51ee73ae1b412861f5d6ec58c835390':
Fix isUsbMassStorageConnected() will always return true
2ffe74ded51ee73ae1b412861f5d6ec58c835390 11-Aug-2010 Jean-Baptiste Queru <jbq@google.com> Merge "Fix isUsbMassStorageConnected() will always return true"
9f3c5da38214c9c26ec4c465813f21061e7ec446 11-Aug-2010 Irfan Sheriff <isheriff@google.com> Merge "Split WifiStateMachine from WifiStateTracker"
ffc29498f2983bccc1ed0185dee1eb533df19664 11-Aug-2010 Kenny Root <kroot@android.com> am a27484f0: am 6061af11: Merge "Sort the IME list before showing to user"

Merge commit 'a27484f068047453af6345f2c2c58fcc1db899a5'

* commit 'a27484f068047453af6345f2c2c58fcc1db899a5':
Sort the IME list before showing to user
a27484f068047453af6345f2c2c58fcc1db899a5 11-Aug-2010 Kenny Root <kroot@android.com> am 6061af11: Merge "Sort the IME list before showing to user"

Merge commit '6061af11cb2b59b6261d12f98b9e8dd395ea8ba7' into gingerbread-plus-aosp

* commit '6061af11cb2b59b6261d12f98b9e8dd395ea8ba7':
Sort the IME list before showing to user
6061af11cb2b59b6261d12f98b9e8dd395ea8ba7 11-Aug-2010 Kenny Root <kroot@android.com> Merge "Sort the IME list before showing to user"
0d25534fed91f636def5776ddc4605005bd7471c 28-Jul-2010 Irfan Sheriff <isheriff@google.com> Split WifiStateMachine from WifiStateTracker

Notifications handled in WifiService. WifiStateTracker tracks
state for connectivity service

Change-Id: Idb0cf494898d28712af0f95f9e60c5417cd4a053
om/android/server/ConnectivityService.java
om/android/server/WifiService.java
om/android/server/WifiWatchdogService.java
ebd2f0ae822e66f0e7682883698eff330f124c06 10-Aug-2010 Konstantin Lopyrev <klopyrev@google.com> am 8cdf4d92: am 6c6d57c6: Merge "Fix focus notification" into gingerbread

Merge commit '8cdf4d92ec93b7ba1ea6d7aaf3540283edfc6925'

* commit '8cdf4d92ec93b7ba1ea6d7aaf3540283edfc6925':
Fix focus notification
8cdf4d92ec93b7ba1ea6d7aaf3540283edfc6925 10-Aug-2010 Konstantin Lopyrev <klopyrev@google.com> am 6c6d57c6: Merge "Fix focus notification" into gingerbread

Merge commit '6c6d57c6a04eed154de1f7d9b544c2cb34a83dac' into gingerbread-plus-aosp

* commit '6c6d57c6a04eed154de1f7d9b544c2cb34a83dac':
Fix focus notification
fc71125104650c61ab5b04f4c943de761d58cba6 09-Aug-2010 Tony Wu <Tony_Wu@acer.com.tw> Fix isUsbMassStorageConnected() will always return true

After UMS mounted, isUsbMassStorageConnected() will always return true even if USB is disconnected.
It's because mUmsEnabling will always be ture.

Change-Id: Ib24b2359ea2684eb0a9faeb880f383e87630e6e1
om/android/server/MountService.java
5e7833a571967d1dbc8618ac96ad6a379bcdf66a 10-Aug-2010 Konstantin Lopyrev <klopyrev@google.com> Fix focus notification

Change-Id: I51d73100695ceb70620754a1897ace681a26d839
om/android/server/WindowManagerService.java
d07476aee51e289fe01bb2be66edc6f376411807 07-Aug-2010 Konstantin Lopyrev <klopyrev@google.com> am 443f9baf: am 3b0d3d51: Merge "Adding a way for Hierarchy Viewer to get the focused window." into gingerbread

Merge commit '443f9bafb02c6a5a7311c7069995e5a3bdd875f8'

* commit '443f9bafb02c6a5a7311c7069995e5a3bdd875f8':
Adding a way for Hierarchy Viewer to get the focused window.
443f9bafb02c6a5a7311c7069995e5a3bdd875f8 07-Aug-2010 Konstantin Lopyrev <klopyrev@google.com> am 3b0d3d51: Merge "Adding a way for Hierarchy Viewer to get the focused window." into gingerbread

Merge commit '3b0d3d51412aa90ac3e334f1e0c4b7adb0e124f8' into gingerbread-plus-aosp

* commit '3b0d3d51412aa90ac3e334f1e0c4b7adb0e124f8':
Adding a way for Hierarchy Viewer to get the focused window.
f9624764711f9806cd8a8a95c4a0613995bab04a 15-Jul-2010 Konstantin Lopyrev <klopyrev@google.com> Adding a way for Hierarchy Viewer to get the focused window.

Change-Id: I01e6ab4aa24d632fba586cb9e112d8d9df1a681a
om/android/server/ViewServer.java
om/android/server/WindowManagerService.java
7503b96e8e34914ef47cba32b261199490dacf67 06-Aug-2010 Mike Lockwood <lockwood@android.com> am 19be0bd0: am 5723dfe8: GPS: Don\'t set XTRA download pending flag at boot time.

Merge commit '19be0bd07e348fc405e1c46a698843695fc64e48'

* commit '19be0bd07e348fc405e1c46a698843695fc64e48':
GPS: Don't set XTRA download pending flag at boot time.
19be0bd07e348fc405e1c46a698843695fc64e48 06-Aug-2010 Mike Lockwood <lockwood@android.com> am 5723dfe8: GPS: Don\'t set XTRA download pending flag at boot time.

Merge commit '5723dfe8c87d0887b8926f43637ed300466890d2' into gingerbread-plus-aosp

* commit '5723dfe8c87d0887b8926f43637ed300466890d2':
GPS: Don't set XTRA download pending flag at boot time.
5723dfe8c87d0887b8926f43637ed300466890d2 06-Aug-2010 Mike Lockwood <lockwood@android.com> GPS: Don't set XTRA download pending flag at boot time.

XTRA data downloads are now strictly on demand from the GPS engine.
Also fix typo in handleDownloadXtraData()

Change-Id: Ied1a6e2e62134add4d965326aae909c86f834682
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/location/GpsLocationProvider.java
cffebf85be94f326d8bedc496bc734e55cb052ae 06-Aug-2010 Chung-yih Wang <cywang@google.com> am 6866ecb9: am 1d62c773: Fix the build

Merge commit '6866ecb92700a03b4285cb8427eedf579f9cf0ea'

* commit '6866ecb92700a03b4285cb8427eedf579f9cf0ea':
Fix the build
6866ecb92700a03b4285cb8427eedf579f9cf0ea 06-Aug-2010 Chung-yih Wang <cywang@google.com> am 1d62c773: Fix the build

Merge commit '1d62c7737c33f92e79f0a180b05969f52484e64c' into gingerbread-plus-aosp

* commit '1d62c7737c33f92e79f0a180b05969f52484e64c':
Fix the build
024d59601e8439e6884e50c22301e35eaf53120a 05-Aug-2010 Chung-yih Wang <cywang@google.com> resolved conflicts for merge of a06ad953 to master

Change-Id: I282525787d7475cc72b2dec10fbc2cf8c5727b82
1d62c7737c33f92e79f0a180b05969f52484e64c 06-Aug-2010 Chung-yih Wang <cywang@google.com> Fix the build

Change-Id: I410e2fd057b68e1b5b5b33ee10178a01d3c9b2fa
om/android/server/sip/SipService.java
a06ad953a2c44e81ea2d376ffefeae5ffb91de81 06-Aug-2010 Chung-yih Wang <cywang@google.com> am 7324489f: Merge "Add SIP service into system server." into gingerbread

Merge commit '7324489f18ee01586931f577f00567092cbf52df' into gingerbread-plus-aosp

* commit '7324489f18ee01586931f577f00567092cbf52df':
Add SIP service into system server.
2d94231ef91c732f649ff7af9520ee9eac441b16 04-Aug-2010 Chung-yih Wang <cywang@google.com> Add SIP service into system server.

Change-Id: Icc39e4e54768cfdcc1b20a3efe6206009b9a8d10
om/android/server/SystemServer.java
om/android/server/sip/SipHelper.java
om/android/server/sip/SipService.java
om/android/server/sip/SipSessionGroup.java
om/android/server/sip/SipSessionListenerProxy.java
9f53119b72e6da865bcd53173d3dacd1eba01aee 05-Aug-2010 Dianne Hackborn <hackbod@google.com> First pass at a new clipboard API.

ClipboardManager was in android.text(!!) so it needed to be moved
up to android.content to have access to the richer data types we
now need.

ClippedData is the data representation. Still needs a lot of
fleshing out to allow holding more than one data type at a time
and perhaps conversions between them. (MIME-oriented interrogation
and conversion will be done through ContentProvider, which needs
to grow an ability to report multiple MIME types and accept a
desired MIME type when a stream is being opened.)

Change-Id: Ifa51bedcd084a677813b255d171804e8496b0cb5
om/android/server/ClipboardService.java
om/android/server/am/ActivityManagerService.java
b5c22f723628c31f82fa4b77fdb4451cfadd58ec 05-Aug-2010 Daniel Sandler <dsandler@android.com> am 811d66f1: am 9b87770f: Merge "Fix crash when startForeground posts a broken Notification." into gingerbread

Merge commit '811d66f1496b64b02c117e8d992db99e9e6cdc8d'

* commit '811d66f1496b64b02c117e8d992db99e9e6cdc8d':
Fix crash when startForeground posts a broken Notification.
a2619da05674de0898eb7a03513c312e77c66b5d 05-Aug-2010 Kenny Root <kroot@google.com> am d6dc45c3: am 125816a2: Merge "Failure to move .dex in eng builds is not fatal" into gingerbread

Merge commit 'd6dc45c30c1704fca9ec33f51c7c4ec1bee515ea'

* commit 'd6dc45c30c1704fca9ec33f51c7c4ec1bee515ea':
Failure to move .dex in eng builds is not fatal
ce845d73015acea0a337dd06721f5c649f565242 05-Aug-2010 Kenny Root <kroot@google.com> am c5183aca: am c68bcc32: Merge "Only allow one movePackage operation in-flight" into gingerbread

Merge commit 'c5183acae55e08f4bfcb58aa122a200863748a63'

* commit 'c5183acae55e08f4bfcb58aa122a200863748a63':
Only allow one movePackage operation in-flight
208c425e842afed177801016c00c2c01bd8b44aa 05-Aug-2010 Robert Greenwalt <robdroid@android.com> Merge "Fix runtime reset (missing case break)."
0f0b11c8719495ce559b93366fe9cd79782d791c 04-Aug-2010 Daniel Sandler <dsandler@google.com> Basic support for notification payloads in the panel.

Line-item veto is there, but allows you to cancel some
notifications you probably shouldn't be canceling. (Should
hide the "X" in those cases.)

No preference given to "sticky" notifications, because
there's no such thing yet.

Notifications are now limited to 4 visible icons, per spec.
The implementation is a total hack for now.

Change-Id: Ibdf433ae94189117f983c510fe5e0cff0bf5c44c
om/android/server/NotificationManagerService.java
om/android/server/StatusBarManagerService.java
1a655771efff8285a230b7369b8275fcd102eeb5 05-Aug-2010 Daniel Sandler <dsandler@google.com> Fix runtime reset (missing case break).

Bug: 2895437
Change-Id: If061c02811144031833f75ad47ae313e2208701c
om/android/server/ConnectivityService.java
811d66f1496b64b02c117e8d992db99e9e6cdc8d 05-Aug-2010 Daniel Sandler <dsandler@android.com> am 9b87770f: Merge "Fix crash when startForeground posts a broken Notification." into gingerbread

Merge commit '9b87770f53c55a313a7fdc6f553265aabbde3446' into gingerbread-plus-aosp

* commit '9b87770f53c55a313a7fdc6f553265aabbde3446':
Fix crash when startForeground posts a broken Notification.
9b87770f53c55a313a7fdc6f553265aabbde3446 05-Aug-2010 Daniel Sandler <dsandler@android.com> Merge "Fix crash when startForeground posts a broken Notification." into gingerbread
69238c6a37ae43c748ad9cd7613f2209149ee7da 03-Aug-2010 Oscar Montemayor <oam@google.com> Device Policy Manager changes to enable Global Proxy.

Change-Id: I8489df7d28e4c5312e10d5cecc8e2a182413a034
om/android/server/DevicePolicyManagerService.java
d6dc45c30c1704fca9ec33f51c7c4ec1bee515ea 05-Aug-2010 Kenny Root <kroot@google.com> am 125816a2: Merge "Failure to move .dex in eng builds is not fatal" into gingerbread

Merge commit '125816a2a89343efdcccc5a74c2dd8a2608c54a0' into gingerbread-plus-aosp

* commit '125816a2a89343efdcccc5a74c2dd8a2608c54a0':
Failure to move .dex in eng builds is not fatal
85d21bc6e192c313d6a8415d6b431946d17aad1a 04-Aug-2010 Brad Fitzpatrick <bradfitz@android.com> am 9ee17b7d: am 866362fc: Merge "Usage Stats: don\'t block writing stats to disk." into gingerbread

Merge commit '9ee17b7dec7c76830b5add29f3b97039e178629a'

* commit '9ee17b7dec7c76830b5add29f3b97039e178629a':
Usage Stats: don't block writing stats to disk.
e2f7417529439d4ff3fd23fbe7fc1fcac4230385 04-Aug-2010 Kenny Root <kroot@google.com> Failure to move .dex in eng builds is not fatal

When moving between program locations or application names, the .dex
file is moved by installd. However, in engineering builds, the
applications are run through dexopt on-demand. If the .dex file fails to
move, we can ignore it because it's most likely because the .dex file
does not exist yet.

Change-Id: Id5c4dbfa33f19c976acd9f184ccd637752326629
om/android/server/PackageManagerService.java
2bf8028a23a2282f485a49d8ed037d28c5bd4a0d 04-Aug-2010 Konstantin Lopyrev <klopyrev@google.com> am b59b1209: am 321f7fad: Making sure that there is no notification when focus changes from something to nothing.

Merge commit 'b59b120929f10c1501d27ebab2f69180868e9776'

* commit 'b59b120929f10c1501d27ebab2f69180868e9776':
Making sure that there is no notification when focus changes from something to nothing.
c5183acae55e08f4bfcb58aa122a200863748a63 04-Aug-2010 Kenny Root <kroot@google.com> am c68bcc32: Merge "Only allow one movePackage operation in-flight" into gingerbread

Merge commit 'c68bcc320522abf856211e9aa00bba71ccaddacb' into gingerbread-plus-aosp

* commit 'c68bcc320522abf856211e9aa00bba71ccaddacb':
Only allow one movePackage operation in-flight
deb112674e9940a46c87fa4e3bae5d8d1ee84ef3 02-Aug-2010 Kenny Root <kroot@google.com> Only allow one movePackage operation in-flight

When a movePackage operation is requested, don't allow multiple requests
to pile up for one package. Once a move is completed, an observer will
receive the message and be allowed to call movePackage again.

Change-Id: Ie3842b6d96446febc0037bf9b8f1ca250735edc2
om/android/server/PackageManagerService.java
d0a2f86f357f346639a6648b4004266865c979b4 03-Aug-2010 Daniel Sandler <dsandler@android.com> Fix crash when startForeground posts a broken Notification.

The NotificationManager tries to crash the calling app, but
in the case of a service calling startForeground, the caller
is the ActivityManager, so system_server goes down.

NotificationManagerService#enqueueNotificationInternal is a
new internal-only method that accepts a UID/PID to use when
punishing bogus notifications (such as the one in
http://b/2869787).

Change-Id: I84a9854bae630bc90288cebb94f174809d5dac8c
om/android/server/NotificationManagerService.java
om/android/server/am/ServiceRecord.java
9ee17b7dec7c76830b5add29f3b97039e178629a 04-Aug-2010 Brad Fitzpatrick <bradfitz@android.com> am 866362fc: Merge "Usage Stats: don\'t block writing stats to disk." into gingerbread

Merge commit '866362fcb4db93584143c21934ea355cbf9e0757' into gingerbread-plus-aosp

* commit '866362fcb4db93584143c21934ea355cbf9e0757':
Usage Stats: don't block writing stats to disk.
389a916769aaf4b329839285d2f975fc23aadfb4 04-Aug-2010 Brad Fitzpatrick <bradfitz@android.com> Usage Stats: don't block writing stats to disk.

I was seeing lots of stack traces of people hung for noticeable
amounts of time when switching between activities.

e.g. On of the common gmail stacks showing this pause was:

android.os.StrictMode$StrictModeDiskWriteViolation: policy=391 violation=1
at android.os.StrictMode$AndroidBlockGuardPolicy.startHandlingViolationException(StrictMode.java:272)
at android.os.StrictMode$AndroidBlockGuardPolicy.onWriteToDisk(StrictMode.java:243)
at dalvik.system.BlockGuard$WrappedFileSystem.open(BlockGuard.java:238)
at java.io.FileOutputStream.<init>(FileOutputStream.java:97)
at java.io.FileOutputStream.<init>(FileOutputStream.java:69)
at com.android.server.am.UsageStatsService.writeStatsFLOCK(UsageStatsService.java:424)
at com.android.server.am.UsageStatsService.writeStatsToFile(UsageStatsService.java:398)
at com.android.server.am.UsageStatsService.notePauseComponent(UsageStatsService.java:539)
at com.android.server.am.ActivityManagerService.updateUsageStats(ActivityManagerService.java:1856)
at com.android.server.am.ActivityStack.startPausingLocked(ActivityStack.java:667)
at com.android.server.am.ActivityStack.finishActivityLocked(ActivityStack.java:2925)
at com.android.server.am.ActivityStack.requestFinishActivityLocked(ActivityStack.java:2836)
at com.android.server.am.ActivityManagerService.finishActivity(ActivityManagerService.java:2276)
at android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java:237)
at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:1415)
at android.os.Binder.execTransact(Binder.java:320)
at dalvik.system.NativeStart.run(Native Method)

at android.app.ActivityManagerProxy.finishActivity(ActivityManagerNative.java:1454)
at android.app.Activity.finish(Activity.java:3260)
at android.app.Activity.onBackPressed(Activity.java:1929)
at android.app.Activity.onKeyUp(Activity.java:1907)
at android.view.KeyEvent.dispatch(KeyEvent.java:1088)
at android.app.Activity.dispatchKeyEvent(Activity.java:2087)
at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchKeyEvent(PhoneWindow.java:1661)
at android.view.ViewRoot.deliverKeyEventToViewHierarchy(ViewRoot.java:2543)
at android.view.ViewRoot.handleFinishedEvent(ViewRoot.java:2516)
at android.view.ViewRoot.handleMessage(ViewRoot.java:1866)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:3609)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
at dalvik.system.NativeStart.main(Native Method)

Change-Id: Id49157bc635017292eaefddc5e22d73f5f4ab05e
om/android/server/am/UsageStatsService.java
0920ba5ef14379c773cb3df54fd91b25de2e51ab 03-Aug-2010 Casey Burkhardt <caseyburkhardt@google.com> Fixing font scale in WindowManagerService.
There was a bug that causes WindowManagerService to lose
the fontScale setting.

This fix submitted on behalf of Casey Burkhardt.

Change-Id: I3a76de15adf13badc5efca8d620d14c972a96ec4
om/android/server/WindowManagerService.java
b59b120929f10c1501d27ebab2f69180868e9776 03-Aug-2010 Konstantin Lopyrev <klopyrev@google.com> am 321f7fad: Making sure that there is no notification when focus changes from something to nothing.

Merge commit '321f7fad5c4a6ef27e944dc72e2ddbfb61af81de' into gingerbread-plus-aosp

* commit '321f7fad5c4a6ef27e944dc72e2ddbfb61af81de':
Making sure that there is no notification when focus changes from something to nothing.
321f7fad5c4a6ef27e944dc72e2ddbfb61af81de 03-Aug-2010 Konstantin Lopyrev <klopyrev@google.com> Making sure that there is no notification when focus changes from something to nothing.

Change-Id: Ib8b3bdd7f5dd999c933a017fe1b34263afe38e4a
om/android/server/WindowManagerService.java
d5d87b297cc0d5a1ee80b6950d4af7bc01c48b08 03-Aug-2010 Kenneth Andersson <kenneth.andersson@sonyericsson.com> Make the LED colors when charging customizable by the vendor

This commit will make the default LED colors in the NotificationManager
for battery charge customizable via overlays. The blink on/off
times are customizable in the same manner.

Change-Id: I57ce93656cc4080f5b99554df0ada44c5b31e959
om/android/server/NotificationManagerService.java
c76b8fa911bb2501ba55153d3ac25a5132daa3a9 24-Jul-2010 Robert Greenwalt <robdroid@android.com> Always try to set/remove default routes

Must clean up default route if a default 3g connection is replaced
by a non-default (ie, mms) connection on the same interface.

Also stop mucking with all connections dns and routes - do it only
for the connection that has changed.

bug:2865974
Change-Id: I589a0b2768b5e67b608fde181e7ddbd7fce4f491
om/android/server/ConnectivityService.java
1f4c67a4b1a051db7cd4afdf7a288141566251d3 03-Aug-2010 Christopher Tate <ctate@google.com> am 79f2d005: am a213ce02: Merge "Mute a common-case progress log about input injection" into gingerbread

Merge commit '79f2d00596b7e24a285443c8e9e77bece3f5e9e2'

* commit '79f2d00596b7e24a285443c8e9e77bece3f5e9e2':
Mute a common-case progress log about input injection
79f2d00596b7e24a285443c8e9e77bece3f5e9e2 03-Aug-2010 Christopher Tate <ctate@google.com> am a213ce02: Merge "Mute a common-case progress log about input injection" into gingerbread

Merge commit 'a213ce02ced6511edf02e29c45057f344bfe8636' into gingerbread-plus-aosp

* commit 'a213ce02ced6511edf02e29c45057f344bfe8636':
Mute a common-case progress log about input injection
09e85dc0270ac9ce660c17ee8290ff2d136b395b 02-Aug-2010 Christopher Tate <ctate@google.com> Mute a common-case progress log about input injection

Change-Id: I37c9f5cb239ab93fde3a42f71f2782d8734c53ce
om/android/server/WindowManagerService.java
98b557de3115dd738d28b937e448a2729a78b8d4 31-Jul-2010 Kenny Root <kroot@google.com> am 9117669c: am 8b61b68b: Merge "Only install after MCS success" into gingerbread

Merge commit '9117669c7de41799535dfa88e5d68a30d7674733'

* commit '9117669c7de41799535dfa88e5d68a30d7674733':
Only install after MCS success
9117669c7de41799535dfa88e5d68a30d7674733 31-Jul-2010 Kenny Root <kroot@google.com> am 8b61b68b: Merge "Only install after MCS success" into gingerbread

Merge commit '8b61b68b648985df37197de204398f608c4ad8b1' into gingerbread-plus-aosp

* commit '8b61b68b648985df37197de204398f608c4ad8b1':
Only install after MCS success
8b61b68b648985df37197de204398f608c4ad8b1 31-Jul-2010 Kenny Root <kroot@google.com> Merge "Only install after MCS success" into gingerbread
6f89fa07b4105b2e0cfac87db7ce5e7c9b9feead 31-Jul-2010 Kenny Root <kroot@google.com> Only install after MCS success

If MCS dies in the middle of a call during install, only proceed if the
call was successful. Otherwise wait for the max retries to be reached
and run the failure handling code there.

Change-Id: I00a27ea91046ea6521a3cff5e5ffe2c71b2b5bb4
om/android/server/PackageManagerService.java
86dde2d64c7eadc06a17aeb486c669ce4b53d13c 31-Jul-2010 Brad Fitzpatrick <bradfitz@android.com> am e2d33bbc: am d2165cfc: Merge "StrictMode: time violations in Binder calls" into gingerbread

Merge commit 'e2d33bbc496192d49c1e48baad446d8d0720d301'

* commit 'e2d33bbc496192d49c1e48baad446d8d0720d301':
StrictMode: time violations in Binder calls
e2d33bbc496192d49c1e48baad446d8d0720d301 31-Jul-2010 Brad Fitzpatrick <bradfitz@android.com> am d2165cfc: Merge "StrictMode: time violations in Binder calls" into gingerbread

Merge commit 'd2165cfce7911dac66d1195ed9123e79b086d22b' into gingerbread-plus-aosp

* commit 'd2165cfce7911dac66d1195ed9123e79b086d22b':
StrictMode: time violations in Binder calls
cb9ceb1029036363a81952d8ed5dfcbc83e6ff72 29-Jul-2010 Brad Fitzpatrick <bradfitz@android.com> StrictMode: time violations in Binder calls

Change-Id: I5796993dce98be722cf679b78acaf0c9de0ba461
om/android/server/am/ActivityManagerService.java
5ea89f77ead553dcf3fd95353ded1c8bacd3ffe1 30-Jul-2010 Jean-Baptiste Queru <jbq@google.com> Fix build: HistoryRecord is now ActivityRecord

Change-Id: Ide07d72abd02aeb7e56695f2e98ae7af1568ad1c
om/android/server/am/ActivityManagerService.java
5f5548e82d8112a17acd5980e621dc2848e982bb 30-Jul-2010 Mattias Larsson <mattias7.larsson@sonyericsson.com> am 85673d91: am a4fd0078: Clear preferred activities when home process crashes

Merge commit '85673d91681e6b5dede0c72f36ed3b81f5c4bb0d'

* commit '85673d91681e6b5dede0c72f36ed3b81f5c4bb0d':
Clear preferred activities when home process crashes
85673d91681e6b5dede0c72f36ed3b81f5c4bb0d 30-Jul-2010 Mattias Larsson <mattias7.larsson@sonyericsson.com> am a4fd0078: Clear preferred activities when home process crashes

Merge commit 'a4fd0078d138b433d2250a74833ee3cc6424143a' into gingerbread-plus-aosp

* commit 'a4fd0078d138b433d2250a74833ee3cc6424143a':
Clear preferred activities when home process crashes
a4fd0078d138b433d2250a74833ee3cc6424143a 22-Jun-2010 Mattias Larsson <mattias7.larsson@sonyericsson.com> Clear preferred activities when home process crashes

If the "default" Home application has been replaced with
a third-party app that is repeatedly crashing at start-up,
there is no way for the user to clear the preferred activities
or uninstall the bad application. If we clear the package
preferred activities when the application crashes, the user
will be prompted with the ResolverActivity at the next boot
and can try using the app again or choose to use another
Home application.

Change-Id: I8ba8e95e6752916d50515d96c117d3084fa980fd
om/android/server/am/ActivityManagerService.java
7f9fe5fdfab8dbfffb279ae1687361ca1d939bb6 30-Jul-2010 Andreas Huber <andih@google.com> Merge "Add a missing break; to restore old functionality and not turn off the screen after 30secs regardless of system preference." into froyo
154db5f6358284d917d515f05d4474606b4896b2 30-Jul-2010 Dianne Hackborn <hackbod@google.com> Maybe fix issue #2881233: reboot loop at boot on stingray

Change-Id: I4bd88fdd506d061146c441143d39b796a8df2f49
om/android/server/SystemServer.java
om/android/server/WindowManagerService.java
392edec1162e9d00bcb66b271f43908f75d42ace 30-Jul-2010 The Android Open Source Project <initial-contribution@android.com> Merge from open-source froyo

Change-Id: Ifa75fce9bd362b06ecb622219ef501e61e89fd76
3855980b4355017fa9a4988d7b150f3222075198 29-Jul-2010 Dianne Hackborn <hackbod@google.com> Fix a bug where we cleaned an apps external data when upgrading it. :(

Change-Id: I0eee1e7062d334c66d6daa3c43e11a292263aada
om/android/server/PackageManagerService.java
f0580888883db5be6654121e15455b76badc5b81 29-Jul-2010 Dianne Hackborn <hackbod@google.com> am 52075987: am 31b5d548: Merge "Fix a bug where we cleaned an apps external data when upgrading it. :(" into gingerbread

Merge commit '52075987c5726c95613f98571aac4c54e8319df4'

* commit '52075987c5726c95613f98571aac4c54e8319df4':
Fix a bug where we cleaned an apps external data when upgrading it. :(
52075987c5726c95613f98571aac4c54e8319df4 29-Jul-2010 Dianne Hackborn <hackbod@google.com> am 31b5d548: Merge "Fix a bug where we cleaned an apps external data when upgrading it. :(" into gingerbread

Merge commit '31b5d5485f7336639d252da7ba979234dbd2f1e1' into gingerbread-plus-aosp

* commit '31b5d5485f7336639d252da7ba979234dbd2f1e1':
Fix a bug where we cleaned an apps external data when upgrading it. :(
31b5d5485f7336639d252da7ba979234dbd2f1e1 29-Jul-2010 Dianne Hackborn <hackbod@google.com> Merge "Fix a bug where we cleaned an apps external data when upgrading it. :(" into gingerbread
fb1f103191f1cf424a79aaf1cd67d2d1900138e0 29-Jul-2010 Dianne Hackborn <hackbod@google.com> Fix a bug where we cleaned an apps external data when upgrading it. :(

Change-Id: I0eee1e7062d334c66d6daa3c43e11a292263aada
om/android/server/PackageManagerService.java
b0a57502c6f17edd1a63bee1463bc2f9fd78e4a4 29-Jul-2010 Jeff Brown <jeffbrown@google.com> am 6ec402b5: DO NOT MERGE: Fix input event injection ANRs on UI thread.

Merge commit '6ec402b5ae33c8927694d8522b4cc6a5c8ba974e' into gingerbread-plus-aosp

* commit '6ec402b5ae33c8927694d8522b4cc6a5c8ba974e':
DO NOT MERGE: Fix input event injection ANRs on UI thread.
5132b37018c2445c74d930013c4bdaf75b20cabf 29-Jul-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2859543: PhoneStatusBar appears at startup after wipe

Change-Id: I63c8fcd7152a99ba7f2c3d57a5ad9ceaf05529d7
om/android/server/SystemServer.java
om/android/server/WindowManagerService.java
6ec402b5ae33c8927694d8522b4cc6a5c8ba974e 29-Jul-2010 Jeff Brown <jeffbrown@google.com> DO NOT MERGE: Fix input event injection ANRs on UI thread.

Added a new asynchronous injection mode and made the existing
synchronization mechanism more robust.

Change-Id: Ia4aa04fd9b75ea2461a844c5b7933c831c1027e6
om/android/server/InputManager.java
om/android/server/WindowManagerService.java
bbda99d2086d79ac70b403cad38a47c35af84adf 29-Jul-2010 Jeff Brown <jeffbrown@google.com> Fixed StatusBar ANRs due to input event injection on UI thread.

Added a new asynchronous injection mode and made the existing
synchronization mechanism more robust.

Change-Id: I0464f70ff5cbd519dbb02686b2cb5d810fe7dbb2
om/android/server/InputManager.java
om/android/server/WindowManagerService.java
d04ed08a7c894d2cf54209b408ca673d4e7669a9 28-Jul-2010 Andreas Huber <andih@google.com> Add a missing break; to restore old functionality and not turn off the screen after 30secs regardless of system preference.

Change-Id: Ib71113a3bc5aa5fdc088ab4ac3627352499ad3fa
om/android/server/PowerManagerService.java
81cf7714783d5af31551ecac820eda1018c691c0 29-Jul-2010 Mike Lockwood <lockwood@android.com> am 7522cac5: am 8dc16c27: Fix typo in GPS mode logic.

Merge commit '7522cac555bd8010d6603cfe0ad831a6f1c1af4f'

* commit '7522cac555bd8010d6603cfe0ad831a6f1c1af4f':
Fix typo in GPS mode logic.
7522cac555bd8010d6603cfe0ad831a6f1c1af4f 29-Jul-2010 Mike Lockwood <lockwood@android.com> am 8dc16c27: Fix typo in GPS mode logic.

Merge commit '8dc16c27e23dae5bdf65fd2a2ced97c2f645a633' into gingerbread-plus-aosp

* commit '8dc16c27e23dae5bdf65fd2a2ced97c2f645a633':
Fix typo in GPS mode logic.
8dc16c27e23dae5bdf65fd2a2ced97c2f645a633 29-Jul-2010 Mike Lockwood <lockwood@android.com> Fix typo in GPS mode logic.

MS-Assisted support should not be required for using MS-Based mode.

Change-Id: Ia6ee219674de3e9cc13190b753f8776305a4fa90
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/location/GpsLocationProvider.java
03a545e5edcd99985d672fba40110d054397d02c 28-Jul-2010 Mike Lockwood <lockwood@android.com> Merge changes I00d6980a,I814221b4,Id88603a5

* changes:
CameraBrowser: Launch itself when a camera is attached to USB.
Send Intents when PTP compatible devices are connected/disconnected to USB
Give system server permission to access USB.
048391511ec862374a1a5fa14342adfb70aecf25 28-Jul-2010 Kenny Root <kroot@google.com> am bba1eede: am f369a9b5: Remove stale temporary ASEC containers

Merge commit 'bba1eede35b356a50dfe12692c2ff30cd5de152d'

* commit 'bba1eede35b356a50dfe12692c2ff30cd5de152d':
Remove stale temporary ASEC containers
a8ec0459abcd417bdcdd3dfc5ac77d1479143fc9 28-Jul-2010 Kenny Root <kroot@google.com> am 4b812738: am 56c02dc3: Merge "Fix getTempContainerId()" into gingerbread

Merge commit '4b812738c70be53e79ba8a6b9c93de14388d1311'

* commit '4b812738c70be53e79ba8a6b9c93de14388d1311':
Fix getTempContainerId()
bba1eede35b356a50dfe12692c2ff30cd5de152d 28-Jul-2010 Kenny Root <kroot@google.com> am f369a9b5: Remove stale temporary ASEC containers

Merge commit 'f369a9b5f7b2ae75875753caf90ec68fd9dbc144' into gingerbread-plus-aosp

* commit 'f369a9b5f7b2ae75875753caf90ec68fd9dbc144':
Remove stale temporary ASEC containers
4b812738c70be53e79ba8a6b9c93de14388d1311 28-Jul-2010 Kenny Root <kroot@google.com> am 56c02dc3: Merge "Fix getTempContainerId()" into gingerbread

Merge commit '56c02dc3d325bab8549ec34b9d6aa7c62ef742d0' into gingerbread-plus-aosp

* commit '56c02dc3d325bab8549ec34b9d6aa7c62ef742d0':
Fix getTempContainerId()
f369a9b5f7b2ae75875753caf90ec68fd9dbc144 28-Jul-2010 Kenny Root <kroot@google.com> Remove stale temporary ASEC containers

When a temporary container is created, its existence should be
ephemeral. However, if there is an error that causes system_server to be
killed during the process of creating a finalized ASEC, delete the stale
containers on the next start-up of system_server.

Change-Id: I7be8f94638a824295474c9a95960594848cb726b
om/android/server/PackageManagerService.java
56c02dc3d325bab8549ec34b9d6aa7c62ef742d0 28-Jul-2010 Kenny Root <kroot@google.com> Merge "Fix getTempContainerId()" into gingerbread
c78a8079740bfcad2e4439ccd74da52f6dc7fae2 28-Jul-2010 Kenny Root <kroot@google.com> Fix getTempContainerId()

getTempContainerId() would always return "smdl2tmp1" unless you had
MAX_CONTAINERS number of SD card SDKs, because of an array sort that put
all the zeros at the beginning.

Switch from trying to find a hole in the series of numbers to just
getting a number that's one larger than the previous. This reduces the
algorithmic complexity and the memory requirements.

Bug: 2832580
Change-Id: I32dc75ef5a6645f594ea47b032d7402e8860ebcd
om/android/server/PackageManagerService.java
2279971b6f66d60240b8c72a9d52644a3bcdf01b 28-Jul-2010 Jeff Brown <jeffbrown@google.com> am 9795a25d: am 6d0fec2d: Refactor input reader to support new device types more easily.

Merge commit '9795a25da060f9a7df87da8ab43fb1086d4322a5'

* commit '9795a25da060f9a7df87da8ab43fb1086d4322a5':
Refactor input reader to support new device types more easily.
9795a25da060f9a7df87da8ab43fb1086d4322a5 28-Jul-2010 Jeff Brown <jeffbrown@google.com> am 6d0fec2d: Refactor input reader to support new device types more easily.

Merge commit '6d0fec2de3601821f4f44eeb7d7deedebb2b7117' into gingerbread-plus-aosp

* commit '6d0fec2de3601821f4f44eeb7d7deedebb2b7117':
Refactor input reader to support new device types more easily.
6d0fec2de3601821f4f44eeb7d7deedebb2b7117 24-Jul-2010 Jeff Brown <jeffbrown@google.com> Refactor input reader to support new device types more easily.

Refactored the input reader so that each raw input protocol is handled
by a separate subclass of the new InputMapper type. This way, behaviors
pertaining to keyboard, trackballs, touchscreens, switches and other
devices are clearly distinguished for improved maintainability.

Added partial support for describing capabilities of input devices
(incomplete and untested for now, will be fleshed out in later commits).

Simplified EventHub interface somewhat since InputReader is taking over
more of the work.

Cleaned up some of the interactions between InputManager and
WindowManagerService related to reading input state.

Fixed swiping finger from screen edge into display area.

Added logging of device information to 'dumpsys window'.

Change-Id: I17faffc33e3aec3a0f33f0b37e81a70609378612
om/android/server/InputManager.java
om/android/server/WindowManagerService.java
17350886d03ace01de437eacee1e11e4e997f9cb 28-Jul-2010 Joe Onorato <joeo@google.com> am d3f6c1fa: am 0c39b6c6: Merge "Add a missing break; to restore old functionality and not turn off the screen after 30secs regardless of system preference." into gingerbread

Merge commit 'd3f6c1fa45d0b9aaf467159953ee4bea2ea89188'

* commit 'd3f6c1fa45d0b9aaf467159953ee4bea2ea89188':
Add a missing break; to restore old functionality and not turn off the screen after 30secs regardless of system preference.
ff0aff1914f617e9cb24944e9f9608a86992df72 28-Jul-2010 Mike Lockwood <lockwood@google.com> Merge "Add new system service CountryDetector"
d3f6c1fa45d0b9aaf467159953ee4bea2ea89188 28-Jul-2010 Joe Onorato <joeo@google.com> am 0c39b6c6: Merge "Add a missing break; to restore old functionality and not turn off the screen after 30secs regardless of system preference." into gingerbread

Merge commit '0c39b6c65bcb96ed6438c7d792a67708409d8f0f' into gingerbread-plus-aosp

* commit '0c39b6c65bcb96ed6438c7d792a67708409d8f0f':
Add a missing break; to restore old functionality and not turn off the screen after 30secs regardless of system preference.
0c39b6c65bcb96ed6438c7d792a67708409d8f0f 28-Jul-2010 Joe Onorato <joeo@google.com> Merge "Add a missing break; to restore old functionality and not turn off the screen after 30secs regardless of system preference." into gingerbread
d8aad91d8cdc64e00eec94a87b8dd3cc4d05c032 28-Jul-2010 Mike Lockwood <lockwood@android.com> am d5786b98: am c40d714c: Merge "Tethering: Use new ACTION_USB_STATE broadcast to monitor USB connected state" into gingerbread

Merge commit 'd5786b982c90632a4b35fd2d984c4edc4bbdfb0b'

* commit 'd5786b982c90632a4b35fd2d984c4edc4bbdfb0b':
Tethering: Use new ACTION_USB_STATE broadcast to monitor USB connected state
d5786b982c90632a4b35fd2d984c4edc4bbdfb0b 28-Jul-2010 Mike Lockwood <lockwood@android.com> am c40d714c: Merge "Tethering: Use new ACTION_USB_STATE broadcast to monitor USB connected state" into gingerbread

Merge commit 'c40d714ca520257bcb5ef2e03e83ea3273d3a0ec' into gingerbread-plus-aosp

* commit 'c40d714ca520257bcb5ef2e03e83ea3273d3a0ec':
Tethering: Use new ACTION_USB_STATE broadcast to monitor USB connected state
c40d714ca520257bcb5ef2e03e83ea3273d3a0ec 28-Jul-2010 Mike Lockwood <lockwood@android.com> Merge "Tethering: Use new ACTION_USB_STATE broadcast to monitor USB connected state" into gingerbread
a58a8751b4c2ce457f0082a0baaee61312d56195 13-Jul-2010 Bai Tao <michaelbai@google.com> Add new system service CountryDetector

a. The CountryDetector detects the country the user is in
in order of mobile network, location, sim card or locale.
It will be used by contact and contact provider.

b. All added APIs are hidden at this stage.

Change-Id: I4ba278571ffb6ab6ded0996d4f440a18534f8ed4
om/android/server/CountryDetectorService.java
om/android/server/SystemServer.java
om/android/server/location/ComprehensiveCountryDetector.java
om/android/server/location/CountryDetectorBase.java
om/android/server/location/LocationBasedCountryDetector.java
8b67752c82a26e21fe0977cb5e201acf2e22824d 28-Jul-2010 Brad Fitzpatrick <bradfitz@android.com> am 931ee98c: am b7304593: Merge "Cap the size of StrictMode buffering we do before calling DropBox." into gingerbread

Merge commit '931ee98cc05aedaf0a7cdf0b7ec503a8586359f5'

* commit '931ee98cc05aedaf0a7cdf0b7ec503a8586359f5':
Cap the size of StrictMode buffering we do before calling DropBox.
931ee98cc05aedaf0a7cdf0b7ec503a8586359f5 28-Jul-2010 Brad Fitzpatrick <bradfitz@android.com> am b7304593: Merge "Cap the size of StrictMode buffering we do before calling DropBox." into gingerbread

Merge commit 'b73045935cd8ec5d1a1c5e7a7ca800448b5789ea' into gingerbread-plus-aosp

* commit 'b73045935cd8ec5d1a1c5e7a7ca800448b5789ea':
Cap the size of StrictMode buffering we do before calling DropBox.
b73045935cd8ec5d1a1c5e7a7ca800448b5789ea 28-Jul-2010 Brad Fitzpatrick <bradfitz@android.com> Merge "Cap the size of StrictMode buffering we do before calling DropBox." into gingerbread
e73eb531259126728e1d6e6b71ca65da28aaf0e0 28-Jul-2010 Brad Fitzpatrick <bradfitz@android.com> Cap the size of StrictMode buffering we do before calling DropBox.

Change-Id: I46ea767bd0153c745e9b7eff945dacf5130f8807
om/android/server/am/ActivityManagerService.java
84047bc295af663274ced27def33164d6e020b5d 28-Jul-2010 Andreas Huber <andih@google.com> Add a missing break; to restore old functionality and not turn off the screen after 30secs regardless of system preference.

Change-Id: I6d160a1851e1f73bac3775d24cf70d46da59aa47
om/android/server/PowerManagerService.java
da39f0e87814c5acb8b6319a1877b93197fb910e 28-Jul-2010 Mike Lockwood <lockwood@android.com> Send Intents when PTP compatible devices are connected/disconnected to USB

Usb.ACTION_USB_CAMERA_ATTACHED and Usb.ACTION_USB_CAMERA_DETACHED are sent
when cameras are connected and disconnected.
The data field of the intent contains a Uri for the camera in the Mtp content provider.

Change-Id: I814221b4f0507b309997c71edb5a041e8efc54f7
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/UsbObserver.java
a2a1b911a31dd94ee75e94845f762b91f1db1368 07-Jun-2010 Irfan Sheriff <isheriff@google.com> Refactor WifiStateTracker

Implement WifiStateTracker as a HSM.

Change-Id: Ic12fd78f1f183b5c4dea8ad2301002267ceff0cb
om/android/server/ConnectivityService.java
om/android/server/WifiService.java
om/android/server/WifiWatchdogService.java
7d72e5ad7cebd3c2884793b940b1697dada6adc9 27-Jul-2010 Dan Egnor <egnor@google.com> am b9a8509a: am 499bee34: Merge "Remove a log message Jason doesn\'t like" into gingerbread

Merge commit 'b9a8509a6fd768f9be6de897e0a945197b64e7cf'

* commit 'b9a8509a6fd768f9be6de897e0a945197b64e7cf':
Remove a log message Jason doesn't like
b9a8509a6fd768f9be6de897e0a945197b64e7cf 27-Jul-2010 Dan Egnor <egnor@google.com> am 499bee34: Merge "Remove a log message Jason doesn\'t like" into gingerbread

Merge commit '499bee34c40945f898b7561ca7792ded5b974852' into gingerbread-plus-aosp

* commit '499bee34c40945f898b7561ca7792ded5b974852':
Remove a log message Jason doesn't like
499bee34c40945f898b7561ca7792ded5b974852 27-Jul-2010 Dan Egnor <egnor@google.com> Merge "Remove a log message Jason doesn't like" into gingerbread
d596d5115c0f568472daec4f094807bcd39d1f0f 27-Jul-2010 Joe Onorato <joeo@android.com> am 070433ed: am 76d9bf52: am 8c65ee2d: Merge "Add a method to let a properly permissioned app directly manipulate the user activity timeout. We should come up with a better API for this, but this is for a last minute power manager hack to turn off the screen sooner a

Merge commit '070433edee72de5fd9b93ddf055f74277f0deff4'

* commit '070433edee72de5fd9b93ddf055f74277f0deff4':
Add a method to let a properly permissioned app directly
070433edee72de5fd9b93ddf055f74277f0deff4 27-Jul-2010 Joe Onorato <joeo@android.com> am 76d9bf52: am 8c65ee2d: Merge "Add a method to let a properly permissioned app directly manipulate the user activity timeout. We should come up with a better API for this, but this is for a last minute power manager hack to turn off the screen sooner after a phone

Merge commit '76d9bf52f31b8f31f64348b736422861c90ab463' into gingerbread-plus-aosp

* commit '76d9bf52f31b8f31f64348b736422861c90ab463':
Add a method to let a properly permissioned app directly
76d9bf52f31b8f31f64348b736422861c90ab463 27-Jul-2010 Joe Onorato <joeo@android.com> am 8c65ee2d: Merge "Add a method to let a properly permissioned app directly manipulate the user activity timeout. We should come up with a better API for this, but this is for a last minute power manager hack to turn off the screen sooner after a phone call ends." i

Merge commit '8c65ee2d509db7dcb50ce4530d52eb5bdca3f917' into gingerbread

* commit '8c65ee2d509db7dcb50ce4530d52eb5bdca3f917':
Add a method to let a properly permissioned app directly
c13978afe3adf26dc32766dab300cc066f372618 27-Jul-2010 Dan Egnor <egnor@google.com> Remove a log message Jason doesn't like

Bug: 2856942
Change-Id: Ifc5cfc076bfed0918bb203ed9c82a42092ac3939
om/android/server/DropBoxManagerService.java
9fb0bb8292ab35983777f2decc3565377199f54c 26-Jul-2010 Dianne Hackborn <hackbod@google.com> am b6022e3d: am 14bfa398: Infrastructure to report running services to developer.

Merge commit 'b6022e3d500f248cf1abe94e8f1509e27ab25736'

* commit 'b6022e3d500f248cf1abe94e8f1509e27ab25736':
Infrastructure to report running services to developer.
4cca89c0425a93dd842d85a56205c017a418e1c1 26-Jul-2010 Dianne Hackborn <hackbod@google.com> am 3a2ff74f: am 46730fc7: Fix handling of application disabled state.

Merge commit '3a2ff74fa4c3f014555ec64fccc16e1b9f6d0111'

* commit '3a2ff74fa4c3f014555ec64fccc16e1b9f6d0111':
Fix handling of application disabled state.
b6022e3d500f248cf1abe94e8f1509e27ab25736 26-Jul-2010 Dianne Hackborn <hackbod@google.com> am 14bfa398: Infrastructure to report running services to developer.

Merge commit '14bfa398a4e8697ce5822861a684b7d1245e4a85' into gingerbread-plus-aosp

* commit '14bfa398a4e8697ce5822861a684b7d1245e4a85':
Infrastructure to report running services to developer.
3a2ff74fa4c3f014555ec64fccc16e1b9f6d0111 26-Jul-2010 Dianne Hackborn <hackbod@google.com> am 46730fc7: Fix handling of application disabled state.

Merge commit '46730fc78388607fd562044cbaaa26ffc9f65337' into gingerbread-plus-aosp

* commit '46730fc78388607fd562044cbaaa26ffc9f65337':
Fix handling of application disabled state.
14bfa398a4e8697ce5822861a684b7d1245e4a85 25-Jul-2010 Dianne Hackborn <hackbod@google.com> Infrastructure to report running services to developer.

Change-Id: Id1aae61323e7b8357c5fcc4bc641aaa57f3b6fde
om/android/server/am/ActivityManagerService.java
46730fc78388607fd562044cbaaa26ffc9f65337 25-Jul-2010 Dianne Hackborn <hackbod@google.com> Fix handling of application disabled state.

Change-Id: I617b76e89eeb75437b384b92f1205bb00b15bb70
om/android/server/PackageManagerService.java
7999bff154e96efb0bc9d2b89ec277f0f9ca0d2f 24-Jul-2010 Joe Onorato <joeo@android.com> Add a method to let a properly permissioned app directly
manipulate the user activity timeout. We should come up
with a better API for this, but this is for a last minute
power manager hack to turn off the screen sooner after a
phone call ends.

Change-Id: I76422f952e3e894c90b3311e7d889899c79cbbaa
om/android/server/PowerManagerService.java
cf06e2cfcdddc0ca086ba5b03aa26a69de949e69 23-Jul-2010 Mac Wang <Mac_Wang@acer.com.tw> Sort the IME list before showing to user

The original list is unsorted so the order is random to users.
For users who installed two or more Chinese IMEs, they may see
Chinese IME, English IME, Chinese IME. That's odd to users.
om/android/server/InputMethodManagerService.java
1b57b86dccf8037761d43bd87c3472ea092895a7 23-Jul-2010 Jean-Baptiste Queru <jbq@google.com> am 83a23630: am dd299046: Merge "frameworks/base: Implement Mutual exclusion in BroadcastReceiver"

Merge commit '83a236303438453740d5db41b0d017be9e5d56c1'

* commit '83a236303438453740d5db41b0d017be9e5d56c1':
frameworks/base: Implement Mutual exclusion in BroadcastReceiver
83a236303438453740d5db41b0d017be9e5d56c1 23-Jul-2010 Jean-Baptiste Queru <jbq@google.com> am dd299046: Merge "frameworks/base: Implement Mutual exclusion in BroadcastReceiver"

Merge commit 'dd29904638fb36cd5585560e83367d1f5565cc4c' into gingerbread-plus-aosp

* commit 'dd29904638fb36cd5585560e83367d1f5565cc4c':
frameworks/base: Implement Mutual exclusion in BroadcastReceiver
61f07659fe66216d39f1652c94693d1c68cd9e67 22-Jul-2010 Vairavan Srinivasan <vairav@codeaurora.org> frameworks/base: Implement Mutual exclusion in BroadcastReceiver

Invoke forceStopPackageLocked after acquiring a lock on
ActivityManagerService.this.

Change-Id: I75a85da03418a87c26b89360cebd3bccc6a25e46
om/android/server/am/ActivityManagerService.java
50558b956157dad980441bf4fb44931ce834e36b 22-Jul-2010 Mathias Agopian <mathias@google.com> resolved conflicts for merge of bc54e63c to master

Change-Id: I4245b15b4cda6963d735442c0c6a04a0477ff5e1
bc54e63c84a517f0dca88ba900ff2b56719f685b 22-Jul-2010 Mathias Agopian <mathias@google.com> am e4764521: Merge "new SensorService" into gingerbread

Merge commit 'e4764521353e898554931a557460fc49209fb0a9' into gingerbread-plus-aosp

* commit 'e4764521353e898554931a557460fc49209fb0a9':
new SensorService
57339e752c5ddc12c530e9440274b7dcd83b0288 21-Jul-2010 The Android Open Source Project <initial-contribution@android.com> am e9e04673: merge from open-source master

Merge commit 'e9e046733dc1ce9116a55aa3a675b91f2fc2b530'

* commit 'e9e046733dc1ce9116a55aa3a675b91f2fc2b530':
replaced deprecated setButton Methods
e9e046733dc1ce9116a55aa3a675b91f2fc2b530 21-Jul-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: I5d220f16c319e95547f133ee9bcbd0b5caabc597
13d33472b273088311dc8787e5c55c41d4632071 20-Jul-2010 Romain Guy <romainguy@android.com> Merge "replaced deprecated setButton Methods"
7664e20927b6a278e644b4cbef648d4095f46116 20-Jul-2010 Christian Mehlmauer <FireFart@gmail.com> replaced deprecated setButton Methods

Change-Id: I8361377cda18ae060a53b84702a2cf9b6f3e8365
om/android/server/am/ActivityManagerService.java
om/android/server/am/AppWaitingForDebuggerDialog.java
om/android/server/am/FactoryErrorDialog.java
1bf797857e025e8a71db86fb9e79765a767ec1eb 15-Jul-2010 Mathias Agopian <mathias@google.com> new SensorService

remove old sensor service and implement SensorManager
on top of the new (native) SensorManger API.

Change-Id: Iddb77d498755da3e11646473a44d651f12f40281
om/android/server/SensorService.java
om/android/server/SystemServer.java
2ef1cea44008d7afb5ed91cfbccc9df5288f83ca 20-Jul-2010 Mike Lockwood <lockwood@android.com> Merge "Add support for emulating external storage on devices with no SD card"
03559753ce0c6105b9357d6050aa4cddb9112ac2 20-Jul-2010 Mike Lockwood <lockwood@android.com> Add support for emulating external storage on devices with no SD card

Change-Id: I4feb03a4b8f4eae33e940477b355d3a4cac7fa86
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/MountService.java
26824b7a9e4f5fe5c3b7e0576320f58fd035b100 05-Mar-2010 Maciej Białka <maciej.bialka@sonyericsson.com> Remove the window from being a target for motion events when it is destroyed.

If window was destroyed when touch was pressed this destroyed
window was still considered as a target for motion events.
In some cases this could result with hang up inside event dispatch procedure.

Change-Id: I2ede17a40b14b2f509ab3d2560abb65292324f45
om/android/server/WindowManagerService.java
499cb9f516062b654952d282f211bee44c31a3c2 16-Jul-2010 Winson Chung <winsonc@google.com> Initial changes to allow collections in widgets.

Change-Id: I3cfa899bae88cd252912cecebc12e93c27a3b7c9
om/android/server/AppWidgetService.java
6181f39257ecd8a93b1c43ddef771734dfef8f49 19-Jul-2010 Adam Bliss <abliss@google.com> am 27ef0f73: am 9714d2c4: Merge "Don\'t throw an exception from isProviderEnabled and getLastKnownLocation" into gingerbread

Merge commit '27ef0f732c5a97ba88a699b7490045e5370cf51f'

* commit '27ef0f732c5a97ba88a699b7490045e5370cf51f':
Don't throw an exception from isProviderEnabled and getLastKnownLocation
27ef0f732c5a97ba88a699b7490045e5370cf51f 19-Jul-2010 Adam Bliss <abliss@google.com> am 9714d2c4: Merge "Don\'t throw an exception from isProviderEnabled and getLastKnownLocation" into gingerbread

Merge commit '9714d2c4d2a7563ce5ffdc1726461b24e9f1e599' into gingerbread-plus-aosp

* commit '9714d2c4d2a7563ce5ffdc1726461b24e9f1e599':
Don't throw an exception from isProviderEnabled and getLastKnownLocation
f4d207b1c2212d6e9adc3e7954a8d14c6b9abc51 17-Jul-2010 Mike Lockwood <lockwood@android.com> Don't throw an exception from isProviderEnabled and getLastKnownLocation

if the location provider does not exist. Instead use the same behavior
as if the provider were disabled in settings
(return false for isProviderEnabled and null from getLastKnownLocation).
This eliminates for a lot of exception handling around some simple
queries to the location manager.

BUG: 2841014

Change-Id: I4fbe0c088e915c90969e13083201dd3e7f4029cb
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/LocationManagerService.java
eb857f12d605659b385d168ef1ea7d4ba5193585 16-Jul-2010 Jeff Brown <jeffbrown@google.com> resolved conflicts for merge of f7adbe10 to master

Change-Id: I898a5e53b180adaee2337c0c0b9896c799d056e7
fb4e1e24a93c7e6bc0fcdb3f5cfadfbc19503cd8 16-Jul-2010 Kenny Root <kroot@google.com> resolved conflicts for merge of 181bb0ab to master

Change-Id: I2284e7c671d127da0d124fbabae8d887727fd5bf
f7adbe10c23ca86e70a6e3a8b1a90ebe23142d29 16-Jul-2010 Jeff Brown <jeffbrown@google.com> am eec69d29: Merge "Fix bug with phantom input windows." into gingerbread

Merge commit 'eec69d2923636b2aaa51df93bacc2b3bbb742736' into gingerbread-plus-aosp

* commit 'eec69d2923636b2aaa51df93bacc2b3bbb742736':
Fix bug with phantom input windows.
e33348ba54cd68d6936cffd4507037c14d4b10c2 16-Jul-2010 Jeff Brown <jeffbrown@google.com> Fix bug with phantom input windows.

Add dumpsys integration for the native input dispatcher.
Add some InputDevice API stubs.
Add an appendFormat helper method to String8 for printf style
string formatting mainly for debugging purposes.
Use generic ArrayList<WindowState> everywhere in WindowManagerService
to eliminate unnecessary casts all over.

Change-Id: I9d1e3bd90eb7222d10620200477f11b7bfd25e44
om/android/server/InputManager.java
om/android/server/WindowManagerService.java
b75fa30aaf03d9e425d150b452501e5df0621351 16-Jul-2010 Jeff Brown <jeffbrown@google.com> resolved conflicts for merge of aca672ba to master

Change-Id: I7ae11fca0acdbf513a4870226d0d3e3cafbe9a08
74446cef55e75aa6bf4627f4c128768a2cdc5b63 16-Jul-2010 Brad Fitzpatrick <bradfitz@android.com> am f96c2719: am 0c36c96f: Merge "StrictMode: batch drop box writes for system apps" into gingerbread

Merge commit 'f96c2719c3cb4878e899b6fe0753b4f4b8aea8b7'

* commit 'f96c2719c3cb4878e899b6fe0753b4f4b8aea8b7':
StrictMode: batch drop box writes for system apps
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
om/android/server/MountService.java
aca672ba2eea19420df16906851d56077a3fd3b2 16-Jul-2010 Jeff Brown <jeffbrown@google.com> am c5ed5910: Add support for new input sources.

Merge commit 'c5ed5910c9ef066cec6a13bbb404ec57b1e92637' into gingerbread-plus-aosp

* commit 'c5ed5910c9ef066cec6a13bbb404ec57b1e92637':
Add support for new input sources.
c5ed5910c9ef066cec6a13bbb404ec57b1e92637 15-Jul-2010 Jeff Brown <jeffbrown@google.com> Add support for new input sources.

Added several new coordinate values to MotionEvents to capture
touch major/minor area, tool major/minor area and orientation.

Renamed NDK input constants per convention.

Added InputDevice class in Java which will eventually provide
useful information about available input devices.

Added APIs for manufacturing new MotionEvent objects with multiple
pointers and all necessary coordinate data.

Fixed a bug in the input dispatcher where it could get stuck with
a pointer down forever.

Fixed a bug in the WindowManager where the input window list could
end up containing stale removed windows.

Fixed a bug in the WindowManager where the input channel was being
removed only after the final animation transition had taken place
which caused spurious WINDOW DIED log messages to be printed.

Change-Id: Ie55084da319b20aad29b28a0499b8dd98bb5da68
om/android/server/InputManager.java
om/android/server/WindowManagerService.java
f96c2719c3cb4878e899b6fe0753b4f4b8aea8b7 16-Jul-2010 Brad Fitzpatrick <bradfitz@android.com> am 0c36c96f: Merge "StrictMode: batch drop box writes for system apps" into gingerbread

Merge commit '0c36c96f2a5458ebd0a5a371c8d1515fcdccb002' into gingerbread-plus-aosp

* commit '0c36c96f2a5458ebd0a5a371c8d1515fcdccb002':
StrictMode: batch drop box writes for system apps
e80c4925468ce84b662eadba7a13435ff4f2eba8 15-Jul-2010 Robert Greenwalt <robdroid@android.com> Merge "Don't cast CONNECTING msgs to CONNECTED."
ad13b9807b3311b5375e7b8acba894528c9146a8 14-Jul-2010 Brad Fitzpatrick <bradfitz@android.com> StrictMode: batch drop box writes for system apps

Change-Id: Iab49c15ecccefea1d36d86271e1ceb37d79e9449
om/android/server/am/ActivityManagerService.java
74d99aabf254a4b736ab0da19dd0eec13013917e 14-Jul-2010 Robert Greenwalt <robdroid@android.com> Don't cast CONNECTING msgs to CONNECTED.

Fixed some logic in TelephonyRegistry so its notion of the state of our connection is
preserved, but it still sends out proper CONNECTING msg on secondary APNS (ie, bringing
up mms while the default connection was already up - it used to send out two CONNECTING
msgs instead of one CONNECTING and one CONNECTED).

Fixes mms while on mobile data.

bug:2840564
Change-Id: I69159aa0f471396680615ce6b9785620d844968f
om/android/server/TelephonyRegistry.java
738afc5c1b89f4bfdb4076c753b7db3a8432135f 15-Jul-2010 Konstantin Lopyrev <klopyrev@google.com> am 975ecddc: am 6e0f65fd: Adding focus change notification

Merge commit '975ecddc9e72b8217d36e653fb9deabb9fd5b859'

* commit '975ecddc9e72b8217d36e653fb9deabb9fd5b859':
Adding focus change notification
975ecddc9e72b8217d36e653fb9deabb9fd5b859 15-Jul-2010 Konstantin Lopyrev <klopyrev@google.com> am 6e0f65fd: Adding focus change notification

Merge commit '6e0f65fd9c8bea91d9143f77a85b6d9c097fb3f1' into gingerbread-plus-aosp

* commit '6e0f65fd9c8bea91d9143f77a85b6d9c097fb3f1':
Adding focus change notification
6e0f65fd9c8bea91d9143f77a85b6d9c097fb3f1 14-Jul-2010 Konstantin Lopyrev <klopyrev@google.com> Adding focus change notification

Change-Id: I49709c97aaf63bcd44695d99c61dbbee228416f4
om/android/server/ViewServer.java
om/android/server/WindowManagerService.java
26dd7b3bb381ba06ce3a7eb17205e54fdd7becfc 14-Jul-2010 Robert Greenwalt <robdroid@android.com> Merge "Pass network properties to ConnectivityService."
47f69fe2999e46004f2f2463b70d38de9ff7079a 16-Jun-2010 Robert Greenwalt <robdroid@android.com> Pass network properties to ConnectivityService.

Used as a bag to hold ipaddr, gateway, dns, proxy info.
addr's are InetAddresses for v4/v6 use. Cleaning up some old v4-only code

bug:2655015
Change-Id: I7ac886fe5c519e8bab42f49cd82a5189d9c9ab59
om/android/server/ConnectivityService.java
om/android/server/TelephonyRegistry.java
dd3e63c1d452925fe1596b405fa8b1dbe874fc67 13-Jul-2010 Konstantin Lopyrev <klopyrev@google.com> am 29227aaf: am c1ca7f8c: Merge "Making sure that the list of windows updates automatically in hierarchy viewer (View Server side)" into gingerbread

Merge commit '29227aafa06092a28995ac9611012f2060b6b34f'

* commit '29227aafa06092a28995ac9611012f2060b6b34f':
Making sure that the list of windows updates automatically in hierarchy viewer (View Server side)
29227aafa06092a28995ac9611012f2060b6b34f 13-Jul-2010 Konstantin Lopyrev <klopyrev@google.com> am c1ca7f8c: Merge "Making sure that the list of windows updates automatically in hierarchy viewer (View Server side)" into gingerbread

Merge commit 'c1ca7f8c537195b830695ca988945c9d1df0e0e4' into gingerbread-plus-aosp

* commit 'c1ca7f8c537195b830695ca988945c9d1df0e0e4':
Making sure that the list of windows updates automatically in hierarchy viewer (View Server side)
c1ca7f8c537195b830695ca988945c9d1df0e0e4 13-Jul-2010 Konstantin Lopyrev <klopyrev@google.com> Merge "Making sure that the list of windows updates automatically in hierarchy viewer (View Server side)" into gingerbread
09d7d7dbc3dbb1d10f2cc18dba7d33e40a098aed 13-Jul-2010 Andy McFadden <fadden@android.com> Merge "Allow "am" to initiate heap dumps."
dc30101ff86648c6665bf9d4579869f5badfc2f2 09-Jul-2010 Konstantin Lopyrev <klopyrev@google.com> Making sure that the list of windows updates automatically in hierarchy viewer (View Server side)

Change-Id: I0f49ee8b6950ad167bd224093150050e19fd1dd7
om/android/server/ViewServer.java
om/android/server/WindowManagerService.java
824c510752fd6a30cdba5ed7324cb80a5043ce26 10-Jul-2010 Andy McFadden <fadden@android.com> Allow "am" to initiate heap dumps.

This was mostly cloned from the "am profile" implementation. It's
intended to replace the old "kill -10" approach used by "runhat".

We could really use a native heap dump, so I pass a "managed"
flag through that indicates whether we want to dump the native or
managed heap. We don't currently have a native heap dump-to-file
function, so it currently just logs a warning.

(android.ddm.DdmHandleNativeHeap.getLeakInfo is a good start -- it
copies /proc/maps and then calls get_malloc_leak_info to get some
goodies. Needs some formatting to make it human-readable. I didn't
want to cram all that into this change.)

It would be useful if "am" didn't exit until the heap dump operation
completed, but I'm not sure how to do that.

Bug 2759474.

Change-Id: I46bc98067738d8c72ac0fc10002ca67bb4929271
om/android/server/am/ActivityManagerService.java
f27c6c100113dafdba7c4ee849a76d126079270f 12-Jul-2010 Kenny Root <kroot@google.com> am ceb8465e: am 87bb1857: Merge changes I2337051b,I19b426cb into gingerbread

Merge commit 'ceb8465e974ba5fa971ffe1b5b74e94a1bd53f97'

* commit 'ceb8465e974ba5fa971ffe1b5b74e94a1bd53f97':
Tweak ObbFile class
Allow things that can install packages to set Obb paths
ceb8465e974ba5fa971ffe1b5b74e94a1bd53f97 12-Jul-2010 Kenny Root <kroot@google.com> am 87bb1857: Merge changes I2337051b,I19b426cb into gingerbread

Merge commit '87bb18579a5eea2e24af78af8c0f54f5455ce8fd' into gingerbread-plus-aosp

* commit '87bb18579a5eea2e24af78af8c0f54f5455ce8fd':
Tweak ObbFile class
Allow things that can install packages to set Obb paths
d88390f5229688f96577d33594c0fd868c13cd68 12-Jul-2010 Tadashi G. Takaoka <takaoka@google.com> Fix that setInputMethod throw exception with wrong method id

Change-Id: I8dd9549bbdcba6fb590225f64c82cc9f498435ea
om/android/server/InputMethodManagerService.java
e059b2784fcc89c6cd43301cc6af89cf3b8101f7 12-Jul-2010 Kenny Root <kroot@google.com> Allow things that can install packages to set Obb paths

Change-Id: I19b426cb3de1a5c9285badf8aea59989568914b4
om/android/server/PackageManagerService.java
511d9ec363c5bb460e4695de56edc1b7785dc7bf 09-Jul-2010 Kenny Root <kroot@google.com> am 0a21801f: am a5402dab: Merge "OBB API for PackageManager" into gingerbread

Merge commit '0a21801f5fae22cd5e1b3e9f1c1405c744e24c9b'

* commit '0a21801f5fae22cd5e1b3e9f1c1405c744e24c9b':
OBB API for PackageManager
1a33274d28a3174b9062ae0dcce77bf1d68cd463 09-Jul-2010 Jeff Brown <jeffbrown@google.com> resolved conflicts for merge of 167449e5 to master

Change-Id: Ib448e69a726eb45b5c9099d2574e40b8345eee67
0a21801f5fae22cd5e1b3e9f1c1405c744e24c9b 08-Jul-2010 Kenny Root <kroot@google.com> am a5402dab: Merge "OBB API for PackageManager" into gingerbread

Merge commit 'a5402dabec84eabcdb9008dc343dd67de325bbac' into gingerbread-plus-aosp

* commit 'a5402dabec84eabcdb9008dc343dd67de325bbac':
OBB API for PackageManager
a5402dabec84eabcdb9008dc343dd67de325bbac 08-Jul-2010 Kenny Root <kroot@google.com> Merge "OBB API for PackageManager" into gingerbread
167449e5f810a49741133de375eea1006f7218c0 08-Jul-2010 Chris Tate <ctate@android.com> am b17f4dcf: Merge "More native input dispatch work." into gingerbread

Merge commit 'b17f4dcfb3edba25bd8c30e60449b9bbcd600a57' into gingerbread-plus-aosp

* commit 'b17f4dcfb3edba25bd8c30e60449b9bbcd600a57':
More native input dispatch work.
34bcebca707187393263183aa4dab32728763f2f 08-Jul-2010 Joe Onorato <joeo@android.com> Let the window manager place the rest of the windows on screen when the status bar is at the bottom.

Change-Id: I29c43beee047bb99695a34e6b202ff3f8400c8c2
om/android/server/WindowManagerService.java
93565c4b3265c16aee4a82d7556f811776c17db8 19-Jun-2010 Kenny Root <kroot@google.com> OBB API for PackageManager

Simple API for tracking .obb files associated with packages. Stores the
path in the PackageSettings. No verification of file content is done
now since the PackageManagerService can't read the SD card where these
files will likely live.

Change-Id: Ibeaf26ba0526b6d60f401137e58f46ee9faff39e
om/android/server/PackageManagerService.java
00fa7bdd69f0868fd17ea7c881c771d785b2fbbd 03-Jul-2010 Jeff Brown <jeffbrown@google.com> More native input dispatch work.

Removed old input dispatch code.
Refactored the policy callbacks.
Pushed a tiny bit of the power manager state down to native.
Fixed long press on MENU.
Made the virtual key detection and cancelation a bit more precise.

Change-Id: I5d8c1062f7ea0ab3b54c6fadb058c4d5f5a9e02e
om/android/server/InputDevice.java
om/android/server/InputManager.java
om/android/server/KeyInputQueue.java
om/android/server/PowerManagerService.java
om/android/server/WindowManagerService.java
8dfabd9c6ffc64a9f558610e98ae19fbe41940fb 01-Jul-2010 Christopher Tate <ctate@google.com> resolved conflicts for merge of d3233ae9 to master

Change-Id: I59ecf8f2d3bd253f51457c11ec15f022ac5fdeb6
d3233ae9027cd0459bdcb6f574ee1ffe02736109 01-Jul-2010 Christopher Tate <ctate@google.com> am 160edb36: Add ability to guard a thread against setting its own prio to bg

Merge commit '160edb3645f8b7012bab70ae6e6e8c4a5733082b' into gingerbread-plus-aosp

* commit '160edb3645f8b7012bab70ae6e6e8c4a5733082b':
Add ability to guard a thread against setting its own prio to bg
160edb3645f8b7012bab70ae6e6e8c4a5733082b 01-Jul-2010 Christopher Tate <ctate@google.com> Add ability to guard a thread against setting its own prio to bg

The guard is compiled out by default because it adds overhead to
android.os.Process.setPriority().

Change-Id: Ibb2a648c6349b381abb7ae62a358888b04fba871
om/android/server/SystemServer.java
om/android/server/WindowManagerService.java
om/android/server/am/ActivityManagerService.java
45886e606593708e342b6a546e45727036eabf7c 01-Jul-2010 Christopher Tate <ctate@google.com> am 705a2df9: am c8525edc: Merge "Remove memory monitoring from the system watchdog" into gingerbread

Merge commit '705a2df97c51c3e31ed36831a4302d705e0532b2'

* commit '705a2df97c51c3e31ed36831a4302d705e0532b2':
Remove memory monitoring from the system watchdog
705a2df97c51c3e31ed36831a4302d705e0532b2 01-Jul-2010 Christopher Tate <ctate@google.com> am c8525edc: Merge "Remove memory monitoring from the system watchdog" into gingerbread

Merge commit 'c8525edcba58cba7ce17ef72bc64fc3439943c08' into gingerbread-plus-aosp

* commit 'c8525edcba58cba7ce17ef72bc64fc3439943c08':
Remove memory monitoring from the system watchdog
c27181c7f3e11170ec82807cfa416f0a906ff574 30-Jun-2010 Christopher Tate <ctate@google.com> Remove memory monitoring from the system watchdog

This was originally written as an in-case-we-need-it facility, but was
never actually used in production. It also soaked up a surprising amount
of cpu on occasion, as well as doing sketchy things like demoting the
system_server's primary looper thread to the background cgroup at times.

Change-Id: I9a81a8d1e9caea9e0a1277d97785fe96add438d7
om/android/server/Watchdog.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/ProcessRecord.java
144e5eaf9732c1287c7577fd5363fcac8ab9a59d 29-Jun-2010 Mike Lockwood <lockwood@android.com> am f045ddba: am de6bd120: Merge "Notifications: Use new ACTION_USB_STATE broadcast to monitor USB connected state" into gingerbread

Merge commit 'f045ddbad94028399ef1caee08347a264cb3729a'

* commit 'f045ddbad94028399ef1caee08347a264cb3729a':
Notifications: Use new ACTION_USB_STATE broadcast to monitor USB connected state
1eb86d8b8d61f66b6ef211af9e902e8a84a5efd0 29-Jun-2010 Mike Lockwood <lockwood@android.com> am 9be487ce: am 606d591a: Merge "Add new Usb.ACTION_USB_STATE sticky broadcast for monitoring USB connect state" into gingerbread

Merge commit '9be487ce6be705d210d42f8cbe6468226eeb544e'

* commit '9be487ce6be705d210d42f8cbe6468226eeb544e':
Add new Usb.ACTION_USB_STATE sticky broadcast for monitoring USB connect state
f045ddbad94028399ef1caee08347a264cb3729a 29-Jun-2010 Mike Lockwood <lockwood@android.com> am de6bd120: Merge "Notifications: Use new ACTION_USB_STATE broadcast to monitor USB connected state" into gingerbread

Merge commit 'de6bd120c97bb7986a6bac3889288f77bca63288' into gingerbread-plus-aosp

* commit 'de6bd120c97bb7986a6bac3889288f77bca63288':
Notifications: Use new ACTION_USB_STATE broadcast to monitor USB connected state
9be487ce6be705d210d42f8cbe6468226eeb544e 29-Jun-2010 Mike Lockwood <lockwood@android.com> am 606d591a: Merge "Add new Usb.ACTION_USB_STATE sticky broadcast for monitoring USB connect state" into gingerbread

Merge commit '606d591afee24e31e3885a7330638893db1710f5' into gingerbread-plus-aosp

* commit '606d591afee24e31e3885a7330638893db1710f5':
Add new Usb.ACTION_USB_STATE sticky broadcast for monitoring USB connect state
de6bd120c97bb7986a6bac3889288f77bca63288 29-Jun-2010 Mike Lockwood <lockwood@android.com> Merge "Notifications: Use new ACTION_USB_STATE broadcast to monitor USB connected state" into gingerbread
606d591afee24e31e3885a7330638893db1710f5 29-Jun-2010 Mike Lockwood <lockwood@android.com> Merge "Add new Usb.ACTION_USB_STATE sticky broadcast for monitoring USB connect state" into gingerbread
f40e4928b9d8e1da4166c76dbd3f86a6bd2d3f72 29-Jun-2010 Chris Tate <ctate@android.com> am 96725326: am 31e0ffe8: Merge "Native input event dispatching." into gingerbread

Merge commit '96725326149687168937cf62f75364cf9cc3e96b'

* commit '96725326149687168937cf62f75364cf9cc3e96b':
Native input event dispatching.
96725326149687168937cf62f75364cf9cc3e96b 29-Jun-2010 Chris Tate <ctate@android.com> am 31e0ffe8: Merge "Native input event dispatching." into gingerbread

Merge commit '31e0ffe8444b70500cac319da084c4c45e62aca2' into gingerbread-plus-aosp

* commit '31e0ffe8444b70500cac319da084c4c45e62aca2':
Native input event dispatching.
349703effce5acc53ed96f7ed8556131f0c65e18 22-Jun-2010 Jeff Brown <jeffbrown@google.com> Native input event dispatching.

Target identification is now fully native.
Fixed a couple of minor issues related to input injection.
Native input enabled by default, can be disabled by setting
WindowManagerPolicy.ENABLE_NATIVE_INPUT_DISPATCH to false.

Change-Id: I7edf66ed3e987cc9306ad4743ac57a116af452ff
om/android/server/InputApplication.java
om/android/server/InputManager.java
om/android/server/InputTargetList.java
om/android/server/InputWindow.java
om/android/server/InputWindowList.java
om/android/server/WindowManagerService.java
d2db2a579440608453994b64eb5b425840f5307a 23-Jun-2010 Patrick Dubroy <dubroy@google.com> Add a new attribute to allow widgets to specify a preview image.

Change-Id: I0d79c85c6a2fc477af17eda05eabaa3151b0bef5
om/android/server/AppWidgetService.java
ac051ae7ac62532c78f820a0c7347ca36b119132 28-Jun-2010 Mike Lockwood <lockwood@android.com> Tethering: Use new ACTION_USB_STATE broadcast to monitor USB connected state

Replaces use of battery status, which will not work on devices that do not
charge over USB.

Change-Id: I1e123bb534d46b890461ddfdee24f81da5798756
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/connectivity/Tethering.java
924cc94caaab5e9ad0714e0877e871290316e2b1 28-Jun-2010 Robert Greenwalt <robdroid@android.com> Reduce Tethering Logging.

bug:2581886
Change-Id: Ib6243a413c22d80216d83c02dbc9ff4e3bb38db9
om/android/server/connectivity/Tethering.java
ff2544c6cb9919a9f591350380becdd3d1cbad2c 28-Jun-2010 Mike Lockwood <lockwood@android.com> Notifications: Use new ACTION_USB_STATE broadcast to monitor USB connected state

Replaces use of UMS notifications, which will not work on devices without
USB mass storage support.

Change-Id: I2ea7f4d2dead91418935e97e2f442f5e3fc5e6dc
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/NotificationManagerService.java
709981eeedc5c6d640fbb3ecc1ebdcd39d748802 28-Jun-2010 Mike Lockwood <lockwood@android.com> Add new Usb.ACTION_USB_STATE sticky broadcast for monitoring USB connect state

This can be used instead of ACTION_USB_CONNECTED and ACTION_USB_DISCONNECTED
by clients that need to be informed of both USB connect and disconnect events

Change-Id: Ic26927af2e775c2694d18775f9d574c97b095dfd
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/UsbObserver.java
30683b2ad0754cc834ccdc07829dbf5b46563b0b 26-Jun-2010 Irfan Sheriff <isheriff@google.com> am 53dca61f: am 9005e7f4: Merge "Add setWifiApConfiguration interface" into gingerbread

Merge commit '53dca61f26f4ff348418add60599213297acc899'

* commit '53dca61f26f4ff348418add60599213297acc899':
Add setWifiApConfiguration interface
53dca61f26f4ff348418add60599213297acc899 26-Jun-2010 Irfan Sheriff <isheriff@google.com> am 9005e7f4: Merge "Add setWifiApConfiguration interface" into gingerbread

Merge commit '9005e7f4297a3f04263e81cb61ba2703d5667b0a' into gingerbread-plus-aosp

* commit '9005e7f4297a3f04263e81cb61ba2703d5667b0a':
Add setWifiApConfiguration interface
9005e7f4297a3f04263e81cb61ba2703d5667b0a 26-Jun-2010 Irfan Sheriff <isheriff@google.com> Merge "Add setWifiApConfiguration interface" into gingerbread
1c686489b8aa31235cf7d76d3be5694a40bfbeb0 25-Jun-2010 Dianne Hackborn <hackbod@google.com> am 20b8dd3a: am 50dc3bca: Refactor ActivityManagerService activity stack.

Merge commit '20b8dd3a05ab9f7701631ebc9f81038f31949a9f'

* commit '20b8dd3a05ab9f7701631ebc9f81038f31949a9f':
Refactor ActivityManagerService activity stack.
20b8dd3a05ab9f7701631ebc9f81038f31949a9f 25-Jun-2010 Dianne Hackborn <hackbod@google.com> am 50dc3bca: Refactor ActivityManagerService activity stack.

Merge commit '50dc3bca5afbce911636b3ba15ee953bc203a9d6' into gingerbread-plus-aosp

* commit '50dc3bca5afbce911636b3ba15ee953bc203a9d6':
Refactor ActivityManagerService activity stack.
50dc3bca5afbce911636b3ba15ee953bc203a9d6 25-Jun-2010 Dianne Hackborn <hackbod@google.com> Refactor ActivityManagerService activity stack.

Introdude a new ActivityStack class that holds all of the
state and management of a stack of activities. Paves the way
for having multiple activity stacks, though at this point
there should be no change in functionality and the activity
manager is still assuming there is only one stack.

Change-Id: Iea4859a24c9269061043755ec58a615028d4183b
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityRecord.java
om/android/server/am/ActivityStack.java
om/android/server/am/PendingIntentRecord.java
17b232b5b59ab91ab543b87e849583678a000f9b 24-Jun-2010 Irfan Sheriff <isheriff@google.com> Add setWifiApConfiguration interface

Bug: 2538623
Change-Id: I779044173a2fa0e9b851ea92aeec5ca25eb9c86f
om/android/server/WifiService.java
8bb998d52c118d361390af89b14dd67a4563509a 25-Jun-2010 Dianne Hackborn <hackbod@google.com> am ea8eafad: am 2529a453: Merge "Make bad notifications crash their application." into gingerbread

Merge commit 'ea8eafad4f5438ec1291d45376959a996d36e15e'

* commit 'ea8eafad4f5438ec1291d45376959a996d36e15e':
Make bad notifications crash their application.
ea8eafad4f5438ec1291d45376959a996d36e15e 25-Jun-2010 Dianne Hackborn <hackbod@google.com> am 2529a453: Merge "Make bad notifications crash their application." into gingerbread

Merge commit '2529a45339b7e02d9d2b813358bcecd144a971ea' into gingerbread-plus-aosp

* commit '2529a45339b7e02d9d2b813358bcecd144a971ea':
Make bad notifications crash their application.
2529a45339b7e02d9d2b813358bcecd144a971ea 25-Jun-2010 Dianne Hackborn <hackbod@google.com> Merge "Make bad notifications crash their application." into gingerbread
9d39d0cb361c5d3bba04a6bacf299be2162a6e92 25-Jun-2010 Dianne Hackborn <hackbod@google.com> Make bad notifications crash their application.

Implement notification manager handling of bad notifications, to
call a new activity manager to have the owner's process crashed
(if there is one).

Change-Id: Ib15e8d0c598756f3b39c99cc2045c18e054daf6b
om/android/server/NotificationManagerService.java
om/android/server/StatusBarManagerService.java
om/android/server/am/ActivityManagerService.java
7acbc1f1e7778270d737b893581cfbb0e9d90e5c 25-Jun-2010 Dianne Hackborn <hackbod@google.com> am cac3126c: am 5340bffd: am 5827d3ea: Merge "Properly note the current active restore set\'s token" into froyo

Merge commit 'cac3126c6109854640266c4807e5aa8e6a87142f'

* commit 'cac3126c6109854640266c4807e5aa8e6a87142f':
Properly note the current active restore set's token
36e5f667bc889a7b1bc17f9a5bd44f33b2d47020 25-Jun-2010 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 2eb12a47 to master

Change-Id: I79eb9d9f083e51ec1b99145d81632683669e7a99
cac3126c6109854640266c4807e5aa8e6a87142f 25-Jun-2010 Dianne Hackborn <hackbod@google.com> am 5340bffd: am 5827d3ea: Merge "Properly note the current active restore set\'s token" into froyo

Merge commit '5340bffd8bb2599d15ee79cca3c62d2e7c7ea961' into gingerbread-plus-aosp

* commit '5340bffd8bb2599d15ee79cca3c62d2e7c7ea961':
Properly note the current active restore set's token
14694eb9aea11543524a5f081b932ba984d0b530 25-Jun-2010 Dianne Hackborn <hackbod@google.com> am 5827d3ea: Merge "Properly note the current active restore set\'s token" into froyo

Merge commit '5827d3eaf3c53d1dc3ab0d638d935c219a5515a6' into froyo-plus-aosp

* commit '5827d3eaf3c53d1dc3ab0d638d935c219a5515a6':
Properly note the current active restore set's token
5340bffd8bb2599d15ee79cca3c62d2e7c7ea961 25-Jun-2010 Dianne Hackborn <hackbod@google.com> am 5827d3ea: Merge "Properly note the current active restore set\'s token" into froyo

Merge commit '5827d3eaf3c53d1dc3ab0d638d935c219a5515a6' into gingerbread

* commit '5827d3eaf3c53d1dc3ab0d638d935c219a5515a6':
Properly note the current active restore set's token
2950555aac546cd95b7ae268b5851895e1289ec2 25-Jun-2010 Christopher Tate <ctate@google.com> Properly note the current active restore set's token

Bug: 2796780
Change-Id: Iad601ed96ae73cf34910a276350712e6af19bb4e
om/android/server/BackupManagerService.java
2eb12a47224f1617787c09824107ac6bc22f9b3e 25-Jun-2010 Dianne Hackborn <hackbod@google.com> am 01e4cfc4: Some ActivityThread/ActivityManager cleanup.

Merge commit '01e4cfc47d0a2c7e7ab383d2fb23224ec52c0301' into gingerbread-plus-aosp

* commit '01e4cfc47d0a2c7e7ab383d2fb23224ec52c0301':
Some ActivityThread/ActivityManager cleanup.
01e4cfc47d0a2c7e7ab383d2fb23224ec52c0301 25-Jun-2010 Dianne Hackborn <hackbod@google.com> Some ActivityThread/ActivityManager cleanup.

- Move PackageInfo out of ActivityThread, renaming to LoadedApk.
- Rename some of the other PacakgeInfo inner classes to better
represent what they are.
- Rename HistoryRecord to ActivityRecord.
- Introduce AppGlobals, to eventually let ActivityThread become
package scoped.

Change-Id: Ib714c54ceb3cdbb525dce3db9505f31042e88cf0
om/android/server/BackupManagerService.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityRecord.java
om/android/server/am/ActivityResult.java
om/android/server/am/AppNotRespondingDialog.java
om/android/server/am/ConnectionRecord.java
om/android/server/am/HistoryRecord.java
om/android/server/am/PendingIntentRecord.java
om/android/server/am/ProcessRecord.java
om/android/server/am/UriPermission.java
5eceb79a19f60236e5bec76fabacc0cfe2a212bb 24-Jun-2010 Dianne Hackborn <hackbod@google.com> am 82677b95: am e57c3a88: Merge "Add APIs for finding heavy-weight apps." into gingerbread

Merge commit '82677b9585968806800abff65c5b1529f509a313'

* commit '82677b9585968806800abff65c5b1529f509a313':
Add APIs for finding heavy-weight apps.
82677b9585968806800abff65c5b1529f509a313 24-Jun-2010 Dianne Hackborn <hackbod@google.com> am e57c3a88: Merge "Add APIs for finding heavy-weight apps." into gingerbread

Merge commit 'e57c3a88b99856d1e69fdf115e7c7954594b7385' into gingerbread-plus-aosp

* commit 'e57c3a88b99856d1e69fdf115e7c7954594b7385':
Add APIs for finding heavy-weight apps.
baf42c625c3ef4cb7b732956a97953efd93b23bc 24-Jun-2010 Dianne Hackborn <hackbod@google.com> Add APIs for finding heavy-weight apps.

Change-Id: I6c865cce404cac1a08eee056f963de5d276d5898
om/android/server/am/ActivityManagerService.java
57c798ade1a30c5587269519dd9f55b87c3b3be7 23-Jun-2010 Mike Lockwood <lockwood@android.com> Add a new UEventObserver subclass to broadcast an Intent whe USB state changes.

We now broadcast Usb.ACTION_USB_CONNECTED and Usb.ACTION_USB_DISCONNECTED
when USB is connected or disconnected.
The ACTION_USB_CONNECTED extras indicate the enabled/disabled state of
all USB functions.

Change-Id: I919fcd5aa8d640d051cec87053f474a9843ed545
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/SystemServer.java
om/android/server/UsbObserver.java
5da347dd2dc7de8828077057f4963b904018c5ec 24-Jun-2010 Mike Lockwood <lockwood@android.com> am 477def1d: Merge changes I11495d03,If5816721 into gingerbread

Merge commit '477def1d4216f82bdfe58525131db88b384fc5a5' into gingerbread-plus-aosp

* commit '477def1d4216f82bdfe58525131db88b384fc5a5':
Add a new UEventObserver subclass to broadcast an Intent whe USB state changes.
DO NOT MERGE Add new permission to allow access to USB devices
2423607a32d63a0c646b17758ebeb4dc1d0b791f 23-Jun-2010 Mike Lockwood <lockwood@android.com> Add a new UEventObserver subclass to broadcast an Intent whe USB state changes.

We now broadcast Usb.ACTION_USB_CONNECTED and Usb.ACTION_USB_DISCONNECTED
when USB is connected or disconnected.
The ACTION_USB_CONNECTED extras indicate the enabled/disabled state of
all USB functions.

Change-Id: I11495d039429dbe22bd738067296e39ae415befa
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/SystemServer.java
om/android/server/UsbObserver.java
5d8faa280a9d32ac86147ba17ad7c75db7f36af0 24-Jun-2010 Joe Onorato <joeo@android.com> am 2d8e2498: am 4ca092c7: Merge "Fix bug 2772728 with the suggested fix. I wasn\'t able to reproduce it though." into gingerbread

Merge commit '2d8e249854d134f87423646cc96d1cd9507a67b0'

* commit '2d8e249854d134f87423646cc96d1cd9507a67b0':
Fix bug 2772728 with the suggested fix. I wasn't able to reproduce it though.
2d8e249854d134f87423646cc96d1cd9507a67b0 24-Jun-2010 Joe Onorato <joeo@android.com> am 4ca092c7: Merge "Fix bug 2772728 with the suggested fix. I wasn\'t able to reproduce it though." into gingerbread

Merge commit '4ca092c7f101cbd95833a9ed8936e9e0485585ad' into gingerbread-plus-aosp

* commit '4ca092c7f101cbd95833a9ed8936e9e0485585ad':
Fix bug 2772728 with the suggested fix. I wasn't able to reproduce it though.
4ca092c7f101cbd95833a9ed8936e9e0485585ad 24-Jun-2010 Joe Onorato <joeo@android.com> Merge "Fix bug 2772728 with the suggested fix. I wasn't able to reproduce it though." into gingerbread
4ecdad302f6f775468b0c4d71afde7397c5b3c2a 23-Jun-2010 Daniel Sandler <dsandler@android.com> am c82b4e80: am 69a4817e: Immersive activity API.

Merge commit 'c82b4e80b8211851963929b33592bbc50358525b'

* commit 'c82b4e80b8211851963929b33592bbc50358525b':
Immersive activity API.
c82b4e80b8211851963929b33592bbc50358525b 23-Jun-2010 Daniel Sandler <dsandler@android.com> am 69a4817e: Immersive activity API.

Merge commit '69a4817e3e1e368e758ff8c238deb5ee26963c04' into gingerbread-plus-aosp

* commit '69a4817e3e1e368e758ff8c238deb5ee26963c04':
Immersive activity API.
69a4817e3e1e368e758ff8c238deb5ee26963c04 23-Jun-2010 Daniel Sandler <dsandler@android.com> Immersive activity API.

An Activity can declare itself to be "immersive" either by
setting android:immersive="true" in AndroidManifest or by
calling setImmersive(true).

Immersive activities "should" not be interrupted, for
example by Notifications with an associated
fullScreenIntent. (In the future we may even prevent any
non-system application from successfully calling
startActivity() if the foreground activity is immersive.)
Notifications with FLAG_HIGH_PRIORITY set will be shown to
the user in some less-obtrusive way if the frontmost
activity is immersive.

Change-Id: I8d0c25cc4e22371c27cbf2bb6372d2c95d57b2d7
om/android/server/am/ActivityManagerService.java
om/android/server/am/HistoryRecord.java
b09448e0a84a57bd15ea556f8bef27964128032a 23-Jun-2010 Mike Lockwood <lockwood@android.com> am dae19d7c: am aaf39f84: Merge "GPS: remove GpsEventThread from GpsLocationProvider" into gingerbread

Merge commit 'dae19d7c00455e500cc9731071557ea91f162a7d'

* commit 'dae19d7c00455e500cc9731071557ea91f162a7d':
GPS: remove GpsEventThread from GpsLocationProvider
e981c883d5ca99ccb97c317d824b9c288b613f67 23-Jun-2010 Jeff Brown <jeffbrown@google.com> am b1efc3f6: am 7fbdc84e: More native input event dispatching.

Merge commit 'b1efc3f68277a8c38c21e2d2e8ce05287118ecfe'

* commit 'b1efc3f68277a8c38c21e2d2e8ce05287118ecfe':
More native input event dispatching.
dae19d7c00455e500cc9731071557ea91f162a7d 22-Jun-2010 Mike Lockwood <lockwood@android.com> am aaf39f84: Merge "GPS: remove GpsEventThread from GpsLocationProvider" into gingerbread

Merge commit 'aaf39f84063b8fee51bcdb0731d68c328b6a3c3d' into gingerbread-plus-aosp

* commit 'aaf39f84063b8fee51bcdb0731d68c328b6a3c3d':
GPS: remove GpsEventThread from GpsLocationProvider
f602d362ba4bb3adbf1eb4e38a794fb14274293a 20-Jun-2010 Mike Lockwood <lockwood@android.com> GPS: remove GpsEventThread from GpsLocationProvider

Rather than polling for events from the native code in an event thread,
we now require the GPS HAL libraries to call our callbacks from a thread
that is registered with the JVM to call directly into Java.
This eliminates a thread from our code and removes one step in the chain
of message passing from the GPS to the Location Manager client.

Change-Id: I2745a157690310ba9a699a8369f54a7366c6b1ba
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/location/GpsLocationProvider.java
8a380d1bd01f105e3250cd985954677f53a90329 22-Jun-2010 Robert Greenwalt <robdroid@android.com> Merge "Don't modify a list while iterating."
a7212f555b9cc589135f16513e6d1e86fc532d8e 21-Jun-2010 Jean-Baptiste Queru <jbq@google.com> Merge "Recover a handful of commits that were reverted earlier"
cacb2cf72c2f6746b161638679ea963646efaba7 21-Jun-2010 Robert Greenwalt <robdroid@android.com> Merge "Reorder ThrottleService startup to avoid race."
b1efc3f68277a8c38c21e2d2e8ce05287118ecfe 21-Jun-2010 Jeff Brown <jeffbrown@google.com> am 7fbdc84e: More native input event dispatching.

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

* commit '7fbdc84e87dd3a0e196b9803bb04495d11e9cb8a':
More native input event dispatching.
7fbdc84e87dd3a0e196b9803bb04495d11e9cb8a 18-Jun-2010 Jeff Brown <jeffbrown@google.com> More native input event dispatching.

Added ANRs handling.
Added event injection.
Fixed a NPE ActivityManagerServer writing ANRs to the drop box.
Fixed HOME key interception.
Fixed trackball reporting.
Fixed pointer rotation in landscape mode.

Change-Id: I50340f559f22899ab924e220a78119ffc79469b7
om/android/server/InputManager.java
om/android/server/InputTargetList.java
om/android/server/WindowManagerService.java
3b9f0a33a110d01e587ffd5ec7708af68723ad4b 21-Jun-2010 Jean-Baptiste Queru <jbq@google.com> Recover a handful of commits that were reverted earlier
om/android/server/ProcessStats.java
1d15dd7d273cbc4e8485af7fb02bc0564c6c0a8a 21-Jun-2010 Robert Greenwalt <robdroid@android.com> Don't modify a list while iterating.

Remember who we want to remove instead. Fixes concurrent modification
exception.

bug:2778958
Change-Id: If8827955e6a716fe39cc31fe5a092c613a6786d4
om/android/server/TelephonyRegistry.java
6c9a30045b1e6b9ef5d756e0a9657576c546c9bd 21-Jun-2010 The Android Open Source Project <initial-contribution@android.com> merge from froyo-plus-aosp

Change-Id: I36dd4460cae6e3212d724e70ff1091cb791670cd
9e2b41ca20d634fd7c400102322ff67e96c9f0ab 21-Jun-2010 Brad Fitzpatrick <bradfitz@android.com> am 65ff03a1: am 04b243d0: Fix NPE during ANRs.

Merge commit '65ff03a1fc56cd272529d1423ddef8e383cad7c0'

* commit '65ff03a1fc56cd272529d1423ddef8e383cad7c0':
Fix NPE during ANRs.
04b243d0f5470cfaf67cce5534f9a9fb2e30855c 21-Jun-2010 Brad Fitzpatrick <bradfitz@android.com> Fix NPE during ANRs.

BUG=2780838

Change-Id: I0d5e9a2323130ca14d1f0df684c8abe4f4dad05a
om/android/server/am/ActivityManagerService.java
efd26c6b479eaaf9a0b2ab661d584060b180e26c 18-Jun-2010 Dianne Hackborn <hackbod@google.com> am 3f704e98: am 801700b1: am 57f4503e: Work on issue # 2778549: Idle FRF72 is awake 18 mins more than ERE27 in 13hr test

Merge commit '3f704e983e36c668a3a13690655ab809666dfc3e'

* commit '3f704e983e36c668a3a13690655ab809666dfc3e':
Work on issue # 2778549: Idle FRF72 is awake 18 mins more than ERE27 in 13hr test
801700b1a2b3b5d3cf4264b62d8a776996bda4ca 18-Jun-2010 Dianne Hackborn <hackbod@google.com> am 57f4503e: Work on issue # 2778549: Idle FRF72 is awake 18 mins more than ERE27 in 13hr test

Merge commit '57f4503e1a129d6a648f2378d36a060998a577a0' into gingerbread

* commit '57f4503e1a129d6a648f2378d36a060998a577a0':
Work on issue # 2778549: Idle FRF72 is awake 18 mins more than ERE27 in 13hr test
6be61854b10d0b47920a7d99ff8e94560dec3734 18-Jun-2010 Dianne Hackborn <hackbod@google.com> am 57f4503e: Work on issue # 2778549: Idle FRF72 is awake 18 mins more than ERE27 in 13hr test

Merge commit '57f4503e1a129d6a648f2378d36a060998a577a0' into froyo-plus-aosp

* commit '57f4503e1a129d6a648f2378d36a060998a577a0':
Work on issue # 2778549: Idle FRF72 is awake 18 mins more than ERE27 in 13hr test
57f4503e1a129d6a648f2378d36a060998a577a0 18-Jun-2010 Dianne Hackborn <hackbod@google.com> Work on issue # 2778549: Idle FRF72 is awake 18 mins more than ERE27 in 13hr test

Modify UIModeManager to not get location updates every thirty minutes.
Instead it gets one once a day, and requests a new update when airplane
mode is turned off or the time zone changes.

Change-Id: I8044c27b5cd77709e4b872e2e8edd352f23e4af1
om/android/server/UiModeManagerService.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
om/android/server/BatteryService.java
om/android/server/am/BatteryStatsService.java
c76c15e255b01412e5cda33b606d7672713b6665 16-Jun-2010 Robert Greenwalt <robdroid@android.com> Reorder ThrottleService startup to avoid race.

Don't start people reading settings until after the settings (ntp server settings)
are loaded.

bug:2608189
Change-Id: I7dfaa1e9418b98a141d17dc35d22ff42fcfa052f
om/android/server/ThrottleService.java
a8a8a42f8570bdbe66a09fc278564e7a549158da 16-Jun-2010 Joe Onorato <joeo@android.com> Fix bug 2772728 with the suggested fix. I wasn't able to reproduce it though.

Change-Id: Ic3e3a7c679a74b822a3567faeb353950af3cfbca
om/android/server/AppWidgetService.java
14f2ef4c9da27a3d58d65dc9f684c5f764ee279a 15-Jun-2010 Robert Greenwalt <robdroid@android.com> Move the net transition wakelock to ConnService.

When the default network goes down we lose the wake-on-incoming-data capability
until the new net is brought up and apps rebuild their connections. We fixed this
in Wifi, but it's a general connectivity issue, not a wifi issue so moving the
mechanism to connecitivty so other networks can use it.

bug:2734419
Change-Id: I39b5d825eb6b548bd9bb8f179b89254f4db53147
om/android/server/ConnectivityService.java
om/android/server/WifiService.java
3ff1a5928f2d5bdd911ac59f8064ba35114dc2ec 15-Jun-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: Ib9ec3f3b7418d064b643577156d7d16688b3048d
879becf57040d3785028eb34974cf93b0d85e861 15-Jun-2010 Jean-Baptiste Queru <jbq@google.com> Merge "Fix that InputDeviceReaderThread that got killed during startup"
9629d42c1966e56b75d7bdea909f9fb1a439ff67 15-Jun-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: I4d7b0ec9895d8b090e0cdf2efb6731358a5d087c
8942a31f133371fb165eefbcdd39c1974d5525b8 15-Jun-2010 Jean-Baptiste Queru <jbq@google.com> Merge "Replaced deprecated String Constructor"
4ed8e42c50d7b67b8d89c092e9cd49b9b1b0040a 15-Jun-2010 Brad Fitzpatrick <bradfitz@android.com> am 92dd85d0: am 742b282e: Merge "StrictMode: implement the log-to-DropBox option" into gingerbread

Merge commit '92dd85d02af60b001f1ae6919eeb11bcf38e64c8'

* commit '92dd85d02af60b001f1ae6919eeb11bcf38e64c8':
StrictMode: implement the log-to-DropBox option
143666f0ca28f0e3e6597e5025078f0449ca6abe 14-Jun-2010 Brad Fitzpatrick <bradfitz@android.com> StrictMode: implement the log-to-DropBox option

Change-Id: I51d12e264155078f953028241f8c5cbdc47262e8
om/android/server/am/ActivityManagerService.java
bde75706592c77379fb6546283e733abaca6fe04 28-May-2010 Sen Hu <senhu@google.com> wire up sampling profiler to dropbox

When system property "persist.sys.profiler_hz" > 0, SamplingProfilerService is
loaded to SystemServer. It creates a FileObserver, watching any new file in the snapshot
directory. When a snapshot is found, it is put in dropbox and deleted after that.

SamplingProfilerIntegration writes snapshots with headers. Headers are <name, value> pairs,
instantiated by caller.

Currently header format is (also in source comment):

Version: <version number of profiler>\n
Process: <process name>\n
Package: <package name, if exists>\n
Package-Version: <version number of the package, if exists>\n
Build: <fingerprint>\n
\n
<the actual snapshot content begins here...>

BUG=2732642

Change-Id: I2c1699f1728e603de13dbd38f9d8443cd3eecc06
om/android/server/SamplingProfilerService.java
om/android/server/SystemServer.java
8e03b7566c42621fda01186b66b019142eb84fbf 14-Jun-2010 Jeff Brown <jeffbrown@google.com> resolved conflicts for merge of 9e660c82 to master

Change-Id: Ic4bd85cbaa5b9a10dcb474a0dad46490bf967e43
7c8aa44f320f45e8417f0aba9ca67af6a67a5cf7 14-Jun-2010 Jeff Brown <jeffbrown@google.com> am 46b9ac0a: Native input dispatch rewrite work in progress.

Merge commit '46b9ac0ae2162309774a7478cd9d4e578747bfc2' into gingerbread

* commit '46b9ac0ae2162309774a7478cd9d4e578747bfc2':
Native input dispatch rewrite work in progress.
46b9ac0ae2162309774a7478cd9d4e578747bfc2 23-Apr-2010 Jeff Brown <jeffbrown@google.com> Native input dispatch rewrite work in progress.

The old dispatch mechanism has been left in place and continues to
be used by default for now. To enable native input dispatch,
edit the ENABLE_NATIVE_DISPATCH constant in WindowManagerPolicy.

Includes part of the new input event NDK API. Some details TBD.

To wire up input dispatch, as the ViewRoot adds a window to the
window session it receives an InputChannel object as an output
argument. The InputChannel encapsulates the file descriptors for a
shared memory region and two pipe end-points. The ViewRoot then
provides the InputChannel to the InputQueue. Behind the
scenes, InputQueue simply attaches handlers to the native PollLoop object
that underlies the MessageQueue. This way MessageQueue doesn't need
to know anything about input dispatch per-se, it just exposes (in native
code) a PollLoop that other components can use to monitor file descriptor
state changes.

There can be zero or more targets for any given input event. Each
input target is specified by its input channel and some parameters
including flags, an X/Y coordinate offset, and the dispatch timeout.
An input target can request either synchronous dispatch (for foreground apps)
or asynchronous dispatch (fire-and-forget for wallpapers and "outside"
targets). Currently, finding the appropriate input targets for an event
requires a call back into the WindowManagerServer from native code.
In the future this will be refactored to avoid most of these callbacks
except as required to handle pending focus transitions.

End-to-end event dispatch mostly works!

To do: event injection, rate limiting, ANRs, testing, optimization, etc.

Change-Id: I8c36b2b9e0a2d27392040ecda0f51b636456de25
om/android/server/InputManager.java
om/android/server/InputTargetList.java
om/android/server/KeyInputQueue.java
om/android/server/WindowManagerService.java
0c330e26e853e478bf1c3d63eae98a42a1c12bad 12-Jun-2010 Brad Fitzpatrick <bradfitz@android.com> am 11bd9d1e: am 94f14aec: Merge "More StrictMode work, handling violations in ActivityManagerService." into gingerbread

Merge commit '11bd9d1ec20ce3bbd3791b537faad429a1ca87e7'

* commit '11bd9d1ec20ce3bbd3791b537faad429a1ca87e7':
More StrictMode work, handling violations in ActivityManagerService.
46d42387464a651268648659e91d022566d4844c 11-Jun-2010 Brad Fitzpatrick <bradfitz@android.com> More StrictMode work, handling violations in ActivityManagerService.

Also starts to do duplicate-suppression.

Change-Id: I0502f6ab6c45fa319298de4874ecfe44b7829d21
om/android/server/am/ActivityManagerService.java
om/android/server/am/AppErrorDialog.java
om/android/server/am/StrictModeViolationDialog.java
835f6999b8ecab8aec1f7f5cdbcbd42955d4a51e 12-Jun-2010 Irfan Sheriff <isheriff@google.com> am a4fb8b3d: am c2bc66d4: Merge "Dont persist config on failure" into gingerbread

Merge commit 'a4fb8b3de37d57809665fa4113ebee9c8f2cc2fc'

* commit 'a4fb8b3de37d57809665fa4113ebee9c8f2cc2fc':
Dont persist config on failure
afadc8b4e15d94b6a4ac7dc8ad3cdcde45836f45 11-Jun-2010 Irfan Sheriff <isheriff@google.com> Dont persist config on failure

If soft AP bring up does not go through successfully,
dont persist the config. This has the benefit of recovering
from the case where things fail on "=" and "," for SSID since
the IOCTL parsing in driver on broadcom cannot handle it
at this time.

Change-Id: Iaa60fd05972db434500753dcb59092995dab07b1
om/android/server/WifiService.java
cf0a99910cf87b148fe3143686262a8371d2dbc1 11-Jun-2010 Dianne Hackborn <hackbod@google.com> am 4d4f265e: am 9f8cc518: Merge "Adjust activity manager process OOM adj." into kraken

Merge commit '4d4f265e6b6ccfc239150bd71aa2ce2b8de6237f'

* commit '4d4f265e6b6ccfc239150bd71aa2ce2b8de6237f':
Adjust activity manager process OOM adj.
32907cfb38bda2d3c052cf5139c5b592678fedbb 11-Jun-2010 Dianne Hackborn <hackbod@google.com> Adjust activity manager process OOM adj.

Modify OOM adj classes a bit, to take into account the new
heavy weight app type, and give "foreground services" their
own category to have a bettery chance to manager them when
things go wrong.

Also add some new code to battery stats to keep a history
of changes to the battery level.

Change-Id: I29f5ab6938777e1a7eafd7d8c38b5e564cc9f96a
om/android/server/am/ActivityManagerService.java
om/android/server/am/BatteryStatsService.java
20ea8d0f855294465a3a170653679b5d57b9f596 11-Jun-2010 Mike Lockwood <lockwood@android.com> am 799f0e50: am 4001120e: am f4a502a2: Merge "Don\'t adjust lights if screen or button brightness is changed when the screen is off." into froyo
b60c941811cc15ab34fcc2f038aba56f862659b8 11-Jun-2010 Brad Fitzpatrick <bradfitz@android.com> resolved conflicts for merge of f37cbe6b to master

Change-Id: I529b17e55b9668f900f685f92e9831e14a82db05
4001120e456e51dd498c6647460dd97d946dc816 11-Jun-2010 Mike Lockwood <lockwood@android.com> am f4a502a2: Merge "Don\'t adjust lights if screen or button brightness is changed when the screen is off." into froyo

Merge commit 'f4a502a235e9f9ea0bcd2d5ca4981dc6e1a619c4' into kraken

* commit 'f4a502a235e9f9ea0bcd2d5ca4981dc6e1a619c4':
Don't adjust lights if screen or button brightness is changed when the screen is off.
34502a84ebc11e3c8ab3dd0b8ecf1bf3282ab4b0 11-Jun-2010 Mike Lockwood <lockwood@android.com> am f4a502a2: Merge "Don\'t adjust lights if screen or button brightness is changed when the screen is off." into froyo

Merge commit 'f4a502a235e9f9ea0bcd2d5ca4981dc6e1a619c4' into froyo-plus-aosp

* commit 'f4a502a235e9f9ea0bcd2d5ca4981dc6e1a619c4':
Don't adjust lights if screen or button brightness is changed when the screen is off.
f4a502a235e9f9ea0bcd2d5ca4981dc6e1a619c4 11-Jun-2010 Mike Lockwood <lockwood@android.com> Merge "Don't adjust lights if screen or button brightness is changed when the screen is off." into froyo
438d0595121a7a2cdf19741e76e3c0e21a5c173d 10-Jun-2010 Brad Fitzpatrick <bradfitz@android.com> Introduce "StrictMode"

This is a new public API for developers to opt-in to strict rules
about what they're allowed to do on certain threads. (this is the
public face of the @hide dalvik.system.BlockGuard, added recently...)

In practice this will be used for developers to opt-in to declaring
that they don't want to be allowed to do various operations (such as
disk I/O or network operations) on their main UI threads. (these
operations are often accidental, or even when they are fast come with
a good chance of being slow or very slow in some cases....)

Implementation wise, this is just a thread-local integer that has a
bitmask of the things that aren't allowed, and more bits for saying
what the violation penalty is. The penalties, of which multiple can
be chosen, include:

* logging
* dropbox uploading for analysis/reporting
* annoying dialog
* full-on crashing

These are all only very roughly implemented at this point, but all
parts now minimally work end-to-end now, so this is a good checkpoint
commit before this gets too large.

Future CLs will polish all the above 4 penalties, including
checksumming of stacktraces and minimizing penalties for duplicate
violations.

Change-Id: Icbe61a2e950119519e7364030b10c3c28d243abe
om/android/server/am/ActivityManagerService.java
om/android/server/am/StrictModeViolationDialog.java
a876b851fa5d6f63c6356f67122ff53dff799b22 10-Jun-2010 Adam Powell <adamp@google.com> am 45c3f843: am 8f1bfb00: am 8f2ca788: Merge "Fix bug 2757693 - Multi-touch coordinates can jump when a finger goes down." into froyo
f1bb929bc5d24842a5d2fd6906cd9ca48a759f6f 10-Jun-2010 Adam Powell <adamp@google.com> am 8f2ca788: Merge "Fix bug 2757693 - Multi-touch coordinates can jump when a finger goes down." into froyo

Merge commit '8f2ca788f369892370477212cf9e7a67721a8c16' into froyo-plus-aosp

* commit '8f2ca788f369892370477212cf9e7a67721a8c16':
Fix bug 2757693 - Multi-touch coordinates can jump when a finger goes down.
8f1bfb001b522a370a65c8e4545183b7611f672b 10-Jun-2010 Adam Powell <adamp@google.com> am 8f2ca788: Merge "Fix bug 2757693 - Multi-touch coordinates can jump when a finger goes down." into froyo

Merge commit '8f2ca788f369892370477212cf9e7a67721a8c16' into kraken

* commit '8f2ca788f369892370477212cf9e7a67721a8c16':
Fix bug 2757693 - Multi-touch coordinates can jump when a finger goes down.
8f2ca788f369892370477212cf9e7a67721a8c16 10-Jun-2010 Adam Powell <adamp@google.com> Merge "Fix bug 2757693 - Multi-touch coordinates can jump when a finger goes down." into froyo
321e815893b8aaa36dd9381b62a9a2558ba8d8d8 10-Jun-2010 Nick Kralevich <nnk@google.com> am a2c6d5bf: do not merge: cherry-picked 929b4855b8208d36272769e8eeaa6cd2823b94c0 from master branch

Merge commit 'a2c6d5bf308181c019ade0aac6d25fe33dc3d76c' into froyo-plus-aosp

* commit 'a2c6d5bf308181c019ade0aac6d25fe33dc3d76c':
do not merge: cherry-picked 929b4855b8208d36272769e8eeaa6cd2823b94c0 from master branch
f527c715d7065d8cf6943c37dd5e721bd7a805cd 10-Jun-2010 Mike Lockwood <lockwood@android.com> Don't adjust lights if screen or button brightness is changed when the screen is off.

Change-Id: I798a240374c3a739e1f1eaf36fa9fdef8416f2a2
BUG: 2758292

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/PowerManagerService.java
d649c12815bcf944b2c97371f3f60716a42a1557 10-Jun-2010 Irfan Sheriff <isheriff@google.com> Make NetworkStateTracker an interface

As part of the WifiStateTracker cleanup, need
to have NetworkStateTracker as an interface.

Change-Id: I2ac48d7e4c7274ac4df40bc3b8591b182956a936
om/android/server/ConnectivityService.java
a2c6d5bf308181c019ade0aac6d25fe33dc3d76c 09-Jun-2010 Nick Kralevich <nnk@google.com> do not merge: cherry-picked 929b4855b8208d36272769e8eeaa6cd2823b94c0 from master branch

Change-Id: Ie20371234a531f65f523682a0d0c27394dc30afa
om/android/server/WifiWatchdogService.java
9396f6e0698541f6c9b71209ce9ece14cc2414a4 10-Jun-2010 Robert Greenwalt <robdroid@android.com> Merge "Clean up APN notifications."
5cd88cfd239bc61a4327e2a13747b4590890d838 10-Jun-2010 Adam Powell <adamp@google.com> Fix bug 2757693 - Multi-touch coordinates can jump when a finger goes down.

Change-Id: I26bd54cec739ca8d91d2c2b18b90134f20dbd907
om/android/server/InputDevice.java
02648a4b8422733ed401f07edf8e426318bb2f8d 18-May-2010 Robert Greenwalt <robdroid@android.com> Clean up APN notifications.

Add APNType info to notifications so you can tell what's happening. Now, even if a new APN
shares a connection with an already-connected-to- apn type, the new type will get all
the connecting and connected messages on connect and disconnecting/disconnected on disconnect
even though the shared connection remains connected.

Cleaning out the hacks MobileDataStateTracker needed to deal with the old situation.
bug:2226092

Change-Id: Iddd7421d6b91cda7c8405f9c3d5404ac04ef8e42
om/android/server/ConnectivityService.java
om/android/server/TelephonyRegistry.java
dfda2adc3dc32ca5d4a74c1caaa571bf77116c42 10-Jun-2010 Nick Kralevich <nnk@google.com> am 69b04a70: am 2feafeff: Merge "Fix a problem with leaking UDP sockets." into kraken
8a5f10b30dae663eb01372490df3497e8a2ad56a 10-Jun-2010 Joe Onorato <joeo@android.com> resolved conflicts for merge of f7b79151 to master

Change-Id: Ia4538f73d8bade9e6565835d484dcb650830feca
2feafeffb8c2a5e02cb7998194d129ab0f43f9b0 09-Jun-2010 Nick Kralevich <nnk@google.com> Merge "Fix a problem with leaking UDP sockets." into kraken
1d46191d88ee9262ea05b868d2db5b44ad85fa43 09-Jun-2010 Joe Onorato <joeo@android.com> am b5f9b4f1: am 302759c1: Merge changes I4a11f027,Ib2c4abf6,Id0c7ef9f,I839d7771 into kraken
75144ea38e79e3827e69a9f5b53a6fd3a74c4df5 07-Jun-2010 Joe Onorato <joeo@android.com> Move the status bar icon list, hopefully for the last time.

Change-Id: Ie495a41dac03e1fe5ddccefcbd2a0673090a6db1
om/android/server/StatusBarManagerService.java
f1f259165ffaa4095afbd50fea47ed091cbc14b3 07-Jun-2010 Joe Onorato <joeo@android.com> Call into the notification manager when the panel is revealed.

This lets it turn off the LED. However, it seems like somebody broke
the notification LEDs. GRRR.

Change-Id: I3f7066c2b2e1673dc0144a34cf59946351a647be
om/android/server/StatusBarManagerService.java
7a0f36bd93ad8a5b8cb3e1fe56dbdb43a0ad3a57 07-Jun-2010 Joe Onorato <joeo@android.com> Move status_bar_latest_event and LatestItemView into SystemUI.apk.

Then, now that StatusBarManagerService is the only thing in that package,
move it up to the regular services package. (I've been waiting for 4 years
to delete that package!)

Change-Id: If5faf44641319fd19e486d1f4e5bc1c6dfcff3ad
om/android/server/InputMethodManagerService.java
om/android/server/NotificationManagerService.java
om/android/server/StatusBarManagerService.java
om/android/server/SystemServer.java
om/android/server/status/LatestItemView.java
om/android/server/status/StatusBarManagerService.java
om/android/server/status/package.html
9e875fcb55dad6795e823207693c5ca877941d3e 07-Jun-2010 Joe Onorato <joeo@android.com> Start the status bar service based on a configuration option, instead of trampolining through
a braodcast receiver.

Change-Id: I6ae0740fea07350b80c35c0ee2d938e0364d773e
om/android/server/status/StatusBarManagerService.java
8bc6c5141974dbc36a6fe416853f558921be9f24 04-Jun-2010 Joe Onorato <joeo@android.com> Require the STATUS_BAR_SERVICE permission for something to be the status bar.

Change-Id: I57b2d296e0d0cef0d256ae6697fffc47188d14df
om/android/server/status/StatusBarManagerService.java
929b4855b8208d36272769e8eeaa6cd2823b94c0 09-Jun-2010 Nick Kralevich <nnk@google.com> Fix a problem with leaking UDP sockets.

When dealing with any kind of limited operating system resource,
we should ensure that we properly close everything that we
open, rather than relying on the system garbage collector.

Change-Id: Ic71f710eb85ac71a91b7a1215647c75010d37643
om/android/server/WifiWatchdogService.java
fb3a35e586c08c74a8f9a0c332c9e40753c095c5 09-Jun-2010 Jeff Hamilton <jham@android.com> Fix the build.

Change-Id: Ib633eb144277ec2598f25eac3a9cfe0f0184959e
om/android/server/SystemServer.java
35eef702b195a9546fbf9e0293641cf6eef025c5 09-Jun-2010 Jeff Hamilton <jham@android.com> Remove the unused demo data set stuff.

Change-Id: I81f7a8118876ee7cb6c356c63b0d0613d9777d4f
om/android/server/DemoDataSet.java
om/android/server/SystemServer.java
005847b03b2ebe3eb1a974a8a04ad51bca6636cd 04-Jun-2010 Joe Onorato <joeo@android.com> Handle errors inflating notifications (and their icons).

On an inflation error, the StatusBarService cleans up, removes / doesn't add
the views, and calls into the StatusBarManagerService, which tells the
NotificationManagerService to remove the notification.

That then calls all the way back into the StatusBarService, but I think being
extra careful is okay. Throughout the status bar, it's all keyed off of the
IBinder key, so if the app comes in with a good notification while we're
cleaning up, we won't lose the new notification or anything like that.

Change-Id: Iea78a637495a8b67810c214b951d5ddb93becacb
om/android/server/NotificationManagerService.java
om/android/server/status/StatusBarManagerService.java
bd73d01a9cafc1ee8cc91f9691b5234e2a59bb98 04-Jun-2010 Joe Onorato <joeo@android.com> Cap the number of notifications that a given package can post.

Right now the number is 50, just to prevent apps that have gone completely bonkers. I think the limit should be lower.

Change-Id: Ib2c4abf669c8b0250e5421b6d5aeb81aeb2f82ce
om/android/server/NotificationManagerService.java
fe4f3ae33c8da86585399b4167fd7987c8a16066 04-Jun-2010 Joe Onorato <joeo@android.com> Move the usb mass storage notification & activity into SystemUI.apk.

Also fix the notification to show properly when the runtime is restarted.

Change-Id: Id0c7ef9f9dc9c9df18428cbaa7db1703f085137e
om/android/server/status/StorageNotification.java
om/android/server/status/UsbStorageActivity.java
cd5529a9c72998a0b2e66ea41d3c9afca9c90552 09-Jun-2010 Jean-Baptiste Queru <jbq@google.com> Merge "Fix for deadlock between StatusBarService and NotificationManagerService"
c857740f242169f2ca7fd42f0d1268661b399ad6 05-Jun-2010 Konstantin Lopyrev <klopyrev@google.com> Adding support for minimum number of non letter characters.

Change-Id: If54cb7209d65eef826d474d7e0dbbef63d2f2b47
om/android/server/DevicePolicyManagerService.java
1a0ce1cc6f6bda7ef7345b20860bc0c8cd3d8451 09-Jun-2010 Jim Miller <jaggies@google.com> am db603bb5: am 3b68548d: am 75b6a6b9: Merge "Fix 2737842: Disable KeguardManager API if device policy is enabled" into froyo
3b68548da60ab3249fbc89b8e587e22485630f32 09-Jun-2010 Jim Miller <jaggies@google.com> am 75b6a6b9: Merge "Fix 2737842: Disable KeguardManager API if device policy is enabled" into froyo

Merge commit '75b6a6b972e6b18143fd629d3d9c824c442c5f4c' into kraken

* commit '75b6a6b972e6b18143fd629d3d9c824c442c5f4c':
Fix 2737842: Disable KeguardManager API if device policy is enabled
c19dade5a4cd1a9e1154c4fb20ac6d509f1d0bd5 09-Jun-2010 Jim Miller <jaggies@google.com> am 75b6a6b9: Merge "Fix 2737842: Disable KeguardManager API if device policy is enabled" into froyo

Merge commit '75b6a6b972e6b18143fd629d3d9c824c442c5f4c' into froyo-plus-aosp

* commit '75b6a6b972e6b18143fd629d3d9c824c442c5f4c':
Fix 2737842: Disable KeguardManager API if device policy is enabled
284b62e1b8c3419bfd02c6fea5ba0a68146c06f8 08-Jun-2010 Jim Miller <jaggies@google.com> Fix 2737842: Disable KeguardManager API if device policy is enabled

This change adds notification to find out when the device policy
has changed. When an admin adds or changes a policy, we get notified
and reset the state of keyguard to be enabled.

It also moves disabling keyguard into the TokenWatcher.acquired()
method to avoid disabling keyguard when a policy doesn't permit it.
This avoids reference counting issues in TokenWatcher and hence relieves
the ordering issue.

There is one remaining caveat. An application that uses KeyguardManager
to disable keyguard will need to disable keyguard again after any
policy change.

Tested:

Install and run app that disables keyguard with no admin. Result: keyguard is enabled/disabled as expected.
Enable admin and set quality = "something" after installing & running app. Result: keyguard is enabled.
Change admin password quality to "unspecified" and re-run app (per caveat). Result: keyguard is disabled.
Change admin password quality to "something" again. Result: keyguard is enabled.
Disable admin : Result: keyguard is enabled until app runs again (per caveat).

Added minor cosmetic changes after review.

Change-Id: I302f2b01446bf031f746b0f3e8b5fd7a6cc0e648
om/android/server/DevicePolicyManagerService.java
om/android/server/WindowManagerService.java
aed22d27bbeb4c5f1f5b8d6ff0c49cdf5c698985 08-Jun-2010 Jim Miller <jaggies@google.com> am a9a0a0b2: am 7d70358a: am bde25c20: Merge "Fix 2737842: disable keyguard API when device policy is enabled." into froyo
c2bce63b6687e2e13c0fadc16ced64b08866cd57 08-Jun-2010 Christopher Tate <ctate@google.com> am 40c20b06: am 8a7fa44f: am ac24d23c: Merge "Don\'t bring up Launcher until after boot complete" into froyo
e20a4a4fa8dc62262242abaae39d66341fb08bf4 08-Jun-2010 Dianne Hackborn <hackbod@google.com> am fe2c0864: am 0bc0a46a: am d1d9047d: Merge "Fix issue #2749322: addPackageToPreferred throws SecurityException" into froyo
687f2a07bf76863fba4a7dc1c92ae69cca049039 08-Jun-2010 Robert Greenwalt <robdroid@android.com> resolved conflicts for merge of ee09dc67 to master

Change-Id: I8b0b595580d9c6d44b84e636012705dc913fa6ac
c4e37ac0ea01e346ffa635a074222f6bc8671e14 08-Jun-2010 Jim Miller <jaggies@google.com> am bde25c20: Merge "Fix 2737842: disable keyguard API when device policy is enabled." into froyo

Merge commit 'bde25c207731783a62e3611586fe05cd35add0d9' into froyo-plus-aosp

* commit 'bde25c207731783a62e3611586fe05cd35add0d9':
Fix 2737842: disable keyguard API when device policy is enabled.
7d70358a039426ca2da53cd3330638e2b12ca92e 08-Jun-2010 Jim Miller <jaggies@google.com> am bde25c20: Merge "Fix 2737842: disable keyguard API when device policy is enabled." into froyo

Merge commit 'bde25c207731783a62e3611586fe05cd35add0d9' into kraken

* commit 'bde25c207731783a62e3611586fe05cd35add0d9':
Fix 2737842: disable keyguard API when device policy is enabled.
bde25c207731783a62e3611586fe05cd35add0d9 08-Jun-2010 Jim Miller <jaggies@google.com> Merge "Fix 2737842: disable keyguard API when device policy is enabled." into froyo
d6b5705e188e55a3b9dbb07954b16564b1a31b9f 08-Jun-2010 Jim Miller <jaggies@google.com> Fix 2737842: disable keyguard API when device policy is enabled.

This fix disables KeyguardManager's enable/disable API when any
device policy admin requests a policy that enforces a password.

Change-Id: Idb1da16b14ed8963142f7b1f62d2b060d84ffa65
om/android/server/WindowManagerService.java
d5f401ba51d9f200cd25ee58eec99134576d78d9 08-Jun-2010 Christopher Tate <ctate@google.com> am ac24d23c: Merge "Don\'t bring up Launcher until after boot complete" into froyo

Merge commit 'ac24d23cd4a96f38b4e9cb0318a7c298794b9b6a' into froyo-plus-aosp

* commit 'ac24d23cd4a96f38b4e9cb0318a7c298794b9b6a':
Don't bring up Launcher until after boot complete
8a7fa44fdc4163083703cf1127839bcf35decb9f 08-Jun-2010 Christopher Tate <ctate@google.com> am ac24d23c: Merge "Don\'t bring up Launcher until after boot complete" into froyo

Merge commit 'ac24d23cd4a96f38b4e9cb0318a7c298794b9b6a' into kraken

* commit 'ac24d23cd4a96f38b4e9cb0318a7c298794b9b6a':
Don't bring up Launcher until after boot complete
ac24d23cd4a96f38b4e9cb0318a7c298794b9b6a 08-Jun-2010 Christopher Tate <ctate@google.com> Merge "Don't bring up Launcher until after boot complete" into froyo
04c0af8f5553ee9cbba8cac80067934066835c1f 08-Jun-2010 Christopher Tate <ctate@google.com> Don't bring up Launcher until after boot complete

The preboot upgrade handling was bringing up the acore process with a default
application object, then the normal "start the HOME app" code was bringing up
Launcher2 [hosted in acore] in anticipation of boot completion... but then it
saw that the host process was alive and continued with Launcher2's init.
Launcher2 depends on a custom application object, however, so it crashed
immediately.

This change ensures that the HOME app is not actually initted at that level
until after boot has completed, at which point its proper application class
can be instantiated.

Fixes bug #2732250

Change-Id: I1a15384e2c0d50e14300df0c0db236bd7b1a187c
om/android/server/am/ActivityManagerService.java
04cadabd953cf04bdca5f48d3363288bb0081c5e 08-Jun-2010 Dianne Hackborn <hackbod@google.com> am d1d9047d: Merge "Fix issue #2749322: addPackageToPreferred throws SecurityException" into froyo

Merge commit 'd1d9047d5c34fb05be08099fa8cd73e4301ee0ff' into froyo-plus-aosp

* commit 'd1d9047d5c34fb05be08099fa8cd73e4301ee0ff':
Fix issue #2749322: addPackageToPreferred throws SecurityException
0bc0a46ae84de11265ac7d1dbea5e3b28e90936a 08-Jun-2010 Dianne Hackborn <hackbod@google.com> am d1d9047d: Merge "Fix issue #2749322: addPackageToPreferred throws SecurityException" into froyo

Merge commit 'd1d9047d5c34fb05be08099fa8cd73e4301ee0ff' into kraken

* commit 'd1d9047d5c34fb05be08099fa8cd73e4301ee0ff':
Fix issue #2749322: addPackageToPreferred throws SecurityException
d1d9047d5c34fb05be08099fa8cd73e4301ee0ff 08-Jun-2010 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #2749322: addPackageToPreferred throws SecurityException" into froyo
8377fc0f36842d355dfb354c98fa3e86d61e0288 08-Jun-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2749322: addPackageToPreferred throws SecurityException

Change-Id: I96cdc110fd9acca4b6c95d281e819bad1e4557f8
om/android/server/PackageManagerService.java
a6be8a42f7ce22f041a149d58dc319e1dbdf471e 08-Jun-2010 Robert Greenwalt <robdroid@android.com> am 5a671d03: Cut logging, boost efficiency of ThrottleService

Merge commit '5a671d03e3abe522a761a43b0460f9f3816b14ed' into froyo-plus-aosp

* commit '5a671d03e3abe522a761a43b0460f9f3816b14ed':
Cut logging, boost efficiency of ThrottleService
7db534fac4ff65a5339ed5adaf9cfaa028b39f00 08-Jun-2010 Robert Greenwalt <robdroid@android.com> am 5a671d03: Cut logging, boost efficiency of ThrottleService

Merge commit '5a671d03e3abe522a761a43b0460f9f3816b14ed' into kraken

* commit '5a671d03e3abe522a761a43b0460f9f3816b14ed':
Cut logging, boost efficiency of ThrottleService
5a671d03e3abe522a761a43b0460f9f3816b14ed 08-Jun-2010 Robert Greenwalt <robdroid@android.com> Cut logging, boost efficiency of ThrottleService

Changed the Alarms to be non-waking.

bug:2748959
bug:2747862
Change-Id: I9e4294162a4fc2f90aed36393b858edcf82aa307
om/android/server/ThrottleService.java
73839a2796774adfa13cb7979ca61aac35d69f2d 07-Jun-2010 David 'Digit' Turner <digit@google.com> am 3f0ed2a5: am e0cbd72b: Merge "PackageManagerService: always install native binaries from .apk" into kraken
e0cbd72b332a30811a816cae212306bb08b93066 07-Jun-2010 David 'Digit' Turner <digit@google.com> Merge "PackageManagerService: always install native binaries from .apk" into kraken
f8a450f62dc408b9051f494ae41d222467bc202b 07-Jun-2010 Dianne Hackborn <hackbod@google.com> am 7d75a66c: am b7bb3b3d: Fix bug in reporting a processes\'s dependent component.
b7bb3b3df6cb3743ee43b71455d9525762e55b45 07-Jun-2010 Dianne Hackborn <hackbod@google.com> Fix bug in reporting a processes's dependent component.

Also add new action to show an app's details.

Change-Id: I6ad3b3ac8462f5acf726ce76130882a262adff92
om/android/server/am/ActivityManagerService.java
om/android/server/am/ContentProviderRecord.java
7c5ded5d367078a7686872159229c998b558fac3 06-Jun-2010 Christopher Tate <ctate@google.com> am 8207e2fd: am a8ebe8b3: am df2e2eff: Merge "Watchdog now records kernel stacks when it fires" into froyo
05fefe62eedda9a694aee056ef34e0a01288fd58 06-Jun-2010 Robert Greenwalt <robdroid@android.com> am 1bdb78c1: am 9c4ed139: am f9610b38: Merge "Make the DUN apn data secure." into froyo
a8ebe8b3f5aea0d3f09a62d6d255f99c1f911f7b 06-Jun-2010 Christopher Tate <ctate@google.com> am df2e2eff: Merge "Watchdog now records kernel stacks when it fires" into froyo

Merge commit 'df2e2eff9446c0220515fa7aab7857135e04e12e' into kraken

* commit 'df2e2eff9446c0220515fa7aab7857135e04e12e':
Watchdog now records kernel stacks when it fires
9c4ed1394bb16b1d76758127a9b5d73bd363adaf 06-Jun-2010 Robert Greenwalt <robdroid@android.com> am f9610b38: Merge "Make the DUN apn data secure." into froyo

Merge commit 'f9610b3842e030138c1dc327a3a467aaea02c227' into kraken

* commit 'f9610b3842e030138c1dc327a3a467aaea02c227':
Make the DUN apn data secure.
15f66ce1b37cb208e1479b45ffe21b9ac2f5d8e7 03-Jun-2010 Christian Petersson <christian.petersson@sonyericsson.com> Fix that InputDeviceReaderThread that got killed during startup

InputDeviceReaderThread could be killed if a key or touch event
was received before initiation made by PolicyThread was made. To
solve this, the start call for the InputDeviceReader thread was
delayed until initalization of the PolicyThread was done in
the WindowManagerService.

Change-Id: Ifa7de7ccfadd66ecc2b14c6273e9be32b8e0cb4a
om/android/server/KeyInputQueue.java
om/android/server/WindowManagerService.java
a78b025a18ed6083e5f556526e7b859d83696ac8 05-Jun-2010 Christopher Tate <ctate@google.com> am df2e2eff: Merge "Watchdog now records kernel stacks when it fires" into froyo

Merge commit 'df2e2eff9446c0220515fa7aab7857135e04e12e' into froyo-plus-aosp

* commit 'df2e2eff9446c0220515fa7aab7857135e04e12e':
Watchdog now records kernel stacks when it fires
df2e2eff9446c0220515fa7aab7857135e04e12e 05-Jun-2010 Christopher Tate <ctate@google.com> Merge "Watchdog now records kernel stacks when it fires" into froyo
6390929174cbd214d4ac80c7147e2985004667e1 03-Jun-2010 David 'Digit' Turner <digit@google.com> PackageManagerService: always install native binaries from .apk

The previous implementation fails to work properly when the .apk
and installed versions of the binaries have the same size and date.

Change-Id: I296e34505ab4f0af028de5bcff7a83969f160ec1
om/android/server/PackageManagerService.java
e7cce11edcb0e2315e6d65790b7effd9236d7dc5 05-Jun-2010 Robert Greenwalt <robdroid@android.com> am f9610b38: Merge "Make the DUN apn data secure." into froyo

Merge commit 'f9610b3842e030138c1dc327a3a467aaea02c227' into froyo-plus-aosp

* commit 'f9610b3842e030138c1dc327a3a467aaea02c227':
Make the DUN apn data secure.
f9610b3842e030138c1dc327a3a467aaea02c227 05-Jun-2010 Robert Greenwalt <robdroid@android.com> Merge "Make the DUN apn data secure." into froyo
ecaa7b41ca49154ceaa9a7504eb0a86b89a96026 04-Jun-2010 Christopher Tate <ctate@google.com> Watchdog now records kernel stacks when it fires

The kernel threads are appended to the usual /data/anr/traces.txt file
and dropboxed along with the usual Dalvik stack dumps.

Change-Id: I120f1f5ee54c965efe9ac0c7f40fdef56385f1fa
NOTE: this change depends on the kernel publishing /proc/$PID/stack
om/android/server/Watchdog.java
a896308c0ef5bf3bc6cc5002638fc9f234db5667 04-Jun-2010 Jeff Hamilton <jham@android.com> am a724feb2: am 66236db3: am 1e2e2aea: am 4b330921: Don\'t crash when low storage is encountered pre-boot completion.
d0b15cecc63b03ca4e42549ed3a54ae2c7e31866 04-Jun-2010 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of f3307ae8 to master

Change-Id: Ic59db363391f73343eba32894113914ceea5a963
66236db38dbaae229a86005309b9f7c74eabc998 04-Jun-2010 Jeff Hamilton <jham@android.com> am 1e2e2aea: am 4b330921: Don\'t crash when low storage is encountered pre-boot completion.

Merge commit '1e2e2aea8ce3b1c39f4d0f753e3f7081c94a0bac' into kraken

* commit '1e2e2aea8ce3b1c39f4d0f753e3f7081c94a0bac':
Don't crash when low storage is encountered pre-boot completion.
1e2e2aea8ce3b1c39f4d0f753e3f7081c94a0bac 04-Jun-2010 Jeff Hamilton <jham@android.com> am 4b330921: Don\'t crash when low storage is encountered pre-boot completion.

Merge commit '4b3309211ed6f3532b44481945a4725143d50b8a' into froyo-plus-aosp

* commit '4b3309211ed6f3532b44481945a4725143d50b8a':
Don't crash when low storage is encountered pre-boot completion.
4b3309211ed6f3532b44481945a4725143d50b8a 04-Jun-2010 Jeff Hamilton <jham@android.com> Don't crash when low storage is encountered pre-boot completion.

Bug: 2741633
Change-Id: Ic073ead64ff43b2e2c32b439756cd71c2b6550b8
om/android/server/DeviceStorageMonitorService.java
77b32ddbbeeb13a07b16f23af705567c75a8e3df 04-Jun-2010 Robert Greenwalt <robdroid@android.com> Make the DUN apn data secure.

Rather than come out of the user-modifiable APN DB, the DUN APN data will
come first from a built-in resource and then potentially overriden by a secure
setting (which is gservices upgradable).

Also made the "require-dun" setting secure-setting overridable.
bug:2736390

Change-Id: I1e4644c3839f06c977b83797641f3948785146a2
om/android/server/connectivity/Tethering.java
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
om/android/server/am/ActivityManagerService.java
om/android/server/am/ProcessRecord.java
1a26b6a3f16ea1b25dbe3a3b9c4cc076e35fb51c 03-Jun-2010 Joe Onorato <joeo@android.com> am 5e76d148: am 169af47b: remove logging
33e2f07e55773099645576932c9b69cef1a419f5 03-Jun-2010 Joe Onorato <joeo@android.com> am 50515e44: am 75199e3d: Populate the notifications at startup of SystemUI.apk.
98795669b6fcb6b25478f83276b52551f8d633c8 03-Jun-2010 Joe Onorato <joeo@android.com> am 9310277c: am 798ac4c7: Start moving resources to SystemUI.apk.
7a3dbac36d06ab89f1cb64476f82844150930138 03-Jun-2010 Joe Onorato <joeo@android.com> am aa6c3f77: am 7dd8c6e4: Remove unused files from the service package.
75f63a69add5fcec9c1fbd6ba8bf760a6674607f 03-Jun-2010 Joe Onorato <joeo@android.com> am bdcc172d: am aaba60b2: Notifications don\'t crash when you click them, and pass through events to NotificationManagerService
01cc0187953d26639843cd5048d47805687bd580 03-Jun-2010 Joe Onorato <joeo@android.com> am c3c2f605: am e345fff2: notifications show
cd55681a8786f3dcb741f81338facaaf14683974 03-Jun-2010 Joe Onorato <joeo@android.com> am 34504ffc: am a0c56fe9: Checkpoint. Doesn\'t build.
fb1bd96ffb0ecd9a4356356e6c2e05bdaa4bd77a 03-Jun-2010 Joe Onorato <joeo@android.com> am ef5ce59a: am 18e69dfc: Checkpoint. Data structures for Notifications in place.
37166e6d7e41d309e834f114096d8c876ab1a45d 03-Jun-2010 Joe Onorato <joeo@android.com> am ff97998a: am 4762c2d7: Add expand and collapse.
60a83af0488b5ebaffbdf70d5709eed0834a91f8 03-Jun-2010 Joe Onorato <joeo@android.com> am ee5d0caf: am f3f0e053: Make disable() work.
66239ec47f7ec70024f839cffe2e9368e9dc42ae 03-Jun-2010 Joe Onorato <joeo@android.com> am 47639ea9: am 53680172: Remove unused cruft.
2c5d1360f4547966f41a805946b45304718395f4 03-Jun-2010 Joe Onorato <joeo@android.com> am d2b276a9: am 263700df: Clock
1be9593644ee66e009c4db9fe52ab4c7d279f9ba 03-Jun-2010 Joe Onorato <joeo@android.com> am 6475786a: am 66d7d01e: Get icon updating working.
1655e7631c06402d0e94027cba3fadc146a42e35 03-Jun-2010 Joe Onorato <joeo@android.com> am 5581c500: am 514ad663: Set the visibility of the icons.
e635a6bcc12ddafdf921f564fd3ff374a6ad3ffd 03-Jun-2010 Joe Onorato <joeo@android.com> am 12cd606d: am 0cbda99f: The status bar draws its icons now.
4cd06e25286fc6a8749333e24c96c420aa2fd72f 03-Jun-2010 Joe Onorato <joeo@android.com> am 27d3ae58: am 503007dd: Checkpoint status bar factoring. Now it builds and doesn\'t crash at boot.
61b01018382fb090dfd375549d855fe65e5b093b 03-Jun-2010 Joe Onorato <joeo@android.com> am 47e4aa80: am 089de88f: StatusBarService -> StatusBarManagerService
eec13290483719cbb95d4c2a207dc72fb1f40abf 03-Jun-2010 Joe Onorato <joeo@android.com> am 627cfa94: am 90233a1e: Add IStatusBar
51b3c2f25f420c994ef6b39e7c200522af5c7508 03-Jun-2010 Joe Onorato <joeo@android.com> am e0b2ae11: am 25f95f92: Rename IStatusBar to IStatusBarService.
eeb42c4ebdd1e2698b46d9c17c21b014ff4f08e4 03-Jun-2010 Joe Onorato <joeo@android.com> am 2cbaf806: am 2314aab5: First pass at splitting the status bar for the different devices.
169af47b0076457854cc0f92d6b015195837686d 02-Jun-2010 Joe Onorato <joeo@android.com> remove logging

Change-Id: I42c2332c3c114700f5ade77b63b4f6010ea5507a
om/android/server/status/StatusBarManagerService.java
75199e3ddcf7886c8ee5fbf8b486a8c21335bf14 29-May-2010 Joe Onorato <joeo@android.com> Populate the notifications at startup of SystemUI.apk.

Change-Id: Ie0b3fd9ed4bc9a012791372e6276f0b5908370a5
om/android/server/status/StatusBarManagerService.java
798ac4c7d79534a8230623b737b5b1b6a415d105 27-May-2010 Joe Onorato <joeo@android.com> Start moving resources to SystemUI.apk.

Change-Id: Ibf30b8196d65d7fbca1177968cefa5f7a875bf1d
om/android/server/SystemServer.java
om/android/server/status/StatusBarPolicy.java
7dd8c6e4eae18a5a0f5f834f39f58f868f1fc720 26-May-2010 Joe Onorato <joeo@android.com> Remove unused files from the service package.

Change-Id: Ia28fd7b3c42a842137afd12c4822e9b7cb4310a0
om/android/server/NotificationManagerService.java
om/android/server/status/DisableRecords.java
om/android/server/status/IconData.java
om/android/server/status/StatusBarException.java
aaba60b281713d45a0f232580302c7b54a7207df 23-May-2010 Joe Onorato <joeo@android.com> Notifications don't crash when you click them, and pass through events to NotificationManagerService

Change-Id: Iae4a636d3c6d5c617440b11eb5b8bc77838ad584
om/android/server/status/StatusBarManagerService.java
e345fff2f80947b0a821f6674c197a02b7bff08e 23-May-2010 Joe Onorato <joeo@android.com> notifications show

Change-Id: I9240b803c643874828c95afcf1ba9ed91194dbc0
om/android/server/status/StatusBarManagerService.java
a0c56fe93925d20d9c0b830b9664699ce557e78c 20-May-2010 Joe Onorato <joeo@android.com> Checkpoint. Doesn't build.

Change-Id: I92e4d539ea71af9e22ced02cbdee7fbd456b7971
om/android/server/status/DisableRecords.java
om/android/server/status/StatusBarManagerService.java
18e69dfc7235f8a4bfe257f9d1c43539049a22ce 18-May-2010 Joe Onorato <joeo@android.com> Checkpoint. Data structures for Notifications in place.

Change-Id: I146fb9bc1d349112541368e2c99a667821dfdf6e
om/android/server/NotificationManagerService.java
om/android/server/status/NotificationData.java
om/android/server/status/NotificationViewList.java
om/android/server/status/StatusBarManagerService.java
om/android/server/status/StatusBarNotification.java
4762c2d75a55e0854bbff2f996748116d4ab1a37 18-May-2010 Joe Onorato <joeo@android.com> Add expand and collapse.

Change-Id: I58ad95c59b2c46d3f25349e137d5624aefc6c6cd
om/android/server/status/StatusBarManagerService.java
f3f0e053f0cc66249a11639eb67d0cdc2da26ded 15-May-2010 Joe Onorato <joeo@android.com> Make disable() work.

Change-Id: I93fea37e777b3e04fe7f9171d5b84821587c24f5
om/android/server/status/StatusBarManagerService.java
5368017294ab5d4c37c48d4169da33acbf004e83 14-May-2010 Joe Onorato <joeo@android.com> Remove unused cruft.

Change-Id: I21a10d74106d1e4384a70cb654e4336b8f679e4a
om/android/server/status/StatusBarManagerService.java
263700df7ba34e70396d014d09a274d9ebbbf6ca 14-May-2010 Joe Onorato <joeo@android.com> Clock
om/android/server/status/StatusBarManagerService.java
om/android/server/status/StatusBarPolicy.java
66d7d01ed91968f4ed2e2669fd306aa2af61cd16 14-May-2010 Joe Onorato <joeo@android.com> Get icon updating working.

Change-Id: I749967545af5c97756e316231e740208fcd8ad3c
om/android/server/status/StatusBarManagerService.java
514ad663f0a8b239cc59409175e0bd489c591aa0 14-May-2010 Joe Onorato <joeo@android.com> Set the visibility of the icons.

Change-Id: Ib414718f1c51f1d306308a989d5d31d8e3ea7fd1
om/android/server/status/StatusBarManagerService.java
0cbda99f8721ad9b03ada04d2637fb75a2a0feca 03-May-2010 Joe Onorato <joeo@android.com> The status bar draws its icons now.
om/android/server/InputMethodManagerService.java
om/android/server/NotificationManagerService.java
om/android/server/status/AnimatedImageView.java
om/android/server/status/CloseDragHandle.java
om/android/server/status/DateView.java
om/android/server/status/ExpandedView.java
om/android/server/status/FixedSizeDrawable.java
om/android/server/status/IconMerger.java
om/android/server/status/NotificationLinearLayout.java
om/android/server/status/StatusBarIcon.java
om/android/server/status/StatusBarManagerService.java
om/android/server/status/StatusBarPolicy.java
om/android/server/status/TrackingPatternView.java
om/android/server/status/TrackingView.java
503007dd023668b1e45de948d3673e594d7f5a82 16-Apr-2010 Joe Onorato <joeo@android.com> Checkpoint status bar factoring. Now it builds and doesn't crash at boot.

Change-Id: I23f2045abfec0b414d5381f5e609b7267da7f21a
om/android/server/status/NotificationViewList.java
om/android/server/status/StatusBarIcon.java
om/android/server/status/StatusBarManagerService.java
om/android/server/status/StatusBarNotification.java
om/android/server/status/StatusBarView.java
om/android/server/status/Ticker.java
om/android/server/status/TickerView.java
089de88fc2f08d284cf8031aa33cff06011a4162 12-Apr-2010 Joe Onorato <joeo@android.com> StatusBarService -> StatusBarManagerService

Change-Id: I7efc245395bd91a656b30d420c9b080877162360
om/android/server/InputMethodManagerService.java
om/android/server/NotificationManagerService.java
om/android/server/SystemServer.java
om/android/server/UiModeManagerService.java
om/android/server/status/CloseDragHandle.java
om/android/server/status/ExpandedView.java
om/android/server/status/IconMerger.java
om/android/server/status/NotificationViewList.java
om/android/server/status/StatusBarIcon.java
om/android/server/status/StatusBarManagerService.java
om/android/server/status/StatusBarPolicy.java
om/android/server/status/StatusBarService.java
om/android/server/status/StatusBarView.java
om/android/server/status/TrackingView.java
90233a1ee50980310613b50f22fc68dd7b40ded8 12-Apr-2010 Joe Onorato <joeo@android.com> Add IStatusBar

Change-Id: Ie73d665085d5ce7358c285bf332ef1dc96005d0f
om/android/server/status/StatusBarService.java
25f95f92005594f2ef094001c54cb4c39eec3ade 09-Apr-2010 Joe Onorato <joeo@android.com> Rename IStatusBar to IStatusBarService.

Change-Id: Icfec2a830f037b21f6afaa796bf49da610567e7b
om/android/server/status/StatusBarService.java
2314aab5064ce09f09270e52fa12a38d07464278 08-Apr-2010 Joe Onorato <joeo@android.com> First pass at splitting the status bar for the different devices.

Change-Id: I2f568df92f88dfe8de18d24dd004239f52761aa6
om/android/server/SystemServer.java
om/android/server/status/StatusBarService.java
cc4ecb69bc33899da5f72e7391b289e21dfa7881 02-Jun-2010 Kenny Root <kroot@google.com> am 112ad01d: am 501b2b40: am a6703415: am 85fb2066: Amend previous ndc commit
85fb20665feadda526ad422c093b859e8c4d40bc 02-Jun-2010 Kenny Root <kroot@google.com> Amend previous ndc commit

Submitted wrong patchset. This includes the delta for the latest
patchset.

Change-Id: I30f8fa1503cda2459ec7284eb9fa199c9fd5ef9b
om/android/server/MountService.java
3507a887aafe033c7a051e29071c88ba006c24ba 02-Jun-2010 Kenny Root <kroot@google.com> am dcb1901f: am 7c1cf2e2: am 847b82d8: am 89bc1395: Merge "Add more error checking for ndc" into froyo
a80ce06d4c54e43243073f8ceff024f9dda7140e 01-Jun-2010 Kenny Root <kroot@google.com> Add more error checking for ndc

In NativeDaemonConnector.doCommand() calls, there was inconsistent error
checking. This change adds error checking for every call and makes it so
that any call to .doCommand() that gets an error code won't cause the
code to hang forever.

Change-Id: I4584953a759a48ad16adfe8ee9e564b5f5796680
om/android/server/MountService.java
om/android/server/NativeDaemonConnector.java
om/android/server/NetworkManagementService.java
20b26376753250bb11181c72baa373083d395fe5 31-May-2010 Christopher Tate <ctate@google.com> am 0ec783da: am 009668bf: am 5c9d9949: am 6ee412d5: Also dump system process threads halfway through the watchdog interval
009668bf8a51a3d6e8ee2827691c9b0285503ba1 28-May-2010 Christopher Tate <ctate@google.com> am 5c9d9949: am 6ee412d5: Also dump system process threads halfway through the watchdog interval

Merge commit '5c9d99496dab7a5cfe7cd37df749075ec9b4421b' into kraken

* commit '5c9d99496dab7a5cfe7cd37df749075ec9b4421b':
Also dump system process threads halfway through the watchdog interval
5c9d99496dab7a5cfe7cd37df749075ec9b4421b 28-May-2010 Christopher Tate <ctate@google.com> am 6ee412d5: Also dump system process threads halfway through the watchdog interval

Merge commit '6ee412d51d8b601580cfb4b7be4f676b7ec76afd' into froyo-plus-aosp

* commit '6ee412d51d8b601580cfb4b7be4f676b7ec76afd':
Also dump system process threads halfway through the watchdog interval
6ee412d51d8b601580cfb4b7be4f676b7ec76afd 28-May-2010 Christopher Tate <ctate@google.com> Also dump system process threads halfway through the watchdog interval

This gives us a snapshot of what the system process was doing after 30 seconds
of apparent inactivity as well as after 1 minute, to help distinguishing actual
deadlocks from too-slow progress, livelock, etc.

Change-Id: I19758861d1b25f298e88788e8f1c7ec7bf828823
om/android/server/Watchdog.java
om/android/server/am/ActivityManagerService.java
39d4dbc4fe26c8b400aaecf8509baa11d455b84d 28-May-2010 Adam Powell <adamp@google.com> Merge "Recycle MotionEvents for ACTION_OUTSIDE in WindowManagerService"
47482969bbb832ff941e1f9ab8a03f453e5ff3d7 28-May-2010 Adam Powell <adamp@google.com> Recycle MotionEvents for ACTION_OUTSIDE in WindowManagerService

Change-Id: I648e5ad780cad285f190e06cfff1780c6dad0117
om/android/server/WindowManagerService.java
a15dcfaf2bc7cbd13b30db6766afe3bbaa01db97 25-May-2010 Konstantin Lopyrev <klopyrev@google.com> Fix 2677197: Adding minimum complex character support.

Change-Id: I520bc5f9aa924bf9b5585b2235a91cc96cb99c25
om/android/server/DevicePolicyManagerService.java
0e42b29eb0b279ad64c55890efd3fb533493224e 27-May-2010 Jeff Hamilton <jham@android.com> am 635962e0: am c0046aab: am edf228ce: am dc46f6f6: Merge "Don\'t enforce broadcast timeouts for PRE_BOOT_COMPLETED broadcasts." into froyo
c0046aab0c4a5fd3ae091040c739652a0a4c029e 27-May-2010 Jeff Hamilton <jham@android.com> am edf228ce: am dc46f6f6: Merge "Don\'t enforce broadcast timeouts for PRE_BOOT_COMPLETED broadcasts." into froyo

Merge commit 'edf228ce1fc9aae9fe314229c19e80a434bb4393' into kraken

* commit 'edf228ce1fc9aae9fe314229c19e80a434bb4393':
Don't enforce broadcast timeouts for PRE_BOOT_COMPLETED broadcasts.
edf228ce1fc9aae9fe314229c19e80a434bb4393 27-May-2010 Jeff Hamilton <jham@android.com> am dc46f6f6: Merge "Don\'t enforce broadcast timeouts for PRE_BOOT_COMPLETED broadcasts." into froyo

Merge commit 'dc46f6f6cc44954c23229019270b54b8912be825' into froyo-plus-aosp

* commit 'dc46f6f6cc44954c23229019270b54b8912be825':
Don't enforce broadcast timeouts for PRE_BOOT_COMPLETED broadcasts.
dc46f6f6cc44954c23229019270b54b8912be825 27-May-2010 Jeff Hamilton <jham@android.com> Merge "Don't enforce broadcast timeouts for PRE_BOOT_COMPLETED broadcasts." into froyo
2d8b3e94cfa2325a224868b13623cf206b584970 27-May-2010 Irfan Sheriff <isheriff@google.com> am 35ba2de2: am 2ed40379: am 8316e875: am b3f3caef: Merge "Fix null pointer exception" into froyo
2ed403790177dc3cd0295cc454f5bfa491cf98f5 27-May-2010 Irfan Sheriff <isheriff@google.com> am 8316e875: am b3f3caef: Merge "Fix null pointer exception" into froyo

Merge commit '8316e875baee53b661d5af8fa843d97e51acbcf6' into kraken

* commit '8316e875baee53b661d5af8fa843d97e51acbcf6':
Fix null pointer exception
8316e875baee53b661d5af8fa843d97e51acbcf6 27-May-2010 Irfan Sheriff <isheriff@google.com> am b3f3caef: Merge "Fix null pointer exception" into froyo

Merge commit 'b3f3caef38326be2b4aea309237f718e6e2d2b8a' into froyo-plus-aosp

* commit 'b3f3caef38326be2b4aea309237f718e6e2d2b8a':
Fix null pointer exception
7baec0fe4ef66ac308ebc132d6c08865db653b30 27-May-2010 Irfan Sheriff <isheriff@google.com> Fix null pointer exception

Bug: 2718857
Change-Id: I4b04284fd5b3a4881297fe15555e9f1ca91d73cb
om/android/server/NetworkManagementService.java
41f614d611b4fa0fc0eeb2d01570304a803bfc87 26-May-2010 Irfan Sheriff <isheriff@google.com> am 89951927: am 38417782: am c8390047: am 9ecca85f: Merge "Fix escaping of characters" into froyo
384177829839040da033d0b4560840fbf4d73b45 26-May-2010 Irfan Sheriff <isheriff@google.com> am c8390047: am 9ecca85f: Merge "Fix escaping of characters" into froyo

Merge commit 'c8390047bd2344032aca915816a8b91590835105' into kraken

* commit 'c8390047bd2344032aca915816a8b91590835105':
Fix escaping of characters
c8390047bd2344032aca915816a8b91590835105 26-May-2010 Irfan Sheriff <isheriff@google.com> am 9ecca85f: Merge "Fix escaping of characters" into froyo

Merge commit '9ecca85f0613032590c6840cae48b54f3d626181' into froyo-plus-aosp

* commit '9ecca85f0613032590c6840cae48b54f3d626181':
Fix escaping of characters
9ecca85f0613032590c6840cae48b54f3d626181 26-May-2010 Irfan Sheriff <isheriff@google.com> Merge "Fix escaping of characters" into froyo
acf8474b6843215c6ee5da5e58630de0afa2be60 26-May-2010 Jeff Hamilton <jham@android.com> Don't enforce broadcast timeouts for PRE_BOOT_COMPLETED broadcasts.

They're designed to handle one time upgrade code, which may
take a significant amount of time. Third party code cannot
receive this broadcast so the timing should be able to be
kept under control.

Bug: 2713849
Change-Id: I3733b6530198bebd9b8c2ba6f9f27a7999336b8d
om/android/server/am/ActivityManagerService.java
d1c3ea6a2116156629a1a3eaee64d0181e4f52c8 26-May-2010 Robert Greenwalt <robdroid@android.com> resolved conflicts for merge of 3cd6a3e3 to master

Change-Id: If3e45cc3494b2c52a1f1dcc19deff763a50498d7
ac53a8a135b3e04692a553147eabf3cbafd321c1 26-May-2010 Robert Greenwalt <robdroid@android.com> am 88ccecf5: am d1055a25: Make the NTP Cache max-age gservices-settable

Merge commit '88ccecf573a52648052bc9c7858f345776f76e0e' into kraken

* commit '88ccecf573a52648052bc9c7858f345776f76e0e':
Make the NTP Cache max-age gservices-settable
88ccecf573a52648052bc9c7858f345776f76e0e 26-May-2010 Robert Greenwalt <robdroid@android.com> am d1055a25: Make the NTP Cache max-age gservices-settable

Merge commit 'd1055a250c00b0c2516ec406a8cf9a5ab1c0b7ae' into froyo-plus-aosp

* commit 'd1055a250c00b0c2516ec406a8cf9a5ab1c0b7ae':
Make the NTP Cache max-age gservices-settable
d1055a250c00b0c2516ec406a8cf9a5ab1c0b7ae 26-May-2010 Robert Greenwalt <robdroid@android.com> Make the NTP Cache max-age gservices-settable

Trying to make Throttle polling more energy efficient.

bug:2708119
Change-Id: I2b75639e202dcbcee11047c43407a22de04ce350
om/android/server/ThrottleService.java
4136c98ecc25861da5462d1364f1c4bfd7bd5c31 25-May-2010 Christian Mehlmauer <FireFart@gmail.com> Replaced deprecated String Constructor

Change-Id: I91874093d69e230850c695b92da5f91391030d44
om/android/server/ProcessStats.java
584f137c19d4f4980537b51a8b864d0d97ffd0a0 25-May-2010 Marco Nelissen <marcone@google.com> Allow root to set the mount state as well, so that the simulator
can use the fake sd card.

Change-Id: I9ac5329f976a6e466ef2d7123ca70670975c30e3
om/android/server/PackageManagerService.java
3255823de062e981f7bfc7994919207988697e45 21-May-2010 Konstantin Lopyrev <klopyrev@google.com> Fix 2673731: Adding support for password history to Device Admin.

Change-Id: If3240048813e32b2bae79fe5cb8a73aea20ec56c
om/android/server/DevicePolicyManagerService.java
a6e559edb73886c626e0e5a95085d0ead767ceb7 24-May-2010 Irfan Sheriff <isheriff@google.com> Fix escaping of characters

\ and " in SSID and password cause issues
with netd parsing. Fix it.

Bug: 2708960
Change-Id: I278ca21c0bbfd9dc430a2f9ae02828274a0d2376
om/android/server/NetworkManagementService.java
2b4140ef1b68a074611bfd33ac9d2ec2c2a1064a 24-May-2010 Mark Vandevoorde <mtv@google.com> am a5437f2d: am 88437284: Fix build error (Boolean -> boolean)
884372842bac11f854aa42a9c4de05a3a22cb11f 24-May-2010 Mark Vandevoorde <mtv@google.com> Fix build error (Boolean -> boolean)

Change-Id: I2f337e23f4b092de41523f1195546e9d65851c84
om/android/server/LocationManagerService.java
7df535b976226efdb1fa13a12bf6edcb96ee56e2 24-May-2010 Mike Lockwood <lockwood@google.com> am 749afee8: am 1e11e95f: Merge "Add Geocorder.isImplemented()" into kraken
1e11e95f61510ad600b52e2b24c927cada8c2ee4 24-May-2010 Mike Lockwood <lockwood@google.com> Merge "Add Geocorder.isImplemented()" into kraken
8c8634b514ef26b0e667b8a4a837288707baa07b 24-May-2010 Daniel Sandler <dsandler@android.com> am c8a041f1: am 450da449: Merge "New shadowy status bar, direct from Z\'ha\'dum." into kraken
01ac80b715881db22bde8b31633dd8a4dc375389 22-May-2010 Mark Vandevoorde <mtv@google.com> Add Geocorder.isImplemented()

The Geocorder interface is not part of the Android core. It
requires a backend service which may or may not be available
on a device. The new isImplemented static method allows
apps to discover whether the Geocorder is in fact available
on the device.

Change-Id: I2b5cf7bcc9cce4766bcbb156e91edf34b01f9296
om/android/server/LocationManagerService.java
2c195f77a16e96fe2add0dd661b7376379e5513d 21-May-2010 Daniel Sandler <dsandler@android.com> New shadowy status bar, direct from Z'ha'dum.

Artwork is FPO but serviceable enough. Many hardcoded font
colors & styles were moved to styles.xml where they belong.
AM/PM finally given the old heave-ho (but configurable in
StatusBarPolicy.java).

Notification content remains on a light-gray background for
now (so as not to screw up custom RemoteViews) but status
icons will definitely need across-the-board rework to look
better against a dark background.

Change-Id: Id9d5a699532f9336563cd6f9699bff3893735e4f
om/android/server/status/StatusBarIcon.java
om/android/server/status/StatusBarPolicy.java
3676f266462dd168112bb3b8fce7f7fd9994619f 21-May-2010 Mike Lockwood <lockwood@google.com> am 41285a71: am 5d12d197: Merge "Report number of satellites used in fix instead of total for GPS Location extra" into kraken
0881f4f9339febee85c9ab4cba69970ac5cbde55 21-May-2010 Kevin.KY Tsai <kevin.ky_tsai@htc.com> Report number of satellites used in fix instead of total for GPS Location extra

Change-Id: Ibffc8d21b31b02a91c8506733002e4a778556978
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/location/GpsLocationProvider.java
4d252c484c62c685068b94278cbb68d8c5c8003f 21-May-2010 Mike Lockwood <lockwood@android.com> am dc0ca1d5: am 88262733: Merge "New Location Manager APIs for Criteria based requests and single shot mode." into kraken
03ca216ac19ea4e7afcb183c20c7c780f0d97756 01-Apr-2010 Mike Lockwood <lockwood@android.com> New Location Manager APIs for Criteria based requests and single shot mode.

Use MS-Assisted mode for single shot GPS fixes if it is supported.

Add finer grained control over accuracy to the android.location.Criteria class
and location criteria logic from LocationManager to LocationManagerService

Change-Id: I156b1f6c6a45d255c87ff917cf3e9726a6d7a75b
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/LocationManagerService.java
om/android/server/location/GpsLocationProvider.java
om/android/server/location/LocationProviderInterface.java
om/android/server/location/LocationProviderProxy.java
om/android/server/location/MockProvider.java
om/android/server/location/PassiveProvider.java
6211c5690cdd91a0bb95fd04f19e026512794cd0 19-May-2010 Suchi Amalapurapu <asuchitra@google.com> am 5f0e438b: am 3d802ef7: am aa4db173: am 9a212adc: Fix 2641875 Initialize the cache path only if the container exists. This did exist before but was somehow removed. Fix a known test failure as well.
864feb8dfac48092fd627a3b77ff2c3bf9000357 17-Mar-2010 Guang Zhu <guangzhu@google.com> disable emma instrumentation for framework, ext and services (DO NOT MERGE)

When these libraries are instrumented with emma instructions, runtime keeps
restarting on native crashes. To acheive a fully emma instrumented build,
we need to disable emma instrumentation on these libraries.

Change-Id: I51cb3bf71e0e348264fe5f21a27085fb2b9e6670
ndroid.mk
3d802ef73bd8573f61b6b441990fbbd8e44e18e7 18-May-2010 Suchi Amalapurapu <asuchitra@google.com> am aa4db173: am 9a212adc: Fix 2641875 Initialize the cache path only if the container exists. This did exist before but was somehow removed. Fix a known test failure as well.

Merge commit 'aa4db173a2465d74ea35cc7f736f6b2a5b01f72c' into kraken

* commit 'aa4db173a2465d74ea35cc7f736f6b2a5b01f72c':
Fix 2641875
aa4db173a2465d74ea35cc7f736f6b2a5b01f72c 18-May-2010 Suchi Amalapurapu <asuchitra@google.com> am 9a212adc: Fix 2641875 Initialize the cache path only if the container exists. This did exist before but was somehow removed. Fix a known test failure as well.

Merge commit '9a212adcffbc4b32d51f512889b33ba584647aa9' into froyo-plus-aosp

* commit '9a212adcffbc4b32d51f512889b33ba584647aa9':
Fix 2641875
9a212adcffbc4b32d51f512889b33ba584647aa9 18-May-2010 Suchi Amalapurapu <asuchitra@google.com> Fix 2641875
Initialize the cache path only if the container exists.
This did exist before but was somehow removed.
Fix a known test failure as well.

Change-Id: I63219369b0e7abca4919fbde2a04035a0fea9e35
om/android/server/PackageManagerService.java
a42f4c249f89fde12eff5713169c32cbb32ab74a 18-May-2010 Mike Lockwood <lockwood@android.com> am 0b6e30d2: am c5859388: am 3e9e9696: am eb9cbb8f: Resurrect flashlight support in obsolete IHardwareService Binder API.
c5859388bd6c666a83017869bf8a9935defe0bd0 17-May-2010 Mike Lockwood <lockwood@android.com> am 3e9e9696: am eb9cbb8f: Resurrect flashlight support in obsolete IHardwareService Binder API.

Merge commit '3e9e9696f147c8df1236c1d7aa9496124864a81c' into kraken

* commit '3e9e9696f147c8df1236c1d7aa9496124864a81c':
Resurrect flashlight support in obsolete IHardwareService Binder API.
3e9e9696f147c8df1236c1d7aa9496124864a81c 17-May-2010 Mike Lockwood <lockwood@android.com> am eb9cbb8f: Resurrect flashlight support in obsolete IHardwareService Binder API.

Merge commit 'eb9cbb8fdddf4c887004b20b504083035d57a15f' into froyo-plus-aosp

* commit 'eb9cbb8fdddf4c887004b20b504083035d57a15f':
Resurrect flashlight support in obsolete IHardwareService Binder API.
eb9cbb8fdddf4c887004b20b504083035d57a15f 17-May-2010 Mike Lockwood <lockwood@android.com> Resurrect flashlight support in obsolete IHardwareService Binder API.

This is to avoid flashlight apps that had been using reflection to access
this API after this class was removed after eclair.

Change-Id: I26ed929abad93345468eb33d4a15977a31ebea7e
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/LightsService.java
c324d3365a5df0519798c20709830d7965059375 17-May-2010 Chung-yih Wang <cywang@google.com> am c7163cbf: am 533844d9: am c7388e35: am 5f1beda1: Merge "Make the SSID field of WifiConfiguration consistent with API description." into froyo
7ac5618cc86d7f5f14985a81fa5d1a65b2158c49 17-May-2010 Dianne Hackborn <hackbod@google.com> am 36bc4be0: am e0a19573: am 39c31bba: am aa77de13: Fix issue #2686193: Can\'t move apps to SD card
533844d9688f7c9269372f97db17c9bc4d19c04b 15-May-2010 Chung-yih Wang <cywang@google.com> am c7388e35: am 5f1beda1: Merge "Make the SSID field of WifiConfiguration consistent with API description." into froyo

Merge commit 'c7388e3541c9f1d64dd13fc2de49ff77d8993fa5' into kraken

* commit 'c7388e3541c9f1d64dd13fc2de49ff77d8993fa5':
Make the SSID field of WifiConfiguration consistent with API description.
c7388e3541c9f1d64dd13fc2de49ff77d8993fa5 15-May-2010 Chung-yih Wang <cywang@google.com> am 5f1beda1: Merge "Make the SSID field of WifiConfiguration consistent with API description." into froyo

Merge commit '5f1beda18fc7709c2e61ace33607513770faf115' into froyo-plus-aosp

* commit '5f1beda18fc7709c2e61ace33607513770faf115':
Make the SSID field of WifiConfiguration consistent with API description.
5f1beda18fc7709c2e61ace33607513770faf115 15-May-2010 Chung-yih Wang <cywang@google.com> Merge "Make the SSID field of WifiConfiguration consistent with API description." into froyo
e0a19573d7febe5ecde465f7206d54c37cece916 15-May-2010 Dianne Hackborn <hackbod@google.com> am 39c31bba: am aa77de13: Fix issue #2686193: Can\'t move apps to SD card

Merge commit '39c31bbaf9bb07365a4b63144cdf625483851a08' into kraken

* commit '39c31bbaf9bb07365a4b63144cdf625483851a08':
Fix issue #2686193: Can't move apps to SD card
39c31bbaf9bb07365a4b63144cdf625483851a08 15-May-2010 Dianne Hackborn <hackbod@google.com> am aa77de13: Fix issue #2686193: Can\'t move apps to SD card

Merge commit 'aa77de1348cbda3d5348b15734ab141cb9c7759c' into froyo-plus-aosp

* commit 'aa77de1348cbda3d5348b15734ab141cb9c7759c':
Fix issue #2686193: Can't move apps to SD card
aa77de1348cbda3d5348b15734ab141cb9c7759c 15-May-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2686193: Can't move apps to SD card

Change-Id: Icd84d8080d33fb8ce5103a0e726d50f0ec70092e
om/android/server/PackageManagerService.java
047076d170c5a94415b5abc9c9a220840639c283 15-May-2010 Chung-yih Wang <cywang@google.com> Make the SSID field of WifiConfiguration consistent with API description.

Bug id http://b/issue?id=2684571

Change-Id: I809478991ba606252d69ef007339754ab2856416
om/android/server/WifiService.java
4952aef1c590361a19acdc1afae5f9c19b2fd114 14-May-2010 Suchi Amalapurapu <asuchitra@google.com> am 8e8bb02f: am 3f5ed04f: am b63ea5f7: am c928a11e: Merge "Fix 2672155 Check the code path when enabling disabling packages." into froyo
3f5ed04f7f594efe401f2a9f7828343920723b4b 14-May-2010 Suchi Amalapurapu <asuchitra@google.com> am b63ea5f7: am c928a11e: Merge "Fix 2672155 Check the code path when enabling disabling packages." into froyo

Merge commit 'b63ea5f784b7862a7ab28e0134f6da47f6275810' into kraken

* commit 'b63ea5f784b7862a7ab28e0134f6da47f6275810':
Fix 2672155
b63ea5f784b7862a7ab28e0134f6da47f6275810 14-May-2010 Suchi Amalapurapu <asuchitra@google.com> am c928a11e: Merge "Fix 2672155 Check the code path when enabling disabling packages." into froyo

Merge commit 'c928a11e34678296511d5ea34582292be7368618' into froyo-plus-aosp

* commit 'c928a11e34678296511d5ea34582292be7368618':
Fix 2672155
1ace5bc070b7271a3f5835b13e326875785f718c 13-May-2010 Suchi Amalapurapu <asuchitra@google.com> Fix 2672155
Check the code path when enabling disabling packages.

Add unit test

Change-Id: I0f0f482a3735234eab3f63ba1f6462574b70144e
om/android/server/PackageManagerService.java
8b70c9c1db121d38c9664af77a8aa830820b4983 12-May-2010 Yuncheol Heo <ycheo@google.com> Pick the default IME in case of a fresh install.

Bug: 2661261

Change-Id: Id8077ffddd8ddc5c3d3fd371afaad63698ef8d9e
om/android/server/InputMethodManagerService.java
381b55863efcd65ed43d66924beae550c18d8930 13-May-2010 The Android Open Source Project <initial-contribution@android.com> am 7cd6ca9b: am d6e24ca2: am 4adacd23: merge from open-source master
d6e24ca28b0b6384fd9b3117713402a1f43fdef8 12-May-2010 The Android Open Source Project <initial-contribution@android.com> am 4adacd23: merge from open-source master

Merge commit '4adacd23d4c91569b16fe50419f1a91f68d805bd' into kraken

* commit '4adacd23d4c91569b16fe50419f1a91f68d805bd':
Add support for EVDO Rev B
4adacd23d4c91569b16fe50419f1a91f68d805bd 12-May-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: If6730b50627b2231bd345e594d8d30a37557849e
38e6aa365e4f209099bf665b7c50e0cd29513051 12-May-2010 The Android Open Source Project <initial-contribution@android.com> am 9a069c80: am 63ece47f: am 2a9ae01f: merge from open-source master
63ece47fecdb5932de9af5cfec4cf998764e6e0a 12-May-2010 The Android Open Source Project <initial-contribution@android.com> am 2a9ae01f: merge from open-source master

Merge commit '2a9ae01f74e7273ce0d1045754597ea78b88ba69' into kraken

* commit '2a9ae01f74e7273ce0d1045754597ea78b88ba69':
Corrected repeat count for key repeat in input device.
2a9ae01f74e7273ce0d1045754597ea78b88ba69 12-May-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: I24ecfac151c0ddc27237d711c95b8fe488d7931b
fafb3993eabaf3abafa72711d828da909610bb26 12-May-2010 Dianne Hackborn <hackbod@google.com> am 5f1ebb9f: am bf00233b: am b6e1ec19: am 037cd341: Merge "Fix issue #2676378: Activity Manager Crash on FRF40" into froyo
105384e3603e5d324c5b74e1d2ec836f817fdc25 12-May-2010 Mike Lockwood <lockwood@android.com> am 4d0c3083: am c7c856fb: am d2084bb6: am e1d7dca6: Merge "LocationManagerService: Call updateNetworkState on providers that are disabled." into froyo
9f7c4112acb06f7a2ec817c682202d469a13d547 12-May-2010 Jean-Michel Trivi <jmtrivi@google.com> am 11e26c28: am 9f35d39a: am ea37d9b4: am aaa01b18: Merge " Fix bug 2670395 and 2599698 When the user selects a "Silent" notification sound, the Uri encoded path is an empty string. Setting this Uri as the data source of the MediaPlayer used to play not
bf00233b880b8944a3ed5f2a8826a1908939b6aa 12-May-2010 Dianne Hackborn <hackbod@google.com> am b6e1ec19: am 037cd341: Merge "Fix issue #2676378: Activity Manager Crash on FRF40" into froyo

Merge commit 'b6e1ec19dd73cb55baef538a9119bcac0f8b9366' into kraken

* commit 'b6e1ec19dd73cb55baef538a9119bcac0f8b9366':
Fix issue #2676378: Activity Manager Crash on FRF40
c7c856fb855cdf233077857b995594770515cf1b 12-May-2010 Mike Lockwood <lockwood@android.com> am d2084bb6: am e1d7dca6: Merge "LocationManagerService: Call updateNetworkState on providers that are disabled." into froyo

Merge commit 'd2084bb689bb680eb886d5cfbd27adc6f2e9da1c' into kraken

* commit 'd2084bb689bb680eb886d5cfbd27adc6f2e9da1c':
LocationManagerService: Call updateNetworkState on providers that are disabled.
9f35d39a05bbf02ded519c1a4b3bf50f933a0cad 12-May-2010 Jean-Michel Trivi <jmtrivi@google.com> am ea37d9b4: am aaa01b18: Merge " Fix bug 2670395 and 2599698 When the user selects a "Silent" notification sound, the Uri encoded path is an empty string. Setting this Uri as the data source of the MediaPlayer used to play notifications caused the comp

Merge commit 'ea37d9b489aac1a4a8de71887581fe712e26e144' into kraken

* commit 'ea37d9b489aac1a4a8de71887581fe712e26e144':
Fix bug 2670395 and 2599698
b6e1ec19dd73cb55baef538a9119bcac0f8b9366 12-May-2010 Dianne Hackborn <hackbod@google.com> am 037cd341: Merge "Fix issue #2676378: Activity Manager Crash on FRF40" into froyo

Merge commit '037cd3413a925c6f449050096a7cd4aab3207612' into froyo-plus-aosp

* commit '037cd3413a925c6f449050096a7cd4aab3207612':
Fix issue #2676378: Activity Manager Crash on FRF40
d2084bb689bb680eb886d5cfbd27adc6f2e9da1c 12-May-2010 Mike Lockwood <lockwood@android.com> am e1d7dca6: Merge "LocationManagerService: Call updateNetworkState on providers that are disabled." into froyo

Merge commit 'e1d7dca608ced72c75bf906c7267a1ef30349826' into froyo-plus-aosp

* commit 'e1d7dca608ced72c75bf906c7267a1ef30349826':
LocationManagerService: Call updateNetworkState on providers that are disabled.
ea37d9b489aac1a4a8de71887581fe712e26e144 12-May-2010 Jean-Michel Trivi <jmtrivi@google.com> am aaa01b18: Merge " Fix bug 2670395 and 2599698 When the user selects a "Silent" notification sound, the Uri encoded path is an empty string. Setting this Uri as the data source of the MediaPlayer used to play notifications caused the completion listen

Merge commit 'aaa01b181c0eea4ff6496d446e25e499b12ca14c' into froyo-plus-aosp

* commit 'aaa01b181c0eea4ff6496d446e25e499b12ca14c':
Fix bug 2670395 and 2599698
6c3da7fbc21fa8978c6f7b703ec87874d53ec760 12-May-2010 Johan Alfven <johan.alfven@sonyericsson.com> Corrected debug message in WindowManager

When WindowManager reports "Key dispatching timed out"
it prints out information about the window state that was
present at the time the key was sent to that window.
There is a minor error in the class representing the
recorded window state so that the currently focused window
is printed instead of the recorded focused window.

Change-Id: I29a5471ef725e30f812ffd57fd4597ce81c0c7f2
om/android/server/WindowManagerService.java
26abeae75baa471fa7c8d686083c2f12f3246968 04-Mar-2010 Sean Foy <sean.foy@gmail.com> Remove ProximityAlerts Receiver when last ProximityAlert expires.

Remove the ProximityAlerts update Receiver when the last ProximityAlert expires.
Fixes issue 6900.

Change-Id: Ida1970c084e71df47b204c64986a065cb75d0c13
om/android/server/LocationManagerService.java
6f86c0e64bcca300f650871c0a84456a7813432d 11-May-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2676378: Activity Manager Crash on FRF40

D'oh!

Change-Id: If1b43ff5f230f9bf0de0887deb1b25dcf6aa6e66
om/android/server/am/ActivityManagerService.java
f19a785e15d9ffa1c1e56c254af082fc87aa1f3c 11-May-2010 Mike Lockwood <lockwood@android.com> LocationManagerService: Call updateNetworkState on providers that are disabled.

Fixes a problem with Network Location not working after SetupWizard until the
network state changes.

Change-Id: Ief81b76beb5cc90b2ca7d8aa2d4c99221898f01d
BUG: 2671347

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/LocationManagerService.java
80131e4b9b3857ab7b72ac5103d2bd7e5d2d6aa1 11-May-2010 Dianne Hackborn <hackbod@android.com> Merge "Corrected repeat count for key repeat in input device."
834910f51f8a2d70d8b43182a48e91314ff63ba6 11-May-2010 Dianne Hackborn <hackbod@google.com> am 217f2686: am 7d5cea98: am 7e76b6d1: am 6d00151c: Merge "Hopefully fix issue #2662536: Why is launcher being killed?" into froyo
7d5cea988bdab9a32fe5b21333613042857882f8 11-May-2010 Dianne Hackborn <hackbod@google.com> am 7e76b6d1: am 6d00151c: Merge "Hopefully fix issue #2662536: Why is launcher being killed?" into froyo

Merge commit '7e76b6d191e1173bd85337a2861d9914922f5a0d' into kraken

* commit '7e76b6d191e1173bd85337a2861d9914922f5a0d':
Hopefully fix issue #2662536: Why is launcher being killed?
7e76b6d191e1173bd85337a2861d9914922f5a0d 11-May-2010 Dianne Hackborn <hackbod@google.com> am 6d00151c: Merge "Hopefully fix issue #2662536: Why is launcher being killed?" into froyo

Merge commit '6d00151c519d5c131cc1480978fe4417cc7bcc79' into froyo-plus-aosp

* commit '6d00151c519d5c131cc1480978fe4417cc7bcc79':
Hopefully fix issue #2662536: Why is launcher being killed?
0a5174a6e947d5cbeb8846a1273a90b6de065cbf 21-Apr-2010 Naveen Kalla <nkalla@codeaurora.org> Add support for EVDO Rev B

Change-Id: I8588e8b342c51f4b79bced8ef8fe60d57f07aefa
om/android/server/status/StatusBarPolicy.java
392a2bbb52688ebd25768a7784d9edca7f498110 11-May-2010 Jean-Michel Trivi <jmtrivi@google.com> Fix bug 2670395 and 2599698
When the user selects a "Silent" notification sound, the Uri encoded
path is an empty string. Setting this Uri as the data source of the
MediaPlayer used to play notifications caused the completion listener
to not be called, which with the AudioFocus logic causes the Music
app to pause and never resume. The NotificationPlayer modifications
cause the MediaPlayer for the notification to only request audio
focus when the data source is not empty.
The audio focus code in AudioService is defensively synchronized
against a unique lock, and the exception observed in bug 2670395
is explicitely caught in case another edge case wasn't caught by
this fix.
The AudioFocus handling in AudioManager is modified so only the
requestAudioFocus and abandonAudioFocus methods are meant to be
used, as registerAudioFocusListener and unregisterAudioFocusListener
provided no additional functionality over the request/abandon
methods. abandonAudioFocus() also removes the listener from the
map in AudioManager since after abandonning focus, the listener
would no longer be called.

Change-Id: I3b553ee8a8163c25e01117d7e5479dd5fdfa7c6b
om/android/server/NotificationPlayer.java
9e3983fbde2f86c116ffbc40491ff7aedd7d2fc7 11-May-2010 Robert Greenwalt <robdroid@android.com> Fix throttle datafile parsing.

"Optimization" yesterday was buggy.
bug:2674511

Change-Id: I3b1dde35a75b2017117c20905fcd82de405d41b5
om/android/server/ThrottleService.java
6d00151c519d5c131cc1480978fe4417cc7bcc79 11-May-2010 Dianne Hackborn <hackbod@google.com> Merge "Hopefully fix issue #2662536: Why is launcher being killed?" into froyo
906497c574d45d8dfd295b16dece0d0bc32c0895 11-May-2010 Dianne Hackborn <hackbod@google.com> Hopefully fix issue #2662536: Why is launcher being killed?

It looks like there was a subtle bug where Process.setOomAdj() could
return false just because the given process doesn't exist, even though
it is documented to only return false if OOM killing is not supported
at all. This would cause the activity manager to fall into its code
path of trying to clean up processes itself, which it does a much
poorer problem at. I am thinking we may be seeing this problem more
now that the activity manager is killing background processes itself
when there are too many of them.

In addition, this change cleans up and reduces some of the logging
around killing processes.

Finally, try to improve process LRU management a bit by taking
into account process dependencies. Any dependent processes are
pulled up in the LRU list with the processes that is actually
moving. Also, we bring a process up if someone accesses its content
provider.

Change-Id: I34ea161f839679345578ffe681e8d9c5d26ab948
om/android/server/am/ActivityManagerService.java
om/android/server/am/ProcessRecord.java
24488bd0946f2342fcc725ce55c1347c0698b1e9 11-May-2010 Robert Greenwalt <robdroid@android.com> Fix build. Instantiate object before use.

bug:2673562
Change-Id: I1e39f7847c25c5c1923a7b7e864b402c94834528
om/android/server/ThrottleService.java
133bfdfa4a89f40f15371e99904639ff5db7759a 23-Feb-2010 Kristian Dreher <kristian.dreher@sonyericsson.com> Corrected repeat count for key repeat in input device.

Previously the key event repeat count was always zero when the repeated
key down events was generated by the input device in the Linux kernel.

Change-Id: I86b7fd2a75880bc54d052ef404c3654b7ed14c52
om/android/server/WindowManagerService.java
39e163f45afa1c86be91717c2ed216b66255a65f 08-May-2010 Robert Greenwalt <robdroid@android.com> Reduce lock contention

Reduce the amount of work done inside of synchronized blocks and
force the use of cached ntp data when publicly called.
bug:2662331

Change-Id: Ibafd29ea9e355fa8f875d06ce37870b0c01c57f4
om/android/server/ThrottleService.java
86568d705eb72ce0226b6b95f2d073f335a2bb0d 29-Dec-2009 Brad Larson <brad.larson@garmin.com> Use isLocationProviderEnabled to test for enabled providers

LocationManagerService was just checking if the string of (comma-separated)
Location Providers contained the provider we were interested in. This works
fine in normal cases, but breaks if we add a provider such as test_network.
Enabling test_network causes LocationManagerService to think that the network
provider is also enabled.

The code in Settings.Secure.isLocationProviderEnabled() checks for the commas
in the string as well, to make sure that a provider name which is a substring
of another provider name won't cause problems. It also centralizes the code
which reads the string.

Signed-off-by: Brad Larson <brad.larson@garmin.com>

Change-Id: I00dfe7c2b09739ed4c8ed07c6167e409b0bf7d13
om/android/server/LocationManagerService.java
e491bd6f655a183c4581a2f45d76aa9676be14fc 07-May-2010 Robert Greenwalt <robdroid@android.com> am 7c258c81: am caa63341: am d6d11517: am f9dc24de: Merge "Fix ThrottleService wifi interaction" into froyo
caa63341a890fee8dba9f3edc9c20ae5cec46b36 07-May-2010 Robert Greenwalt <robdroid@android.com> am d6d11517: am f9dc24de: Merge "Fix ThrottleService wifi interaction" into froyo

Merge commit 'd6d115173a856fe28cf5a3087f6d7b0de77495c5' into kraken

* commit 'd6d115173a856fe28cf5a3087f6d7b0de77495c5':
Fix ThrottleService wifi interaction
d6d115173a856fe28cf5a3087f6d7b0de77495c5 07-May-2010 Robert Greenwalt <robdroid@android.com> am f9dc24de: Merge "Fix ThrottleService wifi interaction" into froyo

Merge commit 'f9dc24de53890e0a8289a4349562ed4bd9611974' into froyo-plus-aosp

* commit 'f9dc24de53890e0a8289a4349562ed4bd9611974':
Fix ThrottleService wifi interaction
fee4683f47b43626af98ed9aade27917d4da2d8a 06-May-2010 Robert Greenwalt <robdroid@android.com> Fix ThrottleService wifi interaction

When we switch to another network (or even just lose mobile data) the mobile
interface is either brought down or destroyed altogether. That means any
throttling rules we've told the kernel about get lost.

This change notices when our interface comes up and reinstates throttling
if needed.

bug:2660287
Change-Id: I4c6ebf78acc59ed66b95984a1e8b7c2ffbc22dcb
om/android/server/ThrottleService.java
2af05feaa323b70254666522e3442f5f2012e4ec 07-May-2010 The Android Open Source Project <initial-contribution@android.com> am e107c141: am 9d164dc5: am f4dffd8a: merge from open-source master
9d164dc5c1be55287725343349923f705a5bf8d4 07-May-2010 The Android Open Source Project <initial-contribution@android.com> am f4dffd8a: merge from open-source master

Merge commit 'f4dffd8a45386b5a5f0e6de4f30facc9eaac4001' into kraken

* commit 'f4dffd8a45386b5a5f0e6de4f30facc9eaac4001':
GpsLocationProvider: Store new Location before onGpsStatusChanged is sent
Telephony: Add PUK MMI code support for CDMA RUIM phones
Type Zero Sms should not be displayed/stored/notified.
8c3ed8f99f6ca22958bae04451ac12e0532bd2f2 06-May-2010 Suchi Amalapurapu <asuchitra@google.com> am 4ace6122: am 9c08d5c5: am 9dfc6971: am df7ccbc8: Merge "Fix 2656989. Clean up update to updated system applications." into froyo
108817f3d85f80ddeb8db0ced75502520449a550 06-May-2010 The Android Open Source Project <initial-contribution@android.com> am 8b270a7a: am 579e08e6: am f7896449: merge from open-source master
9c08d5c5306b2db16eb58bd1c5d2677a367a575d 06-May-2010 Suchi Amalapurapu <asuchitra@google.com> am 9dfc6971: am df7ccbc8: Merge "Fix 2656989. Clean up update to updated system applications." into froyo

Merge commit '9dfc6971631e306f6eec62b7c5f423ef52138b9c' into kraken

* commit '9dfc6971631e306f6eec62b7c5f423ef52138b9c':
Fix 2656989. Clean up update to updated system applications.
9dfc6971631e306f6eec62b7c5f423ef52138b9c 06-May-2010 Suchi Amalapurapu <asuchitra@google.com> am df7ccbc8: Merge "Fix 2656989. Clean up update to updated system applications." into froyo

Merge commit 'df7ccbc8ff0d93a708a7fa1e57469d3f93ceda5c' into froyo-plus-aosp

* commit 'df7ccbc8ff0d93a708a7fa1e57469d3f93ceda5c':
Fix 2656989. Clean up update to updated system applications.
579e08e657a8dc9274b297b5dda95a4383cc3642 06-May-2010 The Android Open Source Project <initial-contribution@android.com> am f7896449: merge from open-source master

Merge commit 'f78964490d8098387d51444c87bf520ad3f674e2' into kraken

* commit 'f78964490d8098387d51444c87bf520ad3f674e2':
Add new keycodes for the convenience of Japanese IMEs
Call register_localized_collators() with the current locale.
Fixed deserialization problem in DatePicker.
Fix for bug 2467152 files with spaces fail to open.
Set alpha value for newly created dim surface.
telephony: Fix CID when CID is unknown
f78964490d8098387d51444c87bf520ad3f674e2 06-May-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: Ia9e1f4e049f5870386ea29ddb6e3ef028ea918da
c1d07d9bebe487f8881f51f989a299b3c3c6d4fa 05-May-2010 Suchi Amalapurapu <asuchitra@google.com> Fix 2656989. Clean up update to updated system applications.

Change-Id: Ic66b00926c45fac43396f1f8f23d0865ba77faba
om/android/server/PackageManagerService.java
67eb751e526539a7252a6d97173ed2c376fe3888 05-May-2010 Dianne Hackborn <hackbod@google.com> am 9bbc5683: am d9d009d7: am 3445dae3: am 65b2561c: Merge "Fix issue #2643754: Launcher is caching widget layouts for too long" into froyo
c2da11d826e433663c6ed8d3df71fd5588f6d4d0 05-May-2010 Dianne Hackborn <hackbod@android.com> Merge "Set alpha value for newly created dim surface."
d9d009d7212220aa9350bda153a2f9d8e4375f2b 05-May-2010 Dianne Hackborn <hackbod@google.com> am 3445dae3: am 65b2561c: Merge "Fix issue #2643754: Launcher is caching widget layouts for too long" into froyo

Merge commit '3445dae3f52fa8421e3b93496ac93c5753a43bd2' into kraken

* commit '3445dae3f52fa8421e3b93496ac93c5753a43bd2':
Fix issue #2643754: Launcher is caching widget layouts for too long
3445dae3f52fa8421e3b93496ac93c5753a43bd2 05-May-2010 Dianne Hackborn <hackbod@google.com> am 65b2561c: Merge "Fix issue #2643754: Launcher is caching widget layouts for too long" into froyo

Merge commit '65b2561c3bd74b639df0fead2041c775b7f40000' into froyo-plus-aosp

* commit '65b2561c3bd74b639df0fead2041c775b7f40000':
Fix issue #2643754: Launcher is caching widget layouts for too long
4416c3d6e4becd9ed39b89a03db0239c8225a135 05-May-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2643754: Launcher is caching widget layouts for too long

With the .apk file names now changing during an update, we need
to make sure to flush all caches related to a package when the
package is removed. Otherwise we can continue to use the old
package, since its old file may still exist if we try to load it
too soon.

Change-Id: I15f08dffca3feac999dbca4f24bef12a30ca0a66
om/android/server/am/ActivityManagerService.java
6ce8b0ad27d6668435e9167f8b95e1a11f014419 04-May-2010 The Android Open Source Project <initial-contribution@android.com> am 4929e5a5: am e4b9834f: am 6de3a6fd: merge from open-source master
e4b9834fea18fdd0885d8d062a8fd629e135bdf8 04-May-2010 The Android Open Source Project <initial-contribution@android.com> am 6de3a6fd: merge from open-source master

Merge commit '6de3a6fdd303b15ad944570daf37faa798dc1989' into kraken

* commit '6de3a6fdd303b15ad944570daf37faa798dc1989':
Fix typo of <p> end tag in appwidgets.xml
6de3a6fdd303b15ad944570daf37faa798dc1989 04-May-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: I5f552b45caae639170674213c23f154437b58afd
8bede19e887e4300572ff07286713564af819e22 04-May-2010 The Android Open Source Project <initial-contribution@android.com> am facad955: am dcb5f18f: am 007ad770: merge from open-source master
5bc30057e0e323da84f131cecec7244e89cd9829 04-May-2010 Romain Guy <romainguy@android.com> Merge "Fix typo of <p> end tag in appwidgets.xml"
dcb5f18fd6fac5d8048a11c60348bae82fbe739e 04-May-2010 The Android Open Source Project <initial-contribution@android.com> am 007ad770: merge from open-source master

Merge commit '007ad7700a23ff7e618cfeee1eab97063c93b800' into kraken

* commit '007ad7700a23ff7e618cfeee1eab97063c93b800':
Adapt to new location of libcore
Parse custom text header and ignore it.
Parse "multipart/vnd.wap.multipart.alternative" which is a part of multipart body (nested multipart).
'uses-library' was not working for persistent applications.
Fix an NPE in InputMethodService when mExtractAction is null.
007ad7700a23ff7e618cfeee1eab97063c93b800 04-May-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: If72ad6758c9e1bf77c38c4afec6b00ec9d5b89e4
47c0c942b006ed5c44aeadecdbb2ac7b58e75524 13-Apr-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2555171: Switching to app immediately after unmounting...

...SD card causes reboot.

Add option to not include temporarily unavailable recent tasks,
for the recent tasks UI to not display them.

Change-Id: I1495ca217b4292fd56f537459b44c0624262c292
om/android/server/am/ActivityManagerService.java
bd742e4336a04ea1e8e9a15cf8f66ec6097b883f 30-Apr-2010 Patrick Tsai <yinghau76@gmail.com> Fix typo of <p> end tag in appwidgets.xml

Change-Id: Ic1f4d8ade0d32f3b74decbe557d4275dc2e19466
om/android/server/AppWidgetService.java
6b44915b60d317b81e58f5a3d4db625d43f96f93 29-Apr-2010 Dianne Hackborn <hackbod@google.com> am 9eef6311: am d8f34720: am c956f375: Fix issue #2641875: Apps on sdcard not accesible after update
9eef63113652dc0f0df92295a9fb0b0c71b92934 29-Apr-2010 Dianne Hackborn <hackbod@google.com> am d8f34720: am c956f375: Fix issue #2641875: Apps on sdcard not accesible after update

Merge commit 'd8f34720a1eb87770c854928410c753e0969d3ac' into kraken

* commit 'd8f34720a1eb87770c854928410c753e0969d3ac':
Fix issue #2641875: Apps on sdcard not accesible after update
d8f34720a1eb87770c854928410c753e0969d3ac 29-Apr-2010 Dianne Hackborn <hackbod@google.com> am c956f375: Fix issue #2641875: Apps on sdcard not accesible after update

Merge commit 'c956f37567593a71271bae107eafec47575f7dcc' into froyo-plus-aosp

* commit 'c956f37567593a71271bae107eafec47575f7dcc':
Fix issue #2641875: Apps on sdcard not accesible after update
c956f37567593a71271bae107eafec47575f7dcc 29-Apr-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2641875: Apps on sdcard not accesible after update

Change-Id: I541aa040939e6a872f0b7e8e82e44f96de49d97a
om/android/server/PackageManagerService.java
2eebf5cacd1ae50038812bedbbfb083c54661ed4 19-Nov-2009 Jey <jey.michael@gmail.com> 'uses-library' was not working for persistent applications.
Fix by generating the applicationInfo, when asked for info.

Change-Id: I44686d5a306562c6649148dce8f709e682adcdf4
om/android/server/PackageManagerService.java
8640c1d0e55281530da58350ef54a881d5c51187 29-Apr-2010 Dianne Hackborn <hackbod@google.com> am 14cee9f6: New xlarge screen size.
14cee9f688c32d63d8521188e7422811629bb7c2 24-Apr-2010 Dianne Hackborn <hackbod@google.com> New xlarge screen size.

Not complete, only for experimentation at this point.

This includes a reworking of how screen size configurations are matched,
so that if you are on a larger screen we can select configurations for
smaller screens if there aren't any exactly matching the current screen.

The screen size at which we switch to xlarge has been arbitrarily
chosen; the compatibility behavior has not yet been defined.

Change-Id: I1a33b3818eeb51a68fb72397568c39ab040a07f5
om/android/server/PackageManagerService.java
om/android/server/WindowManagerService.java
6ef7677e4f2474bfde60bc6176bdc6ef23fc3c1b 29-Apr-2010 Amith Yamasani <yamasani@google.com> am 2b7012c3: am 087b25f7: am 6e4895b6: Merge "Make timezone changes apply to status bar time in 24hr mode. Bug: 2632681" into froyo
2b7012c308c908fab8b8642e70929f02228b751e 29-Apr-2010 Amith Yamasani <yamasani@google.com> am 087b25f7: am 6e4895b6: Merge "Make timezone changes apply to status bar time in 24hr mode. Bug: 2632681" into froyo

Merge commit '087b25f7e2669497cf217d873437e8726c139abd' into kraken

* commit '087b25f7e2669497cf217d873437e8726c139abd':
Make timezone changes apply to status bar time in 24hr mode. Bug: 2632681
087b25f7e2669497cf217d873437e8726c139abd 29-Apr-2010 Amith Yamasani <yamasani@google.com> am 6e4895b6: Merge "Make timezone changes apply to status bar time in 24hr mode. Bug: 2632681" into froyo

Merge commit '6e4895b63aa64a8df64dd69c49a414b7566932d3' into froyo-plus-aosp

* commit '6e4895b63aa64a8df64dd69c49a414b7566932d3':
Make timezone changes apply to status bar time in 24hr mode. Bug: 2632681
6e4895b63aa64a8df64dd69c49a414b7566932d3 29-Apr-2010 Amith Yamasani <yamasani@google.com> Merge "Make timezone changes apply to status bar time in 24hr mode. Bug: 2632681" into froyo
cd11e8cddff6b512839625b7f0c660323afcb504 28-Apr-2010 Dianne Hackborn <hackbod@google.com> am 655bf11d: am 725f731c: am bc5a0328: Merge "Fix issue #2569139: Sapphire user cannot login to last.fm..." into froyo
c4938fd6190e04a454e8a10d4cba95ab6b805e71 28-Apr-2010 Amith Yamasani <yamasani@google.com> Make timezone changes apply to status bar time in 24hr mode. Bug: 2632681

The SimpleDateFormat was being cached and new timezone not being applied. Make sure
to apply the new timezone to the format object as soon as it changes.

Change-Id: I72abfef2e14cf5db5a6e8cb71b053380b695495c
om/android/server/status/StatusBarPolicy.java
655bf11de1743999f478e258366f58a10c15a4a9 28-Apr-2010 Dianne Hackborn <hackbod@google.com> am 725f731c: am bc5a0328: Merge "Fix issue #2569139: Sapphire user cannot login to last.fm..." into froyo

Merge commit '725f731cb9368f52a0c6664d2961ef4340c8f7a0' into kraken

* commit '725f731cb9368f52a0c6664d2961ef4340c8f7a0':
Fix issue #2569139: Sapphire user cannot login to last.fm...
725f731cb9368f52a0c6664d2961ef4340c8f7a0 28-Apr-2010 Dianne Hackborn <hackbod@google.com> am bc5a0328: Merge "Fix issue #2569139: Sapphire user cannot login to last.fm..." into froyo

Merge commit 'bc5a03286a72dc3627cee313d473178f5a123049' into froyo-plus-aosp

* commit 'bc5a03286a72dc3627cee313d473178f5a123049':
Fix issue #2569139: Sapphire user cannot login to last.fm...
92cfa105f97b538eaca5f19bfbfd2c5ab9a5f89b 28-Apr-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2569139: Sapphire user cannot login to last.fm...

...after upgrade from Donut to FRF01B

For realz this time.

Change-Id: I92bd12451b19a6006cf487a9dfa0b7c696a21122
om/android/server/PackageManagerService.java
723b9a829a03756009673ea496ef8e3824640b4d 27-Apr-2010 Jean-Michel Trivi <jmtrivi@google.com> am 7a61b840: am 8f36a744: am cd24dae9: Merge "Fix bug 2605504 Don\'t leak a metric ton of NotificationPlayer threads The Looper on the thread created in order to be notified of the playback completion of notification sounds, was never stopped, causing the threads to s
7a61b8400c9e2e3748d2520e9ec4830e8e4691fb 27-Apr-2010 Jean-Michel Trivi <jmtrivi@google.com> am 8f36a744: am cd24dae9: Merge "Fix bug 2605504 Don\'t leak a metric ton of NotificationPlayer threads The Looper on the thread created in order to be notified of the playback completion of notification sounds, was never stopped, causing the threads to stay around in

Merge commit '8f36a744bc8933396f237fbda8f21c31ed41d504' into kraken

* commit '8f36a744bc8933396f237fbda8f21c31ed41d504':
Fix bug 2605504 Don't leak a metric ton of NotificationPlayer threads
9ee5c2215a9fdbc4395bd3151c1c13f41cdd15aa 24-Mar-2010 Maciej Białka <maciej.bialka@sonyericsson.com> Set alpha value for newly created dim surface.

Newly created dim surface has alpha set to 1 (opaque),
but it is assumed in dim animation code that it is 0 (transparent).
When new dim surface is created and expected dim value is calculated to 0
then alpha is never set making screen black (dut to default aplha=1)
when dim surface is shown.
om/android/server/WindowManagerService.java
8f36a744bc8933396f237fbda8f21c31ed41d504 27-Apr-2010 Jean-Michel Trivi <jmtrivi@google.com> am cd24dae9: Merge "Fix bug 2605504 Don\'t leak a metric ton of NotificationPlayer threads The Looper on the thread created in order to be notified of the playback completion of notification sounds, was never stopped, causing the threads to stay around in wait state. T

Merge commit 'cd24dae9ca6550b24333f889935e1de068759ce5' into froyo-plus-aosp

* commit 'cd24dae9ca6550b24333f889935e1de068759ce5':
Fix bug 2605504 Don't leak a metric ton of NotificationPlayer threads
cd24dae9ca6550b24333f889935e1de068759ce5 27-Apr-2010 Jean-Michel Trivi <jmtrivi@google.com> Merge "Fix bug 2605504 Don't leak a metric ton of NotificationPlayer threads The Looper on the thread created in order to be notified of the playback completion of notification sounds, was never stopped, causing the threads to stay around in wait state. The fix consists in quitting the Looper used for the previous sound when a new sound is started." into froyo
6cf3d096363c62212870fb71bda8f55eb8d3823c 27-Apr-2010 Jean-Michel Trivi <jmtrivi@google.com> Fix bug 2605504 Don't leak a metric ton of NotificationPlayer threads
The Looper on the thread created in order to be notified of the
playback completion of notification sounds, was never stopped, causing
the threads to stay around in wait state.
The fix consists in quitting the Looper used for the previous sound
when a new sound is started.

Change-Id: Ia4b3d16b5447ffafacc093db3a7fe05574089935
om/android/server/NotificationPlayer.java
47664252d9b78df69cc6dc3fb9c4d969290cc895 27-Apr-2010 Robert Greenwalt <robdroid@android.com> am 87ac404d: am b3444560: am 27fba679: Fix Throttle reset.
87ac404d6d94a0e38471551ea8d7c615454c9ef5 27-Apr-2010 Robert Greenwalt <robdroid@android.com> am b3444560: am 27fba679: Fix Throttle reset.

Merge commit 'b344456083a4fa3911ebf58c73f022827cc073eb' into kraken

* commit 'b344456083a4fa3911ebf58c73f022827cc073eb':
Fix Throttle reset.
b344456083a4fa3911ebf58c73f022827cc073eb 27-Apr-2010 Robert Greenwalt <robdroid@android.com> am 27fba679: Fix Throttle reset.

Merge commit '27fba6797b07583ef6c280bc287bf327e47f5e66' into froyo-plus-aosp

* commit '27fba6797b07583ef6c280bc287bf327e47f5e66':
Fix Throttle reset.
27fba6797b07583ef6c280bc287bf327e47f5e66 26-Apr-2010 Robert Greenwalt <robdroid@android.com> Fix Throttle reset.

The start and end times were precisely the same so, a ">" check needed to be ">=".
Also removed useless code and removed the potential problem where continuous gradual
advancement of your start and end times would prevent resets.

bug:2629717
Change-Id: Ieced1965a5611a9b555e92bcf924ec350f2a80db
om/android/server/ThrottleService.java
6dee0a3fac648a82ae998348b6673cb7823bd15d 26-Apr-2010 Robert Greenwalt <robdroid@android.com> am 725d4e74: am 0ff9212d: am 19681af4: Merge "Handle throttling being disabled via policy change" into froyo
725d4e7469bfeb97f38dcfafc1c576e9a4db5820 26-Apr-2010 Robert Greenwalt <robdroid@android.com> am 0ff9212d: am 19681af4: Merge "Handle throttling being disabled via policy change" into froyo

Merge commit '0ff9212d077e77f8b3e0afa232293306c0f72d07' into kraken

* commit '0ff9212d077e77f8b3e0afa232293306c0f72d07':
Handle throttling being disabled via policy change
0ff9212d077e77f8b3e0afa232293306c0f72d07 26-Apr-2010 Robert Greenwalt <robdroid@android.com> am 19681af4: Merge "Handle throttling being disabled via policy change" into froyo

Merge commit '19681af44b7c7494ae8de28dab8aacc3e9d92390' into froyo-plus-aosp

* commit '19681af44b7c7494ae8de28dab8aacc3e9d92390':
Handle throttling being disabled via policy change
19681af44b7c7494ae8de28dab8aacc3e9d92390 26-Apr-2010 Robert Greenwalt <robdroid@android.com> Merge "Handle throttling being disabled via policy change" into froyo
cce83379ef5ddd122ffe6fcce431cb86d059a74b 24-Apr-2010 Robert Greenwalt <robdroid@android.com> Handle throttling being disabled via policy change

bug:2622543
Change-Id: Ic0c169094cdb4f80af9cfcbed116f59fda46a421
om/android/server/ThrottleService.java
b9eab6c793959cae13399620965d44bd3a6871c3 24-Apr-2010 Adam Powell <adamp@google.com> resolved conflicts for merge of 81cd2e90 to master

Fixed public.xml value padding for kraken/master

Merge commit '81cd2e90' into manualmerge

Conflicts:
api/current.xml

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

Change-Id: I2c5ac44a4e2af982a616b2012901d7395013b19f
om/android/server/PackageManagerService.java
b1b96c9028aa28d0e172d6f963ba98bbd99a283e 24-Apr-2010 Dianne Hackborn <hackbod@google.com> am 1bdbb072: am cdf96f75: am 8b0047f8: Merge "Fix typo when parsing external platform version from Settings." into froyo
1bdbb07237de7854797ac1574088eef4623eddbb 24-Apr-2010 Dianne Hackborn <hackbod@google.com> am cdf96f75: am 8b0047f8: Merge "Fix typo when parsing external platform version from Settings." into froyo

Merge commit 'cdf96f75da540d880ae6070d861aeb6adabbe9a3' into kraken

* commit 'cdf96f75da540d880ae6070d861aeb6adabbe9a3':
Fix typo when parsing external platform version from Settings.
cdf96f75da540d880ae6070d861aeb6adabbe9a3 24-Apr-2010 Dianne Hackborn <hackbod@google.com> am 8b0047f8: Merge "Fix typo when parsing external platform version from Settings." into froyo

Merge commit '8b0047f82504ebc9b282ed950a85a758b59c4e14' into froyo-plus-aosp

* commit '8b0047f82504ebc9b282ed950a85a758b59c4e14':
Fix typo when parsing external platform version from Settings.
2131a3caa8e3ce24d14093f5ce247482f675e7da 23-Apr-2010 Bryan Mawhinney <bryanmawhinney@google.com> Fix typo when parsing external platform version from Settings.

May fix http://b/2569139

Change-Id: I437f614fd25512bd461812feddb091edcd12ccb7
om/android/server/PackageManagerService.java
a2c980d30f41e6d5aff948e7b249d7c3360db89d 23-Apr-2010 Dianne Hackborn <hackbod@google.com> am 8aed789f: am 994e3990: am 2adec762: Merge "Fix issue #2621809: Kill! Kill! Kill!" into froyo
8aed789f8377b1a4f36edb92bcd96b0901a1c6ad 23-Apr-2010 Dianne Hackborn <hackbod@google.com> am 994e3990: am 2adec762: Merge "Fix issue #2621809: Kill! Kill! Kill!" into froyo

Merge commit '994e39908b167fb70883ce6c1146433e0486e86f' into kraken

* commit '994e39908b167fb70883ce6c1146433e0486e86f':
Fix issue #2621809: Kill! Kill! Kill!
994e39908b167fb70883ce6c1146433e0486e86f 23-Apr-2010 Dianne Hackborn <hackbod@google.com> am 2adec762: Merge "Fix issue #2621809: Kill! Kill! Kill!" into froyo

Merge commit '2adec762fbb61c73f612acb7463ba765de1296ad' into froyo-plus-aosp

* commit '2adec762fbb61c73f612acb7463ba765de1296ad':
Fix issue #2621809: Kill! Kill! Kill!
2adec762fbb61c73f612acb7463ba765de1296ad 23-Apr-2010 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #2621809: Kill! Kill! Kill!" into froyo
149427cd903f2100e3cc39bda41b831cd68bc553 23-Apr-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2621809: Kill! Kill! Kill!

Stop! Stop! Stop! Spamming the log.

Change-Id: I13f432b49d8c85165873566d58e2fb2714b1263e
om/android/server/am/ActivityManagerService.java
om/android/server/am/ProcessRecord.java
1522cf1f492c294eeb15f4de5daeb56f43775e08 23-Apr-2010 Robert Greenwalt <robdroid@android.com> am 9ef25759: am b6c770e4: am 0b2ebe9b: Merge "Respond to changes in throttle policy." into froyo
9ef25759f871afd4ef616a1eb16216b79b56a3d9 23-Apr-2010 Robert Greenwalt <robdroid@android.com> am b6c770e4: am 0b2ebe9b: Merge "Respond to changes in throttle policy." into froyo

Merge commit 'b6c770e4e387bd73d4e7d4cbad99079b37f59043' into kraken

* commit 'b6c770e4e387bd73d4e7d4cbad99079b37f59043':
Respond to changes in throttle policy.
b6c770e4e387bd73d4e7d4cbad99079b37f59043 23-Apr-2010 Robert Greenwalt <robdroid@android.com> am 0b2ebe9b: Merge "Respond to changes in throttle policy." into froyo

Merge commit '0b2ebe9b45172b9147f86fd69eedb2a200982b68' into froyo-plus-aosp

* commit '0b2ebe9b45172b9147f86fd69eedb2a200982b68':
Respond to changes in throttle policy.
5bf16d6e8c0afae4e60590ffbdbed1bd6e73ff8b 23-Apr-2010 Robert Greenwalt <robdroid@android.com> Respond to changes in throttle policy.

We were updating limits and such before, but we were not applying them
to the current situation if we were already throttled. Now it can result in
us throttling or changing our throttle rate or unthrottling or even making
the ui come or go (disabling/enable throttling)

bug:2622543
bug:2619879
Change-Id: I64a62634d54f4768ab8625f8d72f9f66a239cb19
om/android/server/ThrottleService.java
916db002ab44ad845de079efd5111439932145f1 23-Apr-2010 Robert Greenwalt <robdroid@android.com> am d066e3c2: am 1b5a9c5d: am 251ccef0: Merge "Add a Throttle check shortly after boot." into froyo
d066e3c266882bc4ddb98df6caf8075926603632 23-Apr-2010 Robert Greenwalt <robdroid@android.com> am 1b5a9c5d: am 251ccef0: Merge "Add a Throttle check shortly after boot." into froyo

Merge commit '1b5a9c5d2fdf353d12ef1ca11dafc78f4c6f6c81' into kraken

* commit '1b5a9c5d2fdf353d12ef1ca11dafc78f4c6f6c81':
Add a Throttle check shortly after boot.
1b5a9c5d2fdf353d12ef1ca11dafc78f4c6f6c81 23-Apr-2010 Robert Greenwalt <robdroid@android.com> am 251ccef0: Merge "Add a Throttle check shortly after boot." into froyo

Merge commit '251ccef0445d4456809bfc41a6344e2dae24f2c3' into froyo-plus-aosp

* commit '251ccef0445d4456809bfc41a6344e2dae24f2c3':
Add a Throttle check shortly after boot.
251ccef0445d4456809bfc41a6344e2dae24f2c3 23-Apr-2010 Robert Greenwalt <robdroid@android.com> Merge "Add a Throttle check shortly after boot." into froyo
f2c0f29a65eabc30a553c6236b8fca5e6b64552b 23-Apr-2010 Dianne Hackborn <hackbod@google.com> am e06c1e38: am 4bcdd6b0: am 90c6aec1: Merge "Fix issue #2619247: Music sometimes stops playing when navigation talks" into froyo
c9d07b0946bb8c022255f035dd906ef6e7f44252 23-Apr-2010 Dianne Hackborn <hackbod@google.com> am 2fe441fa: am 476a57e6: am 9bc0a572: Merge "Fix issue #2608292: Fails to launch the video camera preview" into froyo
e06c1e38e9a71f0a1b46a11525b23afa1ba7d70c 23-Apr-2010 Dianne Hackborn <hackbod@google.com> am 4bcdd6b0: am 90c6aec1: Merge "Fix issue #2619247: Music sometimes stops playing when navigation talks" into froyo

Merge commit '4bcdd6b0688735d7da0eb2a4f211b4b4c8911e3b' into kraken

* commit '4bcdd6b0688735d7da0eb2a4f211b4b4c8911e3b':
Fix issue #2619247: Music sometimes stops playing when navigation talks
2fe441fa61d17d8e84a9440e808cbb4404eb877b 23-Apr-2010 Dianne Hackborn <hackbod@google.com> am 476a57e6: am 9bc0a572: Merge "Fix issue #2608292: Fails to launch the video camera preview" into froyo

Merge commit '476a57e64a7fa7143e434c1064df1fa87fe4b01a' into kraken

* commit '476a57e64a7fa7143e434c1064df1fa87fe4b01a':
Fix issue #2608292: Fails to launch the video camera preview
4bcdd6b0688735d7da0eb2a4f211b4b4c8911e3b 23-Apr-2010 Dianne Hackborn <hackbod@google.com> am 90c6aec1: Merge "Fix issue #2619247: Music sometimes stops playing when navigation talks" into froyo

Merge commit '90c6aec10f969acf9b171b82920480fb6aeb007f' into froyo-plus-aosp

* commit '90c6aec10f969acf9b171b82920480fb6aeb007f':
Fix issue #2619247: Music sometimes stops playing when navigation talks
476a57e64a7fa7143e434c1064df1fa87fe4b01a 23-Apr-2010 Dianne Hackborn <hackbod@google.com> am 9bc0a572: Merge "Fix issue #2608292: Fails to launch the video camera preview" into froyo

Merge commit '9bc0a572d8459e0b6209e8a68cb680389c1f8b73' into froyo-plus-aosp

* commit '9bc0a572d8459e0b6209e8a68cb680389c1f8b73':
Fix issue #2608292: Fails to launch the video camera preview
90c6aec10f969acf9b171b82920480fb6aeb007f 23-Apr-2010 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #2619247: Music sometimes stops playing when navigation talks" into froyo
8633e68ebdf215f721834f7aa16c2f3cef1bae86 23-Apr-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2619247: Music sometimes stops playing when navigation talks

When a service transitions from foreground to background, we now push it
to the top of the LRU list. Also fix the activity manager to take care
of killing processes if we go beyond a reasonable number of background
process to keep around.

Change-Id: Ic9f44c02af7a111ee6f1d06142386b301948bafe
om/android/server/am/ActivityManagerService.java
f09c1a247af4688729a85af8fba4ba1e404a63d5 23-Apr-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2608292: Fails to launch the video camera preview

Need to clear the attached hidden flag on the window, even if it does
not yet have an actual surface.

Change-Id: I0a90f6b03cd8e347a3eae4d6bea3ab93f7128bf4
om/android/server/WindowManagerService.java
fb9896b5cdb149594fa1b36ac77038d90091a957 23-Apr-2010 Robert Greenwalt <robdroid@android.com> Add a Throttle check shortly after boot.

Throttle is useless when ntp and imsi are not yet ready. In the real world
the second check won't happen for 10 minutes letting people do what they want
for 10 minutes each boot. Trim this down with a quicker first check.

bug:2614247
Change-Id: I84ec33f31e8fed37b3933482fbc187b8e9e94e79
om/android/server/ThrottleService.java
34335a012f3ddd815ae107cbe25c875e09233b38 22-Apr-2010 Robert Greenwalt <robdroid@android.com> am 077952f7: am d9b802bd: am 05fa2144: Merge "Trim throttle logs." into froyo
077952f73e5966c077cd71975125119df7c8125d 22-Apr-2010 Robert Greenwalt <robdroid@android.com> am d9b802bd: am 05fa2144: Merge "Trim throttle logs." into froyo

Merge commit 'd9b802bd03d0ef4792bc99289f16f6a05bd1ee95' into kraken

* commit 'd9b802bd03d0ef4792bc99289f16f6a05bd1ee95':
Trim throttle logs.
d9b802bd03d0ef4792bc99289f16f6a05bd1ee95 22-Apr-2010 Robert Greenwalt <robdroid@android.com> am 05fa2144: Merge "Trim throttle logs." into froyo

Merge commit '05fa2144e458dc8f024235ea01b8682055d828bf' into froyo-plus-aosp

* commit '05fa2144e458dc8f024235ea01b8682055d828bf':
Trim throttle logs.
05fa2144e458dc8f024235ea01b8682055d828bf 22-Apr-2010 Robert Greenwalt <robdroid@android.com> Merge "Trim throttle logs." into froyo
bf7de397279519e0144ceb7264003bc2accbb092 22-Apr-2010 Robert Greenwalt <robdroid@android.com> Trim throttle logs.

Removing unwanted sntp logging and throttle logging.

bug:2614927
Change-Id: Ic0b1c3502ebbc1f04130d09d715591af6513f439
om/android/server/ThrottleService.java
3457957e67b3efe0f9205b2b3f1dffe699451642 22-Apr-2010 Christopher Tate <ctate@google.com> am 1d6ff5a1: am 7e93aad4: am 36fa4713: Merge "Fix security hole in Google backup transport registration" into froyo
1d6ff5a1f791c9cc5348f33f17c63fc6ba36e107 22-Apr-2010 Christopher Tate <ctate@google.com> am 7e93aad4: am 36fa4713: Merge "Fix security hole in Google backup transport registration" into froyo

Merge commit '7e93aad42d5f96e4e3a471e49384e1ce794c9411' into kraken

* commit '7e93aad42d5f96e4e3a471e49384e1ce794c9411':
Fix security hole in Google backup transport registration
7e93aad42d5f96e4e3a471e49384e1ce794c9411 22-Apr-2010 Christopher Tate <ctate@google.com> am 36fa4713: Merge "Fix security hole in Google backup transport registration" into froyo

Merge commit '36fa47139d4621dc4bf8d89caa8650495d901b00' into froyo-plus-aosp

* commit '36fa47139d4621dc4bf8d89caa8650495d901b00':
Fix security hole in Google backup transport registration
36fa47139d4621dc4bf8d89caa8650495d901b00 22-Apr-2010 Christopher Tate <ctate@google.com> Merge "Fix security hole in Google backup transport registration" into froyo
a32504fce826fb66b53991d04819ece3e6bf105e 22-Apr-2010 Christopher Tate <ctate@google.com> Fix security hole in Google backup transport registration

Previously, it was conceivable that a 3rd party application on a non-GED
device could publish a service that supported the (hidden) IBackupTransport
interface and spoofed the Google backup transport's package and component
name. This could allow it to secretly intercept all data moved through the
backup mechanism.

Fix by ensuring that the package in question exists and is part of the
OS itself (FLAG_SYSTEM in its ApplicationInfo description) before binding
to it.

Fixes bug #2457063

Change-Id: I3487572be45c2014fa209beacfe3ac6f8270f872
om/android/server/BackupManagerService.java
b633123f9b5a969af59cef52b56ba94ef1a38f1c 21-Apr-2010 Jeff Brown <jeffbrown@google.com> am bba573c2: am ccc96754: am 22caecda: Merge "Fix PM crash due to bad array bookkeeping logic." into froyo
bba573c2110128d1c829a533e6c328ac9ea0e9e4 21-Apr-2010 Jeff Brown <jeffbrown@google.com> am ccc96754: am 22caecda: Merge "Fix PM crash due to bad array bookkeeping logic." into froyo

Merge commit 'ccc96754c5c6e31d6f782c3adeb06ad1694221d8' into kraken

* commit 'ccc96754c5c6e31d6f782c3adeb06ad1694221d8':
Fix PM crash due to bad array bookkeeping logic.
ccc96754c5c6e31d6f782c3adeb06ad1694221d8 21-Apr-2010 Jeff Brown <jeffbrown@google.com> am 22caecda: Merge "Fix PM crash due to bad array bookkeeping logic." into froyo

Merge commit '22caecda8a24c971972d78a112279c48f242d529' into froyo-plus-aosp

* commit '22caecda8a24c971972d78a112279c48f242d529':
Fix PM crash due to bad array bookkeeping logic.
22caecda8a24c971972d78a112279c48f242d529 21-Apr-2010 Jeff Brown <jeffbrown@google.com> Merge "Fix PM crash due to bad array bookkeeping logic." into froyo
76944798f5c37999f98db4e51c5ecebfc2464774 21-Apr-2010 Robert Greenwalt <robdroid@android.com> am 54f5ecc6: am 9127d9a5: am be348964: Merge "Move Tethering off the ServerThread." into froyo
54f5ecc6d1f3556a8531c0f4c63353a25174d679 21-Apr-2010 Robert Greenwalt <robdroid@android.com> am 9127d9a5: am be348964: Merge "Move Tethering off the ServerThread." into froyo

Merge commit '9127d9a5fd95d7454a10d44acb79079720f6bb91' into kraken

* commit '9127d9a5fd95d7454a10d44acb79079720f6bb91':
Move Tethering off the ServerThread.
9127d9a5fd95d7454a10d44acb79079720f6bb91 21-Apr-2010 Robert Greenwalt <robdroid@android.com> am be348964: Merge "Move Tethering off the ServerThread." into froyo

Merge commit 'be34896457bb37b4e263efa87316d2e2420adab3' into froyo-plus-aosp

* commit 'be34896457bb37b4e263efa87316d2e2420adab3':
Move Tethering off the ServerThread.
be34896457bb37b4e263efa87316d2e2420adab3 21-Apr-2010 Robert Greenwalt <robdroid@android.com> Merge "Move Tethering off the ServerThread." into froyo
8c8bb8b3c4eba500d64b75c344518fa1cda35e92 21-Apr-2010 Jeff Brown <jeffbrown@google.com> Fix PM crash due to bad array bookkeeping logic.

Bug: 2586093
Change-Id: I320deeef65a434060e608015dc2dd97b8200e025
om/android/server/PackageManagerService.java
7eae25021d3aa71c7616ea766f9a4d5af3b1772b 21-Apr-2010 Robert Greenwalt <robdroid@android.com> Move Tethering off the ServerThread.

An ANR has been reported because somebody else was hogging the Netd
link. We can't pause the server thread for that, so make a new thread.

bug:2609904
Change-Id: I0430a08621da1cda0a0010ce15826cceee59a529
om/android/server/connectivity/Tethering.java
ac075190b9a6f10c2f24c3e3d1de035aa0329fa4 17-Mar-2010 Guang Zhu <guangzhu@google.com> disable emma instrumentation for framework, ext and services

When these libraries are instrumented with emma instructions, runtime keeps
restarting on native crashes. To acheive a fully emma instrumented build,
we need to disable emma instrumentation on these libraries.

Change-Id: I914b7b88cfc39eddbf273e653e603d4edfdf5837
ndroid.mk
29019cb9773dfc7645c9326725a6ac514020eef7 20-Apr-2010 Daniel Sandler <dsandler@android.com> am c96307ef: Merge "Make the silent/vibrate status icon reflect overall device state. (DO NOT MERGE)" into froyo

Merge commit 'c96307efd2829cdd0fa7c835484f2f89edf7d883' into froyo-plus-aosp

* commit 'c96307efd2829cdd0fa7c835484f2f89edf7d883':
Make the silent/vibrate status icon reflect overall device state. (DO NOT MERGE)
c96307efd2829cdd0fa7c835484f2f89edf7d883 20-Apr-2010 Daniel Sandler <dsandler@android.com> Merge "Make the silent/vibrate status icon reflect overall device state. (DO NOT MERGE)" into froyo
3fce2ef599d8505f3f12ffa23caf5db925ac9f46 19-Apr-2010 Robert Greenwalt <robdroid@android.com> am 3d27a2e6: am 2f8c9e68: am f06f2eb2: Merge "Misc fixes for throttling." into froyo
3d27a2e6a1e4b831d2b3aa3ab308a21c4f261217 19-Apr-2010 Robert Greenwalt <robdroid@android.com> am 2f8c9e68: am f06f2eb2: Merge "Misc fixes for throttling." into froyo

Merge commit '2f8c9e6825e31614f26f8d9f3c1de7be2f3e9f9e' into kraken

* commit '2f8c9e6825e31614f26f8d9f3c1de7be2f3e9f9e':
Misc fixes for throttling.
2f8c9e6825e31614f26f8d9f3c1de7be2f3e9f9e 19-Apr-2010 Robert Greenwalt <robdroid@android.com> am f06f2eb2: Merge "Misc fixes for throttling." into froyo

Merge commit 'f06f2eb2d646789d723d4a08d0681cae5b40b768' into froyo-plus-aosp

* commit 'f06f2eb2d646789d723d4a08d0681cae5b40b768':
Misc fixes for throttling.
f06f2eb2d646789d723d4a08d0681cae5b40b768 19-Apr-2010 Robert Greenwalt <robdroid@android.com> Merge "Misc fixes for throttling." into froyo
c322f51f8c853e040cf36a3cd739b55ea026bbcd 19-Apr-2010 Brad Fitzpatrick <bradfitz@android.com> am eb828459: am bb9739c5: am 11bea2e2: Merge "Reduce lock contention, removing unnecessary synchronization." into froyo
05d0673bfc5231f6dea4bc99627bbf44edf3a8d0 19-Apr-2010 Robert Greenwalt <robdroid@android.com> Misc fixes for throttling.

Cleanup of duplicate code
Caching Ntp data so we don't hit the network as often
Clearing out of MRU data when we switch to a new sim
Sending notification after we reset byte counts

bug:2605277
bug:2605272
bug:2597530
bug:2576057
Change-Id: I3df526bae6374f6ae56fed67b0defad2b4fabefd
om/android/server/ThrottleService.java
eb82845977c44e04682fb5f6d96c833384ff3b3b 19-Apr-2010 Brad Fitzpatrick <bradfitz@android.com> am bb9739c5: am 11bea2e2: Merge "Reduce lock contention, removing unnecessary synchronization." into froyo

Merge commit 'bb9739c5d74404b9155565f2a08509079b719a22' into kraken

* commit 'bb9739c5d74404b9155565f2a08509079b719a22':
Reduce lock contention, removing unnecessary synchronization.
bb9739c5d74404b9155565f2a08509079b719a22 19-Apr-2010 Brad Fitzpatrick <bradfitz@android.com> am 11bea2e2: Merge "Reduce lock contention, removing unnecessary synchronization." into froyo

Merge commit '11bea2e216800c5612144f76d307da653d565be3' into froyo-plus-aosp

* commit '11bea2e216800c5612144f76d307da653d565be3':
Reduce lock contention, removing unnecessary synchronization.
038d4f43f6a972f023b561f4795b1f289ea611d6 19-Apr-2010 Brad Fitzpatrick <bradfitz@android.com> am db5b7d01: am 9a9b09f6: am afbf9f8d: Merge "Ease contention on the mProcessStatsThread mutex in updateCpuStats." into froyo
b213d103d34a5f2ebbdafef6a7510fce2cc1e337 19-Apr-2010 Brad Fitzpatrick <bradfitz@android.com> Reduce lock contention, removing unnecessary synchronization.

The value returned is purely a function of what's passed in, all
following final members.

BUG=2606839

Change-Id: I506fb9b1f3be965576c2b3317a30ff1f990ccda3
om/android/server/am/ActivityManagerService.java
db5b7d018f08bb410aa270bf815566f3142fe8d0 19-Apr-2010 Brad Fitzpatrick <bradfitz@android.com> am 9a9b09f6: am afbf9f8d: Merge "Ease contention on the mProcessStatsThread mutex in updateCpuStats." into froyo

Merge commit '9a9b09f6bd209f9f46370c63cb72ab3460216b3b' into kraken

* commit '9a9b09f6bd209f9f46370c63cb72ab3460216b3b':
Ease contention on the mProcessStatsThread mutex in updateCpuStats.
9a9b09f6bd209f9f46370c63cb72ab3460216b3b 19-Apr-2010 Brad Fitzpatrick <bradfitz@android.com> am afbf9f8d: Merge "Ease contention on the mProcessStatsThread mutex in updateCpuStats." into froyo

Merge commit 'afbf9f8d6d66a0c1ba8c44a87b120bcad89ad8b5' into froyo-plus-aosp

* commit 'afbf9f8d6d66a0c1ba8c44a87b120bcad89ad8b5':
Ease contention on the mProcessStatsThread mutex in updateCpuStats.
afbf9f8d6d66a0c1ba8c44a87b120bcad89ad8b5 19-Apr-2010 Brad Fitzpatrick <bradfitz@android.com> Merge "Ease contention on the mProcessStatsThread mutex in updateCpuStats." into froyo
c210b65cd2619ef462bd860c7197ddcb1c39c75c 19-Apr-2010 Daniel Sandler <dsandler@android.com> Make the silent/vibrate status icon reflect overall device state. (DO NOT MERGE)

Previously, this status icon reflected just the incoming
call behavior:
- gone for audible (with or without vibrate),
- wiggling phone for vibrate,
- silent (speaker + X) for no audible ring or vibrate.

Now that silent mode has changed (see VIBRATE_IN_SILENT),
you can easily get into a state where this icon is
confusing by setting the incoming call ringer to *never*
vibrate but setting the overall device silent state to allow
vibration (VIBRATE_IN_SILENT=true). In this case, rocking
the volume all the way down would show a wiggling phone
(because the device is in vibrate-only mode) but the status
bar would show speaker+X (because the incoming call would
neither ring nor vibrate).

Now these two icons are consistent. This means, however,
that if this special condition is set by the user (device
vibrates in silent mode, but incoming calls should never
vibrate) and the device is in silent mode, the status bar
will show a wiggling phone even though incoming calls will
not vibrate the device. This puts the ringer on a more even
footing with other apps on the device, which may elect not
to vibrate even if VIBRATE_IN_SILENT=true overall.

Bug: 2598014
Change-Id: Ib942f68738d77ab0d9b9da4fac718ae5957c133c
om/android/server/status/StatusBarPolicy.java
01fad4a52666974dbc53eaf4f7a857dd65c22eed 19-Apr-2010 Brad Fitzpatrick <bradfitz@android.com> Ease contention on the mProcessStatsThread mutex in updateCpuStats.

BUG=2606839

Change-Id: I444af0bb4a7b0be7ebf9ee5887805f2f09a426d0
om/android/server/am/ActivityManagerService.java
41154620a9f580cfdcb652331e8594385cd1512d 19-Apr-2010 Jean-Michel Trivi <jmtrivi@google.com> am 98bccfdd: am 6aa2acca: am 04152f98: Merge "Fix bug 2599698 Music paused by itself The NotificationPlayer sets an OnCompletionListener on the MediaPlayer it\'s using to play the notification. NotificationPlayer relies on the completion event to abandon audio focus.
98bccfdd4d9b38c8dcd75282bfe81b2befb4ac2d 19-Apr-2010 Jean-Michel Trivi <jmtrivi@google.com> am 6aa2acca: am 04152f98: Merge "Fix bug 2599698 Music paused by itself The NotificationPlayer sets an OnCompletionListener on the MediaPlayer it\'s using to play the notification. NotificationPlayer relies on the completion event to abandon audio focus. The player w

Merge commit '6aa2accae3f58e4139f890f51c699901ee3abb88' into kraken

* commit '6aa2accae3f58e4139f890f51c699901ee3abb88':
Fix bug 2599698 Music paused by itself
6aa2accae3f58e4139f890f51c699901ee3abb88 19-Apr-2010 Jean-Michel Trivi <jmtrivi@google.com> am 04152f98: Merge "Fix bug 2599698 Music paused by itself The NotificationPlayer sets an OnCompletionListener on the MediaPlayer it\'s using to play the notification. NotificationPlayer relies on the completion event to abandon audio focus. The player was started bef

Merge commit '04152f98ffbd17f54a6b771636ff7f440f0edc78' into froyo-plus-aosp

* commit '04152f98ffbd17f54a6b771636ff7f440f0edc78':
Fix bug 2599698 Music paused by itself
04152f98ffbd17f54a6b771636ff7f440f0edc78 19-Apr-2010 Jean-Michel Trivi <jmtrivi@google.com> Merge "Fix bug 2599698 Music paused by itself The NotificationPlayer sets an OnCompletionListener on the MediaPlayer it's using to play the notification. NotificationPlayer relies on the completion event to abandon audio focus. The player was started before the listener was set. The theory about the bug is that the player finished playing before the listener was called. Therefore the audio focus was never abandonned, and the music didn't resume." into froyo
d5b119e0fa01d7a675446dd31f5b024251839619 19-Apr-2010 Mike Lockwood <lockwood@android.com> am ea7c123f: am daa107c8: am 3110bf6d: Merge "Fix inconsistency in how we handle light sensor when battery is low." into froyo
ea7c123f9861df77b0a71b1877d99b7912254e8e 19-Apr-2010 Mike Lockwood <lockwood@android.com> am daa107c8: am 3110bf6d: Merge "Fix inconsistency in how we handle light sensor when battery is low." into froyo

Merge commit 'daa107c81db31b7fbaaf4219b0552ff07d44a29e' into kraken

* commit 'daa107c81db31b7fbaaf4219b0552ff07d44a29e':
Fix inconsistency in how we handle light sensor when battery is low.
daa107c81db31b7fbaaf4219b0552ff07d44a29e 19-Apr-2010 Mike Lockwood <lockwood@android.com> am 3110bf6d: Merge "Fix inconsistency in how we handle light sensor when battery is low." into froyo

Merge commit '3110bf6df1cb6d548e678cdcbb8c7349b2ac0d8a' into froyo-plus-aosp

* commit '3110bf6df1cb6d548e678cdcbb8c7349b2ac0d8a':
Fix inconsistency in how we handle light sensor when battery is low.
3110bf6df1cb6d548e678cdcbb8c7349b2ac0d8a 19-Apr-2010 Mike Lockwood <lockwood@android.com> Merge "Fix inconsistency in how we handle light sensor when battery is low." into froyo
e6b205bbf21a741f1541751eb1375a58d6a9fc6c 18-Apr-2010 Robert Greenwalt <robdroid@android.com> am 8987f110: am c2093636: am 7171ea81: Make ThrottleService more tamper resistant.
8987f110c650d72536dcb9bfcd9f80c5bc628f6f 18-Apr-2010 Robert Greenwalt <robdroid@android.com> am c2093636: am 7171ea81: Make ThrottleService more tamper resistant.

Merge commit 'c2093636db6141426ca7fe88f07b30a284e36759' into kraken

* commit 'c2093636db6141426ca7fe88f07b30a284e36759':
Make ThrottleService more tamper resistant.
c2093636db6141426ca7fe88f07b30a284e36759 18-Apr-2010 Robert Greenwalt <robdroid@android.com> am 7171ea81: Make ThrottleService more tamper resistant.

Merge commit '7171ea8179e09270e4d6ab825a2320816eee39c5' into froyo-plus-aosp

* commit '7171ea8179e09270e4d6ab825a2320816eee39c5':
Make ThrottleService more tamper resistant.
7171ea8179e09270e4d6ab825a2320816eee39c5 15-Apr-2010 Robert Greenwalt <robdroid@android.com> Make ThrottleService more tamper resistant.

Use elapsed time not wall time for alarms so users can't play with the
system time to get around things.

Also using NTP servers to pull in an authoritative time - if we the build
is configured with an NTP server we will not advance to the next cycle
without it, but we also will not trottle - rather not throttle users
on an error.

Note that the poll alarm is just relative to the last poll time and real
time doesn't matter.

Defining the time-fetching API's as returning time in the system wallclock
range (correcting if we are using NTP time internally).

bug:2597530
Change-Id: I1c0ac0923314c2f8a04edd0b36c4845352eae99a
om/android/server/ThrottleService.java
48358bd5c1a35c153c024608b4a302b90f62abfd 18-Apr-2010 Mike Lockwood <lockwood@android.com> Fix inconsistency in how we handle light sensor when battery is low.

In lightSensorChangedLocked we ignore the light sensor if the battery is low.
But in applyButtonState() and applyKeyboardState() we were still using the previous
mLightSensorScreenBrightness value, which resulted in a race condition that could
leave the button lights on after the screen turns off.
Now we ignore the light sensor value and button brightness override if the battery
is low so the low battery behavior is consistent.

Change-Id: I4943f8904299883211a95596ee207df69d1eaea2
BUG: 2570962

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/PowerManagerService.java
d0af6819be585ce8487a74c80ea19714d5b5358f 17-Apr-2010 Irfan Sheriff <isheriff@google.com> am c2477a92: am 2572b046: am 975d86df: Merge "Dont check on interface value on API" into froyo
c2477a924f8474b27f86ea365f975c7fd736c176 17-Apr-2010 Irfan Sheriff <isheriff@google.com> am 2572b046: am 975d86df: Merge "Dont check on interface value on API" into froyo

Merge commit '2572b046d64a2d0b43d74870e1e899364f2bc721' into kraken

* commit '2572b046d64a2d0b43d74870e1e899364f2bc721':
Dont check on interface value on API
2572b046d64a2d0b43d74870e1e899364f2bc721 17-Apr-2010 Irfan Sheriff <isheriff@google.com> am 975d86df: Merge "Dont check on interface value on API" into froyo

Merge commit '975d86dfc6407314491a18bc715c8c95a8f8f0b1' into froyo-plus-aosp

* commit '975d86dfc6407314491a18bc715c8c95a8f8f0b1':
Dont check on interface value on API
cf28236b3784e285632e272b99cf1f8fc01f016b 17-Apr-2010 Irfan Sheriff <isheriff@google.com> Dont check on interface value on API

The interface check in API could be used
in future.

Bug: 2576057
Change-Id: Icfb78a88be44d1e6a8350c4b65efe70970e658d8
om/android/server/ThrottleService.java
a99f5f43cdb24f60fd1adc3fdfcb8d6ff101a0fd 17-Apr-2010 Jean-Michel Trivi <jmtrivi@google.com> Fix bug 2599698 Music paused by itself
The NotificationPlayer sets an OnCompletionListener on the
MediaPlayer it's using to play the notification.
NotificationPlayer relies on the completion event to abandon
audio focus.
The player was started before the listener was set. The theory
about the bug is that the player finished playing before the listener
was called. Therefore the audio focus was never abandonned, and
the music didn't resume.

Change-Id: Ic3baf359ea24de0d832a655dc47e745b25bc3dec
om/android/server/NotificationPlayer.java
6f537a99cf95ca4d8385e24655d9954b8e7d6c83 16-Apr-2010 Mike Lockwood <lockwood@android.com> am 48b8b4fd: Merge "GpsLocationProvider: Eliminate MIN_FIX_COUNT." into kraken
f50bac9ab69eaa621b72a2dbfb81d286d6994d6f 16-Apr-2010 Mike Lockwood <lockwood@android.com> am ad903e80: Merge "GpsLocationProvider: Remove NTP sanity checking now that the NTP client has been fixed." into kraken
48b8b4fd46b4402878e13bf7cd203cf3590165b5 16-Apr-2010 Mike Lockwood <lockwood@android.com> Merge "GpsLocationProvider: Eliminate MIN_FIX_COUNT." into kraken
ad903e8010b280b3c0857b8223b1fd4127887e21 16-Apr-2010 Mike Lockwood <lockwood@android.com> Merge "GpsLocationProvider: Remove NTP sanity checking now that the NTP client has been fixed." into kraken
d29def562fed95253edd687c96a0044d6eaabdf2 16-Apr-2010 Robert Greenwalt <robdroid@android.com> am 9e17d740: am 32ebaf57: am e80c6f49: Merge "Add multi-sim support to ThrottleService." into froyo
9e17d7408b48a2f658387a1354756b5c2ed815dd 16-Apr-2010 Robert Greenwalt <robdroid@android.com> am 32ebaf57: am e80c6f49: Merge "Add multi-sim support to ThrottleService." into froyo

Merge commit '32ebaf57d8646542b80e848441830a5ef834aed3' into kraken

* commit '32ebaf57d8646542b80e848441830a5ef834aed3':
Add multi-sim support to ThrottleService.
32ebaf57d8646542b80e848441830a5ef834aed3 16-Apr-2010 Robert Greenwalt <robdroid@android.com> am e80c6f49: Merge "Add multi-sim support to ThrottleService." into froyo

Merge commit 'e80c6f49d5055e299b7ada91b5967feab66e467b' into froyo-plus-aosp

* commit 'e80c6f49d5055e299b7ada91b5967feab66e467b':
Add multi-sim support to ThrottleService.
d53ba017ee2381383b4bb4d92e6e0e661431660f 16-Apr-2010 Mike Lockwood <lockwood@android.com> GpsLocationProvider: Eliminate MIN_FIX_COUNT.

Now we stop after one fix rather than waiting for 10 when requesting occasional
fixes to conserve power.

Change-Id: Ic420f2d20780db983fc4db22246e0a486eecc58e
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/location/GpsLocationProvider.java
e80c6f49d5055e299b7ada91b5967feab66e467b 16-Apr-2010 Robert Greenwalt <robdroid@android.com> Merge "Add multi-sim support to ThrottleService." into froyo
e6e98823412275d869ec15d71fd11bba98417c45 15-Apr-2010 Robert Greenwalt <robdroid@android.com> Add multi-sim support to ThrottleService.

Uses the last used data until the SIM is available (if ever). Supports data from
several SIMs for all the world travelers out there.

bug: 2576057
Change-Id: I70e34a51f1c2ccda41a480652b0233b68ff3f538
om/android/server/ThrottleService.java
1879d284bf3dd704dbc8c95aad262ebbe3c3c0a4 16-Apr-2010 Mike Lockwood <lockwood@android.com> GpsLocationProvider: Remove NTP sanity checking now that the NTP client has been fixed.

Change-Id: Iedf3f5ff333db7298de6cd6e86fface1f8421738
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/location/GpsLocationProvider.java
120c457672056280e5925589c4b19107a9ee814a 16-Apr-2010 android-build SharedAccount <android-build@google.com> manual merge

Change-Id: I235ae925559b5db6d64cc8f8b188704a84d7b6a2
50fa66c5b0a6f23a72e3ebf5fa05164528123348 15-Apr-2010 Suchi Amalapurapu <asuchitra@google.com> am 180ee659: am 1e21ec92: am 40b6996a: Merge "Add ordered broadcast when removing packages." into froyo
2fe323f412c9e6917ab55e08cf52adb042f98387 15-Apr-2010 Mike Lockwood <lockwood@android.com> am 63aa5a6f: clear calling identity in GpsLocationProvider.sendExtraCommand().
f1307b2ac4958efad3cf678d6419472631b1f3b3 15-Apr-2010 Mike Lockwood <lockwood@android.com> am 04598b67: GPS: Support for GPS HAL managing its own scheduling
17d820d876652f927a04431aaf93b9c23c412ae3 15-Apr-2010 Mike Lockwood <lockwood@android.com> am f440b4aa: Merge "GpsLocationProvider: optimize wake lock usage." into kraken
ee193607a8cf6522f4bcaf025c07f6d8ae338888 15-Apr-2010 David 'Digit' Turner <digit@google.com> am 7a4b22f6: am 4f99e3c2: Remove native binaries when an updated system application is upgraded through OTA.

Merge commit '7a4b22f6293c7dce2dd667b7ebd171af2eff91a9' into kraken

* commit '7a4b22f6293c7dce2dd667b7ebd171af2eff91a9':
Remove native binaries when an updated system application is upgraded through OTA.
7a4b22f6293c7dce2dd667b7ebd171af2eff91a9 15-Apr-2010 David 'Digit' Turner <digit@google.com> am 4f99e3c2: Remove native binaries when an updated system application is upgraded through OTA.

Merge commit '4f99e3c28449833b10ee23c538246847fdb6a498' into froyo-plus-aosp

* commit '4f99e3c28449833b10ee23c538246847fdb6a498':
Remove native binaries when an updated system application is upgraded through OTA.
4f99e3c28449833b10ee23c538246847fdb6a498 13-Apr-2010 David 'Digit' Turner <digit@google.com> Remove native binaries when an updated system application is upgraded through OTA.

The point of this patch is to deal with the following case:

- A system application exists in the system partition. As such its
native code lies under /system/lib

- An upgrade for it is installed through Market and overrides the
version on the system partition. This places its native libraries
under /data/data/<pkgname>/lib/

- Finally, the system is upgraded through an OTA, with an even more
recent of the system application. We thus must remove the Market
package as well as the native libraries that are in <dataDir>/lib
since the new versions in /system/lib will be more recent.

The patch itself removes the files in <dataDir>/lib when such a
situation is detected. Note that this directory is created by the
PackageManager service and owned by the 'system' userID. The application
cannot create files there so simply erasing the content of the directory
is enough (and avoids reparsing the market package file to list
the installed binaries).

The patch also fixes a different issue which can be reproduced with:

- have system app installed on /system partition
- install an update (e.g. adb install -r Term.apk)
- uninstall the update (e.g. adb uninstall com.android.term)

the logcat shows that the PackageManager will unpack the native libraries
from the original /system/app/Term.apk into <dataDir>/lib, while they
already are in /system/lib. The patch fixes that too.

Change-Id: I5dfe27b91b6b31972e9cd4c196d15c3692732127
om/android/server/PackageManagerService.java
97107f0497c9afe549933a04ccc44858a0841c0b 15-Apr-2010 Dianne Hackborn <hackbod@google.com> am 093d621c: am 11d7502b: am 8656145e: Merge "Fix issue #593153: Broadcast time out when sending..." into froyo
59019368cfec5e3471f70a6ded77a8e2ff353ba3 15-Apr-2010 Robert Greenwalt <robdroid@android.com> am eaa8b1a7: am 57e60854: am 22b3644a: Update the datause icons.
f7999965319bf9b616c253ea25154037391bad0c 15-Apr-2010 Robert Greenwalt <robdroid@android.com> am c059f342: am b26c8dd4: am 9cb66e89: Merge "Perist Throttle data across reboots" into froyo
b2378aaa071b074e0d9663d13af5648ceefa4d2c 15-Apr-2010 Mike Lockwood <lockwood@android.com> am f5a886d5: am 93597ed1: Merge "Fix wakelock leak in PowerManagerService.sendNotificationLocked()" into froyo

Merge commit 'f5a886d5210320724236ce6efde926e0a3c24997' into kraken

* commit 'f5a886d5210320724236ce6efde926e0a3c24997':
Fix wakelock leak in PowerManagerService.sendNotificationLocked()
f5a886d5210320724236ce6efde926e0a3c24997 15-Apr-2010 Mike Lockwood <lockwood@android.com> am 93597ed1: Merge "Fix wakelock leak in PowerManagerService.sendNotificationLocked()" into froyo

Merge commit '93597ed1839de164c81f83832d4c2373ea32ac8f' into froyo-plus-aosp

* commit '93597ed1839de164c81f83832d4c2373ea32ac8f':
Fix wakelock leak in PowerManagerService.sendNotificationLocked()
93597ed1839de164c81f83832d4c2373ea32ac8f 15-Apr-2010 Mike Lockwood <lockwood@android.com> Merge "Fix wakelock leak in PowerManagerService.sendNotificationLocked()" into froyo
d38a767c9240d0d4358d2074a92d1e1d042f63c6 15-Apr-2010 Robert Greenwalt <robdroid@android.com> am 1424d1d2: am 8090edae: Merge "Sholes mobile iface comes/goes - handle the reset" into froyo

Merge commit '1424d1d22e199c716c5d248611e58ce7c3f15c7e' into kraken

* commit '1424d1d22e199c716c5d248611e58ce7c3f15c7e':
Sholes mobile iface comes/goes - handle the reset
c260b08e59304b4b72037c3724fdfdd03ecac37f 15-Apr-2010 Suchi Amalapurapu <asuchitra@google.com> am 0751d1ea: am deb69370: Revert "Add ordered broadcast when removing packages." Couple of cosmetic fixes as well.

Merge commit '0751d1eaad55603eaeb0f035a55935f713ab0476' into kraken

* commit '0751d1eaad55603eaeb0f035a55935f713ab0476':
Revert "Add ordered broadcast when removing packages."
1424d1d22e199c716c5d248611e58ce7c3f15c7e 15-Apr-2010 Robert Greenwalt <robdroid@android.com> am 8090edae: Merge "Sholes mobile iface comes/goes - handle the reset" into froyo

Merge commit '8090edae9ed1228e8cbaa14dd94c6ce885a0b729' into froyo-plus-aosp

* commit '8090edae9ed1228e8cbaa14dd94c6ce885a0b729':
Sholes mobile iface comes/goes - handle the reset
0751d1eaad55603eaeb0f035a55935f713ab0476 15-Apr-2010 Suchi Amalapurapu <asuchitra@google.com> am deb69370: Revert "Add ordered broadcast when removing packages." Couple of cosmetic fixes as well.

Merge commit 'deb69370ef9a786940ae49411ba657410361b4f1' into froyo-plus-aosp

* commit 'deb69370ef9a786940ae49411ba657410361b4f1':
Revert "Add ordered broadcast when removing packages."
8090edae9ed1228e8cbaa14dd94c6ce885a0b729 15-Apr-2010 Robert Greenwalt <robdroid@android.com> Merge "Sholes mobile iface comes/goes - handle the reset" into froyo
deb69370ef9a786940ae49411ba657410361b4f1 15-Apr-2010 Suchi Amalapurapu <asuchitra@google.com> Revert "Add ordered broadcast when removing packages."
Couple of cosmetic fixes as well.

This reverts commit 0c1285fa979e8b8c170f31d0ef1b4e5d9ddcf6b1.

Conflicts:

services/java/com/android/server/PackageManagerService.java

Change-Id: Ife0f9f80525f4a41b1f8c12ffc2de62e061e7d5b
om/android/server/PackageManagerService.java
ccb87e11da5ff4508ede1e4582a5d617fbe78a97 15-Apr-2010 Dianne Hackborn <hackbod@google.com> am 68ca59e9: am b0ef1442: Merge "Fix issue #258640: Automatic propagation of FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET" into froyo

Merge commit '68ca59e9e69ab4c997987fb0390382a2461386eb' into kraken

* commit '68ca59e9e69ab4c997987fb0390382a2461386eb':
Fix issue #258640: Automatic propagation of FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET
68ca59e9e69ab4c997987fb0390382a2461386eb 15-Apr-2010 Dianne Hackborn <hackbod@google.com> am b0ef1442: Merge "Fix issue #258640: Automatic propagation of FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET" into froyo

Merge commit 'b0ef1442866ec52a772e6edfab732a2c987bbee0' into froyo-plus-aosp

* commit 'b0ef1442866ec52a772e6edfab732a2c987bbee0':
Fix issue #258640: Automatic propagation of FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET
b0ef1442866ec52a772e6edfab732a2c987bbee0 15-Apr-2010 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #258640: Automatic propagation of FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET" into froyo
7322b9f0e8b9d03eab3703054a9d0e8181eb088a 15-Apr-2010 Suchi Amalapurapu <asuchitra@google.com> am 2ef6e442: am 28b2fdc5: Merge "Dont fall back to installing on sdcard when internal storage is filled up when the install location is set to internal only. Similary if install location is set to external only(via adb), dont fall back to installing on internal storag

Merge commit '2ef6e44269ba3c9f6b5d22352461555ebab33b73' into kraken

* commit '2ef6e44269ba3c9f6b5d22352461555ebab33b73':
Dont fall back to installing on sdcard when internal storage is filled up
2ef6e44269ba3c9f6b5d22352461555ebab33b73 15-Apr-2010 Suchi Amalapurapu <asuchitra@google.com> am 28b2fdc5: Merge "Dont fall back to installing on sdcard when internal storage is filled up when the install location is set to internal only. Similary if install location is set to external only(via adb), dont fall back to installing on internal storage if sdcard i

Merge commit '28b2fdc5ee0ad75a476b825e3657b1decd0a2b7c' into froyo-plus-aosp

* commit '28b2fdc5ee0ad75a476b825e3657b1decd0a2b7c':
Dont fall back to installing on sdcard when internal storage is filled up
315a5fb91dbafe6073435a13d937cee9d26877f6 13-Apr-2010 Suchi Amalapurapu <asuchitra@google.com> Dont fall back to installing on sdcard when internal storage is filled up
when the install location is set to internal only. Similary if install
location is set to external only(via adb), dont fall back to installing on
internal storage if sdcard is filled up.
If nothing is specified ie install location is set to let system decide,
we just check on internal storage.
Fix tests

Change-Id: I7400ccc131782d9c45284bd9ebd0dee43a3b412b
om/android/server/PackageManagerService.java
180ee65983a6966e74163a645f31256cfd26008e 15-Apr-2010 Suchi Amalapurapu <asuchitra@google.com> am 1e21ec92: am 40b6996a: Merge "Add ordered broadcast when removing packages." into froyo

Merge commit '1e21ec923404a000c46590e4a87ae9ebe87e628e' into kraken

* commit '1e21ec923404a000c46590e4a87ae9ebe87e628e':
Add ordered broadcast when removing packages.
1e21ec923404a000c46590e4a87ae9ebe87e628e 15-Apr-2010 Suchi Amalapurapu <asuchitra@google.com> am 40b6996a: Merge "Add ordered broadcast when removing packages." into froyo

Merge commit '40b6996a8fb7da131e8b91453b08e292723662be' into froyo-plus-aosp

* commit '40b6996a8fb7da131e8b91453b08e292723662be':
Add ordered broadcast when removing packages.
b67fa45c26d5e4fc4d19a15868af348994bd6287 15-Apr-2010 Dianne Hackborn <hackbod@google.com> Fix issue #258640: Automatic propagation of FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET

Make sure, if an activity is started with clear task when reset, if that
activity is finished in the middle of a stack that the behavior is retained
by propagating it to the next activity.

Change-Id: Ie31b8f968558b0e64e0ef7efa55950a722c6afa5
om/android/server/am/ActivityManagerService.java
8c7e609b530d5dcb34e02788958a84a99501c332 15-Apr-2010 Robert Greenwalt <robdroid@android.com> Sholes mobile iface comes/goes - handle the reset

The byte counter for the iface goes to zero when it comes back. Catch that and
do the complex math to correct.

Also add a log entry telling us our desired throttle index.

Lastly, reset the sec/msec part of our reset time so that one calc will == another and not
be off by little bits.

bug:25494925
Change-Id: I99525b72a76316a8e601ceb457ca202fae040bae
om/android/server/ThrottleService.java
0c1285fa979e8b8c170f31d0ef1b4e5d9ddcf6b1 15-Apr-2010 Suchi Amalapurapu <asuchitra@google.com> Add ordered broadcast when removing packages.

Change-Id: I30a84068fa8f2b15564b0a164d339ac95f40e801
om/android/server/PackageManagerService.java
63aa5a6f98b1016863e4f6edd87eb471b28dc28f 15-Apr-2010 Mike Lockwood <lockwood@android.com> clear calling identity in GpsLocationProvider.sendExtraCommand().

This fixes problems with wakelock permissions introduced in an earlier change.

Change-Id: If0f4761ac27525d1eece0613c96be62f9e370a14
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/location/GpsLocationProvider.java
04598b67a58fad93e5060bb77756ba4863013aed 14-Apr-2010 Mike Lockwood <lockwood@android.com> GPS: Support for GPS HAL managing its own scheduling

Also update to support new position mode API.

Change-Id: I00acc094d3e85bc5c0cd431af517064bfa8f2b1a
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/location/GpsLocationProvider.java
98e48691f738680fe59e7383a41458e7337daccd 07-Apr-2010 Mike Lockwood <lockwood@android.com> GpsLocationProvider: optimize wake lock usage.

Rather than holding a wake lock the entire time the GPS is active, we now
hold it only when messages are pending for GpsLocationProvider's Handler
and rely on the lower level implementation holding a wake lock when calling
into the provider.

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/location/GpsLocationProvider.java
093d621c2f645ba2b9a604bf9eae61cd6778967b 14-Apr-2010 Dianne Hackborn <hackbod@google.com> am 11d7502b: am 8656145e: Merge "Fix issue #593153: Broadcast time out when sending..." into froyo

Merge commit '11d7502b35374da12168004e277bcc87f4f7bb50' into kraken

* commit '11d7502b35374da12168004e277bcc87f4f7bb50':
Fix issue #593153: Broadcast time out when sending...
eaa8b1a7dade2b0f57ec200b0e22b6f0ddf7b860 14-Apr-2010 Robert Greenwalt <robdroid@android.com> am 57e60854: am 22b3644a: Update the datause icons.

Merge commit '57e60854f3c7a64aad3c4178df210c6f3e98ee8b' into kraken

* commit '57e60854f3c7a64aad3c4178df210c6f3e98ee8b':
Update the datause icons.
c059f34230b29312e384a12da57c31b2c38c3ca9 14-Apr-2010 Robert Greenwalt <robdroid@android.com> am b26c8dd4: am 9cb66e89: Merge "Perist Throttle data across reboots" into froyo

Merge commit 'b26c8dd432bf0ea8042e04e63c57913c7bd4e3d4' into kraken

* commit 'b26c8dd432bf0ea8042e04e63c57913c7bd4e3d4':
Perist Throttle data across reboots
11d7502b35374da12168004e277bcc87f4f7bb50 14-Apr-2010 Dianne Hackborn <hackbod@google.com> am 8656145e: Merge "Fix issue #593153: Broadcast time out when sending..." into froyo

Merge commit '8656145e2abe881caffa4181ee5c2e4e3dba1cee' into froyo-plus-aosp

* commit '8656145e2abe881caffa4181ee5c2e4e3dba1cee':
Fix issue #593153: Broadcast time out when sending...
57e60854f3c7a64aad3c4178df210c6f3e98ee8b 14-Apr-2010 Robert Greenwalt <robdroid@android.com> am 22b3644a: Update the datause icons.

Merge commit '22b3644ac2027d055a6b187c979ef492ee6fb082' into froyo-plus-aosp

* commit '22b3644ac2027d055a6b187c979ef492ee6fb082':
Update the datause icons.
b26c8dd432bf0ea8042e04e63c57913c7bd4e3d4 14-Apr-2010 Robert Greenwalt <robdroid@android.com> am 9cb66e89: Merge "Perist Throttle data across reboots" into froyo

Merge commit '9cb66e89cd0c4bfa8d77591719023b7153fee9b9' into froyo-plus-aosp

* commit '9cb66e89cd0c4bfa8d77591719023b7153fee9b9':
Perist Throttle data across reboots
399cccb85749e02f6d3e12d1d2846310e7cbfdf1 14-Apr-2010 Dianne Hackborn <hackbod@google.com> Fix issue #593153: Broadcast time out when sending...

...ordered broadcast for ACTION_EXTERNAL_APPLICATIONS_UNAVAILABLE

Turns out this was because the broadcast receiver for ContextImpl was
not correctly being created, so when it received an ordered broadcast
it would not tell the activity manager when it was done.

This is now fixed, along with a ton of superficial changes to debug
output to help track this down and a little cleanup of dealing with
error cases in dispatching broadcasts. Also a fix for a NPE when
dumping the broadcast state.

Finally, a little fiddling with package manager to get rid of a lot
of the noise when removing and re-adding packages on the SD card.

Change-Id: I961c14836dc613d3ea8122b6e910ef866e7fcb25
om/android/server/PackageManagerService.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/BroadcastRecord.java
22b3644ac2027d055a6b187c979ef492ee6fb082 14-Apr-2010 Robert Greenwalt <robdroid@android.com> Update the datause icons.

bug:2576057
Change-Id: Idf57d59aecb9bcff635dafa1e77d90a8737a0c08
om/android/server/ThrottleService.java
9cb66e89cd0c4bfa8d77591719023b7153fee9b9 14-Apr-2010 Robert Greenwalt <robdroid@android.com> Merge "Perist Throttle data across reboots" into froyo
dd64a9b0d6ff0f15b22d02a108c5342c74db995a 14-Apr-2010 Svetoslav Ganov <svetoslavganov@google.com> 2593833 AccessibilityManager not properly initialized immediately upon registration in the AccessibilityManagerService

Change-Id: I0226bafc5e9c5b800c54019c9309394f1e5f9e88
om/android/server/AccessibilityManagerService.java
baa0fd95cf23c30aa440867dba2848ae3a50dc2b 14-Apr-2010 Dianne Hackborn <hackbod@google.com> am 7b16f95c: am 8e1f2f88: Merge "Fix issue #2555171: Switching to app immediately after unmounting..." into froyo

Merge commit '7b16f95cd293cedd2b9204428088ea3e2f8399e5' into kraken

* commit '7b16f95cd293cedd2b9204428088ea3e2f8399e5':
Fix issue #2555171: Switching to app immediately after unmounting...
7b16f95cd293cedd2b9204428088ea3e2f8399e5 14-Apr-2010 Dianne Hackborn <hackbod@google.com> am 8e1f2f88: Merge "Fix issue #2555171: Switching to app immediately after unmounting..." into froyo

Merge commit '8e1f2f8804a1f63c7a03a3eeced9ffdf6e6c3293' into froyo-plus-aosp

* commit '8e1f2f8804a1f63c7a03a3eeced9ffdf6e6c3293':
Fix issue #2555171: Switching to app immediately after unmounting...
6d1127228564b4506c78ad13cd681ea96d336525 14-Apr-2010 Dianne Hackborn <hackbod@google.com> am cd616247: am ce73c1e5: Framework change for #2583442: Navigation dies when night mode changes

Merge commit 'cd616247db69bdae8ab781be1f1d646ac7abf755' into kraken

* commit 'cd616247db69bdae8ab781be1f1d646ac7abf755':
Framework change for #2583442: Navigation dies when night mode changes
8e1f2f8804a1f63c7a03a3eeced9ffdf6e6c3293 14-Apr-2010 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #2555171: Switching to app immediately after unmounting..." into froyo
cd616247db69bdae8ab781be1f1d646ac7abf755 14-Apr-2010 Dianne Hackborn <hackbod@google.com> am ce73c1e5: Framework change for #2583442: Navigation dies when night mode changes

Merge commit 'ce73c1e5bfd36154d21ee7b332cfdc6cea48812e' into froyo-plus-aosp

* commit 'ce73c1e5bfd36154d21ee7b332cfdc6cea48812e':
Framework change for #2583442: Navigation dies when night mode changes
b7d9e8e17baad481ec834bc545e980ba21d7f67b 14-Apr-2010 Dianne Hackborn <hackbod@google.com> am fbd22f07: am ae8c2c71: Merge "Fix issue #2420340: if FLAG_SHOW_WHEN_LOCKED, do not show keyguard..." into froyo

Merge commit 'fbd22f072b48be4b465085fb5354890e2f10fd32' into kraken

* commit 'fbd22f072b48be4b465085fb5354890e2f10fd32':
Fix issue #2420340: if FLAG_SHOW_WHEN_LOCKED, do not show keyguard...
ce73c1e5bfd36154d21ee7b332cfdc6cea48812e 13-Apr-2010 Dianne Hackborn <hackbod@google.com> Framework change for #2583442: Navigation dies when night mode changes

The window manager doesn't retain its keep screen on lock while
in the process of destroying and creating new activity windows during
a config change. Now it does.

Unfortunately, this doesn't help maps, since it doesn't use our
lovely KEEP_SCREEN_ON flag. :p

Change-Id: Ida4bc0fcfe132cdff2bd4eeb7ba0ce9731504d14
om/android/server/WindowManagerService.java
fbd22f072b48be4b465085fb5354890e2f10fd32 14-Apr-2010 Dianne Hackborn <hackbod@google.com> am ae8c2c71: Merge "Fix issue #2420340: if FLAG_SHOW_WHEN_LOCKED, do not show keyguard..." into froyo

Merge commit 'ae8c2c71f7791ed0321e56f31f0c1276da4d8842' into froyo-plus-aosp

* commit 'ae8c2c71f7791ed0321e56f31f0c1276da4d8842':
Fix issue #2420340: if FLAG_SHOW_WHEN_LOCKED, do not show keyguard...
ae8c2c71f7791ed0321e56f31f0c1276da4d8842 14-Apr-2010 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #2420340: if FLAG_SHOW_WHEN_LOCKED, do not show keyguard..." into froyo
53d9264de4f99a069dd7306f881d28ddd5956b35 13-Apr-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2555171: Switching to app immediately after unmounting...

...SD card causes reboot.

Add option to not include temporarily unavailable recent tasks,
for the recent tasks UI to not display them.

Change-Id: I1495ca217b4292fd56f537459b44c0624262c292
om/android/server/am/ActivityManagerService.java
b8912f5481f79182184b628d7722e1a5b91b27f6 10-Apr-2010 Robert Greenwalt <robdroid@android.com> Perist Throttle data across reboots

Never got SharedPreferences working for this system service. Didn't really need it anyway.
Using a straight up file now.

bug:2576057
Change-Id: Idad926e8242a85e22718c25f3f6c03e5749badac
om/android/server/ThrottleService.java
6ff9d5130c5b6936198136178b34eccdbd7b81fe 14-Apr-2010 Robert Greenwalt <robdroid@android.com> am 13ec98f3: am 84748629: am a466ffe0: am d3bb93f6: Add build config values for data use defaults
6d46982a20ac4321459a90e783fa881f8ef65d80 14-Apr-2010 Suchi Amalapurapu <asuchitra@google.com> am 3cf6bba0: am 2ae08f70: am a55987df: am 812b24fd: Merge "Fix crashes related to unmounting when app on sdcard has an active notification in status bar. When unmounting sdcard, all the secure containers have to be unmounted first before invoking the MountService call
dc066b4af585bc0ee61db12bcb51ddaab206e12f 14-Apr-2010 Robert Greenwalt <robdroid@android.com> am ae5ec702: am 7024396f: am 7125a0dc: am 42843c3c: Merge "Fix Throttle Notification intents" into froyo
847486293bdb0f4bc18d7068fca9681c0973e1a4 14-Apr-2010 Robert Greenwalt <robdroid@android.com> am a466ffe0: am d3bb93f6: Add build config values for data use defaults

Merge commit 'a466ffe042ca0a7ef14d3942114f3ea916db225e' into kraken

* commit 'a466ffe042ca0a7ef14d3942114f3ea916db225e':
Add build config values for data use defaults
a466ffe042ca0a7ef14d3942114f3ea916db225e 14-Apr-2010 Robert Greenwalt <robdroid@android.com> am d3bb93f6: Add build config values for data use defaults

Merge commit 'd3bb93f6870581eebbf08b5b7fb0a9c5eaad8b16' into froyo-plus-aosp

* commit 'd3bb93f6870581eebbf08b5b7fb0a9c5eaad8b16':
Add build config values for data use defaults
d3bb93f6870581eebbf08b5b7fb0a9c5eaad8b16 13-Apr-2010 Robert Greenwalt <robdroid@android.com> Add build config values for data use defaults

Don't use hard coded defaults - use build configs instead.

Iface is now ONLY set by config so gservices doesn't need to.

bug:2576057
Change-Id: I8f9e3bc51af3b1cdf8bb4290a43197d9c01e2a14
om/android/server/ThrottleService.java
2ae08f70f2119f522e7dc4f44695dec5eddefd35 14-Apr-2010 Suchi Amalapurapu <asuchitra@google.com> am a55987df: am 812b24fd: Merge "Fix crashes related to unmounting when app on sdcard has an active notification in status bar. When unmounting sdcard, all the secure containers have to be unmounted first before invoking the MountService call back. We send a broadcast

Merge commit 'a55987df919240b045de977217bd55723c37dfcb' into kraken

* commit 'a55987df919240b045de977217bd55723c37dfcb':
Fix crashes related to unmounting when app on sdcard has an active notification
a55987df919240b045de977217bd55723c37dfcb 14-Apr-2010 Suchi Amalapurapu <asuchitra@google.com> am 812b24fd: Merge "Fix crashes related to unmounting when app on sdcard has an active notification in status bar. When unmounting sdcard, all the secure containers have to be unmounted first before invoking the MountService call back. We send a broadcast about disabl

Merge commit '812b24fd9d254f37e34f2878f599253a1f3bffe9' into froyo-plus-aosp

* commit '812b24fd9d254f37e34f2878f599253a1f3bffe9':
Fix crashes related to unmounting when app on sdcard has an active notification
812b24fd9d254f37e34f2878f599253a1f3bffe9 14-Apr-2010 Suchi Amalapurapu <asuchitra@google.com> Merge "Fix crashes related to unmounting when app on sdcard has an active notification in status bar. When unmounting sdcard, all the secure containers have to be unmounted first before invoking the MountService call back. We send a broadcast about disabled packages. Force a gc to clean up any stale asset references and then unmount the containers before invoking the MountService call back." into froyo
7024396fc2717114c2fb66d2b998b2cf6070a9d5 14-Apr-2010 Robert Greenwalt <robdroid@android.com> am 7125a0dc: am 42843c3c: Merge "Fix Throttle Notification intents" into froyo

Merge commit '7125a0dca844b066a3f6ebdacaea4ade9e651c8d' into kraken

* commit '7125a0dca844b066a3f6ebdacaea4ade9e651c8d':
Fix Throttle Notification intents
7125a0dca844b066a3f6ebdacaea4ade9e651c8d 14-Apr-2010 Robert Greenwalt <robdroid@android.com> am 42843c3c: Merge "Fix Throttle Notification intents" into froyo

Merge commit '42843c3ceb8b17e860112f8f2718cda40de15839' into froyo-plus-aosp

* commit '42843c3ceb8b17e860112f8f2718cda40de15839':
Fix Throttle Notification intents
9c90a37c6e8885dfc7848330755401209b605ecd 13-Apr-2010 Mike Lockwood <lockwood@android.com> Fix wakelock leak in PowerManagerService.sendNotificationLocked()

Change-Id: Ia5f814fe81413dc5350faaf4c79cff47de62d0ed
BUG: 2592894
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/PowerManagerService.java
3d24425165aabfd2a8d5e5f973f085c6e6446341 08-Apr-2010 Suchi Amalapurapu <asuchitra@google.com> Fix crashes related to unmounting when app on sdcard has an active notification
in status bar.
When unmounting sdcard, all the secure containers have to be unmounted first
before invoking the MountService call back. We send a broadcast
about disabled packages. Force a gc to clean up any stale asset references
and then unmount the containers before invoking the MountService call back.

Change-Id: I831da1ae54aeec89de3601b94a4a2fae5dc7e495
om/android/server/PackageManagerService.java
5943c200a4707fb8acd38c1709e30c400b65349e 13-Apr-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2420340: if FLAG_SHOW_WHEN_LOCKED, do not show keyguard...

...go directly to unlock screen

Fix a problem where, when we are moving windows due to a configuration
change, our wait to have the windows get redrawn would also
inadvertently make us think their surfaces should be hidden, leading
to nasty things like the lock screen thinking it should be shown
again (and thus forcing the orientation back to portrait).

Change-Id: I79057cfbc93ff59fd3558da997d4f73796e6aabe
om/android/server/WindowManagerService.java
2a7b730378a0c9d7c3dfbc47e9862169a149d347 12-Apr-2010 Robert Greenwalt <robdroid@android.com> Fix Throttle Notification intents

Now goes to the correct settings page.

bug:2576057
Change-Id: I21df0e53f7f56ae9bf71f983a3aed200c5ac217d
om/android/server/ThrottleService.java
4baa03443680bc858a498e0432bbd24fffb1ae35 10-Apr-2010 Dianne Hackborn <hackbod@google.com> am 7c48d939: am e1b462d7: am 06af7620: am 17de1532: Merge "Fix issue #2581524: Car home icon should always go to car home" into froyo
a1d4cf9291c5896fd73624eb3443fe0de3af0326 10-Apr-2010 Robert Greenwalt <robdroid@android.com> am 890a53c9: am 6890bfba: am 52ebff3c: am 5cc07252: Merge "Add warning magic to be a bit more reasonable." into froyo
8817ad92dde339edf77907412ff76ff5681ba98f 10-Apr-2010 Robert Greenwalt <robdroid@android.com> am b049ab29: am 82052192: am 090af2c5: am 4dceedc1: Merge "Make ThrottleService notice policy changes." into froyo
e1b462d76d9466bf89771dd0a309d8fd92e2b1de 10-Apr-2010 Dianne Hackborn <hackbod@google.com> am 06af7620: am 17de1532: Merge "Fix issue #2581524: Car home icon should always go to car home" into froyo

Merge commit '06af762033467bb578b9ed2be8af580cc11505a8' into kraken

* commit '06af762033467bb578b9ed2be8af580cc11505a8':
Fix issue #2581524: Car home icon should always go to car home
6890bfba4f64fdb1148e8efaa2a6c869b510f79e 10-Apr-2010 Robert Greenwalt <robdroid@android.com> am 52ebff3c: am 5cc07252: Merge "Add warning magic to be a bit more reasonable." into froyo

Merge commit '52ebff3c47eb3fcd43d0337a43312240f7d2010e' into kraken

* commit '52ebff3c47eb3fcd43d0337a43312240f7d2010e':
Add warning magic to be a bit more reasonable.
82052192c558de6725dd05c88ec21623375d250a 10-Apr-2010 Robert Greenwalt <robdroid@android.com> am 090af2c5: am 4dceedc1: Merge "Make ThrottleService notice policy changes." into froyo

Merge commit '090af2c57024b1ac0ba2ce0ecbc8e4e814c98c8b' into kraken

* commit '090af2c57024b1ac0ba2ce0ecbc8e4e814c98c8b':
Make ThrottleService notice policy changes.
06af762033467bb578b9ed2be8af580cc11505a8 10-Apr-2010 Dianne Hackborn <hackbod@google.com> am 17de1532: Merge "Fix issue #2581524: Car home icon should always go to car home" into froyo

Merge commit '17de1532a950f7ee961debab93a7977292b7f1f3' into froyo-plus-aosp

* commit '17de1532a950f7ee961debab93a7977292b7f1f3':
Fix issue #2581524: Car home icon should always go to car home
52ebff3c47eb3fcd43d0337a43312240f7d2010e 10-Apr-2010 Robert Greenwalt <robdroid@android.com> am 5cc07252: Merge "Add warning magic to be a bit more reasonable." into froyo

Merge commit '5cc072522b51f796085a73545a3dd34a02877059' into froyo-plus-aosp

* commit '5cc072522b51f796085a73545a3dd34a02877059':
Add warning magic to be a bit more reasonable.
090af2c57024b1ac0ba2ce0ecbc8e4e814c98c8b 10-Apr-2010 Robert Greenwalt <robdroid@android.com> am 4dceedc1: Merge "Make ThrottleService notice policy changes." into froyo

Merge commit '4dceedc133ef0487577badb67100d20473d87762' into froyo-plus-aosp

* commit '4dceedc133ef0487577badb67100d20473d87762':
Make ThrottleService notice policy changes.
17de1532a950f7ee961debab93a7977292b7f1f3 10-Apr-2010 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #2581524: Car home icon should always go to car home" into froyo
f5c5d22c471f399f215662a8e471bf02b5b6bcfa 09-Apr-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2581524: Car home icon should always go to car home

Rework how switching between modes work so the caller can tell us
whether they want to go to home. (So car home launcher can now
tell us they always want to go home.)

Change-Id: Id4a8129027d6d162b4bae6f983911f1f4bf2578f
om/android/server/UiModeManagerService.java
e2c0ce03631fc81651b8bde578e993c25e3291e9 09-Apr-2010 Robert Greenwalt <robdroid@android.com> Add warning magic to be a bit more reasonable.

Currently warns if you exceed more than 25% and 2*100%*timeUsed/(timeUsed+totalTime)

The formula means that imagining you've got half of the remaining time that you really have,
we will warn you if you would exceed the quota given your rate so far. It's generous during the
early to mid-life and converges back to the limit as your timeUsed approaches totalTime.

bug:2576057
Change-Id: Id189de5b026f927ef478fd212d61d9e4ab5239e6
om/android/server/ThrottleService.java
81aa0971d7a26ae16ed34fc7da97a55d97fb8e74 09-Apr-2010 Robert Greenwalt <robdroid@android.com> Make ThrottleService notice policy changes.

Added ContentObserver to watch relevant Secure Settings.
Also added new policy-change broadcast to let settings know.
Lastly reorged things a bit so that all of our broadcasts are sent at boot so the sticky ones
are populated.

bug:2576057
Change-Id: Ie11ffb057de9c801a5088612cd464ea062f3a666
om/android/server/ThrottleService.java
f70c9f2db23a7dc33c6f4bdf05b804912467b585 09-Apr-2010 Robert Greenwalt <robdroid@android.com> am 49267612: am 061cd6e3: am a68780dd: am cb270410: Merge "Roaming data doesn\'t count against limits" into froyo
061cd6e32217eddebbb0bcfaf24814d443aca102 09-Apr-2010 Robert Greenwalt <robdroid@android.com> am a68780dd: am cb270410: Merge "Roaming data doesn\'t count against limits" into froyo

Merge commit 'a68780dd0f0af0938b72fdf6539db575da471028' into kraken

* commit 'a68780dd0f0af0938b72fdf6539db575da471028':
Roaming data doesn't count against limits
a68780dd0f0af0938b72fdf6539db575da471028 09-Apr-2010 Robert Greenwalt <robdroid@android.com> am cb270410: Merge "Roaming data doesn\'t count against limits" into froyo

Merge commit 'cb27041034343a6a15f0812d04f66fefbed30686' into froyo-plus-aosp

* commit 'cb27041034343a6a15f0812d04f66fefbed30686':
Roaming data doesn't count against limits
d2220bd4cd8596166f47a278ca0040e4bafc708e 09-Apr-2010 Irfan Sheriff <isheriff@google.com> am eaec9f2e: am d99540d7: am 750f3211: am c9b6851a: Throttling framework addins
5f996899b058f0eb6655d3fe3fd3a5d93256e6c5 09-Apr-2010 Robert Greenwalt <robdroid@android.com> Roaming data doesn't count against limits

bug:2576057
Change-Id: I51a66e3b49a62e0186816ec0473814a216184e6b
om/android/server/ThrottleService.java
d99540d7a20328907d38b26c66b8e9585f4d3c28 09-Apr-2010 Irfan Sheriff <isheriff@google.com> am 750f3211: am c9b6851a: Throttling framework addins

Merge commit '750f32117b96a8af4fb03fae459a80f79a667fca' into kraken

* commit '750f32117b96a8af4fb03fae459a80f79a667fca':
Throttling framework addins
750f32117b96a8af4fb03fae459a80f79a667fca 09-Apr-2010 Irfan Sheriff <isheriff@google.com> am c9b6851a: Throttling framework addins

Merge commit 'c9b6851af68bdc20c4903b16c344e9f116647219' into froyo-plus-aosp

* commit 'c9b6851af68bdc20c4903b16c344e9f116647219':
Throttling framework addins
182a2f380f41e0f6fd0d228a7db56fdf83694fac 09-Apr-2010 Jeff Brown <jeffbrown@google.com> am 5a8a507c: am b059dc9c: am b00771aa: am 267f0a6b: Merge "Workaround NPE caused by packages missing signatures." into froyo
5fff8b2e1a7ec8ac6ff1a030fcd156c4f6cb5295 09-Apr-2010 Jeff Brown <jeffbrown@google.com> am 51fb09d9: am cebd1e94: am 6742a0c9: am 779a4ca8: Merge "Improve robustness of package manager certificate collection." into froyo
c9b6851af68bdc20c4903b16c344e9f116647219 08-Apr-2010 Irfan Sheriff <isheriff@google.com> Throttling framework addins

Add ThrottleManager in getSystemService
Add API for URL fetch

Bug: 2576057
Change-Id: Icd25c8b91ea4beea15c74e8ad7292ab48c962253
om/android/server/ThrottleService.java
b059dc9c89c08be299ffc424340a2ec85cb39a5b 09-Apr-2010 Jeff Brown <jeffbrown@google.com> am b00771aa: am 267f0a6b: Merge "Workaround NPE caused by packages missing signatures." into froyo

Merge commit 'b00771aa806e9fd43669f09e8c348f2b4457ca0b' into kraken

* commit 'b00771aa806e9fd43669f09e8c348f2b4457ca0b':
Workaround NPE caused by packages missing signatures.
cebd1e9468da11cbbcea9f6ad223ec20f04c6a47 09-Apr-2010 Jeff Brown <jeffbrown@google.com> am 6742a0c9: am 779a4ca8: Merge "Improve robustness of package manager certificate collection." into froyo

Merge commit '6742a0c9ccb8ade97d9cdfd53f7c74a9dc04c3a0' into kraken

* commit '6742a0c9ccb8ade97d9cdfd53f7c74a9dc04c3a0':
Improve robustness of package manager certificate collection.
b00771aa806e9fd43669f09e8c348f2b4457ca0b 09-Apr-2010 Jeff Brown <jeffbrown@google.com> am 267f0a6b: Merge "Workaround NPE caused by packages missing signatures." into froyo

Merge commit '267f0a6b683a2de75450afee59d2058b292c72c8' into froyo-plus-aosp

* commit '267f0a6b683a2de75450afee59d2058b292c72c8':
Workaround NPE caused by packages missing signatures.
6742a0c9ccb8ade97d9cdfd53f7c74a9dc04c3a0 09-Apr-2010 Jeff Brown <jeffbrown@google.com> am 779a4ca8: Merge "Improve robustness of package manager certificate collection." into froyo

Merge commit '779a4ca84d62a6e4f18a723cfc18c5d035f60fed' into froyo-plus-aosp

* commit '779a4ca84d62a6e4f18a723cfc18c5d035f60fed':
Improve robustness of package manager certificate collection.
267f0a6b683a2de75450afee59d2058b292c72c8 09-Apr-2010 Jeff Brown <jeffbrown@google.com> Merge "Workaround NPE caused by packages missing signatures." into froyo
779a4ca84d62a6e4f18a723cfc18c5d035f60fed 09-Apr-2010 Jeff Brown <jeffbrown@google.com> Merge "Improve robustness of package manager certificate collection." into froyo
673a2f62739517cdf8ba6c13afd87a586b15a044 09-Apr-2010 Robert Greenwalt <robdroid@android.com> am b2216375: am da0498c5: am 6cf3d4aa: am cc691f50: Merge "Updating some notificiation UI for Throttling" into froyo
da0498c59845ce2e377acae20a2357c0c3f4c63f 09-Apr-2010 Robert Greenwalt <robdroid@android.com> am 6cf3d4aa: am cc691f50: Merge "Updating some notificiation UI for Throttling" into froyo

Merge commit '6cf3d4aa7612c3e6d6bc0c9622200c4fa1237f75' into kraken

* commit '6cf3d4aa7612c3e6d6bc0c9622200c4fa1237f75':
Updating some notificiation UI for Throttling
6cf3d4aa7612c3e6d6bc0c9622200c4fa1237f75 09-Apr-2010 Robert Greenwalt <robdroid@android.com> am cc691f50: Merge "Updating some notificiation UI for Throttling" into froyo

Merge commit 'cc691f5061f4f5e687bf847078ee2ba387bdacb7' into froyo-plus-aosp

* commit 'cc691f5061f4f5e687bf847078ee2ba387bdacb7':
Updating some notificiation UI for Throttling
c87dc6dc90d0953c10051dceb470ff05e2fb9300 09-Apr-2010 Robert Greenwalt <robdroid@android.com> Updating some notificiation UI for Throttling

String update and make one an ongoing notification.

bug:2576057
Change-Id: I7980f110c7eed8e8bf305490eddaa58e2949e3be
om/android/server/ThrottleService.java
e684d9582cedf9bd5cc6c6fe47c600a79a13d816 06-Apr-2010 Jeff Brown <jeffbrown@google.com> Workaround NPE caused by packages missing signatures.

Bug: b/2547993
Change-Id: Idcd4fc3ee4c2560a00a952e1910a50b30b736114
om/android/server/PackageManagerBackupAgent.java
ac6ec41b679bab78ac33bf4ecde445d616030bbd 08-Apr-2010 Robert Greenwalt <robdroid@android.com> resolved conflicts for merge of 4e33e9c1 to master

Change-Id: I3a150497693009a4cf4300c8445a791c1e1eea3b
e760072a987192b421fef1697d3e90185a7b3b17 08-Apr-2010 Jeff Brown <jeffbrown@google.com> Improve robustness of package manager certificate collection.

The package manager contains an optimization which reuses cached
signatures instead of reloading them on startup if the package
appears to be unchanged. This commit adds an extra check to ensure
that the PackageSettings object actually has valid signatures since
it has happened that they have gone missing. Unfortunately it does
not address the root cause of the problem but it should alleviate the
symptoms after a reboot.

Bug: b/2547993
Change-Id: I41900c6a752711eb3a901360e3bb29aec946d0be
om/android/server/PackageManagerService.java
6646cf7af9a050c9c2b698507756f96be9f30169 08-Apr-2010 Robert Greenwalt <robdroid@android.com> am 6f72a313: am 2b4b5738: Merge "Add service to monitor/control the flow of data." into froyo

Merge commit '6f72a313a042fdf0a5345f83eda74c5970b7db05' into kraken

* commit '6f72a313a042fdf0a5345f83eda74c5970b7db05':
Add service to monitor/control the flow of data.
6f72a313a042fdf0a5345f83eda74c5970b7db05 08-Apr-2010 Robert Greenwalt <robdroid@android.com> am 2b4b5738: Merge "Add service to monitor/control the flow of data." into froyo

Merge commit '2b4b5738011f5ccb118ad15721fd757c85448966' into froyo-plus-aosp

* commit '2b4b5738011f5ccb118ad15721fd757c85448966':
Add service to monitor/control the flow of data.
9e696c29f06d45d2891e1d38fd8d9033a9e21bb9 01-Apr-2010 Robert Greenwalt <robdroid@android.com> Add service to monitor/control the flow of data.

bug:2576057
Change-Id: Ib343c7ee1d619c6978910d9ee597db195d5aa3b6
om/android/server/SystemServer.java
om/android/server/ThrottleService.java
260fc5f9e438b9babdb2a22419bbabf90631615b 08-Apr-2010 The Android Open Source Project <initial-contribution@android.com> am 5e78c1f4: am c9522c95: am 727cec02: merge from open-source master
c9522c95ef2f4dddae004a29260708d260b6acab 08-Apr-2010 The Android Open Source Project <initial-contribution@android.com> am 727cec02: merge from open-source master

Merge commit '727cec02daa66b5e984aff277185d503fabe5d51' into kraken

* commit '727cec02daa66b5e984aff277185d503fabe5d51':
Fix reporting of window visibility in WindowManagerService.
727cec02daa66b5e984aff277185d503fabe5d51 08-Apr-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: I0902959c7703bd3a1c41abfc6a8788b89d0aa977
40e8b1de9a537aea0f803e4c4b39ed54ba6606cf 08-Apr-2010 Dianne Hackborn <hackbod@google.com> am 48357eee: am b921b37b: am a327dbdd: am ecb0e637: Fix issue #2541849: System crash when an app with active notifications...
b921b37b1c112145788a080a0e7ae33525afd7b5 08-Apr-2010 Dianne Hackborn <hackbod@google.com> am a327dbdd: am ecb0e637: Fix issue #2541849: System crash when an app with active notifications...

Merge commit 'a327dbddccb002919b98bdfd7abd81619826a3b8' into kraken

* commit 'a327dbddccb002919b98bdfd7abd81619826a3b8':
Fix issue #2541849: System crash when an app with active notifications...
a327dbddccb002919b98bdfd7abd81619826a3b8 08-Apr-2010 Dianne Hackborn <hackbod@google.com> am ecb0e637: Fix issue #2541849: System crash when an app with active notifications...

Merge commit 'ecb0e637870553f9c12dc6b9178de0512563af9c' into froyo-plus-aosp

* commit 'ecb0e637870553f9c12dc6b9178de0512563af9c':
Fix issue #2541849: System crash when an app with active notifications...
ecb0e637870553f9c12dc6b9178de0512563af9c 08-Apr-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2541849: System crash when an app with active notifications...

...in status bar is installed on sdcard and device is powered down.

Don't do the GC until everyone has had a chance to take care of external
storage going away.

This is more correct, but doesn't completely fix the problem that
appears when shutting down.

Change-Id: I24b19337ba6262cfd8d010645dbf67e76ea03058
om/android/server/PackageManagerService.java
4baf4e6a742fffba238ad79f8b2ce7bc52f96b18 08-Apr-2010 Suchi Amalapurapu <asuchitra@google.com> am eb606ec9: am 3e543abb: am a599469f: am c2461be6: Merge "Fix 2579461 Move install location values to secure settings. Diable attribute for UI. Set default value to auto. Add command line interface to set install location via pm." into froyo
3e543abbc18eec03ba7300b53cd65dc1c30fd40b 08-Apr-2010 Suchi Amalapurapu <asuchitra@google.com> am a599469f: am c2461be6: Merge "Fix 2579461 Move install location values to secure settings. Diable attribute for UI. Set default value to auto. Add command line interface to set install location via pm." into froyo

Merge commit 'a599469f9095532cac95a8e7600412f156b88f1c' into kraken

* commit 'a599469f9095532cac95a8e7600412f156b88f1c':
Fix 2579461
a599469f9095532cac95a8e7600412f156b88f1c 08-Apr-2010 Suchi Amalapurapu <asuchitra@google.com> am c2461be6: Merge "Fix 2579461 Move install location values to secure settings. Diable attribute for UI. Set default value to auto. Add command line interface to set install location via pm." into froyo

Merge commit 'c2461be6279137f872becf695befeb7ba8770a64' into froyo-plus-aosp

* commit 'c2461be6279137f872becf695befeb7ba8770a64':
Fix 2579461
c2461be6279137f872becf695befeb7ba8770a64 08-Apr-2010 Suchi Amalapurapu <asuchitra@google.com> Merge "Fix 2579461 Move install location values to secure settings. Diable attribute for UI. Set default value to auto. Add command line interface to set install location via pm." into froyo
40e472521a544f26cb6956995788f7c36fff1404 08-Apr-2010 Suchi Amalapurapu <asuchitra@google.com> Fix 2579461
Move install location values to secure settings.
Diable attribute for UI. Set default value to auto.
Add command line interface to set install location via pm.

Change-Id: I80e97b3d24845adad7102f40dcbe238f00efa406
om/android/server/PackageManagerService.java
64c660ccd84a0999f6bcf9d5236d610628dafd1f 08-Apr-2010 Dianne Hackborn <hackbod@google.com> am 2b973a6b: am 90dd6462: am 48879933: am 390022b2: Merge "Fix issue #2528537: android.os.DeadObjectException" into froyo
90dd6462db5078d2a8ff870c1e51c80d0cdb34a4 08-Apr-2010 Dianne Hackborn <hackbod@google.com> am 48879933: am 390022b2: Merge "Fix issue #2528537: android.os.DeadObjectException" into froyo

Merge commit '4887993381af1068cb0c68b4eca29ed83ebf47bd' into kraken

* commit '4887993381af1068cb0c68b4eca29ed83ebf47bd':
Fix issue #2528537: android.os.DeadObjectException
4887993381af1068cb0c68b4eca29ed83ebf47bd 08-Apr-2010 Dianne Hackborn <hackbod@google.com> am 390022b2: Merge "Fix issue #2528537: android.os.DeadObjectException" into froyo

Merge commit '390022b23b2c53119ff0bde4b14d14728bc48bb2' into froyo-plus-aosp

* commit '390022b23b2c53119ff0bde4b14d14728bc48bb2':
Fix issue #2528537: android.os.DeadObjectException
390022b23b2c53119ff0bde4b14d14728bc48bb2 08-Apr-2010 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #2528537: android.os.DeadObjectException" into froyo
ada88000c979e246cb46a42af8eb847121a7e7b4 08-Apr-2010 John Wang <johnwang@google.com> am cdb60148: am 90f2a71e: am 7ecf08fa: am 815b8e4a: Merge "Add emergencyOnly indicator in ServiceState." into froyo
90f2a71e1ef1da39314c8de317fd36663915649c 08-Apr-2010 John Wang <johnwang@google.com> am 7ecf08fa: am 815b8e4a: Merge "Add emergencyOnly indicator in ServiceState." into froyo

Merge commit '7ecf08faa9da7d372dd319aac8b1e5760a116601' into kraken

* commit '7ecf08faa9da7d372dd319aac8b1e5760a116601':
Add emergencyOnly indicator in ServiceState.
7ecf08faa9da7d372dd319aac8b1e5760a116601 08-Apr-2010 John Wang <johnwang@google.com> am 815b8e4a: Merge "Add emergencyOnly indicator in ServiceState." into froyo

Merge commit '815b8e4ac4ddb20e8c0539ecba50c9e7382d0656' into froyo-plus-aosp

* commit '815b8e4ac4ddb20e8c0539ecba50c9e7382d0656':
Add emergencyOnly indicator in ServiceState.
815b8e4ac4ddb20e8c0539ecba50c9e7382d0656 08-Apr-2010 John Wang <johnwang@google.com> Merge "Add emergencyOnly indicator in ServiceState." into froyo
472ad8716e6fda1350d85cdf0c3028333f3aef41 08-Apr-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2528537: android.os.DeadObjectException

Nice.

Change-Id: I6142b12b5770b508ff4a43361da6f5e52bed2de9
om/android/server/am/ActivityManagerService.java
a33438937333a065f73a1d06d2f283710a82f09b 08-Apr-2010 San Mehat <san@google.com> am cf1a7a77: am 12ebde61: am 692329cf: am fd998a0c: Merge "NetworkManagementService: Remove \'maxkbs\' parameter from throttle API" into froyo
716abe57399803a188d419a69cb5f174d77e80e6 08-Apr-2010 Suchi Amalapurapu <asuchitra@google.com> am 4cdd682c: am 070e1ecf: am a137cf2a: am 4b18ced6: Merge "Fix 2578016." into froyo
12ebde61a578505d4a019fdfffc84ff7f3b5a35f 08-Apr-2010 San Mehat <san@google.com> am 692329cf: am fd998a0c: Merge "NetworkManagementService: Remove \'maxkbs\' parameter from throttle API" into froyo

Merge commit '692329cf3f1512b3f0475b619058f9a10d9950a8' into kraken

* commit '692329cf3f1512b3f0475b619058f9a10d9950a8':
NetworkManagementService: Remove 'maxkbs' parameter from throttle API
070e1ecfee42883c476a3ecd1a0aec6f397befb2 08-Apr-2010 Suchi Amalapurapu <asuchitra@google.com> am a137cf2a: am 4b18ced6: Merge "Fix 2578016." into froyo

Merge commit 'a137cf2a1899b863913b4ab32a87835c2d47d8fe' into kraken

* commit 'a137cf2a1899b863913b4ab32a87835c2d47d8fe':
Fix 2578016.
692329cf3f1512b3f0475b619058f9a10d9950a8 08-Apr-2010 San Mehat <san@google.com> am fd998a0c: Merge "NetworkManagementService: Remove \'maxkbs\' parameter from throttle API" into froyo

Merge commit 'fd998a0caf8cfcd27d1fe73120fbb897ec74af85' into froyo-plus-aosp

* commit 'fd998a0caf8cfcd27d1fe73120fbb897ec74af85':
NetworkManagementService: Remove 'maxkbs' parameter from throttle API
a137cf2a1899b863913b4ab32a87835c2d47d8fe 08-Apr-2010 Suchi Amalapurapu <asuchitra@google.com> am 4b18ced6: Merge "Fix 2578016." into froyo

Merge commit '4b18ced6b5409bb9dd4013c06b9562b76a062939' into froyo-plus-aosp

* commit '4b18ced6b5409bb9dd4013c06b9562b76a062939':
Fix 2578016.
56c2d2ff27536a1d8edf0037cd41ff3ea3272fd9 07-Apr-2010 John Wang <johnwang@google.com> Add emergencyOnly indicator in ServiceState.

For bug 2536842 to show signal strength in Emergency mode.

The STATE_EMERGENCY_ONLY of ServiceState is not in-use.

So add a hide interface to indicate Emergency mode.

Change-Id: I19398ac5e73a722dcaaf744347f961d1fa7513ac
om/android/server/status/StatusBarPolicy.java
fd998a0caf8cfcd27d1fe73120fbb897ec74af85 08-Apr-2010 San Mehat <san@google.com> Merge "NetworkManagementService: Remove 'maxkbs' parameter from throttle API" into froyo
f0db6e1853e929ae3b65501c31ee57c4dfbc767c 08-Apr-2010 San Mehat <san@google.com> NetworkManagementService: Remove 'maxkbs' parameter from throttle API

Change-Id: I1cfbdac7d06478243931c6acec462da8e257f42f
Signed-off-by: San Mehat <san@google.com>
om/android/server/NetworkManagementService.java
30f775b12ac7d0ff39eef201f997fe54ac60465a 06-Apr-2010 Suchi Amalapurapu <asuchitra@google.com> Fix 2578016.

Add some checks before moving package.
Checkin test code.
Regenerate test apks

Change-Id: I769ece128fefd3429ce93208a77d887c7759d2e1
om/android/server/PackageManagerService.java
00cdbc6235b6c3bfc9a5bbf2924e43457b68bcd4 06-Apr-2010 Dianne Hackborn <hackbod@google.com> am 357bff46: am 710312b3: am 48bce451: Merge "Fix issue #2569139: Cannot login to last.fm after upgrade from Donut to FRF01B" into froyo
357bff46b83fbe72b09edc490b528b8a1ce6ba9b 06-Apr-2010 Dianne Hackborn <hackbod@google.com> am 710312b3: am 48bce451: Merge "Fix issue #2569139: Cannot login to last.fm after upgrade from Donut to FRF01B" into froyo

Merge commit '710312b3bb0ec7bef39742e0e3fc2a3e5c987532' into kraken

* commit '710312b3bb0ec7bef39742e0e3fc2a3e5c987532':
Fix issue #2569139: Cannot login to last.fm after upgrade from Donut to FRF01B
1a456c142b682525b2aabcc6b73638bc46f544c1 06-Apr-2010 Suchi Amalapurapu <asuchitra@google.com> am 728e4cc8: am e6fdab7f: am fede9aed: Merge "Forcibly unmount the sdcard after N retries." into froyo
710312b3bb0ec7bef39742e0e3fc2a3e5c987532 06-Apr-2010 Dianne Hackborn <hackbod@google.com> am 48bce451: Merge "Fix issue #2569139: Cannot login to last.fm after upgrade from Donut to FRF01B" into froyo

Merge commit '48bce4515d948971a122a1e17fd1919f81297d77' into froyo-plus-aosp

* commit '48bce4515d948971a122a1e17fd1919f81297d77':
Fix issue #2569139: Cannot login to last.fm after upgrade from Donut to FRF01B
656a66c364ffa95732047e80f0706ad53fa6a96e 06-Apr-2010 Irfan Sheriff <isheriff@google.com> am b6f7123b: am 7eeb44f2: am b2e6c01f: Disable tethering when airplane mode is enabled
48bce4515d948971a122a1e17fd1919f81297d77 06-Apr-2010 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #2569139: Cannot login to last.fm after upgrade from Donut to FRF01B" into froyo
f22221fd19146c6d743e28f3892400140adbaefd 06-Apr-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2569139: Cannot login to last.fm after upgrade from Donut to FRF01B

This is a quick and dirty solution to re-assign permissions after booting
from a platform update. It is not great, because it means that an app
can have permissions that the user didn't get to see when they originally
installed it. Unfortunately it's not clear what else to do here, nor is
there time to do anything significant.

Change-Id: I82faba141b5883c87212afa7febecf9860a413e3
om/android/server/PackageManagerService.java
728e4cc88f47c951c92085d3f9bb3dd988e95e7a 06-Apr-2010 Suchi Amalapurapu <asuchitra@google.com> am e6fdab7f: am fede9aed: Merge "Forcibly unmount the sdcard after N retries." into froyo

Merge commit 'e6fdab7f005cc06df989c97907c3cc3060692121' into kraken

* commit 'e6fdab7f005cc06df989c97907c3cc3060692121':
Forcibly unmount the sdcard after N retries.
e6fdab7f005cc06df989c97907c3cc3060692121 06-Apr-2010 Suchi Amalapurapu <asuchitra@google.com> am fede9aed: Merge "Forcibly unmount the sdcard after N retries." into froyo

Merge commit 'fede9aed2b1f0b6316e18cbfa58be593fa7eb14c' into froyo-plus-aosp

* commit 'fede9aed2b1f0b6316e18cbfa58be593fa7eb14c':
Forcibly unmount the sdcard after N retries.
b6f7123bd685ead72da984213f7822256a090b10 06-Apr-2010 Irfan Sheriff <isheriff@google.com> am 7eeb44f2: am b2e6c01f: Disable tethering when airplane mode is enabled

Merge commit '7eeb44f20527caaad618e28ba511e7661f5904cb' into kraken

* commit '7eeb44f20527caaad618e28ba511e7661f5904cb':
Disable tethering when airplane mode is enabled
fede9aed2b1f0b6316e18cbfa58be593fa7eb14c 06-Apr-2010 Suchi Amalapurapu <asuchitra@google.com> Merge "Forcibly unmount the sdcard after N retries." into froyo
7eeb44f20527caaad618e28ba511e7661f5904cb 06-Apr-2010 Irfan Sheriff <isheriff@google.com> am b2e6c01f: Disable tethering when airplane mode is enabled

Merge commit 'b2e6c01f449f3fd4effee7029518684deb4e98f6' into froyo-plus-aosp

* commit 'b2e6c01f449f3fd4effee7029518684deb4e98f6':
Disable tethering when airplane mode is enabled
b2e6c01f449f3fd4effee7029518684deb4e98f6 05-Apr-2010 Irfan Sheriff <isheriff@google.com> Disable tethering when airplane mode is enabled

Tethering should be disabled when
airplane mode is enabled. Additionally,
we should restore Wifi (if it was on
before tethering was enabled) when
airplane mode is disabled.

Bug: 2567099
Change-Id: Iba2031f5ecb207954fd155c47134b39ed0167fa0
om/android/server/WifiService.java
7af074a6124d2293bc979e24f3258166efb8a310 06-Apr-2010 Suchi Amalapurapu <asuchitra@google.com> Forcibly unmount the sdcard after N retries.

Don't rely on the ActivityManager's reported status about killing the
storage user process since the process might have gone away in between.

Change-Id: Ia7fa43eb34553329e7ff611ab6b99375b5ae673a
om/android/server/MountService.java
7a3a6dba21d3b14a9836af51ce9db5a1dad05645 06-Apr-2010 Dianne Hackborn <hackbod@google.com> am 5a0797a9: am c94dad83: am 6e52b5d7: 2568467 System crash when installing corrupt APK
5a0797a91016e85bb50a7d5c0d7e031166429ddd 06-Apr-2010 Dianne Hackborn <hackbod@google.com> am c94dad83: am 6e52b5d7: 2568467 System crash when installing corrupt APK

Merge commit 'c94dad83be792928206363cb43524a68b6a62ffe' into kraken

* commit 'c94dad83be792928206363cb43524a68b6a62ffe':
2568467 System crash when installing corrupt APK
c94dad83be792928206363cb43524a68b6a62ffe 06-Apr-2010 Dianne Hackborn <hackbod@google.com> am 6e52b5d7: 2568467 System crash when installing corrupt APK

Merge commit '6e52b5d76850ee60bbef2f3d8a2e47bd589e28e8' into froyo-plus-aosp

* commit '6e52b5d76850ee60bbef2f3d8a2e47bd589e28e8':
2568467 System crash when installing corrupt APK
6e52b5d76850ee60bbef2f3d8a2e47bd589e28e8 05-Apr-2010 Dianne Hackborn <hackbod@google.com> 2568467 System crash when installing corrupt APK

Also fix another crash I just saw in the package manager, when a
permission got left around from a previous install but as no
longer defined.

Change-Id: I33b87420f0c59e24b8b77fab8b0316461d99e048
om/android/server/PackageManagerService.java
5e01d01f529bd550cfadc2b8a619d6c937e672c5 06-Apr-2010 Doug Zongker <dougz@android.com> am 00018822: am e725a963: am 4c59ca8b: Merge "remove OTA packages from the old (pre-froyo) updater" into froyo
0001882200d392af6cd8908685a13d25bc07736b 06-Apr-2010 Doug Zongker <dougz@android.com> am e725a963: am 4c59ca8b: Merge "remove OTA packages from the old (pre-froyo) updater" into froyo

Merge commit 'e725a9634b0cea150b29755ed94c53e621b4f273' into kraken

* commit 'e725a9634b0cea150b29755ed94c53e621b4f273':
remove OTA packages from the old (pre-froyo) updater
e725a9634b0cea150b29755ed94c53e621b4f273 06-Apr-2010 Doug Zongker <dougz@android.com> am 4c59ca8b: Merge "remove OTA packages from the old (pre-froyo) updater" into froyo

Merge commit '4c59ca8bdb02bf0ca0bb090ecb39d94e260ab2f0' into froyo-plus-aosp

* commit '4c59ca8bdb02bf0ca0bb090ecb39d94e260ab2f0':
remove OTA packages from the old (pre-froyo) updater
944ff0b788bf1702bad38d21cc2b83a9985dd112 06-Apr-2010 Doug Zongker <dougz@android.com> remove OTA packages from the old (pre-froyo) updater

The old updater ran in the system process, so only that UID can delete
its downloads. Do this on startup in case we've just upgraded from
something before froyo and need to clean up those packages.

b/2571619 - eclair -> froyo update package not deleted

Change-Id: I0a5e7834c3ecd2cc2f6fd73052b3a38e1294b5d5
om/android/server/BootReceiver.java
8839544ebb5e0949d42d1508b1a20a79e855cc4a 05-Apr-2010 San Mehat <san@google.com> am d32de7f3: am 9d782f62: am 73a8f26a: Merge "NetworkManagementService: Combine setInterfaceRx/Tx throttle and add max speed" into froyo
d32de7f38f7d675d7fed8edc23e12f445a5bd091 05-Apr-2010 San Mehat <san@google.com> am 9d782f62: am 73a8f26a: Merge "NetworkManagementService: Combine setInterfaceRx/Tx throttle and add max speed" into froyo

Merge commit '9d782f62defba898c3ebaa498ea1be9e5cb26ac7' into kraken

* commit '9d782f62defba898c3ebaa498ea1be9e5cb26ac7':
NetworkManagementService: Combine setInterfaceRx/Tx throttle and add max speed
9d782f62defba898c3ebaa498ea1be9e5cb26ac7 05-Apr-2010 San Mehat <san@google.com> am 73a8f26a: Merge "NetworkManagementService: Combine setInterfaceRx/Tx throttle and add max speed" into froyo

Merge commit '73a8f26aef40184d9d5dfe9dabcfbd345deb6386' into froyo-plus-aosp

* commit '73a8f26aef40184d9d5dfe9dabcfbd345deb6386':
NetworkManagementService: Combine setInterfaceRx/Tx throttle and add max speed
73a8f26aef40184d9d5dfe9dabcfbd345deb6386 05-Apr-2010 San Mehat <san@google.com> Merge "NetworkManagementService: Combine setInterfaceRx/Tx throttle and add max speed" into froyo
cb41db43dd3d7b77c79042c7c60f586d20e6fb9a 05-Apr-2010 Christopher Tate <ctate@google.com> am db4b80dd: am 11f759cf: am 5923c971: Fix \'dumpsys backup\'
db4b80dda05d3b7a446f7d72fbf0f0255e49f3e2 05-Apr-2010 Christopher Tate <ctate@google.com> am 11f759cf: am 5923c971: Fix \'dumpsys backup\'

Merge commit '11f759cf9a2b585c57adf4833ba706fd94e06571' into kraken

* commit '11f759cf9a2b585c57adf4833ba706fd94e06571':
Fix 'dumpsys backup'
11f759cf9a2b585c57adf4833ba706fd94e06571 05-Apr-2010 Christopher Tate <ctate@google.com> am 5923c971: Fix \'dumpsys backup\'

Merge commit '5923c9718390bf6d50c52661263f15c1f863012b' into froyo-plus-aosp

* commit '5923c9718390bf6d50c52661263f15c1f863012b':
Fix 'dumpsys backup'
5923c9718390bf6d50c52661263f15c1f863012b 05-Apr-2010 Christopher Tate <ctate@google.com> Fix 'dumpsys backup'

"for (Type foo : mSetOfType)" doesn't work when mSetOfType is null.

Change-Id: Iac667c7309f99b12d3147830e166b542b29cba5f
om/android/server/BackupManagerService.java
00b74270c9f136a8727c5f6cda0997a3a905f385 26-Mar-2010 Mike Lockwood <lockwood@android.com> Move files internal to LocationManagerService from framework.jar to services.jar

Change-Id: Iebbfc49b8300ab59730733efdf489ec87ea45a25
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/LocationManagerService.java
om/android/server/location/GeocoderProxy.java
om/android/server/location/GpsLocationProvider.java
om/android/server/location/GpsXtraDownloader.java
om/android/server/location/LocationProviderInterface.java
om/android/server/location/LocationProviderProxy.java
om/android/server/location/MockProvider.java
om/android/server/location/PassiveProvider.java
om/android/server/status/StatusBarPolicy.java
69e398bd14fc909bb5f854c435fd210ae0974748 04-Apr-2010 Dianne Hackborn <hackbod@android.com> Merge "Fix reporting of window visibility in WindowManagerService."
0ed99fc0b323f1e5e73500723e533409346b2ce0 03-Apr-2010 Christopher Tate <ctate@google.com> am a9d07713: am 5fe7b409: am 1484b6d6: Merge "Fix "incall in landscape sometimes" bug #2523942" into froyo
a9d0771377a1208cfaab7c7b2bf68332ab370f49 03-Apr-2010 Christopher Tate <ctate@google.com> am 5fe7b409: am 1484b6d6: Merge "Fix "incall in landscape sometimes" bug #2523942" into froyo

Merge commit '5fe7b4094791b898f8ffcc166c621a2bc5b05c1e' into kraken

* commit '5fe7b4094791b898f8ffcc166c621a2bc5b05c1e':
Fix "incall in landscape sometimes" bug #2523942
5fe7b4094791b898f8ffcc166c621a2bc5b05c1e 03-Apr-2010 Christopher Tate <ctate@google.com> am 1484b6d6: Merge "Fix "incall in landscape sometimes" bug #2523942" into froyo

Merge commit '1484b6d6b75e13dd96b0f47158926d7989808272' into froyo-plus-aosp

* commit '1484b6d6b75e13dd96b0f47158926d7989808272':
Fix "incall in landscape sometimes" bug #2523942
1484b6d6b75e13dd96b0f47158926d7989808272 03-Apr-2010 Christopher Tate <ctate@google.com> Merge "Fix "incall in landscape sometimes" bug #2523942" into froyo
b696aee7b30487feaf6188675a3f01e13ac65a13 03-Apr-2010 Christopher Tate <ctate@google.com> Fix "incall in landscape sometimes" bug #2523942

The problem turns out to have been a deep weirdness in the way that keyguard
and incall interact. Incall gets relaunched when the keyboard is opened/closed,
which transiently exposes keyguard with its nosensor orientation demands, and
that plus the long keyguard-hide animation was leaving incall in a bad state
from which the window manager didn't try to recover.

We now disregard animating-towards-hidden windows [i.e. keyguard] when running
through the app tokens to determine what orientation should be, and do not do
configuration calculations at all while the display is frozen. There can still
be a transient state in which incall is drawn in landscape, but things proceed
from there to relaunch it back into the proper portrait orientation, and it
ends up in the right state in the end.

Change-Id: I0d74ee19064b6d7f65600976f1b5b16b7ec36f31
om/android/server/WindowManagerService.java
4de5b61bb07f0d8eee1d619c5724f78fec48803f 02-Apr-2010 Irfan Sheriff <isheriff@google.com> am db83a6f5: am 90bd9433: am 9c50996b: Merge "Dont start wifi if in airplane mode" into froyo
9a7310e68d5195897a8bbdcf702352230f522103 02-Apr-2010 Suchi Amalapurapu <asuchitra@google.com> am 5130073d: am 21f15f68: am a77acab9: Merge "Handle exceptions when doing dexopt." into froyo
db83a6f56c54055b1e62da9fe97eb4def0669b3f 02-Apr-2010 Irfan Sheriff <isheriff@google.com> am 90bd9433: am 9c50996b: Merge "Dont start wifi if in airplane mode" into froyo

Merge commit '90bd943364af8af8e3409f3fffe409f724a4210b' into kraken

* commit '90bd943364af8af8e3409f3fffe409f724a4210b':
Dont start wifi if in airplane mode
5130073d1788e5860d55f617da3fdc906d9a3cb7 02-Apr-2010 Suchi Amalapurapu <asuchitra@google.com> am 21f15f68: am a77acab9: Merge "Handle exceptions when doing dexopt." into froyo

Merge commit '21f15f68c2940a87954d9889e208ffbbed2c1995' into kraken

* commit '21f15f68c2940a87954d9889e208ffbbed2c1995':
Handle exceptions when doing dexopt.
90bd943364af8af8e3409f3fffe409f724a4210b 02-Apr-2010 Irfan Sheriff <isheriff@google.com> am 9c50996b: Merge "Dont start wifi if in airplane mode" into froyo

Merge commit '9c50996b175a1ee4b0069cba5163310c0189ac36' into froyo-plus-aosp

* commit '9c50996b175a1ee4b0069cba5163310c0189ac36':
Dont start wifi if in airplane mode
21f15f68c2940a87954d9889e208ffbbed2c1995 02-Apr-2010 Suchi Amalapurapu <asuchitra@google.com> am a77acab9: Merge "Handle exceptions when doing dexopt." into froyo

Merge commit 'a77acab9c623a8b63b46d14686cf1a86dd863289' into froyo-plus-aosp

* commit 'a77acab9c623a8b63b46d14686cf1a86dd863289':
Handle exceptions when doing dexopt.
9c50996b175a1ee4b0069cba5163310c0189ac36 02-Apr-2010 Irfan Sheriff <isheriff@google.com> Merge "Dont start wifi if in airplane mode" into froyo
a77acab9c623a8b63b46d14686cf1a86dd863289 02-Apr-2010 Suchi Amalapurapu <asuchitra@google.com> Merge "Handle exceptions when doing dexopt." into froyo
60e3ba071d2b129906e92981d1615a46febd825a 02-Apr-2010 Irfan Sheriff <isheriff@google.com> Dont start wifi if in airplane mode

Now that wifi start is asynchronous
at the time of bring up, make sure
Wifi is not started if in airplane
mode.

Bug: 2567652
Change-Id: I947b7c8480029973bcbf028f6143aabbc88c9793
om/android/server/WifiService.java
be23fba286e6772f2eb37ef25f252d7a73ef9dce 02-Apr-2010 San Mehat <san@google.com> NetworkManagementService: Combine setInterfaceRx/Tx throttle and add max speed

Change-Id: I1d6816c9754801504a988802118a2167e0eb8690
Signed-off-by: San Mehat <san@google.com>
om/android/server/NetworkManagementService.java
891f4ba9ec1b0d54b0e6928f3d120ffb85e0e47f 02-Apr-2010 Daniel Sandler <dsandler@android.com> am e21dd4ed: am 750edffb: am 25642f0b: Merge "Make desk mode work again." into froyo
e21dd4edbbe4bc04e760b5dab3f3378c45ca1ed7 02-Apr-2010 Daniel Sandler <dsandler@android.com> am 750edffb: am 25642f0b: Merge "Make desk mode work again." into froyo

Merge commit '750edffbc0fe528b93097f9ce909f446540cfff5' into kraken

* commit '750edffbc0fe528b93097f9ce909f446540cfff5':
Make desk mode work again.
750edffbc0fe528b93097f9ce909f446540cfff5 02-Apr-2010 Daniel Sandler <dsandler@android.com> am 25642f0b: Merge "Make desk mode work again." into froyo

Merge commit '25642f0b16bc0584605ab1d0c327b1b1b3c1909e' into froyo-plus-aosp

* commit '25642f0b16bc0584605ab1d0c327b1b1b3c1909e':
Make desk mode work again.
25642f0b16bc0584605ab1d0c327b1b1b3c1909e 02-Apr-2010 Daniel Sandler <dsandler@android.com> Merge "Make desk mode work again." into froyo
8daf2a47995b4522bceb38eef8c310268b1d91b0 02-Apr-2010 Daniel Sandler <dsandler@android.com> Make desk mode work again.

Bug: 2564612
Change-Id: I858a86d14a6840f5f587343a64c5d0c4bc5d5263
om/android/server/UiModeManagerService.java
73dafa1f6630a5209b0a0626c46e18f73614accc 02-Apr-2010 Suchi Amalapurapu <asuchitra@google.com> Handle exceptions when doing dexopt.

Change-Id: Iaeba98ef9fef2f1dbf3dbe2e8e4497dae8d0fe7f
om/android/server/PackageManagerService.java
a6dfa15e640b6794e3fe17c7dd02628522efd879 01-Apr-2010 Robert Greenwalt <robdroid@android.com> am 4e925f8a: am cab133a7: am 33eb7767: Merge "NetworkManagementService: Add interface counters & throttle API" into froyo
4e925f8afb6f94a9867145d252d186eb65e79ccf 01-Apr-2010 Robert Greenwalt <robdroid@android.com> am cab133a7: am 33eb7767: Merge "NetworkManagementService: Add interface counters & throttle API" into froyo

Merge commit 'cab133a7fa39969f136e3f401f97f6ce843514bb' into kraken

* commit 'cab133a7fa39969f136e3f401f97f6ce843514bb':
NetworkManagementService: Add interface counters & throttle API
cab133a7fa39969f136e3f401f97f6ce843514bb 01-Apr-2010 Robert Greenwalt <robdroid@android.com> am 33eb7767: Merge "NetworkManagementService: Add interface counters & throttle API" into froyo

Merge commit '33eb7767fb49482643df80c8b5567da83aa0e49f' into froyo-plus-aosp

* commit '33eb7767fb49482643df80c8b5567da83aa0e49f':
NetworkManagementService: Add interface counters & throttle API
91cac64cd010e6b4006fdd14b39dbc75778f20cb 31-Mar-2010 San Mehat <san@google.com> NetworkManagementService: Add interface counters & throttle API

Change-Id: I4976549cdbb027ba7859335e69bf866e738961c9
Signed-off-by: San Mehat <san@google.com>
om/android/server/NetworkManagementService.java
c1c1d63e05b221a951e4377e552d40a28b9147fc 01-Apr-2010 Dianne Hackborn <hackbod@google.com> am d0b5b3cb: am 2d8d4d7b: am 513ae361: Merge "Fix issue #2560791: Expose API to go in to car mode." into froyo
9fa763c503c78c0916b6695a4426da4f9b7b3896 01-Apr-2010 Dianne Hackborn <hackbod@google.com> am aa3bbe9c: am 025f3933: am 686f7911: Merge "Fix issue #2561067: Screen Display half faded..." into froyo
081e7a2716e2f3dcba328b1832380cba3b399dd1 01-Apr-2010 Suchi Amalapurapu <asuchitra@google.com> am 392be3fa: am 1aa64b53: am ae18171a: Change certificate policy.
d0b5b3cb6118269fac00af14b81ab974763937ca 01-Apr-2010 Dianne Hackborn <hackbod@google.com> am 2d8d4d7b: am 513ae361: Merge "Fix issue #2560791: Expose API to go in to car mode." into froyo

Merge commit '2d8d4d7b16b474ef58c86ae9ccd3dc70d7132c23' into kraken

* commit '2d8d4d7b16b474ef58c86ae9ccd3dc70d7132c23':
Fix issue #2560791: Expose API to go in to car mode.
aa3bbe9c9f480ca6114befaa6739d0d51f7d5629 01-Apr-2010 Dianne Hackborn <hackbod@google.com> am 025f3933: am 686f7911: Merge "Fix issue #2561067: Screen Display half faded..." into froyo

Merge commit '025f3933cfc21655bfc5a5068c69303f1fe321ee' into kraken

* commit '025f3933cfc21655bfc5a5068c69303f1fe321ee':
Fix issue #2561067: Screen Display half faded...
392be3fa3d7c5e33ddb1dd85893bc4eaee170252 01-Apr-2010 Suchi Amalapurapu <asuchitra@google.com> am 1aa64b53: am ae18171a: Change certificate policy.

Merge commit '1aa64b53eb9b3cc7904705076a015a5cd0e3b536' into kraken

* commit '1aa64b53eb9b3cc7904705076a015a5cd0e3b536':
Change certificate policy.
2d8d4d7b16b474ef58c86ae9ccd3dc70d7132c23 01-Apr-2010 Dianne Hackborn <hackbod@google.com> am 513ae361: Merge "Fix issue #2560791: Expose API to go in to car mode." into froyo

Merge commit '513ae3610e5d6eac3af71c3e51a4e5e8b55b5256' into froyo-plus-aosp

* commit '513ae3610e5d6eac3af71c3e51a4e5e8b55b5256':
Fix issue #2560791: Expose API to go in to car mode.
025f3933cfc21655bfc5a5068c69303f1fe321ee 01-Apr-2010 Dianne Hackborn <hackbod@google.com> am 686f7911: Merge "Fix issue #2561067: Screen Display half faded..." into froyo

Merge commit '686f7911a3462d6847d2a9396572eaaf04a9f175' into froyo-plus-aosp

* commit '686f7911a3462d6847d2a9396572eaaf04a9f175':
Fix issue #2561067: Screen Display half faded...
1aa64b53eb9b3cc7904705076a015a5cd0e3b536 01-Apr-2010 Suchi Amalapurapu <asuchitra@google.com> am ae18171a: Change certificate policy.

Merge commit 'ae18171acd3c70fc6d27fc6bbe85828e0f928fad' into froyo-plus-aosp

* commit 'ae18171acd3c70fc6d27fc6bbe85828e0f928fad':
Change certificate policy.
513ae3610e5d6eac3af71c3e51a4e5e8b55b5256 01-Apr-2010 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #2560791: Expose API to go in to car mode." into froyo
686f7911a3462d6847d2a9396572eaaf04a9f175 01-Apr-2010 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #2561067: Screen Display half faded..." into froyo
f83c555d8a153662d067702c0df5761b5e71b1bf 01-Apr-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2561067: Screen Display half faded...

Also a little tweak to the activity manager to behave better when
an application crash, to hopefully mostly avoid situations where
you get into a crash loop.

Change-Id: I627cc1da3a0f16a180957f02bfbe5c81ecd31758
om/android/server/WindowManagerService.java
om/android/server/am/ActivityManagerService.java
ae18171acd3c70fc6d27fc6bbe85828e0f928fad 30-Mar-2010 Suchi Amalapurapu <asuchitra@google.com> Change certificate policy.

The certificates of the package and its shared user certificates
are initialized only when installing the package.

When scanning the packages, the certificates are collected from the apk
if the time stamp changes. If not the one's from
PackageSetting(read from packages.xml) are reused.

Removed mergeSignatures and updateSignatures since we don't support
this any more.
Also fix some bugs related to reinstalling failed upgrades.

Some unit tests.

Change-Id: Ibdeff170bd386d723f774136b18e0ad59d9cdabb
om/android/server/PackageManagerService.java
9c9c532d3625ba2485eb4ea6924ed0a0163fd958 31-Mar-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2560791: Expose API to go in to car mode.

Also fix bug where night mode was being used in desk dock.

Change-Id: I56c1cf3d6fe800a4f986d40cc4cb2e70b76ac261
om/android/server/UiModeManagerService.java
c254ce3ab0eda9fb1d3e5e07a2ac036bdcf41b92 01-Apr-2010 Jeff Brown <jeffbrown@google.com> am 6801cedb: am 6a3e7dfa: am c738783c: Merge "Fix alarms with negative or very large wakup times." into froyo
6801cedb76cbdd0e7036f6b32e97598589f5654b 01-Apr-2010 Jeff Brown <jeffbrown@google.com> am 6a3e7dfa: am c738783c: Merge "Fix alarms with negative or very large wakup times." into froyo

Merge commit '6a3e7dfa87345244190403eaad71e760f11305ba' into kraken

* commit '6a3e7dfa87345244190403eaad71e760f11305ba':
Fix alarms with negative or very large wakup times.
6a3e7dfa87345244190403eaad71e760f11305ba 01-Apr-2010 Jeff Brown <jeffbrown@google.com> am c738783c: Merge "Fix alarms with negative or very large wakup times." into froyo

Merge commit 'c738783cc2b7b5bde1f0c25ed2cb4f9fd4df38cc' into froyo-plus-aosp

* commit 'c738783cc2b7b5bde1f0c25ed2cb4f9fd4df38cc':
Fix alarms with negative or very large wakup times.
c738783cc2b7b5bde1f0c25ed2cb4f9fd4df38cc 01-Apr-2010 Jeff Brown <jeffbrown@google.com> Merge "Fix alarms with negative or very large wakup times." into froyo
11c5f1a65d6c495cc60f9f15d408c776baed9f73 01-Apr-2010 Jeff Brown <jeffbrown@google.com> Fix alarms with negative or very large wakup times.

When the wakeup time is negative, the kernel /dev/alarm driver
never triggers the alarm. This can cause alarms to back up in the
priority queue since an alarm at the head with a negative wakup time
will never be triggered. Now we use 0 as the wakup time which causes
an immediate triggering.

When the wakeup time is very large, it is possible for a numeric
overflow to occur when converting the timestamp from milliseconds
since epoch to nanoseconds. This has been fixed by avoiding the
intermediate conversion in the JNI call so that overflow cannot
occur.

Bug: b/2558820
Change-Id: I4f5b4646a04090cc749a9fc5d3982a68402954ef
om/android/server/AlarmManagerService.java
7878238ebddb6abfbf7f288115c9f23c09d9dea2 31-Mar-2010 Dianne Hackborn <hackbod@google.com> am 8cb52c8a: am bc50bdca: am e259bc77: Fix issue #2558391: Package manager problem when not replacing existing system partition app
8cb52c8a7d4102036231bbb2ef4eab14b3331d1b 31-Mar-2010 Dianne Hackborn <hackbod@google.com> am bc50bdca: am e259bc77: Fix issue #2558391: Package manager problem when not replacing existing system partition app

Merge commit 'bc50bdca0ae1f7d173e4f589db250dc519740c16' into kraken

* commit 'bc50bdca0ae1f7d173e4f589db250dc519740c16':
Fix issue #2558391: Package manager problem when not replacing existing system partition app
bc50bdca0ae1f7d173e4f589db250dc519740c16 31-Mar-2010 Dianne Hackborn <hackbod@google.com> am e259bc77: Fix issue #2558391: Package manager problem when not replacing existing system partition app

Merge commit 'e259bc770b3eeb88eb7a03ec0af2522ca9929f58' into froyo-plus-aosp

* commit 'e259bc770b3eeb88eb7a03ec0af2522ca9929f58':
Fix issue #2558391: Package manager problem when not replacing existing system partition app
e259bc770b3eeb88eb7a03ec0af2522ca9929f58 31-Mar-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2558391: Package manager problem when not replacing existing system partition app

This fixes the package manager to ensure we can't get in this bad state of
an update to a system app being installed as a separate app.

Change-Id: I2a3f601bbc06b74f31ca09192993614bc6885ff7
om/android/server/PackageManagerService.java
2544a74dff1e375bce8b724e770255f9aacebfee 31-Mar-2010 Eric Olsen <eolsen@android.com> am 8d72c644: am f26cf98f: am 71106558: Merge "Add thermal shutdown. If battery temp >= 68C." into froyo
8d72c64404ac869dbbc39a8e3646656392e2fca9 31-Mar-2010 Eric Olsen <eolsen@android.com> am f26cf98f: am 71106558: Merge "Add thermal shutdown. If battery temp >= 68C." into froyo

Merge commit 'f26cf98ffa087670a5ad849d7dd3c568d4f03ec9' into kraken

* commit 'f26cf98ffa087670a5ad849d7dd3c568d4f03ec9':
Add thermal shutdown. If battery temp >= 68C.
f26cf98ffa087670a5ad849d7dd3c568d4f03ec9 31-Mar-2010 Eric Olsen <eolsen@android.com> am 71106558: Merge "Add thermal shutdown. If battery temp >= 68C." into froyo

Merge commit '711065587b46ea0279788757c49a273ff796f844' into froyo-plus-aosp

* commit '711065587b46ea0279788757c49a273ff796f844':
Add thermal shutdown. If battery temp >= 68C.
6a362a97f71cda9eadfb72ce51e664c494cf7a04 26-Mar-2010 Eric Olsen <eolsen@android.com> Add thermal shutdown. If battery temp >= 68C.

Change-Id: I625fa47939d8ecc532457b5c6e13f91d83bfbcc5
om/android/server/BatteryService.java
99669b708902fe5bb4329e4a1d442820a68c35e7 31-Mar-2010 Jeff Brown <jeffbrown@google.com> am a749f869: Fix a previous bad merge.
a749f869747b763600fcfaa67a934f404f262d39 31-Mar-2010 Jeff Brown <jeffbrown@google.com> Fix a previous bad merge.

Change-Id: I12e577873389d6200f8add252867e63dee2d2c3c
om/android/server/PackageManagerService.java
41f7cb398ef6e7a195690e1660b4ca2d618250f1 31-Mar-2010 Jeff Brown <jeffbrown@google.com> am 767225d8: resolved conflicts for merge of d9ee01a9 to kraken
767225d8206adf4db968f3fa86d9ebb107a12067 31-Mar-2010 Jeff Brown <jeffbrown@google.com> resolved conflicts for merge of d9ee01a9 to kraken

Change-Id: I645177513e6dfa4b3b02c0061b8026bde4acde8d
d9ee01a95c8d9e785a48f1b1cb5245c8b12e444d 31-Mar-2010 Jeff Brown <jeffbrown@google.com> am 07330791: Show SD unavailable icon for apps on SD when ejected.

Merge commit '07330791116513710d879c45b2f095cd314cbfd0' into froyo-plus-aosp

* commit '07330791116513710d879c45b2f095cd314cbfd0':
Show SD unavailable icon for apps on SD when ejected.
07330791116513710d879c45b2f095cd314cbfd0 31-Mar-2010 Jeff Brown <jeffbrown@google.com> Show SD unavailable icon for apps on SD when ejected.

This change include a minor refactoring of PackageItemInfo and related
classes to eliminate code duplication and to avoid redundant work
searching for an ApplicationInfo instance we already have.

Bug: b/2537578
Change-Id: Id0794c3f055ea58b943028f7a84abc7dec9d0aac
om/android/server/PackageManagerService.java
bdb59f66b9f8d3395bd76e6506e5846ef544aca0 30-Mar-2010 Irfan Sheriff <isheriff@google.com> am 295eb97c: am 59610c04: cherry-pick d4f3958bde05d04f97e0a4054d2a6185989d99f3 into Froyo

Merge commit '295eb97c7623105d6199fa91e58394e474a0abb1' into kraken

* commit '295eb97c7623105d6199fa91e58394e474a0abb1':
cherry-pick d4f3958bde05d04f97e0a4054d2a6185989d99f3 into Froyo
295eb97c7623105d6199fa91e58394e474a0abb1 30-Mar-2010 Irfan Sheriff <isheriff@google.com> am 59610c04: cherry-pick d4f3958bde05d04f97e0a4054d2a6185989d99f3 into Froyo

Merge commit '59610c041a9cdd45e1040a7a4592af42f49d7a5d' into froyo-plus-aosp

* commit '59610c041a9cdd45e1040a7a4592af42f49d7a5d':
cherry-pick d4f3958bde05d04f97e0a4054d2a6185989d99f3 into Froyo
3faf05452b3df4fb16e5e1839dcdc1999b15dca7 30-Mar-2010 Dianne Hackborn <hackbod@google.com> am b4915265: am ab86fc91: am de2722af: Merge "Package manager optimizations." into froyo
b4915265a09361c375e792781ead5bfec6c797d9 30-Mar-2010 Dianne Hackborn <hackbod@google.com> am ab86fc91: am de2722af: Merge "Package manager optimizations." into froyo

Merge commit 'ab86fc91f5b54b8b730c0f594f04bbfb4c41697a' into kraken

* commit 'ab86fc91f5b54b8b730c0f594f04bbfb4c41697a':
Package manager optimizations.
ab86fc91f5b54b8b730c0f594f04bbfb4c41697a 30-Mar-2010 Dianne Hackborn <hackbod@google.com> am de2722af: Merge "Package manager optimizations." into froyo

Merge commit 'de2722af35d7bd0dc19478f6dbe8b0ff329b3fa8' into froyo-plus-aosp

* commit 'de2722af35d7bd0dc19478f6dbe8b0ff329b3fa8':
Package manager optimizations.
59610c041a9cdd45e1040a7a4592af42f49d7a5d 30-Mar-2010 Irfan Sheriff <isheriff@google.com> cherry-pick d4f3958bde05d04f97e0a4054d2a6185989d99f3 into Froyo

Setting the allowed channel count in the
driver can take a long time to potentially
cause ANR in the phone process. Make the call
asynchronous

Bug: 2555117
Change-Id: Ie3c2e6f90aa0ec8ee4b85c989ccae1ca0f2b94f9
om/android/server/WifiService.java
d7c096845dee7616095eda0fe9e7aa08f0ba9c20 30-Mar-2010 Dianne Hackborn <hackbod@google.com> Package manager optimizations.

Addresses:
Issue #2550648: PackageManagerService setComponentEnabledSetting unconditionally
writes Settings xml
Issue #2549084: Make PackageManager.addPermission have async version

Also make the writing of settings when changing the preferred activities to use
the same async mechanism, and fiddle with thread priorities in the background
thread to go up to foreground priority when holding the lock to write settings
and a few other places. (At some point we should really clean this up to never
acquire the main lock while in the background.)

Change-Id: Ib2b7632543f6fb3f92a225518579f3b2d15e1413
om/android/server/PackageManagerService.java
d4f3958bde05d04f97e0a4054d2a6185989d99f3 30-Mar-2010 Irfan Sheriff <isheriff@google.com> Merge "Make setNumAllowedChannels asynchronous"
d8f614c9bf771de957a3806381f869e7cc33fa27 30-Mar-2010 Irfan Sheriff <isheriff@google.com> Make setNumAllowedChannels asynchronous

Setting the allowed channel count in the
driver can take a long time to potentially
cause ANR in the phone process. Make the call
asynchronous

Bug: 2555117
Change-Id: I66506093af0ba77c491079c29e7649732db509d1
om/android/server/WifiService.java
e1bd78b4d120a7b7546fac7eb1e74cd1846b412f 30-Mar-2010 Christopher Tate <ctate@google.com> am 4caee4f7: am b3f7fe44: am 22375e4a: Merge "Make RestoreSession.getAvailableRestoreSets() asynchronous" into froyo
4caee4f7199d43b98badb02c9b746af66062cef2 30-Mar-2010 Christopher Tate <ctate@google.com> am b3f7fe44: am 22375e4a: Merge "Make RestoreSession.getAvailableRestoreSets() asynchronous" into froyo

Merge commit 'b3f7fe44f5a3a6a4c04d4102eb61f29edf83129c' into kraken

* commit 'b3f7fe44f5a3a6a4c04d4102eb61f29edf83129c':
Make RestoreSession.getAvailableRestoreSets() asynchronous
b3f7fe44f5a3a6a4c04d4102eb61f29edf83129c 30-Mar-2010 Christopher Tate <ctate@google.com> am 22375e4a: Merge "Make RestoreSession.getAvailableRestoreSets() asynchronous" into froyo

Merge commit '22375e4a736c0d646c3cf0905c15126f7f4107c2' into froyo-plus-aosp

* commit '22375e4a736c0d646c3cf0905c15126f7f4107c2':
Make RestoreSession.getAvailableRestoreSets() asynchronous
22375e4a736c0d646c3cf0905c15126f7f4107c2 30-Mar-2010 Christopher Tate <ctate@google.com> Merge "Make RestoreSession.getAvailableRestoreSets() asynchronous" into froyo
0c03f69c9dc4ede77f7686400f78cb1b01615ebd 30-Mar-2010 Daniel Sandler <dsandler@android.com> am 2fa4ab04: am 454a956b: am a7035909: Remove logspew.
2fa4ab04b43ea1e377d2921f6e5112025a6f1439 30-Mar-2010 Daniel Sandler <dsandler@android.com> am 454a956b: am a7035909: Remove logspew.

Merge commit '454a956b52884083e3436fe2ea7e478df2bcbeea' into kraken

* commit '454a956b52884083e3436fe2ea7e478df2bcbeea':
Remove logspew.
454a956b52884083e3436fe2ea7e478df2bcbeea 30-Mar-2010 Daniel Sandler <dsandler@android.com> am a7035909: Remove logspew.

Merge commit 'a7035909453c9980a5f8547f5090c70c4281156c' into froyo-plus-aosp

* commit 'a7035909453c9980a5f8547f5090c70c4281156c':
Remove logspew.
a7035909453c9980a5f8547f5090c70c4281156c 30-Mar-2010 Daniel Sandler <dsandler@android.com> Remove logspew.

Change-Id: I8b56a9c289dcc87080116e6af27721e24d49c3b0
om/android/server/NotificationManagerService.java
2d449afe3d075020bdd1115bcc15c9383cbce122 30-Mar-2010 Christopher Tate <ctate@google.com> Make RestoreSession.getAvailableRestoreSets() asynchronous

This transaction can involve the transport having to query a remote backend
over the wire, so it can take a Long Time(tm). Make it main-thread-safe by
making it asynchronous, with the results passed as a callback to the invoker's
RestoreObserver. We also make the IRestoreObserver callback interface
properly oneway.

Bug #2550665
Bug #2549422

Change-Id: If18a233a0a3d54c7b55101715c9e6195b762c5a0
om/android/server/BackupManagerService.java
b7248b7b810ed501d0a07ce762aee597f3b1c1a2 30-Mar-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: Iad50c5ab4915d0868b3f79ea6ba0d657a6f98525
3684f59138eb2cca10864957a128d6d7e60ba0fa 30-Mar-2010 Dianne Hackborn <hackbod@google.com> am 93d71444: am e5132805: am e2522466: Fix issue #2547337: switching night modes
ba2ff330092158c3870a076185297b8c9fbfc50d 30-Mar-2010 Dianne Hackborn <hackbod@google.com> am 839e1b6c: am 2fecae38: am ad5499dd: Hopefully get rid of some ANRs.
93d71444623489e05d6362342840cd342346d2fb 30-Mar-2010 Dianne Hackborn <hackbod@google.com> am e5132805: am e2522466: Fix issue #2547337: switching night modes

Merge commit 'e5132805110ba98e301b792cc0c2141b1729b680' into kraken

* commit 'e5132805110ba98e301b792cc0c2141b1729b680':
Fix issue #2547337: switching night modes
839e1b6c3991939cc966f7b4b4e9056a70392dca 30-Mar-2010 Dianne Hackborn <hackbod@google.com> am 2fecae38: am ad5499dd: Hopefully get rid of some ANRs.

Merge commit '2fecae386d952197d63fb75f8ec245d87159a684' into kraken

* commit '2fecae386d952197d63fb75f8ec245d87159a684':
Hopefully get rid of some ANRs.
e5132805110ba98e301b792cc0c2141b1729b680 30-Mar-2010 Dianne Hackborn <hackbod@google.com> am e2522466: Fix issue #2547337: switching night modes

Merge commit 'e2522466552f9c6b7fcea866709710f53aa1f2a8' into froyo-plus-aosp

* commit 'e2522466552f9c6b7fcea866709710f53aa1f2a8':
Fix issue #2547337: switching night modes
2fecae386d952197d63fb75f8ec245d87159a684 30-Mar-2010 Dianne Hackborn <hackbod@google.com> am ad5499dd: Hopefully get rid of some ANRs.

Merge commit 'ad5499dd204a1512471778462a805a288595f2f2' into froyo-plus-aosp

* commit 'ad5499dd204a1512471778462a805a288595f2f2':
Hopefully get rid of some ANRs.
e2522466552f9c6b7fcea866709710f53aa1f2a8 30-Mar-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2547337: switching night modes

Dumb.

Change-Id: Iaa72eaac54422f7fd95cf1050f6b7b6da55af0c3
om/android/server/UiModeManagerService.java
om/android/server/am/ActivityManagerService.java
ad5499dd204a1512471778462a805a288595f2f2 30-Mar-2010 Dianne Hackborn <hackbod@google.com> Hopefully get rid of some ANRs.

Don't hold the activity manager lock the entire time we are processing an ANR,
which often causes us to cause a second ANR as someone else calls into the
activity manager and gets blocked.

Change-Id: Ife4db82b12d6f4378ac2705bd6f60beb1244a1e6
om/android/server/am/ActivityManagerService.java
om/android/server/am/HistoryRecord.java
1ec71365f98baa24f8df82d9c4a79dd6edc940eb 30-Mar-2010 Oscar Montemayor <oam@google.com> am f5f30067: Merge "DO NOT MERGE Removing unused features from source tree. Please refer to Bug#2502219." into froyo

Merge commit 'f5f300678abb79574bb56eee13c8dd2b7b98b740' into froyo-plus-aosp

* commit 'f5f300678abb79574bb56eee13c8dd2b7b98b740':
DO NOT MERGE
1f4df90bfab8ca42eabe95f19eadff3432eee7fd 27-Mar-2010 Oscar Montemayor <oam@google.com> DO NOT MERGE
Removing unused features from source tree.
Please refer to Bug#2502219.

Change-Id: I879c29bfd5ffe933f64bb1082aaae7c956450a5a
om/android/server/BackupManagerService.java
om/android/server/Installer.java
om/android/server/MasterClearReceiver.java
om/android/server/PackageManagerService.java
de0d50f8b7dd7eb40ee84b3663ed2b9f990706af 30-Mar-2010 Christopher Tate <ctate@google.com> am 2eb13d3f: am 245df5ad: am 3f264c4f: Merge "API CHANGE: rename BackupHelperAgent => BackupAgentHelper per API Council" into froyo
245df5ad16ff227761906c10dc97c01901232666 30-Mar-2010 Christopher Tate <ctate@google.com> am 3f264c4f: Merge "API CHANGE: rename BackupHelperAgent => BackupAgentHelper per API Council" into froyo

Merge commit '3f264c4fba416f55247da3fafd6afbe55bf93598' into froyo-plus-aosp

* commit '3f264c4fba416f55247da3fafd6afbe55bf93598':
API CHANGE: rename BackupHelperAgent => BackupAgentHelper per API Council
cc84c69726507a85116f5664e20e2ebfac76edbe 29-Mar-2010 Christopher Tate <ctate@google.com> API CHANGE: rename BackupHelperAgent => BackupAgentHelper per API Council

Part of bug #2545514

Change-Id: Ic775e3b942c485252149c1b6c15c88517fa4e3e5
om/android/server/SystemBackupAgent.java
3330ae6324e74c0d8510966ddfe73f14b194dd8e 29-Mar-2010 Jean-Baptiste Queru <jbq@google.com> am b5d9614f: am 9d0f6dfd: Fix build
9d0f6dfdc1ac0b9374acf51572f273e9c9bbc9f9 29-Mar-2010 Jean-Baptiste Queru <jbq@google.com> Fix build

Change-Id: I8c68731786ab648dc916b09333b67acb26f81594
om/android/server/InputMethodManagerService.java
92380919cc54fb6f0b56d1c69ebbb66d4d78bfaa 29-Mar-2010 Irfan Sheriff <isheriff@google.com> am b99fe5e6: cherry-pick 288b4ac94571e6f77036831708e7bb7c31874688 into froyo

Merge commit 'b99fe5e622aa5419d80c02e3fab614372f44bc2a' into froyo-plus-aosp

* commit 'b99fe5e622aa5419d80c02e3fab614372f44bc2a':
cherry-pick 288b4ac94571e6f77036831708e7bb7c31874688 into froyo
b99fe5e622aa5419d80c02e3fab614372f44bc2a 26-Mar-2010 Irfan Sheriff <isheriff@google.com> cherry-pick 288b4ac94571e6f77036831708e7bb7c31874688 into froyo

Killing the WifiWatchdogService thread from
WifiService can cause messages to be handled on
a dead thread. Quit the thread on the broadcast
instead.

A couple of more fixes:
- Do an asynchronous bring up of Wifi. This will
allow WifiWatchdogServiceThread to be immediately
brought up, instead of relying on an update.

- There is no need to listen on supplicant connection
in wifiwatchdog anymore. We kill the thread when
supplicant connection is no more.

Bug: 2546756
Change-Id: I15a188e031bc79856c55aabdd271287b0df0377d
om/android/server/WifiService.java
om/android/server/WifiWatchdogService.java
d646f69c4e7cf0ad06bd2687a31b5cbb4441230c 29-Mar-2010 The Android Open Source Project <initial-contribution@android.com> am f29c7d4d: am c89704a7: merge from open-source master
c89704a77f9c51ebd8c1cc6863e15ff402a56c86 29-Mar-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: I6a8109d11dabc579501c598ab2927cf802797130
bc46432b6852bdf72ac335e010f48b106bf0e489 29-Mar-2010 Jean-Michel Trivi <jmtrivi@google.com> am 462e4a90: am 0737d77a: Merge "Implement audio focus support in the notification manager." into froyo
211957f63913d4a050604e0dfc1e0f80980e3d0c 27-Mar-2010 Jean-Michel Trivi <jmtrivi@google.com> Implement audio focus support in the notification manager.

This change introduces the NotificationPlayer class which was
created from the code of android.media.AsyncPlayer. The only modification
was to modify the construction of the MediaPlayer so it properly issues
onCompletion notifications (which are used to abandon audio focus).

Unless the sound to be played is looped, the notification is transient
and other apps may duck (uses AUDIOFOCUS_GAIN_TRANSIENT_MAY_DUCK in
audio focus request).
Change-Id: I69cbb71d0892447b934351384e4e24a2e239295b
om/android/server/NotificationManagerService.java
om/android/server/NotificationPlayer.java
f623e9bdbee57a162c51cd517810a0d9270cd124 26-Mar-2010 Irfan Sheriff <isheriff@google.com> Merge "Do a clean WifiWatchdog shutdown"
288b4ac94571e6f77036831708e7bb7c31874688 26-Mar-2010 Irfan Sheriff <isheriff@google.com> Do a clean WifiWatchdog shutdown

Killing the WifiWatchdogService thread from
WifiService can cause messages to be handled on
a dead thread. Quit the thread on the broadcast
instead.

A couple of more fixes:
- Do an asynchronous bring up of Wifi. This will
allow WifiWatchdogServiceThread to be immediately
brought up, instead of relying on an update.

- There is no need to listen on supplicant connection
in wifiwatchdog anymore. We kill the thread when
supplicant connection is no more.

Bug: 2546756
Change-Id: I9beae3eebee9cf0446d1dc031ce8fc1c27943521
om/android/server/WifiService.java
om/android/server/WifiWatchdogService.java
1af118ad34478f219a7bb0089f29c4967a95a3b8 26-Mar-2010 Christopher Tate <ctate@google.com> am 3cc042cb: am 9c3cee98: API CHANGE: Backup/restore API changes requested by the API Council
676d0684082cbbde64fdddcb7a2cf7338c49ad6b 26-Mar-2010 Joe Onorato <joeo@android.com> am a3636bb9: am 89837b25: Merge "Fix StatusBarService deadlock for real this time." into froyo
9c3cee9824026764275e4d84ba9b5d9fdc5da690 26-Mar-2010 Christopher Tate <ctate@google.com> API CHANGE: Backup/restore API changes requested by the API Council

* @hide the android.app.backup.RestoreSession class and functionality

* Provide a public method on android.app.backup.BackupManager that apps
can use to request a restore pass of their last-known-good dataset.
The new method is called requestRestore().

* Provide the name of the package being restored, not just its ordinal,
in the RestoreObserver's onUpdate() callback.

Part of bug #2545514

Change-Id: I9689bf8d6e2b808b4ee412424a36a835be0a5ca8
om/android/server/BackupManagerService.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
om/android/server/UiModeManagerService.java
om/android/server/am/ActivityManagerService.java
om/android/server/status/StatusBarView.java
1aedcce92f4ea2537de6295d8109707bc3989d37 26-Mar-2010 Joe Onorato <joeo@android.com> Fix StatusBarService deadlock for real this time.

The lock is now only held long enough to swap the queue with a new ArrayList.

Bug: 2542233
Change-Id: I8c1c3d4d0b5b53166cc239fc0069d69929b43f91
om/android/server/status/StatusBarService.java
a03b19272bfcfc2bd161cb20d13b3bb65d5378c9 19-Mar-2010 Mike Lockwood <lockwood@android.com> Preflight before attempting to start network location and geocoder services

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/LocationManagerService.java
43e33f28721e4759d4edb0fad08d330bba74f25e 26-Mar-2010 Mike Lockwood <lockwood@android.com> Move files internal to LocationManagerService from framework.jar to services.jar

Change-Id: I3dbb40210d87708e0bff46729f707d4ab8e29e42
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/LocationManagerService.java
om/android/server/location/GeocoderProxy.java
om/android/server/location/GpsLocationProvider.java
om/android/server/location/GpsXtraDownloader.java
om/android/server/location/LocationProviderInterface.java
om/android/server/location/LocationProviderProxy.java
om/android/server/location/MockProvider.java
om/android/server/location/PassiveProvider.java
om/android/server/status/StatusBarPolicy.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
om/android/server/UiModeManagerService.java
om/android/server/am/ActivityManagerService.java
om/android/server/status/StatusBarView.java
0d3b202bdedcdd692d96e53303bc5168d39a07e1 26-Mar-2010 Dianne Hackborn <hackbod@android.com> Merge "Fix Memory Leak When Switching Input Methods"
621bc545982e2318e71bef3111d3cab39169d648 26-Mar-2010 Dan Egnor <egnor@google.com> Add "dumpsys diskstats" to get a dump of disk-free values.

Also includes a trivial test of I/O latency. (Mostly useful to be invoked
from checkin to poll disk-free and latency issues. Also moderately useful
to see in a bugreport.)

Also make "dumpsys netstat" a non-no-op, in case we want this data.

Change-Id: Ia93550a23ca6b35586c5d9217890ee0a5801aae1
om/android/server/DiskStatsService.java
om/android/server/NetStatService.java
om/android/server/SystemServer.java
53d7c234432c8d2cca5b6e2ac08ab859b062f892 26-Mar-2010 Joe Onorato <joeo@android.com> Merge "Fix 2495749 - System process crash when a notification switches sections."
32b51436c68966cc7e5895fc917e7d9c7ffb10dd 25-Mar-2010 Joe Onorato <joeo@android.com> Fix 2495749 - System process crash when a notification switches sections.

Change-Id: I86ff1b78fc309b758c6457be867509b71042d42e
om/android/server/status/NotificationViewList.java
om/android/server/status/StatusBarService.java
b012e15441d86bdb31e87b23a7b3a565121aa37c 25-Mar-2010 Robert Greenwalt <robdroid@android.com> Merge "Fix Tethering of multiple downstream ifaces."
b37f0c6513241f79a6ea0e3c162dc540d028b60c 25-Mar-2010 Robert Greenwalt <robdroid@android.com> Fix Tethering of multiple downstream ifaces.

We weren't notifying the second tethered iface of it's upstream iface name so its traffic
was not getting routed correctly.
We also weren't clearing out our connected iface name when we untethered, so the route rules
weren't getting flushed when the last tether came down.

Change-Id: I34e5d672ea882c89c8f582d69d6dc421cb52d4b4
om/android/server/connectivity/Tethering.java
a3bd409a0a5dea446bd1b6edca1b367f3f70b503 25-Mar-2010 Irfan Sheriff <isheriff@google.com> settings variable for wifi saved state

We add a variable for saving wifi state
to restore after tethering.

Bring up wifi on boot up if the state indicates so.

Bug: 2537983
Change-Id: I9c6548b93df6fcbc0cec1e6b857f7224dc6d1b2c
om/android/server/WifiService.java
bfb7bfa53847832db2a3eb05e5eff7cb974c3c7a 25-Mar-2010 Robert Greenwalt <robdroid@android.com> Update Framework to support multiple dhpc ranges

Previously we only supported a single range - this was inadequate for
multiple interfaces. Adding a second range so we can support
both usb and wifi tethering.

Also moving out of the zero-conf range as our dhcp client won't
accept ip addrs in that range (no nexus to nexus wifi action).

bug: 2537963
bug: 2533491
bug: 2538303
Change-Id: I600b421343c28c2f9839ed2076122ae3d0ff5d3d
om/android/server/NetworkManagementService.java
om/android/server/WifiService.java
om/android/server/connectivity/Tethering.java
c68b5b7e5ba3216e52f70e61d089820b9a3b526b 25-Mar-2010 Daniel Sandler <dsandler@google.com> Merge "Use a more benign icon for ADB notifications."
39576c8df34e95bfb117e57d2bb17a5869d577f1 25-Mar-2010 Daniel Sandler <dsandler@google.com> Use a more benign icon for ADB notifications.

Also suppress vibe & noise for ADB notifications.

Bug: 2544480
Bug: 2545486

Change-Id: I955a7271f47601f9b35f0d3fcd48363370ebd252
om/android/server/NotificationManagerService.java
529bef692541a0f1290992b2f261e711b3bea9af 25-Mar-2010 Dianne Hackborn <hackbod@google.com> Dumb late-night typo.

Change-Id: If5e5d8c3728ffc06d686c793ed94a7e18328e5ab
om/android/server/WindowManagerService.java
a50785979712bd45e4d122e7ef0e999732b15fca 25-Mar-2010 San Mehat <san@google.com> MountService: Switch all Log -> Slog

Change-Id: Id33c76497e9d963f295ef6e99d850223ca59b6cd
Signed-off-by: San Mehat <san@google.com>
om/android/server/MountService.java
2e13d2331e3010e1437aa5567e8ef471f9c3589d 25-Mar-2010 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #2543231: chat invitation dialog does show all the time"
16064f9f183e4a07cd361042dad660aadf84dc9c 25-Mar-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2543231: chat invitation dialog does show all the time

We were forgetting to re-assign layers after re-ordering windows
after an app token transaction.

Change-Id: I448c0b9da644e027c3edff3ae8a4afa79da292d1
om/android/server/WindowManagerService.java
e861ec11c458b4f76eb80da518dfee6a400071bf 25-Mar-2010 Amith Yamasani <yamasani@google.com> Fix 2242164 Soft keyboard keeps getting enabled even if I disable it

On keyboardful devices, it is possible to disable the system soft input
method. Something changed in eclair that caused the ime to be re-enabled
on every package manager update (packages added/deleted).

Now keep track of disabled system imes in the settings db and search
in that list before enabling a system IME on package changes.

Every time the user goes to settings to enable/disable imes, the list
is re-created.

Any new system IMEs that may be added via an OTA will get enabled if
they have a different package name.
om/android/server/InputMethodManagerService.java
12331739e05b0c73fb8dbecefe2d9b2a2335e1d7 25-Mar-2010 Dan Egnor <egnor@google.com> Merge "Limit DropBox storage to 1000 files (by default)."
f91444c5e161bd0017c0a9a2a38f597da3805046 24-Mar-2010 Irfan Sheriff <isheriff@google.com> Disallow tethering disable by Wifi

Disallow Tethering being disabled by Wifi
and vice versa. We now need to explicitly
disable tethering to enable Wifi.

Bug: 2539071
Change-Id: Id34a5335e70cb7234367b4709882937a4b8cc526
om/android/server/WifiService.java
3bf504df9fc1971078fdde7eed418a0dd8f601e2 23-Mar-2010 Irfan Sheriff <isheriff@google.com> Fix WakeLock issue for driver stop

Due to message removal, wakelock could be held forever.

Do a timer only based wakelock release until we do this
more cleanly in ConnectivityService for later release.

Also, add an optimization to prevent use of wakelocks when driver is
already stopped.

Bug: 2529883
Change-Id: Ia1c2ddd44213ef3aa609855613bf155945bef8e4
om/android/server/WifiService.java
3a8b0c18a49c017ecfde8ebf4eb4bb5181ac6fef 25-Mar-2010 Dan Egnor <egnor@google.com> Limit DropBox storage to 1000 files (by default).

Also does trimming asynchronously (not directly in the broadcast receiver).

Bug: 2541253
Change-Id: I7daf8bc618e2dce68a98571f5f7fbce4df1d6a76
om/android/server/DropBoxManagerService.java
3ac71b605b9a8fb7432bf98926cb0b3d5551e577 24-Mar-2010 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #2540920: connectivity issues with tripit/pandora"
610f3890405a908735c369d37075a31e80dd82a0 24-Mar-2010 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #2537384: Default keyboard input method switched on Eclaire to FRE77D upgrade"
83e48f57e937a2e582707056f164aefa3c2f7e1d 24-Mar-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2537384: Default keyboard input method switched
on Eclaire to FRE77D upgrade

We want to prefer system IMEs when our current IME disappears.

Change-Id: Ief7332bc4f029991cd833ce0968d75bde987b594
om/android/server/InputMethodManagerService.java
af7cea3a510d80e7a4558c49756564d6500f106e 24-Mar-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2540920: connectivity issues with tripit/pandora

Need to be sure to compute gids when SD card is mounted, since we
need the package info for that. Note that this is not re-granting
permissions (and in the future we could optimize this to just pass
through the mounted apps).

Change-Id: I51e1c23d17a6429642132902ef75c65a307fc33a
om/android/server/PackageManagerService.java
c7537ee7b6a7d7c857a02170fa9f41461e5d075b 24-Mar-2010 Suchi Amalapurapu <asuchitra@google.com> Clean up stale containers if needed at install time.
This is needed when restoring applications installed on sdcard
via Market after a data wipe. The stale containers need to be cleaned up before
reinstalling again.
Add a test case for installing when a stale container exists.

Change-Id: I20c30b3003e85fb31531dd3cf9cb59962fe8fe5f
om/android/server/PackageManagerService.java
3779dd12b09d1e38b9b27be99acbac3509e480d8 24-Mar-2010 Maciej Białka <maciej.bialka@sonyericsson.com> Fix reporting of window visibility in WindowManagerService.

WindowManagerService (WMS) can wrongly report windows visibility due
to wrong handling of "starting windows".
"Starting windows" are special temporary windows that are displayed
while the application is starting.
Sometimes "starting windows" are considered when checking visibility
what leads to not reported or wrongly reported visibility status.
If visibility is not reported correctly some internal flows are
not executed and WMS internal state can be wrong.
om/android/server/WindowManagerService.java
f7f5dda5e54da53b98f1504672a422a484496531 23-Mar-2010 Suchi Amalapurapu <asuchitra@google.com> Add new activity manager method to get list of running applications installed on sdcard.
Use new method in UsbStorageActivity.
Fix moving dex files.
moveDex should be suffixed with LI since it uses Installer

Change-Id: Id5ef0254578e84b9aae2c2ac44f722eb5a0fda1c
om/android/server/PackageManagerService.java
om/android/server/am/ActivityManagerService.java
om/android/server/status/UsbStorageActivity.java
9818d7506e69ac30d614edf0379a2ea486115c19 23-Mar-2010 Dianne Hackborn <hackbod@google.com> Merge "Improve switching to car mode, retain night mode option."
008f6561f26a0313e2b6ff24db25aeeb17dfe195 23-Mar-2010 Dianne Hackborn <hackbod@google.com> Merge "Fix bug where group IDs were not being assigned during boot."
bbfd58a0072a89b2b644f1915dd407fda196aa98 23-Mar-2010 Dianne Hackborn <hackbod@google.com> Fix bug where group IDs were not being assigned during boot.

Change-Id: Ic735e98b106932eef2c2458d73fa016274fd796f
om/android/server/PackageManagerService.java
a89e372db2c561e8001d70fe732f0d269207a72e 23-Mar-2010 San Mehat <san@google.com> Merge "Asec: Add new 'StorageNotFound' response code handling for container paths"
2d66cef77e450ec4a4d725b89ae68c5e6b167bee 23-Mar-2010 San Mehat <san@google.com> Asec: Add new 'StorageNotFound' response code handling for container paths

Change-Id: I45d113f77b9f0e519087356b70fc6c4b5c290935
Signed-off-by: San Mehat <san@google.com>
om/android/server/MountService.java
9ce1319d052d40429f9899795bdcba836cc365fe 23-Mar-2010 Suchi Amalapurapu <asuchitra@google.com> Merge "Don't delete stale containers on sdcard. Comment out flaky test"
f654a484b2c553400676bd7cbd993604c06c2b57 23-Mar-2010 Suchi Amalapurapu <asuchitra@google.com> Don't delete stale containers on sdcard.
Comment out flaky test

Change-Id: Ic7da6421c1a1980c19f7f1c929976432245479fa
om/android/server/PackageManagerService.java
7f3e62cd921e7dfcdec1ed78ba2ef072beeecdd3 23-Mar-2010 Robert Greenwalt <robdroid@android.com> Merge "Fix Tethering when DUN is required but wifi is ok"
6787b7c597f24a522be4bf02e8b3797ff42336f3 23-Mar-2010 Kenny Root <kroot@google.com> Merge "Compact when NativeDaemonConnector hits buffer limit"
85f2c9ce5a0e074df2429a5d66e1754e368a0430 22-Mar-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2530103: ActivePassword data in Device Policy Manager needs to be persisted

Also fixes how the quality vs. mode is handled to be more consistent, which also
required introducing a new "alphabetic" quality since it is possible for the user
to enter such a password.

The current password quality and length is stored in the DPM, since at boot it
couldn't figure this out from the stored password.

Change-Id: I519d9b76dd0b4431bcf42920c34dda38c9f1136e
om/android/server/DevicePolicyManagerService.java
2ccda4dc8d800c3592b4bd4d1d70a064d98dd4fe 23-Mar-2010 Dianne Hackborn <hackbod@google.com> Improve switching to car mode, retain night mode option.

Fiddle with how we go into car mode to try to ensure we get a clean
transition. Also have the system take care of remembering the night
mode setting so it will stay at what you want.

Change-Id: Icb94fdd961c7a192f7707ec71544485a1ea12455
om/android/server/UiModeManagerService.java
om/android/server/am/ActivityManagerService.java
f657b63c1c20252e1b0eb0646efb479420c828be 23-Mar-2010 Dianne Hackborn <hackbod@google.com> Fix restoring of permissions after a reboot.

It turns out the whole loadedPermissions thing was pointless at this
point, and causing the problem: we would write out the granted
permissions, then at boot load them into loaded permissions, and
never actually put them in granted.

Just remove loadedPermissions. The grantedPermissions (that is
the permissions the user has approved be granted to the app) are
all we care about.

Change-Id: I54d9dc418d6277ae0b35b8c1fc4b9c11f34f86f0
om/android/server/PackageManagerService.java
961aa8c8879e9f68c0eddcaf87565200a4347134 23-Mar-2010 Kenny Root <kroot@google.com> Compact when NativeDaemonConnector hits buffer limit

If NativeDaemonConnector hits its buffer limit, it would truncate the
data and lose some information. This change compacts the buffer and then
retries to read the rest of the data.

Change-Id: I0d5fee097bdd6808212ef3ad6fb4abbc6310fd4a
om/android/server/NativeDaemonConnector.java
77e638dee8b8b0f9c0fcb5403f8c6fb97b52826f 22-Mar-2010 Robert Greenwalt <robdroid@android.com> Fix Tethering when DUN is required but wifi is ok

If the phone is configured to require a DUN connection when on mobile but also accepts
wifi upstream connections, there was a bug in the logic and you'd be left with no
upstream connection.

bug:2533914
Change-Id: I30d44764f578be4cf2c29ee90d39e8563dda06fb
om/android/server/connectivity/Tethering.java
92e77dd718cc1c378efa0cf3bef737e463225e82 22-Mar-2010 Mike Lockwood <lockwood@android.com> Merge "Improve wakelock debugging:"
f5bd092b5099cf43f031c3f53ad01592dda57f4b 22-Mar-2010 Mike Lockwood <lockwood@android.com> Improve wakelock debugging:

Throw NullPointerException if tag is null in PowerManager.newWakelock()
Print wakelock owner's uid and pid in dumpsys power output.

BUG: 2522675

Change-Id: I462c7f8c49f9896b2f58cef5a678ebd2c062a8f7
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/PowerManagerService.java
f030462c83a91432b7cf2c699778b63b1e79de72 20-Mar-2010 Kenny Root <kroot@google.com> Make trying to remount an asec container non-fatal

If an asec container is already mounted for some reason, start tracking
it in the MountService's internal state and tell the caller we had
success mounting the secure container.

Change-Id: I5bb0f84b2bafc0cd2dba248c35a8d68fd53ef1b2
om/android/server/MountService.java
85861c7a6f8b00143ae3b33ac98db20bb5c539e4 22-Mar-2010 Nick Kralevich <nnk@google.com> Merge "Unittests for EntropyService. Make EntropyService more testable."
e99bb5f10b90736d10cee9729b56cba156fc0921 19-Mar-2010 Suchi Amalapurapu <asuchitra@google.com> Add new method call back in MountService.
PackageManager invokes this call back when its done handling
the media status update.
Add new uid check for updateExternalMediaStatus
Change killPids method in ActivityManager.
Remove mountsd command in Pm.java We cannot arbitrarily enable/disable
packages in PackageManager now.

Change-Id: I28dcba4afd2b4486f68abdaa1628a31b66544c91
om/android/server/MountService.java
om/android/server/PackageManagerService.java
om/android/server/WindowManagerService.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/EventLogTags.logtags
6a254403235196692b1769d2fe281b0852c0cc25 22-Mar-2010 San Mehat <san@google.com> MountService: Handle volumes shared on startup

Change-Id: I7c38607adee7c89f27c24285a7ace2b9c87e7f30
Signed-off-by: San Mehat <san@google.com>
om/android/server/MountService.java
93a68398b661c02d6c417a2a04e64a6750a9a119 20-Mar-2010 Nick Kralevich <nnk@google.com> Unittests for EntropyService. Make EntropyService more testable.

I've been meaning to write these tests for a long time...

Use "runtest frameworks-services" to run these tests.

Change-Id: I3a3cb7eda547f4a790f38be884b4a583426c7326
om/android/server/EntropyService.java
1da49e45a8b5c656a364f0fad42b92fd4dd18b59 20-Mar-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: I23af6296f0867bea2a2da72d4eb3dda93025b1ac
15b487e4ead5b1af5f188606449e04bc707a3ee7 20-Mar-2010 Irfan Sheriff <isheriff@google.com> Merge "Allow space in SSID"
723f1097294396817bbe1ea0fc45cfea4a6430da 19-Mar-2010 Irfan Sheriff <isheriff@google.com> Allow space in SSID

Bug: 2530930
Change-Id: Iaa6c44014d889ad0d023148b091fc01c22524bf3
om/android/server/NetworkManagementService.java
4cee725b1fd3958d850fc83214797f76d5f6b468 19-Mar-2010 Christopher Tate <ctate@google.com> Use atomic++ rather than lock/++/unlock in the input dispatch code path

Decouples the input dispatch thread from the battery-stats object lock regime,
to avoid the possibility of ever blocking the input dispatch thread on its
behalf. The stats object is widely used and can sometimes be locked for a
very long time (on the order of seconds) during certain extensive dump
operations.

This change does not alter the data format of the battery stats' externalized
representations.

Fixes bug #2530346

Change-Id: Iee288be3bf4936641b532dceecb8f6de8f552bf0
om/android/server/am/BatteryStatsService.java
a0a59122ebb7f1c134e8b8f9c0c90b7d90b86279 19-Mar-2010 Irfan Sheriff <isheriff@google.com> Merge "Fix wakelock"
379232c8f5c9faacfcb097b44930dde9a042b1bc 19-Mar-2010 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #2512131: Trackball goes up when moving"
7d9af5ae762c59e879a86e77dcb330856774bc09 19-Mar-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2512131: Trackball goes up when moving

Change-Id: Ib403de88f24bc1b6e5417732e3b69f89a5160bbc
om/android/server/KeyInputQueue.java
1afd1c90ebe789b8d3a137004127a50d2db7e3b5 19-Mar-2010 Dianne Hackborn <hackbod@google.com> Maybe fix issue #2457218: Corrupt batterystats.bin file preventing phone boot - LIBtt68127

No steps to repro, but makes the code more robust by using the standard
JournaledFile class and doing sanity checks on the input it reads.

This required moving the JournaledFile class in to the framework (and
we really should get rid of either it or AtomicFile, but they have
different recovery semantics so that is tough). Also went through and
cleaned up the file management in various places.

Change-Id: Ieb7268d8435e77dff66b6e67bb63b62e5dea572e
om/android/server/DevicePolicyManagerService.java
om/android/server/JournaledFile.java
om/android/server/PackageManagerService.java
om/android/server/WallpaperManagerService.java
om/android/server/am/UsageStatsService.java
ebb83ade1eefb8a92990cc7b676d829b111cb7bf 19-Mar-2010 Suchi Amalapurapu <asuchitra@google.com> Grant permissions to apps on sd when enabling/disabling packages.

Change-Id: I0f011bd4a3348ccd46fd7ae9765edf8933b94142
om/android/server/PackageManagerService.java
80cb598599de1f867990d6070a5b0d663369bcbc 19-Mar-2010 Irfan Sheriff <isheriff@google.com> Fix wakelock

Bug: 2413908
Change-Id: Ic7f2efa94b0ad1c561db0ffab8c531d19e6c235e
om/android/server/WifiService.java
951749ba2e014566553d17c512e947472951a060 19-Mar-2010 Wink Saville <wink@google.com> Use the new HSM capability that allows transitionTo in enter methods.

Change-Id: If87a30257111d4a2b0506428c75eae81a7ccf77b
om/android/server/connectivity/Tethering.java
ad17d11c7495b1fdb5ca6faba74a741b17cf19f9 19-Mar-2010 Robert Greenwalt <robdroid@android.com> Merge "Fix Tethering Notifications for multiple ifaces"
db3fe9edd4cb638d3dd20b23456f6cdb0a414ed1 19-Mar-2010 Robert Greenwalt <robdroid@android.com> Fix Tethering Notifications for multiple ifaces

Used to see multiple notifications if usb tethering and wifi tethering were both used.

bug:2527862
Change-Id: Idc6299c0a70564dd7c8d8d7fe13bde83723134ae
om/android/server/connectivity/Tethering.java
806da1d46c94c71728b94dec75dec6519c962b5c 19-Mar-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2512507: Shortcuts and Widgets lost on upgrading from Eclair to FRE70D

Apps on the system partition are now allowed to change their certs, as
long as they are not using a shared user id.

Change-Id: I02ff7ac874dc649b7f8cbb705ae8d7ed31e1d125
om/android/server/PackageManagerService.java
7942b33e8905bbc177ff3c92596404530c860bcd 19-Mar-2010 Suchi Amalapurapu <asuchitra@google.com> Merge "Switch default install location to unspecified. Add a new install location unspecified for backward compatibility. There is not much difference between policies auto and unspecified. But we dont have to make any code changes in PackageParser based on our preference for install location. Add tests"
90d8ee650be988d8479f4f14ae8e541bb4cb034b 18-Mar-2010 Suchi Amalapurapu <asuchitra@google.com> Switch default install location to unspecified.
Add a new install location unspecified for backward compatibility.
There is not much difference between policies auto and unspecified.
But we dont have to make any code changes in PackageParser based
on our preference for install location.
Add tests

Change-Id: I563238133261d911d08fbc66344687b7dfc870b1
om/android/server/PackageManagerService.java
6d33c5adde49eabeb2c31996700d4cd4cf9e3e05 19-Mar-2010 Irfan Sheriff <isheriff@google.com> Merge "Clean up changing AP configuration"
c2f54c267b896cd1799d82be81e904a2b56c2f26 18-Mar-2010 Irfan Sheriff <isheriff@google.com> Clean up changing AP configuration

Bug: 2527293
Change-Id: I35e82e24e27349e2966f88189ebca4246ad1a354
om/android/server/NetworkManagementService.java
om/android/server/WifiService.java
ef905c86eeaecb0a7e2eb1152ae757ccdc9a7b36 18-Mar-2010 jsh <jsh@google.com> Merge "Update signal strength mapping for GSM/UMTS."
ee63e47940d5a3bf6f1001153750e885ac3a7dcd 18-Mar-2010 jsh <jsh@google.com> Update signal strength mapping for GSM/UMTS.

b/2480975

New mapping:
4 bars: >= 12 asu
3 bars: >= 8 asu
2 bars: >= 5 asu
1 bar: >= 3 asu
0 bars: <= 2 asu

Change-Id: I73dcc8e490d039ec392f027fc96f95dc951ca793
om/android/server/status/StatusBarPolicy.java
1a543010e5cdcd35d67dadd2ab98b60fa02d5de2 18-Mar-2010 Irfan Sheriff <isheriff@google.com> Dont disable AP for tether failures

Bug: 2524514
Change-Id: I8a59e717c5b36b83adbed43184fd45d7cbfedd9a
om/android/server/WifiService.java
d4310ac944e5f3063bb23558ba25ccf76fec0968 17-Mar-2010 Dianne Hackborn <hackbod@google.com> Rework permissions to be retained when an app is temporarily uninstalled.

This allows us to keep the assigned permissions when apps are temporarily
removed due to the SD card being unmounted, and also if you use the
facility to uninstall an app but keep its data.

Also fixes issue #2515189: Potential permission spoofing attack in
Android (external bug 7166)

Change-Id: I2a120ec938552028c989f9e0e890c32773957738
om/android/server/IntentResolver.java
om/android/server/PackageManagerService.java
om/android/server/am/ActivityManagerService.java
694f79b5d1196640d1beb680b7d1fc68e6e77cbd 18-Mar-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2519590: Lock screen stuck in landscape mode

Well, mostly. There is still a problem here where the first time
you show the lock screen it just doesn't draw itself. I assume
this is something breaking in the view hierarchy as it floounders
around removing and adding new views as it is first being shown...
but no idea at this point what is the actual case.

Change-Id: Iba99ae3242931c8673b17b106c86fc99e2c52abe
om/android/server/WindowManagerService.java
e4eb5bf243cb51b75b0717ebcd8c317a5b8fae8a 18-Mar-2010 Robert Greenwalt <robdroid@android.com> Merge "Make Tethering not disconnect on every net change."
b8d806d034ed16279884e5a4b719d56115e66aa6 18-Mar-2010 Joe Onorato <joeo@google.com> Merge "Fix for deadlock between StatusBarService and NotificationManagerService"
6a1967c9088b9f05665462efa9d98210143500bd 17-Mar-2010 Robert Greenwalt <robdroid@android.com> Make Tethering not disconnect on every net change.

Tethering will now persist to on (until turned off) through upstream net drops,
tunnels, switches to wifi or 2G, mms sends, etc. It will also strive to use
the most natural connection and only go to HiPri/Dun APNs when needed.

bug:2519915
bug:2501837
Change-Id: Iedf6647daad8df507d7c87d1130b204b0a0acc7b
om/android/server/connectivity/Tethering.java
d3dd518baf87f06a571e56d9a127b043cf719e23 18-Mar-2010 Suchi Amalapurapu <asuchitra@google.com> Merge "Add new install flag to install on internal flash only Change default install location policy for new flag. New error code for media unavailable."
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
om/android/server/PackageManagerService.java
8cf1bcd1d26ddbb471e4968b70e32ecabe4f7a20 16-Mar-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2325621: Runtime restart after launching Android keyboard setting.

Again.

Change-Id: Icc36029767fbfea19e474aa0731e8271da1329db
om/android/server/InputMethodManagerService.java
c5e56ddedffa21f06b0249afda0ae1fa14586009 11-Mar-2010 Obi Okafor <obi.okafor@sonyericsson.com> Fix for deadlock between StatusBarService and NotificationManagerService

A ServerThread holding a lock on mQueue in StatusBarService invoked a
callback in NotificationManagerService which required a lock on
mNotificationList. At the same time, a BinderThread holding a lock on
mNotificationList was attempting to post a message to StatusBarService
which requires lock on mQueue. The fix is to release the lock on mQueue
in handleMessage() before running the actions at the end of the method.
om/android/server/status/StatusBarService.java
09bc8d8c125ff0ba745b3d0ebf5b0236fa865deb 17-Mar-2010 Daniel Sandler <dsandler@google.com> Merge "Add progress indicator to USB mass storage screen."
c008e0a5b74de92f3fb3c704a55973f2d9d6c4fd 16-Mar-2010 Tobias Haamel <haamel@google.com> Fix 2514479: Putting phone in car dock ignores security pattern

Don't disable the keylock pattern when the device is in car mode.
Instead it should be possible to show the lock pattern at least once
and after valid authentication it should be disabled in the system.
Since this requires additional discussion it will be moved to the
next Android release.

Change-Id: I28cddcfb6640e44a29c716b59a3d6e37e8003dca
om/android/server/UiModeManagerService.java
9ab518ad793385f8405edf19363fe825fb64f5f8 13-Mar-2010 Irfan Sheriff <isheriff@google.com> softAp framework changes

Remove AP persist settings
Add new netd interface
Handle errors
Handle AP config change
Bug: 2413908
Change-Id: I31a1221ef5479da8d4a2620f0f0ee0b62539bc69
om/android/server/NetworkManagementService.java
om/android/server/WifiService.java
057f5c3127fc998396185c2ad655e33f5942c0b9 17-Mar-2010 Mathias Agopian <mathias@google.com> make the statusbar viewtracker opaque

Change-Id: I3fc69b5a8b600e23fccc88e9d80eb3495fad16d4
om/android/server/status/StatusBarService.java
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
om/android/server/MountService.java
om/android/server/PackageManagerService.java
44113ba31a77027a56885080fdbbda67b48c46fe 16-Mar-2010 Irfan Sheriff <isheriff@google.com> Remove reload config for priority change

Bug: 2467689
Change-Id: Icd3bb17f5b794282219dd410cb56888d10130281
om/android/server/WifiService.java
c8b7b9f45e0f51138101c509b6d176d35bbf2c78 16-Mar-2010 Daniel Sandler <dsandler@google.com> Add progress indicator to USB mass storage screen.

When the user taps on the enable button, it's hidden and
replaced with an indeterminate ProgressBar; this is in turn
hidden and replaced with the disable button in response to
broadcasts from the MountService. (Disabling UMS is
analogous.)

(Requires change Ic53cb370, which moves MountService's
operations out of the UI thread.)

Bug: 2483340
Change-Id: Ia25d99cd9709ee5a05316e8f05f66ca9da20aa25
om/android/server/status/UsbStorageActivity.java
5f27ef4968ac8c331157524c60a4511fcc3731b1 16-Mar-2010 Daniel Sandler <dsandler@google.com> Move MountService's Handler to a different thread.

This should help avoid blocking the system UI during storage
operations.

Change-Id: Ic53cb370baf47e8b00476706ac8df45645a2d814
om/android/server/MountService.java
780b2603041a56800ff6e49fb14535c1b1ca8907 15-Mar-2010 Tobias Haamel <haamel@google.com> Fix issue 2512221: Car Dock Notification doesn't go away

Bug description:
1) Start Car Dock app.
2) Drop phone into Desk Dock
3) Press back to quit Desk Dock app.

Car Dock Notification doesn't go away if I select it from the shade.

Change-Id: I9d3ad4dbbe8f886fc8d523d104676194c3943473
om/android/server/UiModeManagerService.java
38af4c36fc2636d7dfe6ec3cfe91f406dd1b2803 13-Mar-2010 Christopher Tate <ctate@google.com> Merge "API CHANGE: expose the backup-related ApplicationInfo flag masks"
3de55bcd34afd5871816526294f9514d1adf3fe5 13-Mar-2010 Christopher Tate <ctate@google.com> API CHANGE: expose the backup-related ApplicationInfo flag masks

Fixes bug #2507582 by doing the following:

- Un-@hide the FLAG_ALLOW_BACKUP, FLAG_KILL_AFTER_RESTORE, and
FLAG_RESTORE_ANY_VERSION mask constants in ApplicationInfo. These
correspond, respectively, to the <application> manifest tag's
android:allowBackup, android:killAfterRestore, and
android:restoreAnyVersion attributes.

- Remove the android:restoreNeedsApplication attribute and the
corresponding FLAG_RESTORE_NEEDS_APPLICATION constant [which was still
marked @hide]. We now always use the application's own Application
class when performing a normal restore. In the future when we support
an externalized full-filesystem backup/restore operation, we will use
an OS-defined agent class with a base-class Application instance, but
this will not happen until a future release.

Also expands real documentation on the above ApplicationInfo constants;
that work is part of bug #2465360

Change-Id: I735d07a963ae80a01343637d83bef84e4c23fdcc
om/android/server/BackupManagerService.java
5c83a5f2cc3793819d0d3568b1f3a19333afdd13 13-Mar-2010 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 2ecce34f to master

Change-Id: Ic4e38199beaf8c16f9d28ac5296e8aaa61788b36
061d58a10122b2ef56d4c2ed46090add16fb5b17 13-Mar-2010 Dianne Hackborn <hackbod@google.com> Fix problem with starting a translucent activity in onCreate().

Fixes issue #2437252: Starting activity by means of startActivityForResult
causes 5 seconds delay if "android:windowIsTranslucent" is true

The optimization to avoid showing an activity window when a new
activity is being started was a little too aggressive. Now it
avoids doing this if there is not actually a fullscreen activity
on top to cover it.

Change-Id: I630e37a1f1d3b874b5a25572cbf887cebc2e3e91
om/android/server/am/ActivityManagerService.java
7b00978dc739ed2213ed8e511c69cfb412798109 12-Mar-2010 Irfan Sheriff <isheriff@google.com> Run WifiWatchdogServiceThread only on wifi enable

Bug: 2508997
Change-Id: Ib79ee25fcc8e39e9a1d6c5b9ef9681bc00b6d006
om/android/server/ConnectivityService.java
om/android/server/WifiService.java
om/android/server/WifiWatchdogService.java
a455d194863d6c09f0388b03271880d7f21e77d6 12-Mar-2010 Dan Egnor <egnor@google.com> Record some logcat output with crashes, ANRs, etc..

Shelling out to logcat from the system server makes me queasy,
so this is turned off by default -- it must be enabled individually
for each error type (system_app_anr, etc) via a secure settings
value (which I plan to poke into from gservices for internal use).

Even when enabled, it happens in a side thread, unless the system
server is about to die anyway (system server restart).

Change-Id: Id6d88bcd78d3625f0364a5fe9c771046601a5a14
om/android/server/am/ActivityManagerService.java
bb51d9feea260e1527628b878319c0cf76adadeb 12-Mar-2010 Robert Greenwalt <robdroid@android.com> Fix UMS broadcasts in Tethering.

Now Tethering gets notified of UMS changes. Turns out UMS Broadcasts
have attached data with a file scheme and the filter had to be set
correctly.

bug:2504908
Change-Id: I67d979000196c90068fe59846b4fa2bbf6ea00d8
om/android/server/connectivity/Tethering.java
9b3a4536b3b726aff3b72494e0519b2d0552a3c2 12-Mar-2010 Dianne Hackborn <hackbod@google.com> Merge "Fix: Retrieval of location to caclulate twilight"
b62f959430afa80e616675fe15cec5392e8178de 12-Mar-2010 Mike Lockwood <lockwood@android.com> Fix problems with new PowerManager.reboot() implementation.

ShutdownThread.reboot() does return so we need to block after calling it
to prevent PowerManager.reboot() from returning.

Since PowerManager.reboot() can now take significantly longer than before,
we now ignore ANRs during shutdown.

Change-Id: Ibceeb265ae382567215f6a399108d8be3a7bbc95
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/PowerManagerService.java
om/android/server/am/ActivityManagerService.java
34e8e47b83b2f1af19d7ffa6c23638b7d7ffce6e 12-Mar-2010 Dan Egnor <egnor@google.com> Merge "Dump the phone process stack (as well as the system process) on watchdog reset."
ba9ab183186cb2ef704759485a8481d5b8c8a650 12-Mar-2010 Bernd Holzhey <holzhey@google.com> Fix: Retrieval of location to caclulate twilight

The provider determined by getBestProvider may not have a LastKnownLocation and
therefore the system might use a fake location, even if one provider will have
a location.

Change-Id: Iec4a377b141b0260af5611f51affa5f0c4a84ed2
om/android/server/UiModeManagerService.java
a028a4b5e89bc4648b44c4f3ccbceb5a0ce13409 12-Mar-2010 Mike Lockwood <lockwood@android.com> Merge "Fix LocationManager.getProvider() API breakage."
223e84d7336db189060f3f766a66037af8690496 12-Mar-2010 Mike Lockwood <lockwood@android.com> Fix LocationManager.getProvider() API breakage.

getProvider() needs to work for providers that are disabled.
It should only return null if the provider does not exist.

Change-Id: Ieb9fbd8965a10329377bc8ac9d8061cebe519ab5
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/LocationManagerService.java
a2fd9d1786fec65dc4199e29c78dd43e1e31bb58 12-Mar-2010 Dianne Hackborn <hackbod@google.com> Fix NPE when clearing preferred packages.

Fixes issue #2507124:
cts.PackageManagerRequiringPermissionsTest:testClearPackagePreferredActivities
is failing with NPE

Also introduce some compatibility code to simple ignore calls to set
preferred packages from old applications, and changes some package manager
logs to Slog.

Change-Id: Id3f98ac8e106da526ba4c12879a9ddaabf28f462
om/android/server/PackageManagerService.java
4bded0744a07152c1e7ae4cb8110c74ec89a67b1 12-Mar-2010 Dan Egnor <egnor@google.com> Dump the phone process stack (as well as the system process) on watchdog reset.

Change-Id: I3c47086f9cc010f524da7de539942ea30d0338e3
om/android/server/Watchdog.java
c9421ba1f46d9f9aeee833e1fde2cc263b058411 12-Mar-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2492387: system server crash in WallpaperManagerService

Also move some of the important framework error logs over to Slog.

Change-Id: If6697c3e4f18498612ebd7b0e4e4f042fd713372
om/android/server/WallpaperManagerService.java
15a4d2ffd04dc6c70f2cd17dae12ac6bc14c69ab 12-Mar-2010 Kenny Root <kroot@google.com> Add correct copyright headers to multiple files

Format for the list of changes shows the origin commit reference followed
by the file name.

33931-p9 awt/org/apache/harmony/awt/gl/font/AndroidGlyphVector.java
33931-p9 awt/org/apache/harmony/awt/gl/image/PngDecoderJava.java
133776-p9 core/java/android/app/IntentService.java
127013-p9 core/java/android/appwidget/AppWidgetHost.java
27863-p9 core/java/android/bluetooth/BluetoothAudioGateway.java
60765-p9 core/java/android/content/SyncResult.java
43920-p9 core/java/android/content/pm/ActivityInfo.java
43920-p9 core/java/android/content/pm/ApplicationInfo.java
43920-p9 core/java/android/content/pm/InstrumentationInfo.java
43920-p9 core/java/android/content/pm/PackageInfo.java
44103-p9 core/java/android/content/pm/PackageItemInfo.java
68960-p9 core/java/android/content/pm/PackageStats.java
43920-p9 core/java/android/content/pm/ResolveInfo.java
43920-p9 core/java/android/content/pm/ServiceInfo.java
60641-p9 core/java/android/content/res/Configuration.java
60734-p9 core/java/android/content/res/TypedArray.java
137672-p9 core/java/android/inputmethodservice/ExtractButton.java
123112-p9 core/java/android/inputmethodservice/ExtractEditText.java
119291-p9 core/java/android/inputmethodservice/IInputMethodSessionWrapper.java
112946-p9 core/java/android/inputmethodservice/IInputMethodWrapper.java
115078-p9 core/java/android/os/BatteryStats.java
124790-p9 core/java/android/text/style/UpdateAppearance.java
45083-p9 core/java/android/view/RawInputEvent.java
101491-p9 core/java/android/view/inputmethod/EditorInfo.java
114701-p9 core/java/android/view/inputmethod/ExtractedText.java
123112-p9 core/java/android/view/inputmethod/ExtractedTextRequest.java
119291-p9 core/java/com/android/internal/os/HandlerCaller.java
129279-p9 core/java/com/android/internal/os/PkgUsageStats.java
114701-p9 core/java/com/android/internal/view/IInputConnectionWrapper.java
114701-p9 core/java/com/android/internal/view/InputConnectionWrapper.java
84364-p9 opengl/java/android/opengl/EGLLogWrapper.java
11355-p9 opengl/tools/glgen/src/CFunc.java
11355-p9 opengl/tools/glgen/src/CType.java
11355-p9 opengl/tools/glgen/src/CodeEmitter.java
11355-p9 opengl/tools/glgen/src/GenerateGL.java
11355-p9 opengl/tools/glgen/src/JFunc.java
11355-p9 opengl/tools/glgen/src/JType.java
11355-p9 opengl/tools/glgen/src/JniCodeEmitter.java
11355-p9 opengl/tools/glgen/src/ParameterChecker.java
57236-p9 services/java/com/android/server/status/AnimatedImageView.java
66754-p9 services/java/com/android/server/status/CloseDragHandle.java
57188-p9 services/java/com/android/server/status/DateView.java
46928-p9 services/java/com/android/server/status/ExpandedView.java
70590-p9 services/java/com/android/server/status/FixedSizeDrawable.java
45968-p9 services/java/com/android/server/status/IconData.java
57470-p9 services/java/com/android/server/status/IconMerger.java
82719-p9 services/java/com/android/server/status/LatestItemView.java
45968-p9 services/java/com/android/server/status/NotificationData.java
66754-p9 services/java/com/android/server/status/NotificationLinearLayout.java
57458-p9 services/java/com/android/server/status/NotificationViewList.java
45968-p9 services/java/com/android/server/status/StatusBarException.java
45968-p9 services/java/com/android/server/status/StatusBarIcon.java
46130-p9 services/java/com/android/server/status/StatusBarNotification.java
45968-p9 services/java/com/android/server/status/StatusBarView.java
46199-p9 services/java/com/android/server/status/Ticker.java
62286-p9 services/java/com/android/server/status/TickerView.java
57188-p9 services/java/com/android/server/status/TrackingView.java
86041-p9 telephony/java/android/telephony/PhoneStateListener.java
87020-p9 telephony/java/com/android/internal/telephony/TelephonyIntents.java
136269-p9 telephony/java/com/android/internal/telephony/gsm/SpnOverride.java
34409-p9 tests/FrameworkTest/src/com/android/frameworktest/FrameworkTestApplication.java
55717-p9 tests/FrameworkTest/src/com/android/frameworktest/performance/InvalidateCycle.java
128994-p9 tests/ImfTest/src/com/android/imftest/samples/AutoCompleteTextViewActivityLandscape.java
128994-p9 tests/ImfTest/src/com/android/imftest/samples/AutoCompleteTextViewActivityPortrait.java
129372-p9 tests/ImfTest/src/com/android/imftest/samples/BigEditTextActivityNonScrollablePanScan.java
129372-p9 tests/ImfTest/src/com/android/imftest/samples/BigEditTextActivityNonScrollableResize.java
129372-p9 tests/ImfTest/src/com/android/imftest/samples/BigEditTextActivityScrollablePanScan.java
129372-p9 tests/ImfTest/src/com/android/imftest/samples/BigEditTextActivityScrollableResize.java
128994-p9 tests/ImfTest/src/com/android/imftest/samples/BottomEditTextActivityPanScan.java
128994-p9 tests/ImfTest/src/com/android/imftest/samples/BottomEditTextActivityResize.java
127341-p9 tests/ImfTest/src/com/android/imftest/samples/ButtonActivity.java
129347-p9 tests/ImfTest/src/com/android/imftest/samples/DialogActivity.java
129372-p9 tests/ImfTest/src/com/android/imftest/samples/EditTextActivityDialog.java
128994-p9 tests/ImfTest/src/com/android/imftest/samples/ManyEditTextActivityNoScrollPanScan.java
128994-p9 tests/ImfTest/src/com/android/imftest/samples/ManyEditTextActivityScrollPanScan.java
128994-p9 tests/ImfTest/src/com/android/imftest/samples/ManyEditTextActivityScrollResize.java
128994-p9 tests/ImfTest/src/com/android/imftest/samples/OneEditTextActivityNotSelected.java
128994-p9 tests/ImfTest/src/com/android/imftest/samples/OneEditTextActivitySelected.java
25959-p9 tests/framework-tests/src/android/test/FrameworkTests.java
46162-p9 tests/framework-tests/src/com/android/internal/http/multipart/MultipartTest.java
77101-p9 tools/layoutlib/bridge/tests/com/android/layoutlib/bridge/NinePatchTest.java
9788976b1465ce982b5ae7c741345edd0ecd9322 core/java/android/accounts/AuthenticatorDescription.java
53332883543868fb83e111a07306368b7772b340 core/java/android/app/UiModeManager.java
93e7e22ec91dbc641d10ca6d70423e1357a95bba core/java/android/app/FullBackupAgent.java
328c0e7986aa6bb7752ec6de3da9c999920bb55f core/java/android/content/CursorEntityIterator.java
307da1a46b4c9b711bafe8fbaaa6b98e8868c18e core/java/android/content/SyncQueue.java
307da1a46b4c9b711bafe8fbaaa6b98e8868c18e core/java/android/content/SyncOperation.java
eb034652c2037a47ebfd99779e8383bb8bb528af core/java/android/content/pm/LabeledIntent.java
49237345d83e62fdb9eb8d50b13ad086636a04fa core/java/android/content/pm/FeatureInfo.java
a2b6c3775ed6b8924232d6a01bae4a19740a15f8 core/java/android/content/pm/PackageInfoLite.java
3ecd5f437580e49d80beecd29489d5fb1f7a7db0 core/java/android/content/pm/RegisteredServicesCacheListener.java
5ebbb4a6b3e16f711735ae0615b9a9ea64faad38 core/java/android/content/pm/XmlSerializerAndParser.java
c4516a7b62de525e3d6d5e76851bdfaf12c11f05 core/java/android/database/sqlite/SQLiteTransactionListener.java
9bbc21a773cbdfbef2876a75c32bda5839647751 core/java/com/android/internal/backup/LocalTransport.java
21f1bd17b2dfe361acbb28453b3f3b1a110932fa core/java/com/android/internal/content/PackageMonitor.java
4c62fc0e1e5ea9c69a12a7d1cf8b3ec8b2d114a3 core/java/com/android/internal/view/BaseSurfaceHolder.java
4c62fc0e1e5ea9c69a12a7d1cf8b3ec8b2d114a3 core/java/com/android/internal/view/BaseIWindow.java
e540833fdff4d58e37c9ba859388e24e2945ed45 core/java/com/android/internal/os/SamplingProfilerIntegration.java
192ab903887bbb8e7c7b6da5c581573850e30f46 core/tests/coretests/src/android/widget/expandablelistview/PositionTesterContextMenuListener.java
1619367ab823150fa8856d419abe02ceb75886f1 media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/MediaProfileReader.java
27f8002e591b5c579f75b2580183b5d1c4219cd4 opengl/tools/glgen/stubs/gles11/glGetString.java
560814f6b11abe83ff0c4ed18cac015c276b3181 opengl/tools/glgen/stubs/gles11/glGetProgramInfoLog.java
560814f6b11abe83ff0c4ed18cac015c276b3181 opengl/tools/glgen/stubs/gles11/glGetShaderInfoLog.java
560814f6b11abe83ff0c4ed18cac015c276b3181 opengl/tools/glgen/stubs/gles11/glShaderSource.java
1c4907ee77392afb768c2f088e0dedbe4239f6fb opengl/tools/glgen/src/GenerateGLES.java
1c4907ee77392afb768c2f088e0dedbe4239f6fb opengl/tools/glgen/src/Jsr239CodeEmitter.java
1c4907ee77392afb768c2f088e0dedbe4239f6fb opengl/tools/glgen/src/GLESCodeEmitter.java
69e21f5f6e0d04539cd92848ea009dd615d88c2c opengl/tests/gldual/src/com/android/gldual/TriangleRenderer.java
c028be4f3b8c7476b46859f66c3f33d528adf181 packages/DefaultContainerService/src/com/android/defcontainer/DefaultContainerService.java
7c6efa13f129dbae5319f0981a430d4662f43354 tests/BrowserPowerTest/src/com/android/browserpowertest/PowerMeasurement.java
7c6efa13f129dbae5319f0981a430d4662f43354 tests/BrowserPowerTest/src/com/android/browserpowertest/PowerTestActivity.java
7c6efa13f129dbae5319f0981a430d4662f43354 tests/BrowserPowerTest/src/com/android/browserpowertest/PowerTestRunner.java
df8a3f31d871db25e952972c2eb346a71186e9e3 tests/BrowserTestPlugin/src/com/android/testplugin/TestPlugin.java
cfaef699e1dfb3a75d5b51f3b15816f13670fd51 tests/permission/src/com/android/framework/permission/tests/ActivityManagerPermissionTests.java
cfaef699e1dfb3a75d5b51f3b15816f13670fd51 tests/permission/src/com/android/framework/permission/tests/ServiceManagerPermissionTests.java
cfaef699e1dfb3a75d5b51f3b15816f13670fd51 tests/permission/src/com/android/framework/permission/tests/WindowManagerPermissionTests.java

Copyright header moved to top in following file:

core/tests/coretests/src/android/widget/ListViewTest.java

Change-Id: I3c3198be5a0ba36e18679ed834170432bf0b8418
om/android/server/status/AnimatedImageView.java
om/android/server/status/CloseDragHandle.java
om/android/server/status/DateView.java
om/android/server/status/ExpandedView.java
om/android/server/status/FixedSizeDrawable.java
om/android/server/status/IconData.java
om/android/server/status/IconMerger.java
om/android/server/status/LatestItemView.java
om/android/server/status/NotificationData.java
om/android/server/status/NotificationLinearLayout.java
om/android/server/status/NotificationViewList.java
om/android/server/status/StatusBarException.java
om/android/server/status/StatusBarIcon.java
om/android/server/status/StatusBarNotification.java
om/android/server/status/StatusBarView.java
om/android/server/status/Ticker.java
om/android/server/status/TickerView.java
om/android/server/status/TrackingView.java
8abb26ee6c77e01a23d26c305a65b25a33710024 12-Mar-2010 Romain Guy <romainguy@android.com> Merge "Preserve widgets on upgrade. Bug #2464545"
d2671e1fcf1d7f1b8e25a2615d514cf3c26b6a9c 12-Mar-2010 Romain Guy <romainguy@android.com> Preserve widgets on upgrade.
Bug #2464545

Change-Id: I802878af49dc4d98210fb8049df0bbdc49268d99
om/android/server/AppWidgetService.java
ce8efead60282bedf0383bee83c7583b7332791d 12-Mar-2010 Robert Greenwalt <robdroid@android.com> Merge "Stop creating threads for tethering."
4ea833d9a24aa1c2e92522150c89b37753a9aee8 12-Mar-2010 Dianne Hackborn <hackbod@google.com> Merge "Need to keep new package's cert when using original-package."
4b450410065d77d56a56f0835871f8bc7c2d5994 12-Mar-2010 Dianne Hackborn <hackbod@google.com> Need to keep new package's cert when using original-package.

Fixes bug #2504353: Lost all widgets and shortcuts after upgrading form FRE68 to FRE69

Change-Id: I62bab66bbd90bf0956d1716bae1b6073d01e2d8a
om/android/server/PackageManagerService.java
05e552a6efd86e43d4404667d316e3e5e2806543 12-Mar-2010 Romain Guy <romainguy@android.com> Merge "Support old/new package names for widgets."
dfadaeac088cabce854d8f476405cd412f82593a 12-Mar-2010 Robert Greenwalt <robdroid@android.com> Stop creating threads for tethering.

Use the passed in looper and save threads.

Change-Id: I6db04ef64e339a5fb2b71e9fb1da32e2d600447c
om/android/server/ConnectivityService.java
om/android/server/connectivity/Tethering.java
ff3e61c6d5de339300d26227b69bfd9ee0827103 12-Mar-2010 Romain Guy <romainguy@android.com> Support old/new package names for widgets.

Change-Id: I134c4e694e66aaea47ad7da83d37b6621f4a527a
om/android/server/AppWidgetService.java
26b1ef95833665fb83195caad010566c8a9e0199 12-Mar-2010 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #2461567: Home screen redraw messed up"
ac3587d7ced544091264a35249dbd3f9531a3cab 11-Mar-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2461567: Home screen redraw messed up

Make sure that we have a window redraw itself after resizing its
surface.

Also includes a little optimization to avoid having an extra thread
for the ImageWallpaper.

Change-Id: I88d1eb66e3116077f48e6f9086a5b6459505ef69
om/android/server/WindowManagerService.java
c95142d4a0ab7bebb899167da17c70c3196abbe4 11-Mar-2010 Dan Egnor <egnor@google.com> Move boot log file writing into a background thread to avoid ANR.

Bug: 2507228
Change-Id: I35695f89f1d62b907f04511e3e6b71722008949b
om/android/server/BootReceiver.java
6fc4fe98ab72c5852b87f1f8699b9808c0dbecc5 11-Mar-2010 San Mehat <san@google.com> Merge "MountService: If USB cable is unplugged while UMS is active, clean up and remount"
2fe718a87b9ebc9679ff2abf38b6c30274267bea 11-Mar-2010 San Mehat <san@google.com> MountService: If USB cable is unplugged while UMS is active, clean up and remount

Change-Id: I9c20e7bfc215549cd8a6e14625e5d005bb53f8fa
Signed-off-by: San Mehat <san@google.com>
om/android/server/MountService.java
e96ffb18c11b119c6c62ba15e36de8b61d8c1e34 11-Mar-2010 Daniel Sandler <dsandler@google.com> Turn off pulsing jogball while on a call.

Bug: 2336573
Change-Id: If0f0151cbead4eb8acf9e1ce2f6dbca088814694
om/android/server/NotificationManagerService.java
2ecce34f2f05447bed6d798a4fe906fed4cbd7d9 25-Feb-2010 Josh Bartel <josh.bartel@garmin.com> Synchronize access to *Locked() functions

Several places were calling *Locked() functions without properly
synchronizing.

Change-Id: Ie39b6592da8bb5f4a5a1e738c45f228256116ec4
om/android/server/am/ActivityManagerService.java
409578fcb1d8ecfee0ae07b1a34a6e6cb184a0ce 11-Mar-2010 Dianne Hackborn <hackbod@google.com> Don't remove alarms for packages that are being updated.

Change-Id: I296e6587aa1bb391e748ff4bb5649dcfa6ebbc24
om/android/server/AlarmManagerService.java
2ee89ea2887252053c31541c54126a8b084c9bca 11-Mar-2010 Dianne Hackborn <hackbod@google.com> Applications should -not- be able to set preferred activities.

I can't believe I let this slip through. And in the SDK no less. :(

The APIs for setting preferred activities will now throw a security
exception when used. This may break some apps, we'll see how it
goes. If it is too bad we can just make these log and not throw
anything, but I would much prefer they throw an exception.

Change-Id: I3aed434750eef8b202aa9d5bd774a0121be521c6
om/android/server/PackageManagerService.java
94d4b034adff90f681b0937bde8f7657b855929b 11-Mar-2010 Robert Greenwalt <robdroid@android.com> Merge "Disable USB Tethering when UMS is active"
ff34fc2b45dce0774a15d1afdacd5b00e3191a3c 11-Mar-2010 Dan Egnor <egnor@google.com> Merge "Fix rare NPE in DropBoxManagerService"
b9e1ed2b8051fb75da4622198231b95103724dec 11-Mar-2010 Robert Greenwalt <robdroid@android.com> Merge "Make HiPri work when already connected."
030f5e18dfa71673708deb75e8aa1f196bebbd99 11-Mar-2010 Robert Greenwalt <robdroid@android.com> Disable USB Tethering when UMS is active

Make the tethering module aware of UMS.

bug:2469818
Change-Id: I29995812db41bf01a17c303f31fd1707a8d55328
om/android/server/connectivity/Tethering.java
c3243e242d05f1f7b45964bf36aa4a56ed6ee66b 11-Mar-2010 Dianne Hackborn <hackbod@google.com> Merge "Further improvements to window management!"
f283e3621026b0e3703b750d7b95d706e4bff050 11-Mar-2010 Dan Egnor <egnor@google.com> Fix rare NPE in DropBoxManagerService

Change-Id: I2e9713802c59feb539d5d4c1ab1dfa21ec88d9f6
om/android/server/DropBoxManagerService.java
b8b11a0b1d82e24f7a79f2e1672e7f5cf1611a55 11-Mar-2010 Dianne Hackborn <hackbod@google.com> Further improvements to window management!

Fix issue #2493497: Stuck in the Emergency dialer - Home/Back keys doesn't work
This was another case of not updating the window focus when needed, this time
when the lock screen was hidden.

Also re-arrange the layout/animate flow to address issues where you would see
a flicker of whatever was behind the lock screen when showing a new activity that
hides the lock screen. This was because we were deciding to hide the lock screen
during the layout phase, which meant we had to do it without considering whether
it had drawn. So we could hide the lock screen before the window is shown for the
first time after being drawn. Now we can do this in the policy during animate, so
we can wait until the window is drawn and actually being shown.

The flow in perform layout is thus significantly changed, where the layout and
animate loops are both under the same repeating loop. The actual flow from this
should be the same, but it now allows the policy to request a new layout after
the animation loop is done. This actually cleans up a number of things in this
code as the complexity has increased.

Finally this includes a change to the ui mode manager when switching modes, to do
the resource configuration switch at a different time. This makes transitions
between modes much cleaner (though not yet perfect).

Change-Id: I5d9e75c1e79df1106108dd522f8ffed6058ef82b
om/android/server/UiModeManagerService.java
om/android/server/WindowManagerService.java
om/android/server/am/ActivityManagerService.java
0f344060096329f091af20a16d69547a47c1a9d5 10-Mar-2010 Irfan Sheriff <isheriff@google.com> Clean up native access from framework

Driver commands should be issued when driver has started.
Supplicant commands should be issued when Wi-Fi is enabled
Bug: 2339709
Bug: 2371609
Change-Id: I9ba6ddfa0cf4c4b8ca049b0eb7eaaa8edb42bad1
om/android/server/WifiService.java
78a640af951377d9749d0dbfd027687cbb92dc72 11-Mar-2010 Robert Greenwalt <robdroid@android.com> Make HiPri work when already connected.

A recent change made the HiPri MobileDataStateTracker listen for notifications
about the default connection (which HiPri shadows). Local code was sending
itself a notification using the old HiPri badging instead of the new Default
badging and those notifications where therefore ignored.

Manifested itself on HiPri connections when we were already on 3g.

See change 42422 on master platform/frameworks/base for the change this is completing.

Change-Id: I375026048724d0035297287c61c6c2f58d4e0294
om/android/server/ConnectivityService.java
8a9e7a1f9490dc0c103c82fac74087459ddf4c16 11-Mar-2010 Obi Okafor <obi.okafor@sonyericsson.com> Fix for deadlock between StatusBarService and NotificationManagerService

A ServerThread holding a lock on mQueue in StatusBarService invoked a
callback in NotificationManagerService which required a lock on
mNotificationList. At the same time, a BinderThread holding a lock on
mNotificationList was attempting to post a message to StatusBarService
which requires lock on mQueue. The fix is to release the lock on mQueue
in handleMessage() before running the actions at the end of the method.
om/android/server/status/StatusBarService.java
7f2087435edf475bc4e18c422a5baec7d7898d4c 25-Feb-2010 Josh Bartel <josh.bartel@garmin.com> Rename functions which ought to be named *Locked()

Several functions operate on variables to which access needs to be
synchronized. However, it happens that the functions in question
are only ever called from places which have already synchronized.
Therefore, nothing is really wrong, but the functions ought to
have 'Locked' appended to their names, to indicate that it is the
caller's responsibility to synchronize before calling them.

Change-Id: I44e7dc0dff6da9436677cb10908dce41ffeba195
om/android/server/am/ActivityManagerService.java
6069beb2dfed6da837bf7faa3db3f6119edc017a 10-Mar-2010 Suchi Amalapurapu <asuchitra@google.com> Rename ApplicationInfo.FLAG_ON_SDCARD to ApplicationInfo.FLAG_EXTERNAL_STORAGE

Change-Id: Iadef9f9bb2851c38b6d79be1bafbf932abce4210

Change-Id: I2e412bace3d8005db5057a3497bd836d0038b90c
om/android/server/PackageManagerService.java
a8fbe1fb74d3bd40b73c90c85ac25e5176475ca5 09-Mar-2010 Irfan Sheriff <isheriff@google.com> Re-organize access to native interface through WifiStateTracker

Bug: 2339709
Change-Id: Ibb2eeb09b83dc24897116ea15a9016f81a08d442
om/android/server/WifiService.java
aa3780b6f7749c4f4d0a8258d8505da4681cfbfa 10-Mar-2010 Robert Greenwalt <robdroid@android.com> Merge "Fix NO_CONNECTIVITY flag in some cases."
4acdcb721727dd32134d2e53376e4c3583c7f95a 09-Mar-2010 Mike Lockwood <lockwood@android.com> Merge "Don't let hidden keyguard interfere with button and screen brightness overrides"
f0fa39ed7496ae43369fac306d765d7d86fa23d7 09-Mar-2010 Robert Greenwalt <robdroid@android.com> Fix NO_CONNECTIVITY flag in some cases.

Airplane mode seemed to hit this bug.

bug:2498268
Change-Id: I5af9266fbbad3e2323d30d7471058f0f4ec3f544
om/android/server/ConnectivityService.java
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
om/android/server/MountService.java
om/android/server/PowerManagerService.java
om/android/server/Watchdog.java
a599fe7c0d8b4d4bdf4accb099cb17bebcb9088b 09-Mar-2010 Robert Greenwalt <robdroid@android.com> Re-add tethered notification to framework.

Add new artwork and string.

Change-Id: I9c4b2b4bdbd10ee9355c3a7ca81b29fba3b5830c
om/android/server/connectivity/Tethering.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
om/android/server/PackageManagerService.java
46af6a8b1f270b86f4e4a53b2c80fd20d8981af8 09-Mar-2010 Mike Lockwood <lockwood@android.com> Don't let hidden keyguard interfere with button and screen brightness overrides

Change-Id: Ibdc115b8fb6900b0f859085c13a707750deeab57
BUG: 2252317

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/WindowManagerService.java
239038094493b3b1ac262222d1f21254b48d4fc6 08-Mar-2010 Mike Lockwood <lockwood@google.com> Merge "location: dump LocationProvider internal state"
9f93881f57e4627964311afbf4e0f6d9cb9d904e 08-Mar-2010 Tobias Haamel <haamel@google.com> Disable car mode should not require DISABLE_KEYGUARD permission

Only the system can enable the car mode and the system should
already have appropriate permissions.
But since we wanna allow all other apps to disable the car mode
again, we don't want to enforce them to specify the DISABLE_KEYGUARD
permission in their manifest.

Change-Id: I1ad244a98d65b7193ea9817bff8406cfc2bce6f3
om/android/server/UiModeManagerService.java
3c8fbdf5dd19fad0b3006557716ee1026d7d5899 04-Jan-2010 Fred Fettinger <fred.fettinger@motorola.com> location: dump LocationProvider internal state

For each location provider, call getInternalState() to see if it has any
state information to include in a bugreport. If the returned string is not
null, then print a header with the provided name followed by the returned
string.

Change-Id: I0a388d7fba14ac8cadcb80eda0a0ceb95032410b
Signed-off-by: Fred Fettinger <fred.fettinger@motorola.com>
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/LocationManagerService.java
4528186e0d65fc68ef0dd1941aa2ac8aefcd55a3 06-Mar-2010 Christopher Tate <ctate@google.com> Refactor android.backup => android.app.backup

Change-Id: I0b21316ff890d7f3c7d4b82837bb60670724c2e8
om/android/server/BackupManagerService.java
om/android/server/PackageManagerBackupAgent.java
om/android/server/PackageManagerService.java
om/android/server/SystemBackupAgent.java
om/android/server/WallpaperManagerService.java
om/android/server/WifiService.java
om/android/server/am/ActivityManagerService.java
43dcdb2ec5aaad592e16555f9b5ddc037fa71902 05-Mar-2010 Suchi Amalapurapu <asuchitra@google.com> Merge "Add null checks for strings"
e29db6a2d2ba8d9458c88fe6c6dbb2164462773e 05-Mar-2010 Mike Lockwood <lockwood@android.com> Keep screen on when in car mode and the device is powered.

BUG: 2477103

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/UiModeManagerService.java
924e164a83056600642a3181f19094b3ecb5262d 05-Mar-2010 Mike Lockwood <lockwood@android.com> Disable the keyguard when in car mode

BUG: 2367912

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/UiModeManagerService.java
9444bea903b37d6ac8cc5ee997efcac1c7fcc7ef 05-Mar-2010 Suchi Amalapurapu <asuchitra@google.com> Add null checks for strings
om/android/server/PackageManagerService.java
7299c41630935a2b106e73e5603579a7747f7535 05-Mar-2010 Dianne Hackborn <hackbod@google.com> Refactor car mode.

Extract all UI behavior from dock observer and ACTION_DOCK_EVENT.

Also introduce a desk type to go along with the car type all through
the resource system, since we now need to have corresponding high-level
broadcasts for desk dock mode. As part of that I also reworked some
of the logic for switching modes to all funnel through a single
update() call that looks all of the current state to decide what to
do next, and fixed various locking issues.

In addition I found there were bugs in the configuration change
handling causing us to only switch into the car mode config and
then never get out of it. Unfortunately now that we are actually
changing the configuration for each mode change, the transitions
between them are really crummy as we restart all kinds of
activities. :(
om/android/server/DockObserver.java
om/android/server/SystemServer.java
om/android/server/UiModeManagerService.java
6d141b0a9beb71e59ba850b7be13c4f0344ddc77 05-Mar-2010 Suchi Amalapurapu <asuchitra@google.com> Merge "Fix persisting flags for apps with data only Force gc's before deleting containers.:"
c44c6d038dae9dbe2e6dbc182372590cef18bcb7 05-Mar-2010 Bernd Holzhey <holzhey@google.com> fix NullPointerException if location is not set.

Bug: http://b/issue?id=2490154
om/android/server/DockObserver.java
1533020321c3cb5a7c652ce602c04a0300d9ed10 05-Mar-2010 Robert Greenwalt <robdroid@android.com> Merge "Update framework tethering UI"
ab2628c23dcddb0a954ae09d7fd8c4e3f77e9b9d 05-Mar-2010 Mike Lockwood <lockwood@google.com> Merge "Remove the ProximityAlerts update Receiver when the last ProximityAlert expires. Fixes issue 6900."
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.
om/android/server/connectivity/Tethering.java
d32c8020dd2b07eb4bb1cbcfbb3de2d96de08624 05-Mar-2010 Suchi Amalapurapu <asuchitra@google.com> Fix persisting flags for apps with data only
Force gc's before deleting containers.:
om/android/server/PackageManagerService.java
8fff6451476334fbef30a080f46f37d552257e9a 04-Mar-2010 Sean Foy <sean.foy@gmail.com> Remove the ProximityAlerts update Receiver when the last ProximityAlert expires.
Fixes issue 6900.

Change-Id: Ifcd3fa9c34cfca02ed5e7a94aded33984ac81c60
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/LocationManagerService.java
50490adfdc38e7d8cc1d6619700d6a5b7a291e69 05-Mar-2010 Dan Egnor <egnor@google.com> Merge "Improve watchdog diagnostics."
9bdc94b7a42a07d7dafcdf2cbadbb9c736b979d2 04-Mar-2010 Dan Egnor <egnor@google.com> Improve watchdog diagnostics.

Capture stack traces from the system process using the same
mechanism as ANRs (which will initialize traces.txt, etc).
Also record the watchdog reset in the dropbox for uploading.

Bug: 2475557
om/android/server/Watchdog.java
om/android/server/am/ActivityManagerService.java
5321aef4a22daef6ed01ed48d936cdd82f2e38b7 12-Feb-2010 Irfan Sheriff <isheriff@google.com> Wifi AP framework changes first pass

Bug: 2421638
Change-Id: Ic5ea8f7560a7fe5e1b0769daa5d92cc33eefc692
om/android/server/NetworkManagementService.java
om/android/server/WifiService.java
20cb56e26e91df91bd64d4251222e0d421cdbe47 04-Mar-2010 Dianne Hackborn <hackbod@google.com> Fix some bugs.

Bug #2376231: Apps lose window focus (and back key causes ANR) if the
lock screen is dismissed while the phone is in landscape mode

This is another case where we weren't recomputing the focused window
after changing the visibility policy.

bug #2479958: Investigate source of "Resources don't contain package
for resource number 0x7f0a0000"

Um, okay, so it turns out there were bugs all over the place where
we would load an XML resource from a another application, but not
use the Resources for that application to retrieve its resources...!
I think the only reason any of this stuff was working at all was
because it typically only cared about retrieving the resource
identifiers of the items (it would look up the values later).

Bug #2401082: Passion ERE26 monkey crash - InputMethodManagerService

Add some null checks.
om/android/server/AppWidgetService.java
om/android/server/InputMethodManagerService.java
om/android/server/WindowManagerService.java
om/android/server/am/ActivityManagerService.java
c11f9d339e4d7dcd7f1c7577b72abf929c4dc2a0 04-Mar-2010 Adam Powell <adamp@google.com> Merge "Fix epsilon calculation for jumpy touchscreen filtering"
4a3c3b23d0aa87a68088976b4f397be116cd2338 03-Mar-2010 Bernd Holzhey <holzhey@google.com> Fixing automatic switching of night mode if network location is not enabled.

The current implementation does not take care of location changes in the case
the network location is not enabled. The fix will use the passive location provider
to receive any location updates (gps and network) and using the network location
provider to trigger the passive provider.

Change-Id: I851bb1ff90e9103712a0e741528a6dfa5d4353c8
om/android/server/DockObserver.java
b42ab0f41cb9dc5988d152ba660d39b3910ae373 04-Mar-2010 Mike Lockwood <lockwood@android.com> Delay setting initial screen brightness until after the sensors are initialized.

Some devices will not activate the light sensor properly on boot
unless we do this.

Change-Id: Ia27b6fc2d515c31eb8597e1d52127d70e2643bd7
BUG: 2269307

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/PowerManagerService.java
6651a1321c1777b39e662d7f65a5a895f1053485 04-Mar-2010 Adam Powell <adamp@google.com> Fix epsilon calculation for jumpy touchscreen filtering
om/android/server/InputDevice.java
37f700a83cf885447e67053a87d4e30b2f44ae44 04-Mar-2010 Adam Powell <adamp@google.com> Merge "InputDevice filtering for jumpy screens. Updated ScaleGestureDetector for framework deprecations."
f5bcc6addd9c1f8f6bb8b8626540d003b3f964fa 02-Mar-2010 Adam Powell <adamp@google.com> InputDevice filtering for jumpy screens.
Updated ScaleGestureDetector for framework deprecations.
om/android/server/InputDevice.java
om/android/server/KeyInputQueue.java
351434bd17ae72ccf1a38ee34a807aefda0aa819 04-Mar-2010 Robert Greenwalt <robdroid@android.com> Merge "Add error reporting for Tethering."
c1552397be706c243338389c628a44eee6011eae 04-Mar-2010 Dianne Hackborn <hackbod@google.com> Allow multiple original-package tags.

Also fix some issues with moving files from update commands.
om/android/server/PackageManagerService.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.
om/android/server/ConnectivityService.java
om/android/server/connectivity/Tethering.java
9b10ef5fe85e9d29721ff0cd15161f960d38a8db 03-Mar-2010 Suchi Amalapurapu <asuchitra@google.com> Rework the way PackageManager binds to default container service.

Clean up stale containers when enabling/disabling packages on sdcard.
Check the path of packages which are being enabled.
Make sure gc's are done prior to destroying containers when moving applicati
as well as enabling/disabling packages for sdcard mount status changes.

Some miscellaneous issues
Remove hack to avoid renaming containers.
Fix test with forward locked apps
Remove adding container id to asec list when renaming
Some cosmetic changes to DefaultContainerService
om/android/server/MountService.java
om/android/server/PackageManagerService.java
5f8a300a1207878a893d63b6eeb8968679308c68 03-Mar-2010 Mike Lockwood <lockwood@android.com> Merge "Fix off by one error in NetworkManagementService.isUsbRNDISStarted()"
4ac163f3cbf58fad3357bf8ac2e9883233facc1d 03-Mar-2010 Mike Lockwood <lockwood@android.com> Merge "MountService: Send ACTION_MEDIA_UNSHARED Intent a volume is no longer shared via UMS."
51cb9d5d55a673f329c17a689f724af772257804 03-Mar-2010 Mike Lockwood <lockwood@android.com> Fix off by one error in NetworkManagementService.isUsbRNDISStarted()

Change-Id: I74eea36464696d63ad072661704b410bfe40c1c8
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/NetworkManagementService.java
d9894bc3b3d9db952988140613c1186e8990d7c0 03-Mar-2010 Tadashi G. Takaoka <takaoka@google.com> Fixed NPE by guarding the reference of variable

Bug: 2395174
om/android/server/InputMethodManagerService.java
bf2dd44a6f86d13efd55d1e690822fba11187bf8 03-Mar-2010 Mike Lockwood <lockwood@android.com> MountService: Send ACTION_MEDIA_UNSHARED Intent a volume is no longer shared via UMS.

Change-Id: I21c887ae76eccabcc5d8449aa0a38e98758e8958
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/MountService.java
97106ab5af0fdba00d6dbda4767b953e0a5829f4 03-Mar-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2325621 Runtime restart after launching Android keyboard setting .
om/android/server/InputMethodManagerService.java
b5ccb59e06920317642a655bf1b9ed840cb05182 03-Mar-2010 Mike Lockwood <lockwood@android.com> Merge "DockObserver: Watch for exceptions in LocationManger.isProviderEnabled()."
faa7e8363e71cb441bf1cf5f17cb1679d9ced99f 03-Mar-2010 Mike Lockwood <lockwood@android.com> DockObserver: Watch for exceptions in LocationManger.isProviderEnabled().

Change-Id: Ieb9f6b0c20a6ce2223cb4b4956580b8543094c2f
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/DockObserver.java
a2e92266b3f768f74ab7fcb42972a22d6c739b39 03-Mar-2010 Dianne Hackborn <hackbod@google.com> Maybe fix issue #2482201: Paired bluetooth device looks like a qwerty keyboard

We now only consider a device to be a default keyboard if its name
has "-keypad". A hack, but whatever.

Also add some debug logging for the input state to help identify such
issues in the future.
om/android/server/InputDevice.java
om/android/server/KeyInputQueue.java
om/android/server/WindowManagerService.java
b601ce14f9bee3ba6ee017729ea6f926586f2c8d 02-Mar-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2468687: back and home keys don't work on InCallScreen

Make sure we update the focus after hiding a window via the
policy visibility.
om/android/server/WindowManagerService.java
3b9ef08bbbdc95a609fa7883d6fff4b4fd22e33c 02-Mar-2010 Mike Lockwood <lockwood@android.com> Don't eat IllegalArgumentExceptions in LocationManagerService.

The exeptions should be returned to the Binder client instead.

Change-Id: I8ab36880622bf8b4fdf28407dec50652c48b6712
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/LocationManagerService.java
debecf2e4094f7a901632286d3f45ea2211e7494 02-Mar-2010 Mike Lockwood <lockwood@android.com> Merge "Don't poke user activity when unplugging unless screen is already on."
5d26c1e38dabb3ad8b4b6e1000375f3b1a6b7693 02-Mar-2010 Mathias Agopian <mathias@google.com> Added a name to Surface created by SurfaceFlinger

Updated the window manager to use this new facility.
Surfaces name are now printed by "dumpsys".
om/android/server/WindowManagerService.java
69f22feb8540576d2a2e9d32f9c86ebbbf309409 01-Mar-2010 Mathias Agopian <mathias@google.com> fix [2476230] sensor battery stats could get out of sync if an error occurs

Fixed a few problems with the SensorService:
- a race condition when talking to the BatteryStatService
- only report changes to BatteryStatService when there are no errors
(ie: when a change actually happens)
- tell the BatteryStatService when a sensor is deactivated because its
client died
- rewrite enableSensor() so it's readable
- implement dump() so dumpsys will display some infos about active sensors
- recompute the delay properly when sensors are added/removed
om/android/server/SensorService.java
84a893467307eb3178b99a7926dea9c8e21579f1 02-Mar-2010 Mike Lockwood <lockwood@android.com> Don't poke user activity when unplugging unless screen is already on.

Change-Id: I5a5f233541e13b3a916ad0d8b3bf8d6fb49ab7fd
BUG: 1317687

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/PowerManagerService.java
5d3bea6229c2ba71e87c750204662ee71a01c2dd 01-Mar-2010 Joe Onorato <joeo@android.com> fix the build
om/android/server/am/ActivityManagerService.java
8a9b22056b13477f59df934928c00c58b5871c95 27-Feb-2010 Joe Onorato <joeo@android.com> Switch the services library to using the new Slog
om/android/server/AccessibilityManagerService.java
om/android/server/AlarmManagerService.java
om/android/server/AppWidgetService.java
om/android/server/BackupManagerService.java
om/android/server/BatteryService.java
om/android/server/BootReceiver.java
om/android/server/BrickReceiver.java
om/android/server/ConnectivityService.java
om/android/server/DemoDataSet.java
om/android/server/DeviceStorageMonitorService.java
om/android/server/DockObserver.java
om/android/server/DropBoxManagerService.java
om/android/server/EntropyService.java
om/android/server/HeadsetObserver.java
om/android/server/InputDevice.java
om/android/server/InputMethodManagerService.java
om/android/server/Installer.java
om/android/server/IntentResolver.java
om/android/server/KeyInputQueue.java
om/android/server/LightsService.java
om/android/server/LocationManagerService.java
om/android/server/MasterClearReceiver.java
om/android/server/NativeDaemonConnector.java
om/android/server/NetworkManagementService.java
om/android/server/NotificationManagerService.java
om/android/server/PackageManagerBackupAgent.java
om/android/server/PowerManagerService.java
om/android/server/ProcessStats.java
om/android/server/RandomBlock.java
om/android/server/RecognitionManagerService.java
om/android/server/SensorService.java
om/android/server/ShutdownActivity.java
om/android/server/SystemBackupAgent.java
om/android/server/SystemServer.java
om/android/server/TelephonyRegistry.java
om/android/server/VibratorService.java
om/android/server/ViewServer.java
om/android/server/WallpaperManagerService.java
om/android/server/Watchdog.java
om/android/server/WifiService.java
om/android/server/WifiWatchdogService.java
om/android/server/WindowManagerService.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/AppErrorDialog.java
om/android/server/am/AppNotRespondingDialog.java
om/android/server/am/BackupRecord.java
om/android/server/am/BaseErrorDialog.java
om/android/server/am/BatteryStatsService.java
om/android/server/am/DeviceMonitor.java
om/android/server/am/PendingIntentRecord.java
om/android/server/am/ServiceRecord.java
om/android/server/am/UsageStatsService.java
om/android/server/status/DateView.java
om/android/server/status/ExpandedView.java
om/android/server/status/FixedSizeDrawable.java
om/android/server/status/IconData.java
om/android/server/status/LatestItemView.java
om/android/server/status/NotificationViewList.java
om/android/server/status/StatusBarIcon.java
om/android/server/status/StatusBarPolicy.java
om/android/server/status/StatusBarService.java
om/android/server/status/StatusBarView.java
om/android/server/status/StorageNotification.java
om/android/server/status/Ticker.java
om/android/server/status/TrackingPatternView.java
28a8c2bc140bf3efe732f01057ac280eb85706d0 01-Mar-2010 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 4dcd2ee8 to master
4dcd2ee8cacc9b4c396b8611189595fd9bb7bcad 01-Mar-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master
7bb2581e6f404da0edba9ebb81b0d0593715eb40 24-Feb-2010 Magnus Edlund <magnus.edlund.x@sonyericsson.com> Fix problem with restarting an application process that recently has died.

There exists a race condition when starting a process that recently has died.
If the ActivityManager receives the death notification for the died process
after the new process has been started but before an application thread has
been attached to the new process will the newly created process be removed
during the cleanup of the died process. If this happens when sending a broadcast
could it result in an ANR.

This is solved by doing the clean up before starting a new process that uses
the same process record.
om/android/server/am/ActivityManagerService.java
a33097d6d18415ce9cf68af1840d40cb94c2baac 27-Feb-2010 Mike Lockwood <lockwood@android.com> Merge "Fix synchronization problem in PowerManagerService.dump()"
87bba1ee14279bb14a28d42e27c4ef66d9967bf8 27-Feb-2010 Dianne Hackborn <hackbod@google.com> Move DeviceAdmin APIs to android.app.admin.

Also add ability for admins to hide themselves when not in use,
a facility for admins to not allow other admins to reset
their password, and debug dumping.
om/android/server/DevicePolicyManagerService.java
om/android/server/PackageManagerService.java
c9d5fb7c95f158d9a31d534895373afcfad77806 25-Feb-2010 Robert Greenwalt <robdroid@android.com> Add build options for tethering.

Dun-required bool and list of allowed upstream ifaces.
om/android/server/ConnectivityService.java
om/android/server/connectivity/Tethering.java
8f7f35e0ccd91c964b9d3eeef81ff829622dfa74 26-Feb-2010 Dianne Hackborn <hackbod@google.com> Add new -W option to Am to wait for the start to complete.
om/android/server/am/ActivityManagerService.java
om/android/server/am/HistoryRecord.java
d84aca7d3c5e51567e5ed25585d1b1d9629b2d93 27-Feb-2010 Mike Lockwood <lockwood@google.com> Merge "Tethering: Use battery changed broadcast instead of UMS broadcast to determine when USB is connected and disconnected."
1cb3cb1a94342e03b54fabfaf361c9e2e26f23fe 26-Feb-2010 Mike Lockwood <lockwood@android.com> Tethering: Use battery changed broadcast instead of UMS broadcast to determine
when USB is connected and disconnected.

This is needed because the UMS broadcasts will not be sent when UMSis disabled.

Change-Id: I4488fee2c19ac9c901596d1430ea371df97e4325
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/connectivity/Tethering.java
1f9e1b4c37c135b75cf064cbb5675aa576e2942a 26-Feb-2010 Suchi Amalapurapu <asuchitra@google.com> Remove public variables in PackageManager
Dont invoke getInstallLocation for forward locked apps.
If INSTALL_ON_SDCARD is selected as default, forward locked
apps are not being installed because of conflicting flags.
om/android/server/PackageManagerService.java
f8219914f2269fb0932e140c966f24e47438f8fe 26-Feb-2010 Chris Tate <ctate@android.com> Merge "Add single-package restore to Bmgr feature set"
0eec21d97d9dc4eb4fdbad0e4c0fc53703452d02 26-Feb-2010 Suchi Amalapurapu <asuchitra@google.com> Add dialog to display storage users when enabling/disabling ums

Some error dialogs and related strings
MountService changes to follow unmount path when enabling ums.

Please note that MountService api setUmsEnabled does not return
error codes for now. This is a known limitation.
om/android/server/MountService.java
om/android/server/status/UsbStorageActivity.java
7d411a3b947ba82d1d57f73c0fa698c3b9c95892 26-Feb-2010 Christopher Tate <ctate@google.com> Add single-package restore to Bmgr feature set

Also sanity-check the package name on the Backup Manager side, failing gracefully
if the given package is not a backup/restore participant.

Bug: 2293977

Change-Id: I3575046ffcaa3cf45c1c602824baeadd64082f70
om/android/server/BackupManagerService.java
5035fdab3dbb60b226bc6bb2f03e9944bcb964cd 26-Feb-2010 Christopher Tate <ctate@google.com> Default the auto-restore setting to "enabled."

Change-Id: I7d8710466214a1b09aabdd71e77b9b34d3d62365
om/android/server/BackupManagerService.java
ae06ed97382429f51075d257e3290cdd86f66326 26-Feb-2010 Christopher Tate <ctate@google.com> Fix the build

Change-Id: I41616afc75a3366ea7e9e79ac7ea4c46d1863d83
om/android/server/BackupManagerService.java
f087272d56ff84157e2481b7ca34d4d077affa74 26-Feb-2010 Christopher Tate <ctate@google.com> Start respecting the auto-restore-at-install setting

Change-Id: I420ff6b4ba72f87bee56f45d8906f086f7a2b114
om/android/server/BackupManagerService.java
7964d1f7ac7ca1b1094e9894616cd2d41c2c26ca 25-Feb-2010 Robert Greenwalt <robdroid@android.com> Merge "Fix no-mobile-data after wifi."
35429599728793a6830a8ce32a62e98cabefc90e 25-Feb-2010 Robert Greenwalt <robdroid@android.com> Fix no-mobile-data after wifi.

Missed a case - if you disabled mobile data and then cycled wifi, 3g would
be turned back on.

bug:2251458
om/android/server/ConnectivityService.java
2269d1572e5fcfb725ea55f5764d8c3280d69f6d 25-Feb-2010 Dianne Hackborn <hackbod@google.com> Re-arrange android-common so framework no longer links with it.

This is the framework part, moving classes around so the framework
no longer needs to link to android-common. Makes some APIs public,
others that didn't need to be public are private in the framework,
some small things are copied.
om/android/server/AppWidgetService.java
om/android/server/DevicePolicyManagerService.java
om/android/server/KeyInputQueue.java
om/android/server/PackageManagerService.java
om/android/server/WallpaperManagerService.java
ca44df86ac907fd147633955f6fda7a249625d50 25-Feb-2010 Mike Lockwood <lockwood@android.com> Fix synchronization problem in PowerManagerService.dump()

Fixes a race condition that resulted in an IndexOutOfBoundsException
due to a wakelock being released while dump() was iterating through the
wakelock list.

BUG: 2469910

Change-Id: I10d7a65b9f397934942b290cb047c4ca81214297
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/PowerManagerService.java
a712dcec1cae2971dcc81b12bd894c98fcc65981 25-Feb-2010 Tobias Haamel <haamel@google.com> Init car mode when phone is booted in a dock.

When the device is booted in a car dock the car mode needs to be set
as well, so that the status bar notification shows up and the system
is initialized the same way as if the phone is placed into a car dock
when it's booted already.
om/android/server/DockObserver.java
c42e29e0a58d07a95d470780216cdf1d67476bd6 23-Feb-2010 Suchi Amalapurapu <asuchitra@google.com> Add new handler mechanism in MountService to make unmount api asynchronous.
MountService updates state on PackageManager and then tries to
kill processes holding file references to media about to be unmounted by
invoking api on ACtivityManager. This is retried upto 4 times to make sure all
processes holding file references are killed before unmounting the media
at specified path.

Also changed PackageManger api to return boolean value to indicate if
MountService is likely to receive broadcasts related to apps on sd.
om/android/server/MountService.java
om/android/server/PackageManagerService.java
406b09bbd117446814a05aabc5971fd55c6afa5d 25-Feb-2010 Robert Greenwalt <robdroid@android.com> Merge "Add mobile data on/off switch."
982bb24f5db4bfd9c52eb16adb876fea7c7e4a8b 25-Feb-2010 San Mehat <san@google.com> Merge "MountService: Send UMS_CONNECTED broadcast on boot if UMS connected."
6a965af2d76f6cf3ec980c8ecfd257f49b3c97e3 25-Feb-2010 San Mehat <san@google.com> MountService: Send UMS_CONNECTED broadcast on boot if UMS connected.

UMS detection is now done wayyyy before the system is booted, so set a flag
to send our intent broadcast once we've booted.

Signed-off-by: San Mehat <san@google.com>
om/android/server/MountService.java
c03fa5014912684367174ff3cce664deb29f5e0e 24-Feb-2010 Robert Greenwalt <robdroid@android.com> Add mobile data on/off switch.

bug:2251458
om/android/server/ConnectivityService.java
d70a3d4e2d356aab4cac313f1f9d8272a5e3e8d0 24-Feb-2010 Robert Greenwalt <robdroid@android.com> Tethering improvements.

Changes due to comments.
Fixing Tether teardown.

bug:2422545
om/android/server/connectivity/Tethering.java
3dda518a4fd57cdded3afa50d8aa206501de7fc6 25-Feb-2010 Christopher Tate <ctate@google.com> Add 'restoreAnyVersion' attr for apps that want to restore "future" data

If a backup-participating app sets android:restoreAnyVersion="true" in its
manifest <application> tag, then its agent will be invoked for restore
even if the available dataset was created by a later version of the app
than is currently installed on the device. This will not typically be
a problem for third party applications, since for them the installation
and initial data restore are tightly coupled, but it can cause serious
problems for applications which are both preinstalled on the system
partition and overridden by later updates. The primary difficulty
that this new attribute addresses is this:

1. User buys a Nexus One, Market self-updates, and the user installs some apps.
At this point the backup data on the server may indicate that the version of
Market which originated its bookkeeping is newer than the stock N1 Market app.
2. User loses their phone, and buys a replacement N1. At setup time, Market
has not yet had a chance to self-update, so when the restore comes in, it's
tagged as being from "the future" and so the restore is refused. No apps get
reinstalled.

Bug: 2442127
Change-Id: I076a9553dc613e5c3189350e778315718ed1ed2b
om/android/server/BackupManagerService.java
c3b91fd26a940f8cee54888f91b490cb1768b03c 24-Feb-2010 Dianne Hackborn <hackbod@google.com> Fix crash in PendingIntentRecord debug output.

Add null checks to a few places to avoid crashes when dumping
debug data.

Also add some sanity checks for accessing content providers in
the activity manager.
om/android/server/am/ActivityManagerService.java
om/android/server/am/PendingIntentRecord.java
cf6eaeaae9e6745dd6e07540812c79821d7043c2 24-Feb-2010 Suchi Amalapurapu <asuchitra@google.com> Some framework fixes for apps on sd
change hard coded path in installd
fix tests
Work around for renaming containers.
Do forced unmount when destroying containers.
Force a gc in default container service to release handle to parsed package
and thus avoid getting killed by vold
Some cosmetic changes to PackageManager api.
Unit tests for renaming container for MountService
Remove internal size limit on app to be installed.
om/android/server/PackageManagerService.java
85451ee15fdf6cae371dc3005441988c7d426401 24-Feb-2010 San Mehat <san@google.com> MountService: Fix bug which would allow apps to try to rename a container whos dst is mounted

Signed-off-by: San Mehat <san@google.com>
om/android/server/MountService.java
0c33ed2992b2eb484c229fd3322df14d97c10caa 23-Feb-2010 Devin Taylor <devin.taylor@garmin.com> Fix Memory Leak When Switching Input Methods

Fixes a memory leak when input methods are switched. Uses a variety of methods
to avoid holding a reference to the InputMethodService which created the binders,
which was leaking those InputMethodServices.

See http://code.google.com/p/android/issues/detail?id=6661 for reproduction steps.
om/android/server/InputMethodManagerService.java
0e93b562f41759f05a449f68da5c4c14fb461a8f 24-Feb-2010 Joe Onorato <joeo@google.com> Merge "Make the notification windowshade work properly with overscroll."
f0fda925e6e82a7ceaf580718c1f8de2c2b8dadc 24-Feb-2010 Joe Onorato <joeo@android.com> Make the notification windowshade work properly with overscroll.

Bug: 2432590
om/android/server/status/ExpandedView.java
om/android/server/status/StatusBarService.java
om/android/server/status/TrackingView.java
6142a0b68fffb2d9595c364ebf4f8be996f37f77 24-Feb-2010 Robert Greenwalt <robdroid@android.com> Fix build.

clicked "submit" on I65ae29bd when I shouldn't have.

Fixing according to comments and a build error change.
om/android/server/connectivity/Tethering.java
5cde63a60d3c70e613642ad8a3910bcd3475e9cb 24-Feb-2010 Robert Greenwalt <robdroid@android.com> Merge "Add USB RNDIS enable/disable control"
65ae29bd852ff468ad003af241d5177fe016c74a 18-Feb-2010 Robert Greenwalt <robdroid@android.com> Add USB RNDIS enable/disable control

Also adding interface configuration to the tethering machine.
Also fixing netd bug that didn't send up/down portion of iface config command.
om/android/server/NetworkManagementService.java
om/android/server/connectivity/Tethering.java
6fd5e0ac51021d55beb2c1f6f184469311301711 18-Feb-2010 Bernd Holzhey <holzhey@google.com> Fix calculation of the next twilight update for locations where the day or night never ends.
om/android/server/DockObserver.java
om/android/server/TwilightCalculator.java
f13f60127ec570590ef5acf3690d8eba4a3d7ea4 23-Feb-2010 Dianne Hackborn <hackbod@google.com> Merge "Fix some random bugs."
9e0f5d9a63ba88c2bf69df0557f8c9696db370c4 23-Feb-2010 Dianne Hackborn <hackbod@google.com> Fix some random bugs.

2185256: After open &close of device keyboard shortcut does not added to Home desktop.

ActivityThread was losing the last saved state when restarting or launching into
a paused state.

2366174: defaults not cleared when they should be

PackageManagerService now removes any preferred activity records for a package
when it is uninstalled.

2154556: Battery stats can have an unbounded number of wake locks

We now start combining wake locks into one shared record when we hit a
maximum limit (currently 20).

2442519: Foreground services can have no notification by providing a bogus one.

If the notification manager rejects our notification, the service is forced to
no longer be in the foreground.

2442383: Finalization issues in com.android.server.am.PendingIntentRecord.java

Cleaned up finalization to call super class and avoid the big activity manager
lock (we still need to use the locks inside of the message system, but these
are much less likely to be a problem).

2284190: Cannot call a phone number using adb

We weren't getting the calling uid/pid in startActivity() if the caller did not
supply an application record.
om/android/server/PackageManagerService.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/PendingIntentRecord.java
om/android/server/am/ServiceRecord.java
46db504de583d7d644a28a4e7adae43eed5df1ba 22-Feb-2010 Mike Lockwood <lockwood@android.com> Don't start location providers until the system is ready.

Change-Id: Id545e95705e59ffbaaab8a679a1b7df488813101
BUG: 2461320

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/LocationManagerService.java
om/android/server/SystemServer.java
6fb7cbf12ad6c423a84e815c314f917c88234ae6 23-Feb-2010 Daniel Sandler <dsandler@android.com> Merge "Show the USB mass storage UI as soon as USB is connected."
c07907e0389f20f83fdfe01319023b8c7d5e4bbd 22-Feb-2010 Daniel Sandler <dsandler@google.com> Show the USB mass storage UI as soon as USB is connected.

This is a huge usability win for average users who are
trying to transfer files: it coaches them through the
process while at the same time saving a number of steps.

If the user is just charging via USB, they're most likely
not actively using the device, in which case they won't
notice the difference.

Users with ADB turned on will see the old behavior (just the
ongoing notification, which pops the UsbStorageActivity if
tapped).

Bug: 2299129

Change-Id: Ib63a0a973dfdeb28741268fcf0e0fbc1b7be2922
om/android/server/status/StorageNotification.java
b09cc2cde25d02f668b8bc2115a9479425f48703 22-Feb-2010 San Mehat <san@google.com> Merge "MountService: Force unmount when enabling ums"
3d4881067a16c7f65f2aeb06f58eb3f106b05c45 22-Feb-2010 San Mehat <san@google.com> MountService: Force unmount when enabling ums

Signed-off-by: San Mehat <san@google.com>
om/android/server/MountService.java
7e31e0c351a3b2bb70ee5507b34f1c72d62b56d7 22-Feb-2010 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #2438980: Implement package watcher for voice recognizer service setting"
ec2c88d835dac156be0d14bd2b73cf3825e2e164 20-Feb-2010 Daniel Sandler <dsandler@google.com> Move new sound effects to the system stream.

Change-Id: I11cfa6495abeb0193b1a3929ec54f0386cfe9ed2
om/android/server/DockObserver.java
om/android/server/status/StatusBarPolicy.java
21f1bd17b2dfe361acbb28453b3f3b1a110932fa 20-Feb-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2438980: Implement package watcher for voice recognizer service setting

I am getting tired of writing package monitor code, realized this is missing in
a number of places, and at this point it has gotten complicated enough that I
don't think anyone actually does it 100% right so:

Introducing PackageMonitor.

Yes there are no Java docs. I am still playing around with just what this
thing is to figure out what makes sense and how people will use it. It is
being used to fix this bug for monitoring voice recognizers (integrating the
code from the settings provider for setting an initial value), to replace
the existing code for monitoring input methods (and fix the bug where we
wouldn't remove an input method from the enabled list when it got
uninstalled), to now monitor live wallpaper package changes (now allowing
us to avoid reverting back to the default live wallpaper when the current
one is updated!), and to monitor device admin changes.

Also includes a fix so you can't uninstall an .apk that is currently enabled
as a device admin.

Also includes a fix where the default time zone was not initialized early
enough which should fix issue #2455507 (Observed Google services frame work crash).

In addition, this finally introduces a mechanism to determine if the
"force stop" button should be enabled, with convenience in PackageMonitor
for system services to handle it. All services have been updated to support
this. There is also new infrastructure for reporting battery usage as an
applicatin error report.
om/android/server/AccessibilityManagerService.java
om/android/server/AlarmManagerService.java
om/android/server/DevicePolicyManagerService.java
om/android/server/InputMethodManagerService.java
om/android/server/LocationManagerService.java
om/android/server/NotificationManagerService.java
om/android/server/PackageManagerService.java
om/android/server/RecognitionManagerService.java
om/android/server/SystemServer.java
om/android/server/WallpaperManagerService.java
om/android/server/am/ActivityManagerService.java
679dd12fa1edb7b5600e84671e06dc957fa8f784 22-Feb-2010 Joe Onorato <joeo@android.com> Ignore touch down events near the edge of the screen for the purposes of pulling down the
windowshade.

This makes it happen less often when you pick up the device or push open the keyboard.
om/android/server/status/StatusBarService.java
59eac4b535adad485bffcfb07ae4b734168fc2e6 20-Feb-2010 Christopher Tate <ctate@google.com> Fix crash: check for install failure cleanly

Don't go looking at attributes of a package struct without first verifying
that the struct pointer is non-null: in the failed-install case, of course
there will be no package info.

Change-Id: I3b2cafca2f1e3891a6592825ce5bcc977e7f3483
om/android/server/PackageManagerService.java
1bb6906c7a903ee6427c8ff37bdc5896c386ff73 20-Feb-2010 Christopher Tate <ctate@google.com> Automatically restore app data at install time

When an application being installed defines a backupAgent in its manifest, we
now automatically perform a restore of the latest-known-good data for that app.
This is defined as "data backed up by this app from this handset, if available;
otherwise data for this app as it existed when the device was initially
provisioned." If neither option exists for the app, no restore action is
taken.

The CL involves major changes in the Backup and Package Managers...

* The Package Manager's act of installing an application has now been split
into two separate phases, with a data-restore phase optionally occurring
between these two PM actions. First, the details of the install are performed
as usual. Instead of immediately notifying install observers and issuing the
install-related broadcasts, the in-process install state is snapshotted and
the backup manager notified that a restore operation should be attempted. It
does this by calling a new API on IBackupManager, passing a token by which it
identifies its in-progress install state.

The backup manager then downloads [if possible] the data for the newly-installed
application and invokes the app's backupAgent to do the restore. After this
step, regardless of failure, it then calls back into the Package Manager to
indicate that the restore phase has been completed, supplying the token that
was passed in the original notification from the Package Manager.

The Package Manager then runs the final post-install actions: notifying install
observers and sending out all the appropriate broadcasts. It's only at this
point that the app becomes visible to the Launcher and the rest of the OS.

... and a few other bits and pieces...

* The ApplicationInfo.backupAgentName field has been exposed to the SDK. This
can be reverted if there's a reason to do so, but it wasn't clear that this
info needs to be hidden from 3rd party apps.

* Debug logging of restore set IDs and operation timeout tokens [used during
any asynchronous Backup Manager operation] are now consistently in hex for
readability.

* We now properly reset our binder identity before calling into the transport
during restore-set operations. This fixes a permissions failure when a
single-app restore was attempted.

* The 'BackupTest' test app is no longer lumped onto the system partition
by default.

Change-Id: If3addefb846791f327e2a221de97c8d5d20ee7b3
om/android/server/BackupManagerService.java
om/android/server/PackageManagerService.java
6c81defa3d1111c36f8b0c9c4e84e8b2c342620f 19-Feb-2010 Suchi Amalapurapu <asuchitra@google.com> Merge "Move package from internal to external and vice versa."
8946dd3355fc1dcbad872c0546e356474d4cc5de 19-Feb-2010 Suchi Amalapurapu <asuchitra@google.com> Move package from internal to external and vice versa.
om/android/server/PackageManagerService.java
fafb041b47c1c5f6a4c253768295ed3aeb7ad412 19-Feb-2010 San Mehat <san@google.com> MountService: Move boot-time mount to a thread - avoids ANR at boot

Signed-off-by: San Mehat <san@google.com>
om/android/server/MountService.java
939d5fafc904ff71f6d3afaedc3eb05420fac543 19-Feb-2010 Robert Greenwalt <robdroid@android.com> Merge "Add USB RNDIS enable/disable control"
b167643c875e19de2e9928eaae40f205e7219a62 19-Feb-2010 Dianne Hackborn <hackbod@google.com> Merge "Fixing bug 2453467 - In case of a dead process while disabling Accessibility some processes keep sending AccessibilityEvents"
e36d6e277e49475076b7872d36ea6a5c5b996e9d 18-Feb-2010 Dianne Hackborn <hackbod@google.com> Work on issue #2263557: PMF3000 showing hybrid of portrait and landscape modes

This is a bunch of reworking of how configuration changes are handled:

- When orientation is changing (for whatever reason), the window manager no
longer tries to pre-emptively compute a new configuration. Instead, it
just determines change is happening and tells the window manager.
- The activity manager is now responsible for giving the window manager the
final configuration it is using. This is both so it knows whem the
activity manager is done with its configuration updates, and so the window
manager can use the "real" configuration.
- When an orientation or other configuration change is happening, freeze the
screen and keep it frozen until the activity manager has given us the
final configuration.
- The window manager can now send new configurations to its clients during
its layout pass, as part of a resize, if it has determined that it has
changed. This allows for a new View.onConfigurationChanged() API for any
view to easily find out when the configuration has changed.
- ViewRoot now also works with the activity thread to make sure the process's
current resources are updated to the new configuration when it receives one
from a window. This ensures that at the time onConfigurationChanged() and
other view callbacks are happening, the correct configuration is in force.
- There is now a sequence number associated with Configuration, which
ActivityThread uses to avoid using stale configurations. This is needed now
that it can receive configurations asynchronously from both the window
manager and activity manager.
- The hack for keeping the locale has been removed, and underlying problem
fixed by having Configuration initialize its locale to "unknown" instead of
a valid default value.
om/android/server/WindowManagerService.java
om/android/server/am/ActivityManagerService.java
fb606da00cbfc9d2e79a4df6929c3d720f25729f 18-Feb-2010 Svetoslav Ganov <svetoslavganov@google.com> Fixing bug 2453467 - In case of a dead process while disabling Accessibility some processes keep sending AccessibilityEvents
om/android/server/AccessibilityManagerService.java
424c61fd0aedb4a6cc8f53f4e417dbf23bf7fb18 18-Feb-2010 Joe Onorato <joeo@android.com> Fix 2363699 - Make notification shade animate closed when disabled

The animation was removed to fix 2298803 because if the windowshade
was tracking when this happened, it would get stuck.
om/android/server/status/StatusBarService.java
c34ebce475a6994f1aa59b8c535ff966c8f59431 18-Feb-2010 Marco Nelissen <marcone@google.com> Make MountService work in the simulator.
om/android/server/MountService.java
ce1200d42c46ae5d3ec637587b07dfdc02ad21c0 18-Feb-2010 Robert Greenwalt <robdroid@android.com> Add USB RNDIS enable/disable control
om/android/server/NetworkManagementService.java
d970998b0d489774ad1c5b94b47d233912f00214 18-Feb-2010 San Mehat <san@google.com> framework: storage: Add 'force' option to unmount/destroy storage apis, and update callsites.

Also adds additional storage unit tests

Signed-off-by: San Mehat <san@google.com>
om/android/server/MountService.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.
om/android/server/DockObserver.java
6d43ebb8077206da814e9dc251de5ade34c63409 18-Feb-2010 Marco Nelissen <marcone@google.com> Merge "Make the simulator boot again."
6a6588b4acada94fd36908c6bf16bc32c7c0a252 18-Feb-2010 Joe Onorato <joeo@google.com> am 6371a2d3: am ee3bbefd: Merge "Don\'t crash the system process when apps give us a bad foreground service notification." into eclair

Merge commit '6371a2d31f30b473e91be9cced64a2527c086af1'

* commit '6371a2d31f30b473e91be9cced64a2527c086af1':
Don't crash the system process when apps give us a bad foreground service notification.
62dbb22bd4878369975492c8a1c234840e418a4f 18-Feb-2010 Marco Nelissen <marcone@google.com> Make the simulator boot again.
om/android/server/NetworkManagementService.java
65e72773914554f57e6afea8b0ddd9428e330e91 18-Feb-2010 Dianne Hackborn <hackbod@google.com> Merge "Fixing bug 2451615 - Accessibility services are started upon system reboot while accessibility is disabled"
589f37cd275670c117f1b0a7464605a8778a0f35 18-Feb-2010 Robert Greenwalt <robdroid@android.com> Merge "Add Java hookup to netd interface notifications."
3d4178fe1a3b5a10b55bd245d3c142db8a43f23f 18-Feb-2010 Eric Rowe <erowe@google.com> Merge "Fix formatting of ANRs."
e325392c257a5460de6327420c81729f4e687881 18-Feb-2010 Robert Greenwalt <robdroid@android.com> Add Java hookup to netd interface notifications.
om/android/server/NetworkManagementService.java
43cc4696bfa7c3839931f3360c9660a9e41050b3 18-Feb-2010 Bryan Mawhinney <bryanmawhinney@google.com> Don't return passive location provider unless app has fine permissions.
om/android/server/LocationManagerService.java
6371a2d31f30b473e91be9cced64a2527c086af1 18-Feb-2010 Joe Onorato <joeo@google.com> am ee3bbefd: Merge "Don\'t crash the system process when apps give us a bad foreground service notification." into eclair

Merge commit 'ee3bbefd34fd5330ebbc59175a328197ab7526af' into eclair-plus-aosp

* commit 'ee3bbefd34fd5330ebbc59175a328197ab7526af':
Don't crash the system process when apps give us a bad foreground service notification.
34fcf971037f33605e8009946d3acc686819dd6d 18-Feb-2010 Joe Onorato <joeo@android.com> Don't crash the system process when apps give us a bad foreground service notification.
om/android/server/am/ServiceRecord.java
714cff06939281b27673fbe5edf384af6a72dea6 18-Feb-2010 Svetoslav Ganov <svetoslavganov@google.com> Fixing bug 2451615 - Accessibility services are started upon system reboot while accessibility is disabled
om/android/server/AccessibilityManagerService.java
6f4f619369630c20b58e70f7f2fdb02622ec19b8 18-Feb-2010 Eric Rowe <erowe@google.com> Fix formatting of ANRs.

Fix for cases where an extra newline would be added and/or a newline at the end of a line would be ommited.
om/android/server/am/ActivityManagerService.java
a4903f254b4711c8fc0ac5f7e3d605f4dce34f35 17-Feb-2010 Mike Lockwood <lockwood@android.com> Add passive location provider.

The passive location provider allows receiving location updates without
actually triggering them. This allows an application to receive location
updates that are being generated due to other clients of the location manager.

Change-Id: Ibf7a96b089c56875d4f62d3210252ae8d9f32768
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/LocationManagerService.java
1168baae849f03ad655bff74360b286b2f10b4a8 17-Feb-2010 Christopher Tate <ctate@google.com> Tone down a non-error log message about lack of ancestral dataset tracking

Change-Id: I2e5e48c9b695d6225016365907fe8edc73ab2c8e
om/android/server/BackupManagerService.java
1e84ac51221037b1446baad30e1aae8823e5f5a6 16-Feb-2010 Tobias Haamel <haamel@google.com> Fix permission exception thrown on exit car mode.

Changing the status bar behavior requires special permission.
Since disableCarMode is called out of a context that might not have this
permission, the calling identity is cleared before changing the status
bar behavior.
om/android/server/DockObserver.java
e32c345356469777a722325c07e34e90aecd8022 17-Feb-2010 Mike Cleron <mcleron@google.com> Merge "Add the automatic handling of night/notnight UI modes."
dfac9a643e261896768cd68e8e7476a31c70b345 17-Feb-2010 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #2420412: API review: DeviceAdmin API changes"
ef6b22fc04a8d5ab26e13efac8069c097e0da7c9 17-Feb-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2420412: API review: DeviceAdmin API changes

Note in docs that callbacks are on main thread.
Rename to DeviceAdminReceiver?
Document resetPassword is the device's password.

Also hide android.R.attr.neverEncrypt.
om/android/server/DevicePolicyManagerService.java
4086f752e1e3f093396b4eb6c0075dccb0c65983 17-Feb-2010 San Mehat <san@google.com> NativeDaemonConnector: Improve bad list IPC diagnostics

Signed-off-by: San Mehat <san@google.com>
om/android/server/NativeDaemonConnector.java
a4437fc93a993c7ab326b592d22c05be2f11b543 17-Feb-2010 Mike Lockwood <lockwood@android.com> Fix null pointer exception in connectivity service broadcast receiver.

Change-Id: I80c7175ffd1a323a02201395ff6092e2ab0fdd1c
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/connectivity/Tethering.java
0902f02e8f0d9d9401fcdec550466051482f8abd 17-Feb-2010 Ben Cheng <bccheng@android.com> Merge "Detect system-wide safe mode and configure the VM accordingly."
2db939bde9a9a1d52d8849e6ff88f6a81504d361 17-Feb-2010 San Mehat <san@google.com> Merge "MountService: Add API call for getting a list of pids currently using the specified mountpoint"
c1b4ce93be60aa09eda5653edc2f6a8ce864526d 17-Feb-2010 San Mehat <san@google.com> MountService: Add API call for getting a list of pids currently using the specified mountpoint

Signed-off-by: San Mehat <san@google.com>
om/android/server/MountService.java
6a6ce74e5972f189004340af97c77aa7631478ee 17-Feb-2010 Robert Greenwalt <robdroid@android.com> Merge "Update Tethering."
cff1ae56e88d369021b25bedde500037129c5516 17-Feb-2010 Chris Tate <ctate@android.com> Merge "API CHANGE: expose backup/restore to the SDK"
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
om/android/server/ConnectivityService.java
om/android/server/connectivity/Tethering.java
e28290e21f908b4e917099ff2aa41e3aab9310c2 17-Feb-2010 Christopher Tate <ctate@google.com> API CHANGE: expose backup/restore to the SDK

The core backup/restore classes [BackupManager, BackupAgent, RestoreSession, and
RestoreObserver] are now published for 3rd party developers, as well as the suite
of helper classes that exist so far to aid authorship of backup/restore agents.

In conjunction with the API change, the restore-time automatic data wipe has now
been removed: applications are responsible for managing the logic of wipe vs
merge themselves. If the app's agent onRestore() callback throws, the data
is presumed to be incoherent and a wipe is issued via the Activity Manager;
otherwise, no automatic action is ever taken.

Change-Id: I0b3418b829d4689b58b88be3d9c4ace37a8583a9
om/android/server/BackupManagerService.java
044a401292846098e3d40977be1346b6ce7ea327 17-Feb-2010 Suchi Amalapurapu <asuchitra@google.com> Merge "Move mount service wrapper calls to PackageHelper"
6c0afff7f027f14fba97bc937d2a13889927be9a 15-Feb-2010 Ben Cheng <bccheng@android.com> Detect system-wide safe mode and configure the VM accordingly.

For the system server process, do the disableJitCompilation/startJitCompilation
callbacks depending on whether the system is in safe mode or not.

In addition, if the system is found to be in safe mode, a flag will be set in
the Zygote class which will be used to launch subsequent apps in VM safe mode.

Bug: 2267590
om/android/server/SystemServer.java
om/android/server/am/ActivityManagerService.java
679bba339ef6948091180c776d6a284cddd812f5 16-Feb-2010 Suchi Amalapurapu <asuchitra@google.com> Move mount service wrapper calls to PackageHelper

Fix bug related to forward locked apps.
om/android/server/PackageManagerService.java
63cfebf2dbe628508cccc10f47754fdacd48c1a0 05-Feb-2010 Costin Manolache <costin@google.com> Switch from REMOTE_INTENT to the new push messaging, add the required permission.
om/android/server/MasterClearReceiver.java
f8bb2a9ad096071fb7d45c769d031b2e1853317e 16-Feb-2010 android-build SharedAccount <android-build@sekiwake.mtv.corp.google.com> am 5d72a8dd: cherry pick d60e29009c1049a9776e6630e9489e1ef3f83491

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

* commit '5d72a8dda22cdb0c8e1ded1ca5e5122b0c25bcc7':
cherry pick d60e29009c1049a9776e6630e9489e1ef3f83491
5d72a8dda22cdb0c8e1ded1ca5e5122b0c25bcc7 12-Feb-2010 android-build SharedAccount <android-build@sekiwake.mtv.corp.google.com> cherry pick d60e29009c1049a9776e6630e9489e1ef3f83491

Revert "Add null checks when scanning a package."
This reverts commit 9e7ac3ba8405f22c11629091449ff35a06b72055.
om/android/server/PackageManagerService.java
3619b9abd8470f83ae49bb0e364e67bec9323f5b 13-Feb-2010 Kenny Root <kroot@google.com> Fix dumpsys activity service <name>

Refactoring of the dumpsys framework introduced a comparison that
always made the action dump all the services.

Change-Id: I1f3ac2bd903e39e2a6e8632e8cbb23a982dfe0c6
om/android/server/am/ActivityManagerService.java
5ce7d28a077363b656fecdd1983775aca61e9032 13-Feb-2010 Dianne Hackborn <hackbod@google.com> Small oom_adj tweaks.

Include a proper name for processes that are in the background
with running services that have been running for a long time (instead
of showing them as bg-empty).

Batch together multiple processes into the same background bin when
there are significantly more processes than bins. Arguably this
should be smarter and base the binning on the number of background/empty
processes instead of the total count, but this should be good
enough for now.
om/android/server/am/ActivityManagerService.java
642b7c0f1964389ed0b049df275c7b4daaf35b7a 16-Feb-2010 Suchi Amalapurapu <asuchitra@google.com> Merge "Include install location preference when installing packages. Changes include Add new remote call in default container service to determine install location. Rename INSTALL_ON_SDCARD Remove recommentAppInstall method Add some additional flags used in remote stubs. Move check for protected apps prior to copy. Unit tests"
bfca3a0056a42bde672c8ade83f13f139149f756 10-Feb-2010 Bernd Holzhey <googlecar+git@google.com> Add the automatic handling of night/notnight UI modes.

The automatic switching between night/notnight is based on the calulcation of
the civil twilight of the current location. The location is mainly retrieved
from the NetworkLocationProvider.

Automatic switching will only be available, when
1) the device is in UI_MODE_TYPE_CAR
2) the setting for the UI mode are set to 'automatic'

If mode is set to automatic, the next twilight is caluclated and
an alarm is set that timestamp. The alarm will trigger a new calculation
of the twilight and sets the UI_MODE_NIGHT to the appropriate value.

modified: services/java/com/android/server/DockObserver.java
new file: services/java/com/android/server/TwilightCalculator.java
om/android/server/DockObserver.java
om/android/server/TwilightCalculator.java
1c9131c91f27c8258dfad0a92cee105275f5422a 13-Feb-2010 Dan Egnor <egnor@google.com> Remove all traces of the old checkin service (and its associated parental
control interfaces) from the framework.
om/android/server/FallbackCheckinService.java
om/android/server/SystemServer.java
0e9d2af2d60b381ba52d0c25e583b3d2a9906051 25-Jan-2010 Daniel Sandler <dsandler@google.com> New user interface sound effects:

- Low battery. (http://b/2320026)
- Dock/undock events.
- Keyguard lock/unlock events.

New system settings have been created to turn these on/off
and to specify the relevant sound files.

[Production notes: The provided low battery sound and dock
sounds were synthesized; the lock screen sounds are
processed samples of a ballpoint pen click mechanism.]

Bug: 2320026
Change-Id: I374285b0f94f59c7555bb8816580f5a8c802e90d
om/android/server/DockObserver.java
om/android/server/status/StatusBarPolicy.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.
om/android/server/PackageManagerService.java
b125dc5599468a09d82751cd76152071ae485afb 13-Feb-2010 Dianne Hackborn <hackbod@google.com> Fix MotionEvent pointer API.

Ooops. The API said that the pointer down and up actions contained
the pointer id, but it is actually the index. Actually it makes
much more sense for it to be the index, and those ACTION_POINTER_1_DOWN
etc. constants were stupid.
om/android/server/InputDevice.java
a87240c2270e83c3e865ffa1e56f79bfa74daffc 12-Feb-2010 Christopher Tate <ctate@google.com> Remove BACKUP_DATA permission and associated checks

Any package can now participate in backup/restore, without requiring any
manifest-declared permission. *Control* of the backup manager is still
guarded by the BACKUP permission, which is signatureOrSystem.

Change-Id: I116fcfcd4cd255e3c976330da1c4dea7d4faae9d
om/android/server/BackupManagerService.java
90d2db3d21d07c2a4b4cbbc558f5ec59d20098c3 12-Feb-2010 Dianne Hackborn <hackbod@google.com> Add Pointer Location to the window manager.

The window manager now has pointer location built into it.
Viva la touch!
om/android/server/WindowManagerService.java
11f7c7e07754515cd732a9f8cdc2d1352db1a3ab 12-Feb-2010 Chris Tate <ctate@android.com> Merge "Fix spurious ANRs involving window shuffling and non-fullscreen activities"
a0430a1860dc3ee56a09c540ebed4ef0af5ab423 12-Feb-2010 Daniel Sandler <dsandler@google.com> Disable distracting status bar ticker text in car mode.

Bug: 2420702

Change-Id: I17ade6355b60da5e77d17f3556c86a4aaf40d173
om/android/server/DockObserver.java
470969346d7958f859d97d1a136b4ecc11e2a464 12-Feb-2010 Dianne Hackborn <hackbod@google.com> Add APIs for mapping between new and current package names.

This will allow Market and others to find out what the "real" name
of a package is, when it is currently running under the old name of
a previously installed version.
om/android/server/PackageManagerService.java
136b1f927f9d11cb0a9d3202ca3f77471afda556 12-Feb-2010 Christopher Tate <ctate@google.com> Fix spurious ANRs involving window shuffling and non-fullscreen activities

Force the event-target bookkeeping to reset when an app explicitly
acknowledges event receipt. Furthermore, notify the event dispatcher
whenever a new window is created, even if there is nominally an
existing event target window.

These changes in tandem address a subtle race bug in which the event
dispatcher believes that there is an event recipient that it is still
waiting for even when the event in question has been acknowledged;
this results in a spurious ANR. There were checks in the existing code
that wound up doing the right thing in the case of windows becoming
hidden, but the case of non-fullscreen activities floating over them
[unavailable for input but still visible] exposed the race condition.

Bug: 2432828
Change-Id: I29fb741aace34736b029f9ba43f2c43184366258
om/android/server/WindowManagerService.java
315ada7fbb9e967c22e87b4921bec720ceb2c73c 11-Feb-2010 Dianne Hackborn <hackbod@google.com> Get rid of the limit-unlock policy control.

This is merged with force-lock. These both allow effectively the same thing,
so there is no reason to junk up the user experience with them as separate
entities.
om/android/server/DevicePolicyManagerService.java
27b28b3f62bd3b54fa13acd5d035940b9be464f3 09-Feb-2010 Tobias Haamel <haamel@google.com> Introduce special UI modes for night and car usage.

The device mode is now called ui mode. Furthermore is the order of
precedence for the resources now in such a way that the ui mode needs
to be specified after the orientation and before the density.

The ui mode can be set, like it is done for the locale, as follows:

IActivityManager am = ActivityManagerNative.getDefault();
Configuration config = am.getConfiguration();
config.uiMode = Configuration.UI_MODE_TYPE_CAR | Configuration.UI_MODE_NIGHT_ANY;
am.updateConfiguration(config);

To allow users to disable the car mode and set the night mode the IUiModeManager
interface is used.

The automatic night mode switching will be added in a separate change.
om/android/server/DockObserver.java
3941411a21b0ccbfb2843dd8c7c7fbe9f8e85abb 11-Feb-2010 The Android Open Source Project <initial-contribution@android.com> am 1e90ab54: merge from open-source master

Merge commit '1e90ab542d675616e9370ab7e5add99d7af12587'

* commit '1e90ab542d675616e9370ab7e5add99d7af12587':
Fixs the incorrect message for SecurityException
Default RotateDrawable's pivot set to (50%, 50%)
777db0c08a1bee45acc2ca3fcc62ef1db6d0e221 11-Feb-2010 Eric Laurent <elaurent@google.com> Merge "resolved conflicts for merge of 61bb25f2 to master"
6dee18c5cfdd5d63f3a9c299d2b61f819c07e920 10-Feb-2010 Dianne Hackborn <hackbod@google.com> New implementation of <original-package> tag.

We now have the new package retain the name of the old package. This makes
sure that all existing references to it (shortcuts, widgets, etc) will still
work.

This does mean that your package can run under either the old or new name,
depending on whether the user got it with an update. Buyer beware!

I have tried testing all of the paths of updating, installing another
update in /data, uninstalling the update, updating system with an even
newer update, etc. I think they all work. No promises though.
om/android/server/PackageManagerService.java
c0d71d37233f0aec18433eab3e0d90c48827f1a9 11-Feb-2010 Dan Egnor <egnor@google.com> Merge "Truncate SYSTEM_TOMBSTONE events at the end (take the head), but still truncate the other log files at the start (take the tail)."
289e58051dd575cee601c38d6816b9ecd745b505 11-Feb-2010 Dan Egnor <egnor@google.com> Truncate SYSTEM_TOMBSTONE events at the end (take the head),
but still truncate the other log files at the start (take the tail).
om/android/server/BootReceiver.java
d7b92a0ff395fa45d934eaa4242bf2598da88964 11-Feb-2010 Eric Laurent <elaurent@google.com> resolved conflicts for merge of 61bb25f2 to master
1ab6d751589c1f16512a64395b67508ac8b8fa94 11-Feb-2010 San Mehat <san@google.com> Merge "MountService: Fix some mountset bugs and tighten up some return values"
18e939623556928f73fcc7511c85a537929a4a7e 11-Feb-2010 Dan Egnor <egnor@google.com> Eliminate dependencies on Checkin, replacing checkin events with EventLog
events (and in one case, a DropBox entry).

Add a simple intent that triggers master-clear (and toggle EFS), given the
right permissions.

Bug: 2264596
Bug: 2350452
Bug: 2264596
om/android/server/BatteryService.java
om/android/server/FallbackCheckinService.java
om/android/server/MasterClearReceiver.java
om/android/server/am/ActivityManagerService.java
1e90ab542d675616e9370ab7e5add99d7af12587 11-Feb-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master
61bb25f2f92af10b685d6bd1452bc5505995c64e 11-Feb-2010 Eric Laurent <elaurent@google.com> am c1eba82b: Merge "Fix issue: 2413494: Add TTY support." into eclair

Merge commit 'c1eba82ba479006045c1d7a4c8ceba116a9602d1' into eclair-plus-aosp

* commit 'c1eba82ba479006045c1d7a4c8ceba116a9602d1':
Fix issue: 2413494: Add TTY support.
a181b21305e0bcf171e2112a3ca5c08eb4fd2434 11-Feb-2010 San Mehat <san@google.com> MountService: Fix some mountset bugs and tighten up some return values

Signed-off-by: San Mehat <san@google.com>
om/android/server/MountService.java
b2983510230f49616b81be363707928e526d30a4 11-Feb-2010 Bjorn Bringert <bringert@android.com> Merge "Fix NPE in AppWidgetService.addProvidersForPackageLocked()"
102d05fa9135bef5c6b875f9a6485566b06ebd18 05-Feb-2010 Irfan Sheriff <isheriff@google.com> get DHCP IP on each connection

The IP state was not being refreshed when the supplicant transitions
from COMPLETED to ASSOCIATED to COMPLETED. This can lead to
a connected state with no real connection due to old IP settings.
The fix refreshes IP on each connection.

Bug: 2329261
Change-Id: I38cd56369ee2d8ab3e0f06f5c9f5712b9b2f35a0
om/android/server/WifiService.java
5f85780db058d3babb435466b33834c3cc70f5c1 11-Feb-2010 Bjorn Bringert <bringert@android.com> Fix NPE in AppWidgetService.addProvidersForPackageLocked()

queryBroadcastReceivers() can return null, so AppWidgetService
should guard against that.

Fixes http://b/issue?id=2418982

Change-Id: I1ba83c0c37622e0280f3dba2fef5eca2cc90c975
om/android/server/AppWidgetService.java
23085b781e145ed684e7270af1d5ced6800b8eff 09-Feb-2010 Ben Cheng <bccheng@android.com> Support per-application switch to execute the VM in safe mode.

The new attribute can be set by adding android:safeMode="true"
in AndroidManifest.xml with the SDK.

Tested with pairing locally compiled SDK with Eclipse and verified that the JIT
(the only component currently included in the safe mode) is indeed disabled
with the new attribute.

Bug: 2267583
om/android/server/am/ActivityManagerService.java
a7d7f79c4058bdf1508458341bd1c1cd4ff785b9 09-Feb-2010 Makoto Onuki <omakoto@google.com> Adding null check.
om/android/server/PackageManagerService.java
7749adfd0184b876ff6f8d1961959ca95ab82244 10-Feb-2010 Eric Laurent <elaurent@google.com> Fix issue: 2413494: Add TTY support.

This is a new implementation of TTY support.
Previous implementation in commit aead64def1fe58c95c086a0ca00cf0b13fa32ef1 is reverted.
The new method does not rely any more on the kernel headset driver to send a UEvent containing
current TTY mode.
om/android/server/HeadsetObserver.java
d0efb6bc159b86dfad540aa9dc3e20e1bb56d930 10-Feb-2010 San Mehat <san@google.com> Merge "StorageNotification: Move notification / usb storage activity into StatusBarPolicy"
27f3de6bac93140452ce131cbbd8c6df33e25a94 10-Feb-2010 Chander S Pechetty <chanderspechetty@unisaran.com> Fixs the incorrect message for SecurityException

when injecting a Key, Pointer and Trackball events into the UI across
applications, the corresponding methods throw SecurityException with
incorrect permission message.
INJECT EVENT permission should be INJECT_EVENTS
om/android/server/WindowManagerService.java
d03ff94fe58045b5bd1dd783fb98026778a4265d 09-Feb-2010 Mike Lockwood <lockwood@android.com> Clean up interface between LocationManagerService and the location providers:

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

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

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

Delete obsolete and unused TestLocationProvider class.

Change-Id: Id800e7c1864f7c666f8e37125c05896493b9c8c4
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/LocationManagerService.java
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>
om/android/server/NotificationManagerService.java
om/android/server/status/StatusBarPolicy.java
om/android/server/status/StorageNotification.java
om/android/server/status/UsbStorageActivity.java
739e1f8cdaee7ad448086f61412d118cb18152c5 10-Feb-2010 San Mehat <san@google.com> Merge "MountService: Add isSecureContainerMounted() API call"
6cdd9c08565a6871ad72cd388adfdfca23532e5e 09-Feb-2010 San Mehat <san@google.com> MountService: Add isSecureContainerMounted() API call

Signed-off-by: San Mehat <san@google.com>
om/android/server/MountService.java
add1376cde9cd027df473f84df75edc993001ebe 04-Feb-2010 David 'Digit' Turner <digit@google.com> Generate /data/system/packages.list in the PackageManager

This file contains uid + debugFlag + dataPath information for
each non-system installed package. It is meant to be used later
from native code and thus needs to be considerably simpler to
parser than packages.xml.

The file should only be readable by non-system userIds, and its
format is essentially line-based with each line like:

<pkgName> <uid> <debugFlag> <dataDir>

With:

<pkgName> as the package name
<uid> as the application-specific user id
<debugFlag> either 0 or 1. 1 if the package is debuggable
<dataDir> path to the package's data directory

We need the debug flag to allow 'run-as' to only allow
commands to be executed on debuggable packages, even on
production devices.
om/android/server/PackageManagerService.java
46d4525abc4a07a7ac04880acd7a727e1348c997 10-Feb-2010 Christopher Tate <ctate@google.com> Print the snapshot focus rather than the Window Manager's actual current focus
when dumping key-timeout information around an ANR.

Change-Id: Ia70a71029663fa134078ea9ab40f0a6a7f3945ea
om/android/server/WindowManagerService.java
e83cefcef07f9ac025642c1ffec76b4c7ab39cf2 05-Feb-2010 Dianne Hackborn <hackbod@google.com> New external storage APIs.

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

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

For the new APIs and paths, the main place to look is Environment
and Context.
om/android/server/DevicePolicyManagerService.java
om/android/server/PackageManagerService.java
53d0c7f4a032dcb2479294dddae31bb3230e10c8 09-Feb-2010 Ken Shirriff <kens@google.com> Merge "Change key dispatch timeout logging."
59443a673a736978361dc341f41ce4e9dae053a0 09-Feb-2010 San Mehat <san@google.com> MountService: Check for failure to unmount when enabling UMS and fix reversed logic

Signed-off-by: San Mehat <san@google.com>
om/android/server/MountService.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>
om/android/server/MountService.java
om/android/server/NotificationManagerService.java
om/android/server/PackageManagerService.java
om/android/server/PowerManagerService.java
3ee1317173260252d475772fec09d492f8fcfd33 05-Feb-2010 San Mehat <san@google.com> NotificationManagerService: Add a listener for storage events

Signed-off-by: San Mehat <san@google.com>
om/android/server/NotificationManagerService.java
76591176479bf0e57e43af826cb4fde6cd67d539 09-Feb-2010 San Mehat <san@google.com> Merge "MountService: Harden for pre-boot usage users"
6bdcc06115c290b0941fa6a19d5b1483d5db9c0a 09-Feb-2010 San Mehat <san@google.com> Merge "MountService: Add WARN checks to ASEC calls to catch bad users"
18457fd41e7b39534e54200c1f2392da3140ec9f 09-Feb-2010 San Mehat <san@google.com> Merge "NativeDaemonConnector: Improve error reporting and debug formatting"
c8da710f001f149557121b535da0b71d6da87484 09-Feb-2010 San Mehat <san@google.com> Merge changes I1aabef01,I8dbd0f83

* changes:
SystemServer: Move MountService startup before NotificationManagerService
StorageManager: Check for a null MountService
7040ce78666d3307521c6dc6d55c71ea90534a7e 09-Feb-2010 Suchi Amalapurapu <asuchitra@google.com> resolved conflicts for merge of 37a00a36 to master
628fd6d9c11ed9806abebf34bc986247c106328f 26-Jan-2010 Mike Lockwood <lockwood@android.com> Network Location unbundling:

The network location and geocode provider services are now started on demand
and their interfaces are now retrieved via bindService().

Remove obsolete LocationManager installLocationProvider() and installGeocodeProvider() methods.

Add abstract class android.location.provider.GeocodeProvider to provide a public wrapper to
the IGeocodeProvider Binder interface. Replaces the LocationManager.GeocodeProvider interface.

Rename LocationProviderImpl to android.location.provider.LocationProvider.

Move LocationManager.reportLocation() to android.location.provider.LocationProvider,
so all methods related to external location providers are now all in one class.

Avoid calling from the Location Manager Service into providers that are disabled so we
do not start the network location service unnecessarily.

Change-Id: If3ed2d5d62b83ba508006711d575cad09f4a0007
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/LocationManagerService.java
207e538350665cea00e1aa70b8094beca4a34e45 05-Feb-2010 San Mehat <san@google.com> MountService: Harden for pre-boot usage users

- Connection to native daemon now happens on creation instead of ON_BOOT
- Don't emit share change broadcasts before system is booted
- Protect against public API usage before we're ready

Signed-off-by: San Mehat <san@google.com>
om/android/server/MountService.java
f919cd02dfd40ad1939e429c3f5e7e36538d839e 05-Feb-2010 San Mehat <san@google.com> MountService: Add WARN checks to ASEC calls to catch bad users

Signed-off-by: San Mehat <san@google.com>
om/android/server/MountService.java
1ff4371ef2e27ff51cedd24d093b12043cb72e56 05-Feb-2010 San Mehat <san@google.com> NativeDaemonConnector: Improve error reporting and debug formatting

Updated:
NativeDaemonConnector: Put debugging behind a conditional

Signed-off-by: San Mehat <san@google.com>
om/android/server/NativeDaemonConnector.java
1bf3f8be7c01aa77afc114e0728cb041e95640b1 03-Feb-2010 San Mehat <san@google.com> SystemServer: Move MountService startup before NotificationManagerService

Signed-off-by: San Mehat <san@google.com>
om/android/server/SystemServer.java
37a00a36fb69645695b1a165e2fd90cc3eb3e071 09-Feb-2010 Suchi Amalapurapu <asuchitra@google.com> am 08be55b8: Add null checks when scanning a package. Delete packages whose code and resource paths haven\'t been set correctly.

Merge commit '08be55b8ea917a5273c135a7bdc73e41c8524c05' into eclair-plus-aosp

* commit '08be55b8ea917a5273c135a7bdc73e41c8524c05':
Add null checks when scanning a package.
08be55b8ea917a5273c135a7bdc73e41c8524c05 09-Feb-2010 Suchi Amalapurapu <asuchitra@google.com> Add null checks when scanning a package.
Delete packages whose code and resource paths haven't been set
correctly.
om/android/server/PackageManagerService.java
b49ceb3b8b17656984fd969d548dc912e7d2c7c1 09-Feb-2010 Christopher Tate <ctate@google.com> Remember which apps have available restore info in the ancestral dataset

When we perform a full-system restore, remember the set of applications which
have data available in our ancestral dataset. This is a key filter for not
having to do a round trip to the [remote] storage backend at app-install time
unless it is likely to be fruitful.

Change-Id: I7c77b490c560c581888d84f02f258b2e2d73bc69
om/android/server/BackupManagerService.java
om/android/server/PackageManagerBackupAgent.java
b56ae20b22fd7283df32072a431ab6d4965f3c1b 05-Feb-2010 Suchi Amalapurapu <asuchitra@google.com> Rename media resource broadcasts
Add checks for fwdlocked and updated system apps
add more tests
remove duplicate adds
om/android/server/AccessibilityManagerService.java
om/android/server/AlarmManagerService.java
om/android/server/AppWidgetService.java
om/android/server/BackupManagerService.java
om/android/server/InputMethodManagerService.java
om/android/server/LocationManagerService.java
om/android/server/MountService.java
om/android/server/NotificationManagerService.java
om/android/server/PackageManagerService.java
om/android/server/am/ActivityManagerService.java
om/android/server/status/StatusBarService.java
8200b20fe6e68e68264efe133f21ac8df079a563 04-Feb-2010 Ken Shirriff <kens@google.com> Change key dispatch timeout logging.

The mToken logging seems redundant and confusing.
Clarify what sending to <null> means.
Clarify what dispatch state and current state mean.
om/android/server/WindowManagerService.java
cb14ec1305fac1b52e00414237d56fc8117a34ad 05-Feb-2010 Chris Tate <ctate@android.com> Merge "Don't hold the backup queue lock across a backup operation"
1688d312e5ce05e17aceffa00d1e996c89e6b5b0 05-Feb-2010 Mike Lockwood <lockwood@google.com> Merge "Keep automatic screen brightness monotonically increasing until screen is turned off."
97e44947282b3918ee0bed2d16b33b983f882580 05-Feb-2010 Dan Egnor <egnor@google.com> Add an AlarmManager API to set the system time (with the proper permissions).
om/android/server/AlarmManagerService.java
b28654167466277fa262606810115164d9d24d67 03-Feb-2010 Mike Lockwood <lockwood@android.com> Keep automatic screen brightness monotonically increasing until screen is turned off.

This is an experimental change to avoid the light sensor screen fluctuation problem.
We only do this when undocked to since the lighting should be stable in the docked case
and since the dock keeps the screen on we need to be able to adjust the lighting.

Change-Id: I70afcc393f51f2679be8228d6cb993ddc07e5986
BUG: 2387223
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/PowerManagerService.java
c61da3136b1ffce9152f54ff19cab2782cb8450b 05-Feb-2010 Christopher Tate <ctate@google.com> Don't hold the backup queue lock across a backup operation

This got lost in the shuffle when the backup process was retooled to run
synchronously within a single spun-off HandlerThread. Formerly it was okay
to hold the lock around the point in time when the backup service thread was
being spun off, but once that became synchronous it wound up locking out
apps' calls to dataChanged(), which in turn led to ANRs.

Bug: 2421333
Change-Id: Icf378e5733af5f28a689c564494486cd3555eca7
om/android/server/BackupManagerService.java
5c1779b8acbf570f66ed401e5a0daad56533305d 05-Feb-2010 Chris Tate <ctate@android.com> Merge "Add single-package restore from an app's most-recent data"
8472581aa32eee1368de379c2c079ea0a66baa3c 05-Feb-2010 Christopher Tate <ctate@google.com> Add single-package restore from an app's most-recent data

Renamed the RestoreSession performRestore() method to restoreAll(), and
added a new restorePackage() method that only restores the single
specified app. In order to restore an app other than itself, the
caller must hold the android.permission.BACKUP permission.

This change also introduces dataset tracking: the Backup Manager
persistently remembers both the current backup dataset's identity
and that of the "ancestral" dataset, i.e. the one most recently used
for a whole-device restore such as performed by SetupWizard. When a
single package is restored via restorePackage(), the selection of
most-recent dataset to use is this:

1. The data from the currently-active backup dataset, if such exists.
An app that has ever backed up data will therefore get its last-
known-good data.

2. The app's data from the ancestral dataset, if such exists. This
covers the case of a factory reset followed by reinstallation of
an app at a later time. The app had not yet backed anything up
post-wipe, but the old data is in the ancestral dataset and should
be brought forward when the app reappears.

3. If neither 1. nor 2. exist, there is no data to restore, so just
skip it and return failure.

Note that the infrastructure to automatically attempt a restore after
an application has been installed does not yet exist; that's coming.

Change-Id: I0ba170df9885128000c46ed28d3dddda3a63a143
om/android/server/BackupManagerService.java
64226a49b75b44da56740a21b38ce6cc710796d8 05-Feb-2010 Daniel Sandler <dsandler@android.com> Merge "Add support in StatusBarManager for disabling ticker text."
91e1d0cddaaec5e077ca689744463901f9d5d580 05-Feb-2010 Daniel Sandler <dsandler@google.com> Add support in StatusBarManager for disabling ticker text.

The new flag, DISABLE_NOTIFICATION_TICKER, will be used by
the car dock app (in conjunction with DISABLE_EXPAND) to
minimize distractions to the driver.

It may also be used by the secure lockscreen to avoid
leaking personal information when the screen is on but the
device is locked (e.g. when the desk dock app is running).

Change-Id: Ibc8efde7da7501767163ae0a75f7c369b824e2a2
om/android/server/status/StatusBarService.java
5c19aeca3d41c6a5820dc05a51c38736d3583378 04-Feb-2010 Ken Shirriff <kens@google.com> API review: TrafficStats: rename Pkts to Packets

Rename getMobileTxPackets(), getMobileRxPackets(), getTotalTxPackets(),
getMobileRxPackets()

bug 2420318
om/android/server/NetStatService.java
8f3ff09556b2d0c45eebdf97bd980f3b9f0c7d8f 04-Feb-2010 Kenny Root <kroot@google.com> Merge "resolved conflicts for merge of dd24f599 to master"
2cce6267a0cdcdd3f3f369599e99f9a83bbe4be2 04-Feb-2010 Kenny Root <kroot@google.com> resolved conflicts for merge of dd24f599 to master

Change-Id: I57c349c493d69585d4c85e8c0970649708c6bd33
2a9094d07915a077026a651a7773f94322bf7d23 04-Feb-2010 Dianne Hackborn <hackbod@google.com> Framework part of issue #2391576: Add method to start the Jit and call it
om/android/server/SystemServer.java
dd24f599066d693722d53924b16f1cdb53aa7f8b 04-Feb-2010 Eric Laurent <elaurent@google.com> am aead64de: Fix issue: 2413494: [Passion-c] Add TTY support.

Merge commit 'aead64def1fe58c95c086a0ca00cf0b13fa32ef1' into eclair-plus-aosp

* commit 'aead64def1fe58c95c086a0ca00cf0b13fa32ef1':
Fix issue: 2413494: [Passion-c] Add TTY support.
d0e18ffb82b59d38aeaf0e552f48e734202719ab 26-Jan-2010 Robert Greenwalt <robdroid@android.com> First pass at USB Tethering.

bug:2281900
om/android/server/ConnectivityService.java
om/android/server/NetworkManagementService.java
om/android/server/connectivity/Tethering.java
aead64def1fe58c95c086a0ca00cf0b13fa32ef1 02-Feb-2010 Eric Laurent <elaurent@google.com> Fix issue: 2413494: [Passion-c] Add TTY support.

Handle TTY mode change events received by HeadsetObserver and send information down to AudioHardware with AudioManager.setParameters()

Use setting "tty_mode_uses_heaset_events" in core config.xml to indicate if the product uses this particular
method of indicating the TTY mode change.
om/android/server/HeadsetObserver.java
f1dd37ac283d09ba5d21349bf99fdc6ba3d7fc4b 04-Feb-2010 Joe Onorato <joeo@google.com> Merge "Fix 1667521 - system process crash after bad notification"
68065e0a1980ab6abf8963b48b011efa017fe1c2 04-Feb-2010 Joe Onorato <joeo@android.com> Fix 1667521 - system process crash after bad notification

The steps to reproduce this were kind of interesting. You needed to have
a notification with a bogus RemoteViews in the first position in the list,
and then have another notification come in with an earlier timestampe. In
that case, it would get a bad index for the new (not bogus) view that was
being added.
om/android/server/status/NotificationData.java
om/android/server/status/NotificationViewList.java
om/android/server/status/StatusBarService.java
fa6bc84e01c061ded1b9ab11a82cbbaac2843f73 04-Feb-2010 Dianne Hackborn <hackbod@google.com> Merge "Implement system data migration support."
b858dfda5012a1040927ed62c3bb856c3294d882 02-Feb-2010 Dianne Hackborn <hackbod@google.com> Implement system data migration support.

This adds three new features:

- <original-package android:name="com.foo" /> manifest tag.
This allows an .apk to specify another package it originally came from,
propagating all state and data from the old to new package.

- <adopt-permissions android:name="com.foo" /> manifest tag.
In some more complicated cases, a new .apk may be a combination
of multiple older .apks that each declared their own permissions.
This allows you to propagate the permissions from these other
.apks into the new one.

- A new system/etc/updatecmds directory.
You can place files here which describe data files to move from
one package to another. (See below for details.)

Also in this change: we now clean up the data directories of
.apks that disappear from the system image, and some improvements
to logging and reporting error messages.

A typical file in the updatecmds directory looks like this:

-------
com.google.android.gsf:com.google.android.providers.talk
databases/talk.db
com.google.android.gsf:com.google.android.googleapps
databases/gls.db
-------

This says that for com.google.android.sfs, there are two packages to
move files from:

From com.google.android.providers.talk, the file databases/talk.db.
From com.google.android.googleapps, the file databases/gls.db

As part of moving the file, its owner will be changed from the old
package to whoever is the owner of the new package's data directory.

If those two files had existed, after booting you would now have the
files:

/data/data/com.google.android.gsf/databases/talk.db
/data/data/com.google.android.gsf/databases/gls.db

Note that all three of these facilities assume that the older .apk
is completely removed from the newer system. The WILL NOT work
correctly if the older .apk still remains.
om/android/server/Installer.java
om/android/server/PackageManagerService.java
348f7b904851e3edcf09b8362406ff2f4ae57db2 04-Feb-2010 Chris Tate <ctate@android.com> Merge "Add auto-restore setting and Backup Manager awareness thereof"
cce9da5dc3d515f98c260af41a03e61e57b4e7a6 04-Feb-2010 Christopher Tate <ctate@google.com> Add auto-restore setting and Backup Manager awareness thereof

This setting, like BACKUP_ENABLE, should never be set directly in the secure
settings database. Instead, it should be manipulated through the new IBackupManager
method setAutoRestore(boolean).

Change-Id: I5c3226ca85b6148bb756d753d7f9e4ea76e878c4
om/android/server/BackupManagerService.java
ec4caa0f549bf9a75d20daa95b8aa8d9fab39681 03-Feb-2010 San Mehat <san@google.com> NativeDaemonConnector: Improve NativeDaemonException reporting to include the actual error response

Signed-off-by: San Mehat <san@google.com>
om/android/server/NativeDaemonConnector.java
om/android/server/NativeDaemonConnectorException.java
08675a3376819a82aa5ab344bc3e7b1635c30b05 28-Jan-2010 Suchi Amalapurapu <asuchitra@google.com> Apps on sdcard: Add new broadcasts

Add new broadcasts ACTION_MEDIA_RESOURCES_AVAILABLE and
ACTION_MEDIA_RESOURCES_UNAVAILABLE that get broadcast by
PackageManagerService when sdcard gets mounted/unmounted
by MountService so that packages on sdcard get recognized by
various system services as being installed/available or
removed/unavailable by the system.
The broadcasts are sent before the actual package cleanup which includes
mounting/unmounting the packages and we force a gc right after so
that any lingering file references to resources on sdcard get
released.
om/android/server/AccessibilityManagerService.java
om/android/server/AlarmManagerService.java
om/android/server/AppWidgetService.java
om/android/server/BackupManagerService.java
om/android/server/InputMethodManagerService.java
om/android/server/LocationManagerService.java
om/android/server/NotificationManagerService.java
om/android/server/PackageManagerService.java
om/android/server/am/ActivityManagerService.java
om/android/server/status/StatusBarService.java
37b22176001d4bd69d2b276d212d7a12eafaaf15 03-Feb-2010 Chris Tate <ctate@android.com> Merge "Get rid of now-superfluous "backup or restore in progress" tracking"
c2af5d3bf84fa66570081d30ce0210458e46b1b8 03-Feb-2010 Christopher Tate <ctate@google.com> Get rid of now-superfluous "backup or restore in progress" tracking

Now that backup/restore/etc operations are queued and serialized, we no longer
need to use external state tracking to prevent overlapping operations.

Change-Id: I14f2a5d740cb97ae062aad55a06f49a2be5dd985
om/android/server/BackupManagerService.java
be16cb15b39f5140b764854bc78c139bfa9fbe8b 29-Jan-2010 San Mehat <san@google.com> PackageManagerService: Refactor MountService calls (new api)

Signed-off-by: San Mehat <san@google.com>
om/android/server/PackageManagerService.java
4270e1ea74c57f1c65620e9f5ecaa8c2a5daf0e1 29-Jan-2010 San Mehat <san@google.com> MountService: Massive bloat reduction and rewrite

- Most API calls now return an int as a result code (see MountServiceResultCode.java)
- All notification code has been removed
- All settings code has been removed
- Removed UMS centric API calls in favor of more generic 'shares'
- Mount error reporting is no longer done via an event, but is done as part of the
actual mount process
- Rework vold IPC commands to be more sane

Updated:
MountService: Rename MountServiceObserver -> MountServiceListener
MountService: Add support for Async callbacks

Updated:
MountService: Add BinderDeath handling

Updated:
MountService: Remove notifys since we dont listen anyways

Updated:
MountService: Fix bad cast

Signed-off-by: San Mehat <san@google.com>
om/android/server/MountService.java
78071b73479b9bea536dd1d5260ea78dd176640b 02-Feb-2010 San Mehat <san@google.com> Merge "NativeDaemonConnector: Cleanup socket code and use a proper exception Signed-off-by: San Mehat <san@google.com>"
f6133febaead08d597c4454d543ee3cba5158a90 02-Feb-2010 Joe Onorato <joeo@android.com> Fix bug 2362761 AppWidgetService should use Intent.setPackage()

Thanks Bjorn for the tip.
om/android/server/AppWidgetService.java
9327f4f671de3cbb795612bf4f314ceff88de865 29-Jan-2010 Dianne Hackborn <hackbod@google.com> More device policy work: clarify password modes, monkeying.

Clarifies what the password modes mean, renaming them to "quality"
and updating their documentation and the implementation to follow.

Also adds a facility to find out if a monkey is running, which I
need for the api demo to avoid letting it wipe the device.
om/android/server/DevicePolicyManagerService.java
om/android/server/am/ActivityManagerService.java
b0dcaaf108d70040e4e4e4ac65df1a7eae732d1e 30-Jan-2010 Christopher Tate <ctate@google.com> Don't crash on transport unregistration if there is no current transport

Change-Id: Icd0962254ba224a7be27d408dffb25b634f67863
om/android/server/BackupManagerService.java
4a20061f341ffaa8531993a851a3dfbfcdc8e38d 30-Jan-2010 Chris Tate <ctate@android.com> Merge "Make backup/restore asynchronous and enforce timeouts"
44a2790374bf27116cbd91060d4f096ca5999709 28-Jan-2010 Christopher Tate <ctate@google.com> Make backup/restore asynchronous and enforce timeouts

Callouts to app backup agents are now asynchronous, and timeouts are applied if
they take too long, hang, etc. The initial timeouts are set to 15 seconds on
backup, 60 seconds on restore. These operations typically run at background
priority, so it's necessary to give them ample time to run.

As part of setting up this asynchronicity, the Backup Manager's internal thread
management has been overhauled. It now spins off a single HandlerThread at
startup, and runs backup/restore/etc operations *synchronously* in that thread,
applying timeouts as appropriate. This means we're no longer spinning up new
threads all the time, and furthermore it ensures that we can never have more
than one operation in flight at once. Later CLs will remove the now-redundant
logic that previously ensured that operations didn't stomp on each other.

Bug: 2053560
Change-Id: Ie4315c219c7ff6dd8f51f2ad6c0872595b18cff1
om/android/server/BackupManagerService.java
ef73162887943e16587b8e737b19e59348338e8c 27-Jan-2010 Mike Lockwood <lockwood@android.com> Support for triggering the lockscreen while the screen is on:

Add new ALLOW_LOCK_WHILE_SCREEN_ON window manager flag, which when set
causes the window manager to put up the lockscreen after the
normal screen timeout has elapsed.

Add plumbing to pass PowerManager.userActivity() to the window manager policy.

Change-Id: I05adc52bad39c56031a08e8ec3cbcf5c2d9b9827
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/PowerManagerService.java
om/android/server/WindowManagerService.java
bd2f531a2836d3ad09755856c9c84cf75eb900d7 29-Jan-2010 Suchi Amalapurapu <asuchitra@google.com> Merge "Fix StringIndexOutOfBoundsException in PackageManagerService"
d425a45f8d7c0e94d2db4c0a5c8157e6c846b853 29-Jan-2010 Daniel Sandler <dsandler@google.com> Fix build.

(Broken in change Ib94f795c.)
om/android/server/MountService.java
4c27e0e3bed006a9ba45c6c02be5fe49827b3fea 29-Jan-2010 San Mehat <san@google.com> NativeDaemonConnector: Cleanup socket code and use a proper exception
Signed-off-by: San Mehat <san@google.com>
om/android/server/NativeDaemonConnector.java
om/android/server/NativeDaemonConnectorException.java
77c292d83e70793dcb23677ab60a6c707fc613dd 29-Jan-2010 Daniel Sandler <dsandler@android.com> Merge "New full-screen activity for USB mass storage interaction."
5fd5bfe942a03a2a0f8b55e78138e5ca7d578c6b 29-Jan-2010 Bjorn Bringert <bringert@android.com> Fix StringIndexOutOfBoundsException in PackageManagerService

The method packageManagerService.getNextCodePath(String oldCodePath,
String prefix, String suffix) threw StringIndexOutOfBoundsException if
oldCodePath does not contain prefix, and prefix is longer than
oldCodePath, or if the preix and suffix overlap.

Fixes http://b/issue?id=2404232

Change-Id: Ib8abb16f8bfd08f607476d9289f46d170c43a076
om/android/server/PackageManagerService.java
784d53e79bab67e6b08b4bfc9a2dc75cfcba9772 29-Jan-2010 Chia-chi Yeh <chiachi@android.com> WifiService: allow EAP variables to be unset using empty strings.
om/android/server/WifiService.java
c4a0c2744a19a42bd1f5c39a6f1673310c6f9c3a 29-Jan-2010 Irfan Sheriff <isheriff@google.com> Merge "Blacklist APs instead of disable"
fbf56dc719a2ee13129fd7049565054370c6ed1d 28-Jan-2010 Robert Greenwalt <robdroid@android.com> am 3e229076: am cc4b4016: Fix the reporting of NO_CONNECTIVITY.

Merge commit '3e229076203cd8cfee0adac44cd3c930dfa0e59c'

* commit '3e229076203cd8cfee0adac44cd3c930dfa0e59c':
Fix the reporting of NO_CONNECTIVITY.
64fe5646c5b2eb5ff58cea4ca4d384b4a5f733dc 28-Jan-2010 Robert Greenwalt <robdroid@android.com> am 6d626d41: am 5381e4ef: Merge "Refine fix I53e91db7 to apply only to wifi network" into eclair

Merge commit '6d626d41e9db62a0eadb61ccb2aa4081a8b9f6d0'

* commit '6d626d41e9db62a0eadb61ccb2aa4081a8b9f6d0':
Refine fix I53e91db7 to apply only to wifi network
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
om/android/server/MountService.java
254cb446faa7cb13699d8150eb4cc4f44cb61a2d 28-Jan-2010 Dianne Hackborn <hackbod@google.com> More device admin.

- Clean up device policy manager APIs.
- Implement lockNow(). For now this just turns the screen off to lock the device.
om/android/server/DevicePolicyManagerService.java
om/android/server/PowerManagerService.java
bdbc925a275b4ba4217ec7ac0ad2ec5f913d4e51 28-Jan-2010 Kenny Root <kroot@google.com> resolved conflicts for merge of b0903104 to master

Change-Id: Iff20980c44d42b41ae411c4201e0927cee19d415
0049a1bf3f8bae3a10cfeff38aefce215bf1298b 14-Jan-2010 Irfan Sheriff <isheriff@google.com> Blacklist APs instead of disable

We currently disable networks upon too many reconnects. This leads to asking
the user input for reconnects. Blacklist it instead.

Bug: 2129037
Change-Id: I23d69daf3964c066ed7f70d32fefb81016f19aa2
om/android/server/WifiWatchdogService.java
f1a0f55f7145bc3c769752395d29b282f1f133f2 28-Jan-2010 Eric Laurent <elaurent@google.com> am 131c5e08: am a59551ba: Merge "Fix issue 2388215: Audio not routed to 3.5mm Headset after removal/insertion." into eclair

Merge commit '131c5e0867d542788cf2dab23b17f2f8cc3d0391'

* commit '131c5e0867d542788cf2dab23b17f2f8cc3d0391':
Fix issue 2388215: Audio not routed to 3.5mm Headset after removal/insertion.
51e93db9402dc19ed923fa4b586b9b37ff85eafe 28-Jan-2010 San Mehat <san@google.com> Merge "Remove destroy asec command when mounting secure container"
8ea25cc1a104bfc95d5742a8c0ab582c7812ee74 28-Jan-2010 Jacek Surazski <jaceks@google.com> Merge "timestamp field in ApplicationErrorReport was not getting intitialized on ANRs"
40b5110e746060ec67307da70f662826c18228a7 28-Jan-2010 Suchi Amalapurapu <asuchitra@google.com> Remove destroy asec command when mounting secure container
om/android/server/MountService.java
d47c6ed4a9f2b5bd31f6c806b74701428efe458b 28-Jan-2010 Dianne Hackborn <hackbod@google.com> Bite the bullet and add support for multiple device admins.
om/android/server/DevicePolicyManagerService.java
41a9fd55ac0f50afb3d70b1ba0786dbb316eebce 28-Jan-2010 Jacek Surazski <jaceks@google.com> timestamp field in ApplicationErrorReport was not getting intitialized on ANRs
om/android/server/am/AppNotRespondingDialog.java
3ae6162d187a7166030263f8e9534aac65f3ae47 28-Jan-2010 Dan Egnor <egnor@google.com> Merge "Report tombstone (native crash) data to the dropbox."
492c6ed5b64cfdd72dc270e6b848025a26eff724 27-Jan-2010 Dan Egnor <egnor@google.com> Report tombstone (native crash) data to the dropbox.

Also uses a shared_prefs file to keep track of which files have been
logged, instead of polluting Settings.Secure with this data.
om/android/server/BootReceiver.java
8ea138cbf12b140d43fd81f4f12fe1a9234f1f25 27-Jan-2010 Dianne Hackborn <hackbod@google.com> More work on device admins:

- You can now show a dynamic message to the user when asking to
have your DeviceAdmin added.
- A DeviceAdmin can now provide a warning message that is displayed
before a user disables it.
- Better ordering (and text) of the policy warnings.
- New API to set the maximum failed password attempts before the device
wipes itself.
- We now store the number of failed unlock attempts in persistent
storage.
- New managed dialog APIs that will be used by the settings app.

Also a little bit of cleanup as I was working on this - removed the
long unused MailboxNotAvailableException, fixed a java doc in Messenger.
om/android/server/DevicePolicyManagerService.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.
om/android/server/Installer.java
om/android/server/PackageManagerService.java
02735bc9b7686e56957cdec9c10660c4a6dd1090 27-Jan-2010 San Mehat <san@google.com> MountService: Introduce new @hide permissions to protect secure containers.

Signed-off-by: San Mehat <san@google.com>
om/android/server/MountService.java
78d5ba9dbce20312aca11ae0a6e9366af3a08778 27-Jan-2010 Dan Egnor <egnor@google.com> Merge changes Iea11654e,I2242da5a,I66c40e73

* changes:
Use six dashes instead of five.
Include more verbose device information with kernel dumps (hardware, bootloader, etc.), and separate the device info headers from the actual dump with a blank line.
Add package information to dropbox reports for ANR, crash, etc. (Notably including package version codes, to help when we're shipping out-of-cycle unbundled app updates.)
2242da5a4fadbef936153b4e43218d73033a11cd 27-Jan-2010 Dan Egnor <egnor@google.com> Include more verbose device information with kernel dumps
(hardware, bootloader, etc.), and separate the device info
headers from the actual dump with a blank line.
om/android/server/BootReceiver.java
c2a39471642e31d7350910612e40d078b825173a 27-Jan-2010 San Mehat <san@google.com> MountService: Don't update the storage status when we're unmounted

Signed-off-by: San Mehat <san@google.com>
om/android/server/MountService.java
66c40e73662d0e3090cd6e7f7e4e6dcb4867b8bd 27-Jan-2010 Dan Egnor <egnor@google.com> Add package information to dropbox reports for ANR, crash, etc.
(Notably including package version codes, to help when we're shipping
out-of-cycle unbundled app updates.)
om/android/server/am/ActivityManagerService.java
ec3cad8ec6b18da75b179d0fd279d652ae8fc1aa 26-Jan-2010 San Mehat <san@google.com> Merge "MountService: Explicitly query volume state on startup"
7b04317be85245ec3987421fc5cfa73df9442ae4 26-Jan-2010 San Mehat <san@google.com> Merge "NativeDaemonConnector: fix doListCommand() to return *all* list elements"
5b77dab23469273d41f9c530d947ac055765e6ea 26-Jan-2010 San Mehat <san@google.com> MountService: Explicitly query volume state on startup

Signed-off-by: San Mehat <san@google.com>
om/android/server/MountService.java
80120b43745102b3a8c635c796698d748b329222 26-Jan-2010 San Mehat <san@google.com> NativeDaemonConnector: fix doListCommand() to return *all* list elements

Signed-off-by: San Mehat <san@google.com>
om/android/server/NativeDaemonConnector.java
b91f4643b66dc263d5c69ced9faf6980edec5583 26-Jan-2010 Chris Tate <ctate@android.com> Merge "Move towards a formal public API for backup and restore"
8aa2e8939c61d788cbc192098465e79f584e173a 22-Jan-2010 Dianne Hackborn <hackbod@google.com> More device admin work: description, policy control.

There is now a description attribute associated with all components,
that can supply user-visible information about what the component does.
We use this to show such information about device admins, and wallpapers
are also updated to be able to show this in addition to the existing
description in their meta-data.

This also defines security control for admins, requiring that they
declare the policies they will touch, and enforcing that they do
so to be able to use various APIs.
om/android/server/DevicePolicyManagerService.java
508370f0cb5d3e03b1bcf04f1164ea1f384f496f 26-Jan-2010 David Turner <digit@google.com> Merge "Make PackageManager unpack gdbserver binaries at installation time."
09ac3c3cbc6278af127cffedb9d534449e63b683 26-Jan-2010 Robert Greenwalt <robdroid@android.com> resolved conflicts for merge of 1f2f23bd to master
d1df8ac6d076ef15ba8857211da2e447b6505fb3 26-Jan-2010 San Mehat <san@google.com> NetworkManagementService: Start service when SystemServer starts up

Signed-off-by: San Mehat <san@google.com>
om/android/server/NetworkManagementService.java
om/android/server/SystemServer.java
80202c8cb8c8e4ab507079e79b864c61a8eeeee9 26-Jan-2010 Christopher Tate <ctate@google.com> Move towards a formal public API for backup and restore

This commit makes a few changes towards establishing a formal application
interface for interacting with the backup/restore mechanism:

1. Introduce public wrapper classes around the various binder interfaces; 3rd
party code will never see the binders directly.

2. Progress update callbacks during a restore sequence now occur on the main
thread, not in a binder thread [and not with system-process permissions!].

3. Rename the BackupManagerService's inner "RestoreSession" class to avoid
ambiguity with the new public "RestoreSession" class.
om/android/server/BackupManagerService.java
3e229076203cd8cfee0adac44cd3c930dfa0e59c 26-Jan-2010 Robert Greenwalt <robdroid@android.com> am cc4b4016: Fix the reporting of NO_CONNECTIVITY.

Merge commit 'cc4b4016e4b86db012f94bb889e5ca61ff362171' into eclair-plus-aosp

* commit 'cc4b4016e4b86db012f94bb889e5ca61ff362171':
Fix the reporting of NO_CONNECTIVITY.
cc4b4016e4b86db012f94bb889e5ca61ff362171 26-Jan-2010 Robert Greenwalt <robdroid@android.com> Fix the reporting of NO_CONNECTIVITY.

A refactoring of handleDisconnect instroduced a bug - we were reporting
NO_CONNECTIVITY after any non-primary network (supl, mms, hipri) was lost.

bug:2395006

Change-Id: Ifa9e008872ec646981a35f2c316120cb9685a6a4
om/android/server/ConnectivityService.java
6d626d41e9db62a0eadb61ccb2aa4081a8b9f6d0 26-Jan-2010 Robert Greenwalt <robdroid@android.com> am 5381e4ef: Merge "Refine fix I53e91db7 to apply only to wifi network" into eclair

Merge commit '5381e4ef4ef1a05b25fa39ff942f4a95e0ae4750' into eclair-plus-aosp

* commit '5381e4ef4ef1a05b25fa39ff942f4a95e0ae4750':
Refine fix I53e91db7 to apply only to wifi network
6e6dec284369238f16ac23497292de5a1a39aca8 26-Jan-2010 Robert Greenwalt <robdroid@android.com> Refine fix I53e91db7 to apply only to wifi network

The original fix eliminated duplicate wifi connectivity changes stemming from
location provder scan's for APs. These would generate two DISCONNECTED broadcasts every
two minutes and many apps mis-interpreted them.

The fix was to ignore notifications where the major state was the same as the previous one
for each network. Unfortunately the state of per-apn notifications on cellular is hacky
and so the wifi fix was breaking mms (mms when you're on cellular with a common default+mms apn does
not generate a disconnect notification (apn still connected) so subsequent connect notifications
get dropped as duplicates).

This change refines the previous change so that it only applies to wifi networks.

bug:2392061
Change-Id: I05d8a46a4b55f8d28df8af12e05284e5e68bfc02
drno: ryanpc
om/android/server/ConnectivityService.java
1edab2b551995a8df25f4b533405d6003b8b8b66 22-Jan-2010 David 'Digit' Turner <digit@google.com> Make PackageManager unpack gdbserver binaries at installation time.

Native-debuggable packages contain a lib/<abi>/gdbserver executable.
This patch ensures that the package manager will copy it to the
proper location (/data/data/<appname>/lib) at installation time.

Note that such packages are marked with a new ApplicationInfo flag
named FLAG_NATIVE_DEBUGGABLE, to be used later by the Activity
Manager.
om/android/server/PackageManagerService.java
45f61040823d8c442838f75cde8760f236603dae 23-Jan-2010 San Mehat <san@google.com> MountService: Add support for renaming secure containers

Signed-off-by: San Mehat <san@google.com>
om/android/server/MountService.java
3e3a6430ea49abcdcc645a26a6f1df65acd97345 23-Jan-2010 San Mehat <san@google.com> Fix whitespace issue causing protocol syntax error

Signed-off-by: San Mehat <san@google.com>
om/android/server/MountService.java
4d02d001ef6e06583e858e63e48d1aebf54ba28d 23-Jan-2010 San Mehat <san@google.com> NetworkManagementService: Introduce INetworkManagementEventObserver

Introduce a callback event observer which can be registered on the
INetworkManagementService instance to receive events from the service.

Signed-off-by: San Mehat <san@google.com>
om/android/server/NetworkManagementService.java
b0903104fd2fe7a69331758fba769c8067e26771 23-Jan-2010 Dianne Hackborn <hackbod@google.com> am 678e66a4: Merge "Fix issue #2391429: Crash during boot if fwd locked app is incompletely installed" into eclair

Merge commit '678e66a4ec8bdceafd12f7d82c7d4aa8acf71aa2' into eclair-plus-aosp

* commit '678e66a4ec8bdceafd12f7d82c7d4aa8acf71aa2':
Fix issue #2391429: Crash during boot if fwd locked app is incompletely installed
678e66a4ec8bdceafd12f7d82c7d4aa8acf71aa2 23-Jan-2010 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #2391429: Crash during boot if fwd locked app is incompletely installed" into eclair
85fd374eabe610ab8213109ae87e2862a4da8985 23-Jan-2010 Dan Egnor <egnor@google.com> Merge "As requested, expand ANR event log entry (and crash/WTF too) to include process flags (including FLAG_SYSTEM, etc)."
63454ebcc9604407152ee54e29ee91c726374f56 23-Jan-2010 San Mehat <san@google.com> Merge "NetworkManagementService: Introduce API methods for configuring interfaces"
2780e73ae7ec32418a1827671ddf0687a218ed13 22-Jan-2010 Dan Egnor <egnor@google.com> As requested, expand ANR event log entry (and crash/WTF too) to include
process flags (including FLAG_SYSTEM, etc).
om/android/server/am/ActivityManagerService.java
om/android/server/am/EventLogTags.logtags
e6620b2d993a8372f63d1c0ca0f1c8be6ab9ad0f 22-Jan-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2391429: Crash during boot if fwd locked app is incompletely installed

We need to remove left-over .apk when cleaning up a partially installed app.

Change-Id: I94264549670a2ad01622f746c40c82c30dd3da8d
om/android/server/PackageManagerService.java
ed4fc8acc52d89f1d4dec853a29288c6d06717c3 22-Jan-2010 San Mehat <san@google.com> NetworkManagementService: Introduce API methods for configuring interfaces

Signed-off-by: San Mehat <san@google.com>
om/android/server/NetworkManagementService.java
c0cea4857683c83e5b5df370ae1c90cc11ed25ae 22-Jan-2010 Dianne Hackborn <hackbod@google.com> am 5f641285: am b1c4a2a3: Fix issue #2364506: Phone locked up while listening to music and attempting to download an update

Merge commit '5f64128568d815f91dcd37db43d4e26a0566b41c'

* commit '5f64128568d815f91dcd37db43d4e26a0566b41c':
Fix issue #2364506: Phone locked up while listening to music and attempting to download an update
131c5e0867d542788cf2dab23b17f2f8cc3d0391 22-Jan-2010 Eric Laurent <elaurent@google.com> am a59551ba: Merge "Fix issue 2388215: Audio not routed to 3.5mm Headset after removal/insertion." into eclair

Merge commit 'a59551bade6a7b0c916c277f044de79c6af1bd22' into eclair-plus-aosp

* commit 'a59551bade6a7b0c916c277f044de79c6af1bd22':
Fix issue 2388215: Audio not routed to 3.5mm Headset after removal/insertion.
700aab67eb286b44663f885325f8db6b049cb638 22-Jan-2010 Eric Laurent <elaurent@google.com> Fix issue 2388215: Audio not routed to 3.5mm Headset after removal/insertion.

The problem occurs if the delay between the headset removal and insertion is less than one second.
In this case, as the headset disconnection intent is broadcast with a 1 second delay to allow music to pause
before updating the route, the connection intent is broadcast before and is ignored, leaving the system
in a state where the headset is considered disconnected.

The fix consists in inserting a delay before broadcasting the connection intent if a disconnection
intent is pending broadcast.
om/android/server/HeadsetObserver.java
4141d035c7d41f39f023d7a051568dff87c7cd32 22-Jan-2010 Dianne Hackborn <hackbod@google.com> Don't crash when there is no admin.
om/android/server/DevicePolicyManagerService.java
df83afaf299666e99c519aa86e7e082b7c116e95 20-Jan-2010 Dianne Hackborn <hackbod@google.com> More device policy manager / admin work.

Update API with some new features, re-arrange how you check for valid
passwords, and start hooking up the back-end implementation.
om/android/server/DevicePolicyManagerService.java
om/android/server/PowerManagerService.java
176a88ff14821b07f3c1e67f61ca786c997b9230 21-Jan-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master
1f2f23bd16ff798a08d73f4159ddcb621e70fc94 21-Jan-2010 Robert Greenwalt <robdroid@android.com> am 9fdf82e0: Merge "Try to switch to another default net on connection failure." into eclair

Merge commit '9fdf82e080ea20086378e751ace245a4a1b022dc' into eclair-plus-aosp

* commit '9fdf82e080ea20086378e751ace245a4a1b022dc':
Try to switch to another default net on connection failure.
80ffe5d2fe8288623844c8f6c7ba1305d074a852 21-Jan-2010 Mike Lockwood <lockwood@google.com> Merge "Implement Notification.DEFAULT_LIGHTS flag."
670f93283b5e2445c58998153de9c476acddc37b 20-Jan-2010 Mike Lockwood <lockwood@android.com> Implement Notification.DEFAULT_LIGHTS flag.

This flag was already in the public API but did not do anything until now.
We now use it so we can override the default notification LED color on a per device basis.

Change-Id: I0d6e239b7da2fdbeda9608d6d4de3e778aa88e2c
BUG: 2329568

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/LightsService.java
om/android/server/NotificationManagerService.java
da03c4e4b3d47e6917fdcddecf68f2f52564e3a0 21-Jan-2010 Robert Greenwalt <robdroid@android.com> Try to switch to another default net on connection failure.

This shouldn't be required, but there seems to be something odd going on
in wifi and it doesn't hurt to try other available options. Makes a
connection failure case work like a disconnected case.

bug: 2378462
om/android/server/ConnectivityService.java
db43099f9ec481afb4f24f1e08f1db720fbd3e3c 21-Jan-2010 San Mehat <san@google.com> Merge "INetworkManagementService: Add support for enumerating TTYs and attaching ppp servers to them"
8ab6135841ca0fede5b99fdd9ff166fbfe0176c0 21-Jan-2010 San Mehat <san@google.com> MountService: Codeshrink

Signed-off-by: San Mehat <san@google.com>
om/android/server/MountService.java
45891e8bfd77bbb55e2568933f490d6512add865 21-Jan-2010 San Mehat <san@google.com> Merge "NativeDaemonConnector: Add a convenience method for obtaining lists"
deba6935c6595c724416cde3368a92c32d8f8683 21-Jan-2010 San Mehat <san@google.com> NativeDaemonConnector: Add a convenience method for obtaining lists

Signed-off-by: San Mehat <san@google.com>
om/android/server/NativeDaemonConnector.java
72759df749bb8557269db86c2e3b2a8a0343cc26 19-Jan-2010 San Mehat <san@google.com> INetworkManagementService: Add support for enumerating TTYs and attaching ppp servers to them

Signed-off-by: San Mehat <san@google.com>

Updated: Refactor out duplicated code
om/android/server/NetworkManagementService.java
1206b9eb71e0fc0cfeb98677b92f16afb8179a31 21-Jan-2010 Jim Miller <jaggies@google.com> Merge "Fix 2385283: Add DevicePolicyManager calls to LockScreen."
31f90b62e8c83270094f5b0b4c75a0e06d72cd75 20-Jan-2010 Jim Miller <jaggies@google.com> Fix 2385283: Add DevicePolicyManager calls to LockScreen.
om/android/server/DockObserver.java
6b32c0a2ffd3fe8bf5c290eeecc78fb2e3521520 20-Jan-2010 Irfan Sheriff <isheriff@google.com> am 48ef378d: Merge "DO NOT MERGE Avoid wifi disable in a UNKNOWN state" into eclair

Merge commit '48ef378d01b3ace349cbb6ba564276b854d872c9' into eclair-plus-aosp

* commit '48ef378d01b3ace349cbb6ba564276b854d872c9':
DO NOT MERGE Avoid wifi disable in a UNKNOWN state
8c48b4a532b1011a2f76f3565335c77fc5b141b3 20-Jan-2010 Robert Greenwalt <robdroid@android.com> am 1a337547: Merge "Add bugreport info about network feature use. DO NOT MERGE" into eclair

Merge commit '1a337547d5377c57dbb10a24d4d73ad6bda829ea' into eclair-plus-aosp

* commit '1a337547d5377c57dbb10a24d4d73ad6bda829ea':
Add bugreport info about network feature use. DO NOT MERGE
48ef378d01b3ace349cbb6ba564276b854d872c9 20-Jan-2010 Irfan Sheriff <isheriff@google.com> Merge "DO NOT MERGE Avoid wifi disable in a UNKNOWN state" into eclair
73912ce083a35e0b4cbccd9a364791c3725d9e34 22-Dec-2009 Robert Greenwalt <robdroid@android.com> Add bugreport info about network feature use. DO NOT MERGE

Backported from master change Ib9285359.

We've had a couple bug reports showing the effects of a left-live feature request.
We need a bit more bugreport-time logging.

bug: 2323226
bug: 2377507
change-id: I296b2887101c260aea678bf6db91144535cbad7e
om/android/server/ConnectivityService.java
e0ee6efb1e5bc6cf219555e333635ce98531bc85 07-Jan-2010 Jacek Surazski <jaceks@google.com> Add systemApp field to ApplicationErrorReport
om/android/server/am/ActivityManagerService.java
d2c21c1518631edd798367cf20cbc5434321d266 20-Jan-2010 Robert Greenwalt <robdroid@android.com> am 8c166512: Merge "Cleanup of process-specific DNS." into eclair

Merge commit '8c166512a7e6ffaf87e41cd3a85d55993648fe9b' into eclair-plus-aosp

* commit '8c166512a7e6ffaf87e41cd3a85d55993648fe9b':
Cleanup of process-specific DNS.
0fe3f7cbbf769b80cd5ee549bbd0f7723f4d9312 08-Jan-2010 Irfan Sheriff <isheriff@google.com> DO NOT MERGE Avoid wifi disable in a UNKNOWN state

Multiple broadcast receiver unregister calls cause exception.

Bug: 2361335
om/android/server/WifiService.java
5f64128568d815f91dcd37db43d4e26a0566b41c 20-Jan-2010 Dianne Hackborn <hackbod@google.com> am b1c4a2a3: Fix issue #2364506: Phone locked up while listening to music and attempting to download an update

Merge commit 'b1c4a2a3b37fccf68e6a9563cccf1685df2bf3e7' into eclair-plus-aosp

* commit 'b1c4a2a3b37fccf68e6a9563cccf1685df2bf3e7':
Fix issue #2364506: Phone locked up while listening to music and attempting to download an update
15abc90147333fccf7c9576cbf90d40d73e5a20f 17-Dec-2009 Robert Greenwalt <robdroid@android.com> Cleanup of process-specific DNS.

Backport of MR2 change 421c72b6.

Removes entries sooner. A bug.
Doesn't add one for phone process at all. This was intended to be removed long ago.

bug: 2329900
bug: 2377507
om/android/server/ConnectivityService.java
77872f76a12c883c163a70a42e347f35c4e9a269 20-Jan-2010 Joe Onorato <joeo@google.com> Merge "Make the space between the time and the AM/PM smaller by putting preceding whitespace inside the span."
b1c4a2a3b37fccf68e6a9563cccf1685df2bf3e7 20-Jan-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2364506: Phone locked up while listening to music and attempting to download an update

Make sure calls into the notification manager are not done with the
activity manager lock held.

Change-Id: Ib53c3b9f46160d94ee1e7079b1a5123e0d1225d8
om/android/server/am/ActivityManagerService.java
om/android/server/am/ServiceRecord.java
b49d9af7e1205312cc25e23636ef3980bee4c1b0 19-Jan-2010 Suchi Amalapurapu <asuchitra@google.com> Merge "Mount/Unmount secure containers Persist flags in PackageSetting. Flags are relevant to ApplicationInfo.FLAG_SYSTEM, Application.FLAG_ON_SDCARD, ApplicationInfo.FLAG_FORWARD_LOCK. New pm command to simulate mount/unmount in Pm. This will be removed when MountService/vold event generation gets fixed. Calls from MountService into PackageManager when media gets mounted/unmounted. Scan the packages and grant permissions when the sdcard gets mounted. This api might change again."
fd3530f90562bb7e66edfee39d90fc8beda82f1d 18-Jan-2010 Suchi Amalapurapu <asuchitra@google.com> Mount/Unmount secure containers
Persist flags in PackageSetting. Flags are relevant to ApplicationInfo.FLAG_SYSTEM, Application.FLAG_ON_SDCARD, ApplicationInfo.FLAG_FORWARD_LOCK.
New pm command to simulate mount/unmount in Pm. This will be removed
when MountService/vold event generation gets fixed.
Calls from MountService into PackageManager when media gets mounted/unmounted.
Scan the packages and grant permissions when the sdcard gets mounted.
This api might change again.
om/android/server/MountService.java
om/android/server/PackageManagerService.java
f078d058ab6c496480a5d1c805cc4f56ba9f4b0c 19-Jan-2010 San Mehat <san@google.com> Merge "framework: Introduce INetworkManagementService for communicating with netd"
0dac8c0f7ec00d94b09f92823fa238142163aba8 19-Jan-2010 Mike Lockwood <lockwood@android.com> LocationManagerService: Fix bug removing proximity alerts.

Alerts were not being removed from the mProximitiesEntered array.

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/LocationManagerService.java
873f2145941cc28f6931dc18b5e9987bd22e2e19 14-Jan-2010 San Mehat <san@google.com> framework: Introduce INetworkManagementService for communicating with netd

This is the framework-exposed interface for the (future) management of
all Android network management functions. Initial support is for providing
tethering.

Updated: Integrate feedback from review; clean up naming

Updated: Switch from add/remove/list to get/set for DNS forwarders
- allows prioritization / ordering of DNS servers

Updated: Refactor NAT api

Updated: Refactor NAT api (last time sorry)

Signed-off-by: San Mehat <san@google.com>
om/android/server/NetworkManagementService.java
19563cc278446c2df7a2df6d5f7c89f43228c437 19-Jan-2010 Mike Lockwood <lockwood@android.com> LocationManagerService: Fix bug removing proximity alerts.

Alerts were not being removed from the mProximitiesEntered array.

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/LocationManagerService.java
2b7ff1c47147e31521a3ef9e7d02252111192cb3 18-Jan-2010 San Mehat <san@google.com> Merge "MountService: Add new 'unmountSecureContainer' API call"
9dba709d4439d8cdb464a3dcccbddffdbe4b10ff 18-Jan-2010 San Mehat <san@google.com> MountService: Add new 'unmountSecureContainer' API call

Signed-off-by: San Mehat <san@google.com>
om/android/server/MountService.java
63ce8e817c9b800b4f08b64c343e533783961b6e 18-Jan-2010 Joe Onorato <joeo@android.com> Make the space between the time and the AM/PM smaller by putting preceding whitespace inside the
span.

Also cache the SimpleDateFormat object because those are relatively expensive.
om/android/server/status/StatusBarPolicy.java
d68478467e3f837511196c80891d7245d0e163df 13-Jan-2010 Dianne Hackborn <hackbod@google.com> First pass at new device policy and administration APIs.

This adds new DevicAdmin, DevicePolicyManager, and DeviceAdminInfo classes.
See the java docs for each on documentation on them. Basically: a DeviceAdmin
is what you derive from to administer a device; DevicePolicyManager is what you
use to apply and check your policy requirements and perform other administration
tasks.
om/android/server/DevicePolicyManagerService.java
om/android/server/SystemServer.java
om/android/server/am/ActivityManagerService.java
5fbf4094f5857ab15801c65a260a5c4b6866d655 15-Jan-2010 San Mehat <san@google.com> MountService: Suppress media removed notification when enabling UMS

Signed-off-by: San Mehat <san@google.com>
om/android/server/MountService.java
462f0378280f2c9717ad3bcafd8b9d1827b840b6 15-Jan-2010 Oscar Montemayor <oam@google.com> Apps on SD card.
Added support for retrieving and generating keys as Hex Strings.
Using keys to mount encrypted FS.
om/android/server/PackageManagerService.java
d02546b4151214abb2db1c88bf7debfc70bd2421 15-Jan-2010 Oscar Montemayor <oam@google.com> Apps on SD card.
Added support for retrieving and generating keys as Hex Strings.
Using keys to mount encrypted FS.
om/android/server/PackageManagerService.java
7c44220d0b57bd3bbb87f5db00454f9ea9faed9a 15-Jan-2010 Eric Fischer <enf@google.com> Merge "Make the "AM" or "PM" in the status bar clock be in a smaller font size."
40bbaaac5f0b93de8d8b8164ac8b59583bc0113a 15-Jan-2010 Robert Greenwalt <robdroid@android.com> resolved conflicts for merge of 90528645 to master
0894498712de1f15b6491fa5fe111b2da7fb7038 15-Jan-2010 Robert Greenwalt <robdroid@android.com> Merge "Set net.hostname sys property to our unique ID."
48c0273eb978d44ee093f514545d4332f034e473 15-Jan-2010 Andrew Stadler <stadler@android.com> Fix to set package path properly after 'adb sync'

This is a followup to daec1722fae57a042c176664ec1e89c95095e926
om/android/server/PackageManagerService.java
daec1722fae57a042c176664ec1e89c95095e926 15-Jan-2010 Suchi Amalapurapu <asuchitra@google.com> Avoid renaming apk paths when scanning directories on reboot
om/android/server/PackageManagerService.java
de8383ca312c03fa8e935ac1549ae31ce668652c 15-Jan-2010 Robert Greenwalt <robdroid@android.com> Set net.hostname sys property to our unique ID.

Give us a default name networking wise so that wifi (at least) can use it.

Bug:2327089
om/android/server/ConnectivityService.java
110fea7ebd6c5e0162c3af353d36a1b0383199f4 15-Jan-2010 Suchi Amalapurapu <asuchitra@google.com> Fix runtime restart when replacing packages
om/android/server/PackageManagerService.java
36e136c2c86f39f03cdd4275f07deb30dc2c95aa 15-Jan-2010 Eric Fischer <enf@google.com> Make the "AM" or "PM" in the status bar clock be in a smaller font size.

Bug 1146468
om/android/server/status/StatusBarPolicy.java
af8e9f4805643f90a9dc0ecfa119e0a860c12f8a 12-Jan-2010 Suchi Amalapurapu <asuchitra@google.com> app install on sdcard. provide skeleton implementation
to install an app on sdcard, just resources.
Add new install path for /asec in installd.
ignore . when checking for apk path since the sdcard packages id'ed
by package name.
Add new -s option to adb shell pm
Refactor fwd locked from scanMode to ApplicationInfo.
Add new flag for sd install
Add new parse flags for fwd locking and installing on sdcard
New mock api's in PackageManagerService to invoke MountService api's. These
will be refactored again and so have been wrapped internally.
Some error codes in PackageManager
Changes in PackageManagerService to use mPath and mScanPath during installation
and switch to using PackageParser.Package.applicationInfo attributes for
source and public resource directories.
Some known issues that will be addressed later
using system_uid for now. needs some tinkering with uid and packagesetting creation to use the actual app uid
error handling from vold not very robust. ignoring lot of things for now
sending a delayed destroy to delete packages. will revisit later
revisit temp file creation later. just copy for now
om/android/server/PackageManagerService.java
90528645ad7d40634737075dc49a9f60bc7a1748 14-Jan-2010 Robert Greenwalt <robdroid@android.com> am 1193ae4e: Backport l53e91db7 from master.

Merge commit '1193ae4e824c66b75083c444ce0f250594e138ee' into eclair-plus-aosp

* commit '1193ae4e824c66b75083c444ce0f250594e138ee':
Backport l53e91db7 from master.
1193ae4e824c66b75083c444ce0f250594e138ee 13-Jan-2010 Robert Greenwalt <robdroid@android.com> Backport l53e91db7 from master.

Prevents sending out ConnectivityManager broadcasts when the connection
is repeating the same major state. This means continued wifi scanning
does not generate CM broadcasts (though wifi state broadcasts continue).

bug: 2265222
Dr No approval: jsh
om/android/server/ConnectivityService.java
cd7703712eafb68b735233146b5e13c8c8e17609 08-Jan-2010 Irfan Sheriff <isheriff@google.com> Avoid wifi disable in a UNKNOWN state

Multiple broadcast receiver unregister calls cause exception.

Bug: 2361335
om/android/server/WifiService.java
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>
om/android/server/MountListener.java
om/android/server/MountService.java
67bd2cd75f0615c1a08a221f2114d2acda90d1ce 12-Jan-2010 San Mehat <san@google.com> services: Introduce NativeDaemonConnector class

This class provides an interface to communicate with native daemons using the
libsysutils framework communication code.

Signed-off-by: San Mehat <san@google.com>

NativeDaemonConnector: fix whitespace

Signed-off-by: San Mehat <san@google.com>

NativeDaemonConnector: Fix review comments

Signed-off-by: San Mehat <san@google.com>

NativeDaemonConnector: On an error, re-try the connection

Signed-off-by: San Mehat <san@google.com>
om/android/server/INativeDaemonConnectorCallbacks.java
om/android/server/NativeDaemonConnector.java
fa101530bc74bdf1517a1840a9415249211b9414 12-Jan-2010 Jean-Baptiste Queru <jbq@google.com> resolved conflicts for merge of d26707da to master

Change-Id: I1a379194f70c4b14191333ca2d8e6dd9d8b0f9dd
d26707da8965bffb63c55d729f19ddfcb83044b3 12-Jan-2010 San Mehat <san@google.com> am c93c70c4: Merge "framework: storage: Ensure that filesystems are unmounted before shutdown/reboot" into eclair

Merge commit 'c93c70c4b849d31ff1b5e5cf2fb9462fd60e5da0' into eclair-plus-aosp

* commit 'c93c70c4b849d31ff1b5e5cf2fb9462fd60e5da0':
framework: storage: Ensure that filesystems are unmounted before shutdown/reboot
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>
om/android/server/MountService.java
f523609e8db372add763424c73f77d926865bb50 12-Jan-2010 Joe Onorato <joeo@android.com> stop crashing. I'm not sure what triggered this.
om/android/server/status/StatusBarService.java
42471dd5552a346dd82a58a663159875ccc4fb79 08-Jan-2010 Dan Egnor <egnor@google.com> Simplify & update ANR logging; report ANR data into the dropbox.
Eliminate the per-process 200ms timeout during ANR thread-dumping.
Dump all the threads at once, then wait for the file to stabilize.
Seems to work great and is much, much, much faster.

Don't dump stack traces to traces.txt on app crashes (it isn't very
useful and mostly just clutters up the file).

Tweak the formatting of the dropbox dumpsys a bit, for readability,
and avoid running out of memory when dumping large log files.

Report build & kernel version with kernel log dropbox entries.
om/android/server/BootReceiver.java
om/android/server/DropBoxManagerService.java
om/android/server/SystemServer.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/AppNotRespondingDialog.java
om/android/server/am/AppWaitingForDebuggerDialog.java
0f5525ad3b9b341a6c288ded8a8a08572fc657c6 11-Jan-2010 San Mehat <san@google.com> framework: asec: Rename 'Cache' -> 'Container'

Signed-off-by: San Mehat <san@google.com>
om/android/server/MountService.java
f96135857f2f3de12576174712d6bea8b363277d 10-Jan-2010 San Mehat <san@google.com> MountService: Clean up some logspam

Signed-off-by: San Mehat <san@google.com>
om/android/server/MountListener.java
om/android/server/MountService.java
980a938c1c9a6a5791a8240e5a1e6638ab28dc77 09-Jan-2010 Romain Guy <romainguy@android.com> Deprecate fill_parent and introduce match_parent.
Bug: #2361749.
om/android/server/WindowManagerService.java
om/android/server/status/StatusBarIcon.java
om/android/server/status/StatusBarService.java
1f6301e1ff1a8ba04bc2b9c55fe6ceb883ce43bf 08-Jan-2010 San Mehat <san@google.com> MountService: Add new Settings for UMS prompting and notification behavior

Signed-off-by: San Mehat <san@google.com>
om/android/server/MountService.java
51d3e798985944a3be1aafb1e01216a6627625e0 08-Jan-2010 San Mehat <san@google.com> Merge "MountService: Fix asec list bug"
cffea95e1ef203223b87ae8a6bde415b25c5c415 08-Jan-2010 Daniel Sandler <dsandler@android.com> am 3fb4ee4e: Merge "Immediately close the shade when the status bar is disabled. (DO NOT MERGE)" into eclair

Merge commit '3fb4ee4e03351078ceadf3d8dd05789ae152e8dd' into eclair-plus-aosp

* commit '3fb4ee4e03351078ceadf3d8dd05789ae152e8dd':
Immediately close the shade when the status bar is disabled. (DO NOT MERGE)
6c133a78950e458df5ae1291e3a8d18dca2664db 08-Jan-2010 San Mehat <san@google.com> MountService: Fix asec list bug

Signed-off-by: San Mehat <san@google.com>
om/android/server/MountListener.java
7aac5547daf54005243c5d685cf60c5a4ff74a44 23-Dec-2009 Irfan Sheriff <isheriff@google.com> Synchronize all WifiNative calls

Some of the native calls were left unsynchronized in the framework. Pre-empted IOCTL call
interrupted by another call from the framework cannot be handled in the driver.

Bug: 2310455
om/android/server/WifiService.java
43866e0c48bb0effe8805afd62b253e50ca7d591 07-Jan-2010 Doug Zongker <dougz@android.com> move some system services from gservices to secure settings

Change-Id: Ie2dfb99a2b42b2cc9310b858c044d8684e3493fa
om/android/server/BatteryService.java
om/android/server/DeviceStorageMonitorService.java
om/android/server/DropBoxManagerService.java
om/android/server/PowerManagerService.java
om/android/server/WifiService.java
om/android/server/am/ActivityManagerService.java
dde25397985d82352965c54d68c0ee181b2c3cc8 07-Jan-2010 San Mehat <san@google.com> MountService: Remove ACTION_SHUTDOWN handler

Shutdown handlers run too early for unmounting, so don't handle it.
Shutdown will be called explicitly from the ShutdownThread

Signed-off-by: San Mehat <san@google.com>
om/android/server/MountService.java
1b780a01904234ef08a2061adaa70d02bdbf6345 07-Jan-2010 San Mehat <san@google.com> Merge "PowerManagerService: Switch to using MountService shutdown for media"
9e6f148347523824a382675412de9ac3329a927f 07-Jan-2010 San Mehat <san@google.com> Merge "MountService: Add an ACTION_SHUTDOWN handler and export a method for external shutdown"
1e512790bfe13bdf4d174892c8b699b93f7f2203 07-Jan-2010 San Mehat <san@google.com> PowerManagerService: Switch to using MountService shutdown for media

Signed-off-by: San Mehat <san@google.com>
om/android/server/PowerManagerService.java
91c7761139c0931da0fcbc89bce38cee4b9cc535 07-Jan-2010 San Mehat <san@google.com> MountService: Add an ACTION_SHUTDOWN handler and export a method for external shutdown

Signed-off-by: San Mehat <san@google.com>
om/android/server/MountService.java
914d6597d2ec36b10b33d28b1a26cc2df1760368 07-Jan-2010 Doug Zongker <dougz@android.com> Merge "move Watchdog's settings from Gservices to Secure"
1a8eec69e164cbac2bbe97828e2839e8c2a62bd8 07-Jan-2010 San Mehat <san@google.com> MountListener: Improve error logging

Signed-off-by: San Mehat <san@google.com>
om/android/server/MountListener.java
f68888951ae6056f5a15a7e2a84045c067bc6ba2 07-Jan-2010 Doug Zongker <dougz@android.com> move Watchdog's settings from Gservices to Secure

Change-Id: Iac1146dafa12f9247874514c9aeefa5f8f83933d
om/android/server/Watchdog.java
14e69afdfcefe21c81679a95c476e64ebb276fbe 06-Jan-2010 San Mehat <san@google.com> PowerManagerService: When rebooting, ensure external storage is unmounted

Signed-off-by: San Mehat <san@google.com>
om/android/server/PowerManagerService.java
3697229cc7adfd89493e87ba8b6401c8b68bdd71 06-Jan-2010 San Mehat <san@google.com> framework: MountService: Add initial support for Android Secure External Caches

Signed-off-by: San Mehat <san@google.com>
om/android/server/MountListener.java
om/android/server/MountService.java
5ef58f6d0f4dff7dae2f1cbf21d01b1b486f5ddd 06-Jan-2010 Mike Lockwood <lockwood@google.com> Merge "Cleanup and add public wrapper for IGeocodeProvider interface to prepare for network location unbundling."
34901409a404c8c66914c5a8ad0f29b1bcde0e78 04-Jan-2010 Mike Lockwood <lockwood@android.com> Cleanup and add public wrapper for IGeocodeProvider interface to prepare for network location unbundling.

Change-Id: I6523d115b56dbf450121e73d48e151f200827eb4
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/LocationManagerService.java
1af33d0ddc2f50ade146e4d48e2feb6f1d553427 05-Jan-2010 Doug Zongker <dougz@android.com> add recovery system interface to API

Adds android.os.RecoverySystem (marked as pending) to replace the
(hidden) com.android.internal.os.RecoverySystem. RecoverySystem
contains methods for:

- verifying the signature of an update package
- rebooting to install a package
- rebooting to wipe user data

(The reboot functions require "android.permission.REBOOT" and
"android.permission.ACCESS_CACHE_FILESYSTEM".) Providing these
simplifies implementation of OTA update for device builders.

Change-Id: I63ce743b156e7a1a0327fd395b0e4a82c0eda79a
om/android/server/BootReceiver.java
om/android/server/FallbackCheckinService.java
03abb8179f0d912e6dabfc0e2b0f129d85066d17 05-Jan-2010 Dianne Hackborn <hackbod@google.com> Kill the task killers.

The ActivityManager.restartPackage() API is now deprecated, and no longer
allows applications to mess up the state of other applications. This was
being abused by task killers, causing users to think their other applications
had bugs.

A new API is introduced for task killers,
ActivityManager.killBackgroundProcesses(), which allows these applications
to kill processes but only the same amount that the out of memory
killer does, thus causing no permanent damage. The old restartPackage()
API is now a wrapper for calling this new API.

There is also a new private forceStopPackage() API that is used for the
system's force stop UI which does what the old restartPackage() API did.
om/android/server/am/ActivityManagerService.java
7fd0fee968f4a3e474e1ea9933fc03552fe5f50a 17-Dec-2009 San Mehat <san@google.com> services: MountService: Refactor MountService for vold2

Squash of the following:
services: MountService: Rework the way volume states are handled
MountService: Add new API for directly getting volume state via a mount point
Environment: Switch from using system property for external storage state.
MountService: Add support for UMS
MountService: Fix a few bugs
services: MountService: Add support for mount-on-insertion
services: MountService: Add some debugging around UMS
services: MountService: Fix some UMS bugs and clean-up startup mount code

Signed-off-by: San Mehat <san@google.com>
om/android/server/MountListener.java
om/android/server/MountService.java
8eb3ea659761edc2cd5db3acf448059f19389e5e 29-Dec-2009 Brad Larson <brad.larson@garmin.com> Use isLocationProviderEnabled to test for enabled providers

LocationManagerService was just checking if the string of (comma-separated)
Location Providers contained the provider we were interested in. This works
fine in normal cases, but breaks if we add a provider such as test_network.
Enabling test_network causes LocationManagerService to think that the network
provider is also enabled.

The code in Settings.Secure.isLocationProviderEnabled() checks for the commas
in the string as well, to make sure that a provider name which is a substring
of another provider name won't cause problems. It also centralizes the code
which reads the string.

Signed-off-by: Brad Larson <brad.larson@garmin.com>
om/android/server/LocationManagerService.java
5808317af880d0042dc8de451bbdaf039665433b 23-Dec-2009 Daniel Sandler <dsandler@google.com> Immediately close the shade when the status bar is disabled. (DO NOT MERGE)

This provides a quick fix for http://b/2298803 (if the
in-call UI comes up while the user is holding the
windowshade, the shade sticks in place and the display
becomes unresponsive).

Merged from master (I92a824fe).

TODO: safely restore code to animate the shade closed rather
than simply causing it to disappear.

Change-Id: I53dc76fdfe86636f30f37a223a88d27a5766d3eb
om/android/server/status/StatusBarService.java
76032b7f167879782fd635f6b30cc15dd5b20ea0 27-Dec-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I92a824fe

* changes:
Immediately close the shade when the status bar is disabled.
af5e9de9fd4a2473b2b56a012bd383e8d361bd63 23-Dec-2009 Daniel Sandler <dsandler@google.com> Immediately close the shade when the status bar is disabled.

This provides a quick fix for http://b/2298803 (if the
in-call UI comes up while the user is holding the
windowshade, the shade sticks in place and the display
becomes unresponsive).

(NB: The shade disappears immediately when the status bar is
disabled. It might be better for the shade to animate
closed; indeed, this seems to be what the code was trying to
do, but an unfortunate interaction of the animation and
touch-handling code is what caused this bug in the first
place.)

Change-Id: I92a824fe385c8d6e51993be1657b492e580f1e7b
om/android/server/status/StatusBarService.java
dfa47b56e1c10c001adcb9dd6c32613b4ce50ff7 23-Dec-2009 Christopher Tate <ctate@google.com> Don't crash the system process when a backup transport unregisters

Bug: 2342503
om/android/server/BackupManagerService.java
233d316553837ef81fdf152432281d878dc8f773 22-Dec-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change Ib9285359

* changes:
Add bugreport info about network feature use.
f0108cda21bec61418b24aa6217406072780b5d5 22-Dec-2009 Tom Taylor <tomtaylor@google.com> resolved conflicts for merge of ad2fa35d to master

Change-Id: Ia4362cd48ac0689b91003943a4cd9660da72ff90
c59411b17670ae9b5a6eb33e0fd62ca0e80d1578 22-Dec-2009 Dianne Hackborn <hackbod@google.com> Rework activity manager debug dumps.

Change how we do debug dumps from the activity manager to make
everything go through the activity manager interface (no more
secondary interfaces), and use the command line arguments to
control what gets dumped.

The output from dumpsys without args still dumps everything.

When just dumping the activity service, we now dump a subset
of all of the am state that is interesting without being
overwhelming.

You can use "dumpsys activity -h" to get help with other things
that can be dumped.
om/android/server/am/ActivityManagerService.java
b928535902b204ac3ec25f161352786842248767 22-Dec-2009 Robert Greenwalt <robdroid@android.com> Add bugreport info about network feature use.

We've had a couple bug reports showing the effects of a left-live feature request.
We need a bit more bugreport-time logging.

bug: 2323226
om/android/server/ConnectivityService.java
6cf67faf3b77c3a442d41b46081ca1fdf2ca853c 22-Dec-2009 Dianne Hackborn <hackbod@google.com> Fix issue #2329765: Activities are not being immediately stopped.

This was caused by the launchers new hidden surface on top. The
algorithm for determining whether an activity was visible assumed
that all windows would want to be visible. Now it ignores ones that
have explicitly requested to be hidden.
om/android/server/WindowManagerService.java
33b13e34e3cd3920ea33d4060cb7d3adc35196a9 22-Dec-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change Ide2606dc

* changes:
Don't perform app transition of the app is not currently visible.
60d8762413e8daba5f73559786312a9ec5e3b827 17-Dec-2009 Dan Egnor <egnor@google.com> DropBox logging of app & system server crashes.

The crashes are also reported to the event log (and of course the
main logcat, like they always have been). Ordinary Log.e(t,m,e) isn't dropboxed
but there's a new Log.wtf() which always is. (Still @pending in this change.)

Add a hook to IPowerManager to crash the system server on demand
(only for apps with REBOOT permission, since it's basically a restart).
This is not exposed in PowerManager, must be invoked directly -- mostly
this is there so "Bad Behavior" in dev tools can do it.
om/android/server/PowerManagerService.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/EventLogTags.logtags
ad2fa35d888e0763bfef0fc060775bec5d169479 22-Dec-2009 Tom Taylor <tomtaylor@google.com> am d4a4729c: Update imports to android-common

Merge commit 'd4a4729c0cac582a2dcec7c8cfb316b81885a0f0' into eclair-mr2-plus-aosp

* commit 'd4a4729c0cac582a2dcec7c8cfb316b81885a0f0':
Update imports to android-common
de2606dcd36e9dfa49c42dbc68c539505d5ff8d4 19-Dec-2009 Dianne Hackborn <hackbod@google.com> Don't perform app transition of the app is not currently visible.

Yet more special casing for the window manager... try really hard,
if we are performing an activity transition that is behind an
opaque window (like say the lock screen or status bar) to just not
do it. And, just as important, do a reasonable transition away from
whatever is on top.

Examples:

- If the lock screen is up, and you get a call or press the
emergency dialer button, we fade from the lock screen to the
new UI, instead of fading to the animation going on between
the old and new.

- If you are in something hiding the lock screen, like the
in-call screen, and that is hidden, then fade back to the
lock screen.

- If you select an item from the status bar, then have the
new item displayed behind it as the status bar rolls up
rather than seeing a second animation. (In fact this can't
always be done because we may not start the transition to
the new thing until the status bar is already going away.
But for most cases we can do this with just one anim.)
om/android/server/WindowManagerService.java
d4a4729c0cac582a2dcec7c8cfb316b81885a0f0 21-Dec-2009 Tom Taylor <tomtaylor@google.com> Update imports to android-common

Several files were moved to android-common. Update all the references
to import those files from the new location.
om/android/server/AppWidgetService.java
om/android/server/KeyInputQueue.java
om/android/server/PackageManagerService.java
om/android/server/WallpaperManagerService.java
c4c450c379268bdcf8cf0f52c38a763cde836997 19-Dec-2009 Dianne Hackborn <hackbod@google.com> am 47c38f00: am 558947c9: Issue #2335763: Cant dial emergency number on my device

Merge commit '47c38f00ab464a8fdb6ae2d819ae189c17b72410'

* commit '47c38f00ab464a8fdb6ae2d819ae189c17b72410':
Issue #2335763: Cant dial emergency number on my device
47c38f00ab464a8fdb6ae2d819ae189c17b72410 19-Dec-2009 Dianne Hackborn <hackbod@google.com> am 558947c9: Issue #2335763: Cant dial emergency number on my device

Merge commit '558947c9899627067d632e8a6365f77a35f433e1' into eclair-plus-aosp

* commit '558947c9899627067d632e8a6365f77a35f433e1':
Issue #2335763: Cant dial emergency number on my device
558947c9899627067d632e8a6365f77a35f433e1 19-Dec-2009 Dianne Hackborn <hackbod@google.com> Issue #2335763: Cant dial emergency number on my device

This may fix the issue, but we have no repro steps so no way to
make sure.

What appeared to be going on was that the emergency dialer was
created, but still had the starting preview window above it. We
were stuck in this state because the preview window didn't have
the "hide lock screen" flag set, so the lock screen would never
be removed, and thus we would never take care of finishing the
show of the emergency dialer (because it was not visible) and
thus not remove the starting window.

The solution here is to simply propagate the lock flags up to the
starting window.

Change-Id: I6da9f6494537f0661d9d230664ebf745c293ea7d
om/android/server/WindowManagerService.java
41c561781323c697e42eef5c08310dbd8c1bf63a 18-Dec-2009 Robert Greenwalt <robdroid@android.com> am 24317443: am 421c72b6: Cleanup of process-specific DNS.

Merge commit '24317443fde973c762afbea1a3f6f2c830dfe3dd'

* commit '24317443fde973c762afbea1a3f6f2c830dfe3dd':
Cleanup of process-specific DNS.
24317443fde973c762afbea1a3f6f2c830dfe3dd 18-Dec-2009 Robert Greenwalt <robdroid@android.com> am 421c72b6: Cleanup of process-specific DNS.

Merge commit '421c72b6773582dd1473ace44c42d4e0ee1287e3' into eclair-mr2-plus-aosp

* commit '421c72b6773582dd1473ace44c42d4e0ee1287e3':
Cleanup of process-specific DNS.
421c72b6773582dd1473ace44c42d4e0ee1287e3 17-Dec-2009 Robert Greenwalt <robdroid@android.com> Cleanup of process-specific DNS.

Removes entries sooner. A bug.
Doesn't add one for phone process at all. This was intended to be removed long ago.

bug: 2329900
om/android/server/ConnectivityService.java
dd71fc8baeee0d09008d0fa67d6bf3d23cf21baa 17-Dec-2009 Dianne Hackborn <hackbod@google.com> Rework the LRU list for hidden and empty processes.

This is intended to solve a problem on devices with more memory
where we can fill up that memory with processes that contain activities
(hidden processes), leaving no room for empty processes. Thus if a
process is receiving broadcasts regularly, or starting and stopping
a service, or such, we will continually create its process only to
have it immediately killed when done.

There is certainly some tuning that should be done on this as we
look at the actually behavior. The implementation here puts all of
the hidden and empty processes into one list, trying to make some
preferences for the very most recently used activity's processes to
stay at the top and not get pushed out by other processes being
started in the background.
om/android/server/am/ActivityManagerService.java
om/android/server/am/ProcessRecord.java
e3ab4d0f181e875c534653dd9491d956cb3bbcd9 16-Dec-2009 Christopher Tate <ctate@google.com> Restore live wallpapers if specified in the restore data
om/android/server/WallpaperManagerService.java
089e36f96eda087306e90df58048e803232e8a77 15-Dec-2009 Romain Guy <romainguy@android.com> Bump ViewServer version number from 2 to 3
om/android/server/ViewServer.java
236092a36216c79507ec19eb207831810caced19 15-Dec-2009 Romain Guy <romainguy@android.com> Fixes crash in HierarchyViewer when windows hash code exceed int capacity.
Bug: 2321018
om/android/server/WindowManagerService.java
74a76d5e071ba11eb92c92933fa5de338010374d 15-Dec-2009 Dianne Hackborn <hackbod@google.com> am 83652ebf: am 3a3fd2ba: Merge change Iaf1f0918 into eclair-mr2

Merge commit '83652ebfe1963bcecdcf24383165904223baca6e'

* commit '83652ebfe1963bcecdcf24383165904223baca6e':
Implement API to have new broadcasts replace existing broadcasts.
83652ebfe1963bcecdcf24383165904223baca6e 15-Dec-2009 Dianne Hackborn <hackbod@google.com> am 3a3fd2ba: Merge change Iaf1f0918 into eclair-mr2

Merge commit '3a3fd2ba1ffc6171725375396cc59711a34bb39e' into eclair-mr2-plus-aosp

* commit '3a3fd2ba1ffc6171725375396cc59711a34bb39e':
Implement API to have new broadcasts replace existing broadcasts.
64c6902c1b24d2d0ccc48067247da53beeb5a0f5 15-Dec-2009 Eric Laurent <elaurent@google.com> am 2cb1fe2f: am 59e03a0a: am da4cc343: Fix issue 2324029: In-call (and other) audio screwed up after using Pandora (ERD72).

Merge commit '2cb1fe2f407d438544efd497e2cfbda1f6d58d75'

* commit '2cb1fe2f407d438544efd497e2cfbda1f6d58d75':
Fix issue 2324029: In-call (and other) audio screwed up after using Pandora (ERD72).
2cb1fe2f407d438544efd497e2cfbda1f6d58d75 15-Dec-2009 Eric Laurent <elaurent@google.com> am 59e03a0a: am da4cc343: Fix issue 2324029: In-call (and other) audio screwed up after using Pandora (ERD72).

Merge commit '59e03a0a4d62f214cf5cfab49f16223f89670f2a' into eclair-mr2-plus-aosp

* commit '59e03a0a4d62f214cf5cfab49f16223f89670f2a':
Fix issue 2324029: In-call (and other) audio screwed up after using Pandora (ERD72).
1c633fc89bae9bf0af6fe643ac7ad2e744f27bed 09-Dec-2009 Dianne Hackborn <hackbod@google.com> Implement API to have new broadcasts replace existing broadcasts.

Use this in various places where it should serve no purpose to deliver
both broadcasts. This is intended to reduce somewhat the flurry of
broadcasts that we churn through during boot.
om/android/server/AlarmManagerService.java
om/android/server/BatteryService.java
om/android/server/ConnectivityService.java
om/android/server/DockObserver.java
om/android/server/InputMethodManagerService.java
om/android/server/TelephonyRegistry.java
om/android/server/am/ActivityManagerService.java
2685607d59f6e84f7add148054d66ceda87cb9bc 14-Dec-2009 Eric Laurent <elaurent@google.com> am da4cc343: Fix issue 2324029: In-call (and other) audio screwed up after using Pandora (ERD72).

Merge commit 'da4cc34308d65730c404b669926a92e37b378555' into eclair-plus-aosp

* commit 'da4cc34308d65730c404b669926a92e37b378555':
Fix issue 2324029: In-call (and other) audio screwed up after using Pandora (ERD72).
59e03a0a4d62f214cf5cfab49f16223f89670f2a 14-Dec-2009 Eric Laurent <elaurent@google.com> am da4cc343: Fix issue 2324029: In-call (and other) audio screwed up after using Pandora (ERD72).

Merge commit 'da4cc34308d65730c404b669926a92e37b378555' into eclair-mr2

* commit 'da4cc34308d65730c404b669926a92e37b378555':
Fix issue 2324029: In-call (and other) audio screwed up after using Pandora (ERD72).
da4cc34308d65730c404b669926a92e37b378555 14-Dec-2009 Eric Laurent <elaurent@google.com> Fix issue 2324029: In-call (and other) audio screwed up after using Pandora (ERD72).

The problem is due to spurious headset connection indications received from event observer when a 3.5mm headset w/o mic is connected.
In this particular case, The HeadsetObserver first received a valid indication of headset with mic connection, followed by a headset with mic disconnection and finally a headset w/o mic connection.
The HeadsetObserver delays the headset disconnection intent to leave time to music app to pause music before the output path is switched.
As the last headset w/o mic connection indication is received from the event observer before the intent corresponding to the spurious headset with mic disconnection is broadcast, the later is discarded. Results a state where the headset with mic is always considered as connected.

The fix consists in not canceling pending intents when a new headset state is received and carrying the HeadsetObserver state with the delayed message triggering the broacast of the disconnection intent.
om/android/server/HeadsetObserver.java
b672b6b991001adb0c61d79c10cc2f907d5c7501 13-Dec-2009 Dianne Hackborn <hackbod@google.com> am 6a6f43f5: am 8091424e: am 9b52a218: Fix #2269582 Sometimes camera preview screen is truncated

Merge commit '6a6f43f577c6cb22202ee86fb3c6d1601f36c3b5'

* commit '6a6f43f577c6cb22202ee86fb3c6d1601f36c3b5':
Fix #2269582 Sometimes camera preview screen is truncated
bd2e6de7e34f4d4d3d31c924b1218ec007c1ea88 13-Dec-2009 Dianne Hackborn <hackbod@google.com> am c1e6b91d: am c9ca93fb: am 474731d5: Merge change I2ffe306f into eclair

Merge commit 'c1e6b91d75ce1dd5e8cc23aaf49c84d32f1bf673'

* commit 'c1e6b91d75ce1dd5e8cc23aaf49c84d32f1bf673':
Fix issue #2304284: contacts/dialer/recentcalls constantly flashing
6a6f43f577c6cb22202ee86fb3c6d1601f36c3b5 13-Dec-2009 Dianne Hackborn <hackbod@google.com> am 8091424e: am 9b52a218: Fix #2269582 Sometimes camera preview screen is truncated

Merge commit '8091424ea332f754e6f1c712a9e28bfa7d02741e' into eclair-mr2-plus-aosp

* commit '8091424ea332f754e6f1c712a9e28bfa7d02741e':
Fix #2269582 Sometimes camera preview screen is truncated
c1e6b91d75ce1dd5e8cc23aaf49c84d32f1bf673 13-Dec-2009 Dianne Hackborn <hackbod@google.com> am c9ca93fb: am 474731d5: Merge change I2ffe306f into eclair

Merge commit 'c9ca93fbf9ff49ca4b74c4ec72d3f7580b3b7659' into eclair-mr2-plus-aosp

* commit 'c9ca93fbf9ff49ca4b74c4ec72d3f7580b3b7659':
Fix issue #2304284: contacts/dialer/recentcalls constantly flashing
8091424ea332f754e6f1c712a9e28bfa7d02741e 13-Dec-2009 Dianne Hackborn <hackbod@google.com> am 9b52a218: Fix #2269582 Sometimes camera preview screen is truncated

Merge commit '9b52a2184e99565bcd7f77effb321c95a2a4837e' into eclair-mr2

* commit '9b52a2184e99565bcd7f77effb321c95a2a4837e':
Fix #2269582 Sometimes camera preview screen is truncated
c9ca93fbf9ff49ca4b74c4ec72d3f7580b3b7659 13-Dec-2009 Dianne Hackborn <hackbod@google.com> am 474731d5: Merge change I2ffe306f into eclair

Merge commit '474731d5efb30c1e9184f998610054747eb8e764' into eclair-mr2

* commit '474731d5efb30c1e9184f998610054747eb8e764':
Fix issue #2304284: contacts/dialer/recentcalls constantly flashing
7a7c95ea25e178e26d507f0d9643d60a1ffc87c3 12-Dec-2009 Dianne Hackborn <hackbod@google.com> am 9b52a218: Fix #2269582 Sometimes camera preview screen is truncated

Merge commit '9b52a2184e99565bcd7f77effb321c95a2a4837e' into eclair-plus-aosp

* commit '9b52a2184e99565bcd7f77effb321c95a2a4837e':
Fix #2269582 Sometimes camera preview screen is truncated
9b52a2184e99565bcd7f77effb321c95a2a4837e 11-Dec-2009 Dianne Hackborn <hackbod@google.com> Fix #2269582 Sometimes camera preview screen is truncated

There were a few places in the window manager where we wouldn't cause
a layout after making a window visible. This would leave it using
whatever size and position it last have since we don't layout windows
when they are not visible.

Also includes a little part I missed in the security issue that
allowed wallpapers to see input on the lock screen.

Change-Id: Icd7e037ad9a67ac936bc7039d87ed68f49502d73
om/android/server/WindowManagerService.java
e9b86b542198d5499b2da7e9031c7200c25098c6 12-Dec-2009 Dianne Hackborn <hackbod@google.com> am 474731d5: Merge change I2ffe306f into eclair

Merge commit '474731d5efb30c1e9184f998610054747eb8e764' into eclair-plus-aosp

* commit '474731d5efb30c1e9184f998610054747eb8e764':
Fix issue #2304284: contacts/dialer/recentcalls constantly flashing
474731d5efb30c1e9184f998610054747eb8e764 12-Dec-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I2ffe306f into eclair

* changes:
Fix issue #2304284: contacts/dialer/recentcalls constantly flashing
871ecdce67fb59a2603c1b93db657fe8b65695bd 12-Dec-2009 Dianne Hackborn <hackbod@google.com> Fix issue #2304284: contacts/dialer/recentcalls constantly flashing

Make sure the application is always given the most recent configuration
when launcher. Use the current configuration, instead of whatever happens
to be set by the app, for reporting what it was launched with.

Change-Id: I2ffe306f56cc9092b640546dd0a28d2c29b9c0b3
om/android/server/am/ActivityManagerService.java
d021302134460efbb596f4a4a2951e75b83d0ede 11-Dec-2009 Dan Egnor <egnor@google.com> resolved conflicts for merge of f6bb01b0 to master
f6bb01b0d81943a00a42e56f2e65549ca03c386d 11-Dec-2009 Dan Egnor <egnor@google.com> am b7f0367c: Eliminate CrashData and friends.

Merge commit 'b7f0367cec1c744aa66ef397b0244e25d507491c' into eclair-mr2-plus-aosp

* commit 'b7f0367cec1c744aa66ef397b0244e25d507491c':
Eliminate CrashData and friends.
b7f0367cec1c744aa66ef397b0244e25d507491c 10-Dec-2009 Dan Egnor <egnor@google.com> Eliminate CrashData and friends.

(CrashData was a custom-marshalled crash-info class used for a server crash
reporting system I am deprecating). Use ApplicationErrorReport.CrashInfo
instead to report crash details (mostly the stack trace) from RuntimeInfo to
ActivityManagerService, since we're likely to need the crash information in
that form anyway.

Remove the (long-disabled) flags and support for the "Debug" button
in the crash dialog.

Further gut the ICheckinService interface by removing the crash-reporting
APIs (and everything that calls them), plus the synchronous checkin()
method (which has been stubbed out for a while now).

A new dropbox-based crash reporting system is in the works, but not part
of this change.
om/android/server/FallbackCheckinService.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/AppErrorDialog.java
om/android/server/am/AppNotRespondingDialog.java
om/android/server/am/BaseErrorDialog.java
07c71147dda8bda9a40bea10f6029d6cfcaae00f 11-Dec-2009 Christopher Tate <ctate@google.com> am 09f82ec6: am af1255da: resolved conflicts for merge of 2624fbca to eclair-mr2

Merge commit '09f82ec61cca00bd8b08529a94139dd6ac5cec73'

* commit '09f82ec61cca00bd8b08529a94139dd6ac5cec73':
Fix #2320798: Device hang then runtime restart
09f82ec61cca00bd8b08529a94139dd6ac5cec73 11-Dec-2009 Christopher Tate <ctate@google.com> am af1255da: resolved conflicts for merge of 2624fbca to eclair-mr2

Merge commit 'af1255dab8fa3eab1caf9bae799f80de14a74470' into eclair-mr2-plus-aosp

* commit 'af1255dab8fa3eab1caf9bae799f80de14a74470':
Fix #2320798: Device hang then runtime restart
af1255dab8fa3eab1caf9bae799f80de14a74470 11-Dec-2009 Christopher Tate <ctate@google.com> resolved conflicts for merge of 2624fbca to eclair-mr2
dfcabffa3012bdf70a31bd07140d553a29c1afde 11-Dec-2009 Christopher Tate <ctate@android.com> am 2624fbca: Fix #2320798: Device hang then runtime restart

Merge commit '2624fbcaaa74b3a6d8d60d22d9e16ef26a98a6b2' into eclair-plus-aosp

* commit '2624fbcaaa74b3a6d8d60d22d9e16ef26a98a6b2':
Fix #2320798: Device hang then runtime restart
2624fbcaaa74b3a6d8d60d22d9e16ef26a98a6b2 11-Dec-2009 Christopher Tate <ctate@android.com> Fix #2320798: Device hang then runtime restart

The system_server process is deadlocking between event dispatch and window
manager code. This change fixes the lock scoping to eliminate the deadlock.

Change-Id: I00f029e4d51d7432119ad3aeec260df215b52546
om/android/server/WindowManagerService.java
16d3fa24ab19701f486aa37eb8085680b1256ade 11-Dec-2009 Dianne Hackborn <hackbod@google.com> am 436b93b5: am 221fa910: am d3cfb1bd: Merge change Ia48b3f2a into eclair

Merge commit '436b93b5f577549801489bff228f1a5761f331ff'

* commit '436b93b5f577549801489bff228f1a5761f331ff':
Fix #2313887: Device doesn't boot after rebooting device...
436b93b5f577549801489bff228f1a5761f331ff 11-Dec-2009 Dianne Hackborn <hackbod@google.com> am 221fa910: am d3cfb1bd: Merge change Ia48b3f2a into eclair

Merge commit '221fa910301606f8374d97e538af11c3416a76a2' into eclair-mr2-plus-aosp

* commit '221fa910301606f8374d97e538af11c3416a76a2':
Fix #2313887: Device doesn't boot after rebooting device...
221fa910301606f8374d97e538af11c3416a76a2 11-Dec-2009 Dianne Hackborn <hackbod@google.com> am d3cfb1bd: Merge change Ia48b3f2a into eclair

Merge commit 'd3cfb1bd84affbf740256f5e9804c93ef7722b37' into eclair-mr2

* commit 'd3cfb1bd84affbf740256f5e9804c93ef7722b37':
Fix #2313887: Device doesn't boot after rebooting device...
d2169dde42284fa2e56b1b870d4ffcfe824f975d 10-Dec-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change If3bafe4f

* changes:
Encrypted File Systems. Recovery changes for framework. Modifications to allow for new call to recovery to toggle EFS settings.
b2b4a3cc7815b7132af8e48839b3779a38c6db6a 10-Dec-2009 Dianne Hackborn <hackbod@google.com> am 0f62abd9: am 4c8454d8: am e851cdc6: Merge change Ifd95b9f5 into eclair

Merge commit '0f62abd986e1900ab4260e559b2dc7d917b6470f'

* commit '0f62abd986e1900ab4260e559b2dc7d917b6470f':
Fix #2313382: SECURITY: Live wallpapers get touch events through the lock screen.
9b902a5266603ac969dfc64eee48c51706b54a83 10-Dec-2009 Dianne Hackborn <hackbod@google.com> am eb68a226: am af9788a9: Merge change Ia53c6725 into eclair-mr2

Merge commit 'eb68a226563f60265663f1688dda77c4f909e5de'

* commit 'eb68a226563f60265663f1688dda77c4f909e5de':
Add bindService API to not bring ot foreground.
630432e4249ca775e28eedeeb28d1f367ca45296 10-Dec-2009 Ken Shirriff <kens@google.com> am d44c2f2c: am 1270e2e2: Merge change I96ddd6e2 into eclair-mr2

Merge commit 'd44c2f2c85c8720763837b89a8988b6e5cc248bf'

* commit 'd44c2f2c85c8720763837b89a8988b6e5cc248bf':
Migration to TrafficStats.
314664d2479a55b182035f0585eadd40a0e6833d 10-Dec-2009 Dianne Hackborn <hackbod@google.com> am 68a3b8b6: am 24eca800: Merge change I887f355f into eclair-mr2

Merge commit '68a3b8b66044d0a9fa901ad306fc6db6d13f94d3'

* commit '68a3b8b66044d0a9fa901ad306fc6db6d13f94d3':
Propagate background scheduling class across processes.
bd5c9d23d30ea665093902118bb34cf4d11e4cc8 10-Dec-2009 Dianne Hackborn <hackbod@google.com> am d3cfb1bd: Merge change Ia48b3f2a into eclair

Merge commit 'd3cfb1bd84affbf740256f5e9804c93ef7722b37' into eclair-plus-aosp

* commit 'd3cfb1bd84affbf740256f5e9804c93ef7722b37':
Fix #2313887: Device doesn't boot after rebooting device...
f3bea9cb756203e027dcb6668cbaae3a92caa38f 10-Dec-2009 Dianne Hackborn <hackbod@google.com> Fix #2313887: Device doesn't boot after rebooting device...

...in setup wizard ->Wifi setup screen.

We were stopped waiting for the wallpaper to draw, which it would never do
because it had been obscured and thus hidden.

Change-Id: Ia48b3f2a46ca970f143cbaee99f5f2a054378986
om/android/server/WindowManagerService.java
0f62abd986e1900ab4260e559b2dc7d917b6470f 10-Dec-2009 Dianne Hackborn <hackbod@google.com> am 4c8454d8: am e851cdc6: Merge change Ifd95b9f5 into eclair

Merge commit '4c8454d8699cbedf473565bb92a80defaf95af09' into eclair-mr2-plus-aosp

* commit '4c8454d8699cbedf473565bb92a80defaf95af09':
Fix #2313382: SECURITY: Live wallpapers get touch events through the lock screen.
eb68a226563f60265663f1688dda77c4f909e5de 10-Dec-2009 Dianne Hackborn <hackbod@google.com> am af9788a9: Merge change Ia53c6725 into eclair-mr2

Merge commit 'af9788a9d6c238dd97f40dc020e036739daf0811' into eclair-mr2-plus-aosp

* commit 'af9788a9d6c238dd97f40dc020e036739daf0811':
Add bindService API to not bring ot foreground.
d44c2f2c85c8720763837b89a8988b6e5cc248bf 10-Dec-2009 Ken Shirriff <kens@google.com> am 1270e2e2: Merge change I96ddd6e2 into eclair-mr2

Merge commit '1270e2e22b0b3f0705cee2b82788d8dc3fb03cdb' into eclair-mr2-plus-aosp

* commit '1270e2e22b0b3f0705cee2b82788d8dc3fb03cdb':
Migration to TrafficStats.
68a3b8b66044d0a9fa901ad306fc6db6d13f94d3 10-Dec-2009 Dianne Hackborn <hackbod@google.com> am 24eca800: Merge change I887f355f into eclair-mr2

Merge commit '24eca800d4b34e7d13fbcbc1ab74c9d91ff6a4e1' into eclair-mr2-plus-aosp

* commit '24eca800d4b34e7d13fbcbc1ab74c9d91ff6a4e1':
Propagate background scheduling class across processes.
362da10cfeb5987cafff4b02c0dece5471d1f2da 09-Dec-2009 Dianne Hackborn <hackbod@google.com> am e851cdc6: Merge change Ifd95b9f5 into eclair

Merge commit 'e851cdc6c48c977d05096847001a0601d892fd55' into eclair-plus-aosp

* commit 'e851cdc6c48c977d05096847001a0601d892fd55':
Fix #2313382: SECURITY: Live wallpapers get touch events through the lock screen.
4c8454d8699cbedf473565bb92a80defaf95af09 09-Dec-2009 Dianne Hackborn <hackbod@google.com> am e851cdc6: Merge change Ifd95b9f5 into eclair

Merge commit 'e851cdc6c48c977d05096847001a0601d892fd55' into eclair-mr2

* commit 'e851cdc6c48c977d05096847001a0601d892fd55':
Fix #2313382: SECURITY: Live wallpapers get touch events through the lock screen.
09c916bccbf236ccd0a2c80941e28cc55006e02a 08-Dec-2009 Dianne Hackborn <hackbod@google.com> Add bindService API to not bring ot foreground.

Add a new flag for bindService that tells the system to not bring the
target service's process in to the foreground scheduling class. This is
used by the sync system to not cause the current sync adapter to come to
the foreground as it is running.

Also some small improvements to the debug output of the process list
of oom adj and scheduling info.
om/android/server/am/ActivityManagerService.java
00c1fc97c17950335c65c93d010c6107a129607f 09-Dec-2009 Dianne Hackborn <hackbod@google.com> Fix #2313382: SECURITY: Live wallpapers get touch events through the lock screen.

This is a quick and dirty hack to not deliver touch events to the wallpaper when
they are being sent to the keyguard. Perhaps we should have a separate window
flag for this, but... bleah. Maybe later. Or maybe I'll use that secure flag.
Or something.

Change-Id: Ifd95b9f5b10db24a0854a93b925a833b24331b4c
om/android/server/WindowManagerService.java
7b94457311d7af16ac554085f074a373f0027f64 08-Dec-2009 Jaikumar Ganesh <jaikumar@google.com> am 1fbc280d: am 47cc8112: am 9d3cb9bf: Merge change I204e4787 into eclair

Merge commit '1fbc280dac0ce5089ff1491612944344af8d72b4'

* commit '1fbc280dac0ce5089ff1491612944344af8d72b4':
Fix updating Bluetooth icon on status bar and for Wifi.
a1b04c01ca130201060cd78b47efcc2c1aa6f5c6 08-Dec-2009 Robert Greenwalt <robdroid@android.com> resolved conflicts for merge of 47a2573e to master
1270e2e22b0b3f0705cee2b82788d8dc3fb03cdb 08-Dec-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I96ddd6e2 into eclair-mr2

* changes:
Migration to TrafficStats.
1719a39a4c0ff3afbf9c9e5f03f20ba50f490902 08-Dec-2009 Ken Shirriff <kens@google.com> Migration to TrafficStats.

TrafficStats is the SDK version of NetStat.
om/android/server/NetStatService.java
887f355f99ff83d568ef2885a4fdcaae475583df 08-Dec-2009 Dianne Hackborn <hackbod@google.com> Propagate background scheduling class across processes.

This is a very simply implementation: upon receiving an IPC, if the handling
thread is at a background priority (the driver will have taken care of
propagating this from the calling thread), then stick it in to the background
scheduling group. Plus an API to turn this off for the process, which is
used by the system process.

This also pulls some of the code for managing scheduling classes out of
the Process JNI wrappers and in to some convenience methods in thread.h.
om/android/server/SystemServer.java
1fbc280dac0ce5089ff1491612944344af8d72b4 08-Dec-2009 Jaikumar Ganesh <jaikumar@google.com> am 47cc8112: am 9d3cb9bf: Merge change I204e4787 into eclair

Merge commit '47cc8112c3f77637ef408ef18e48d146e8250a27' into eclair-mr2-plus-aosp

* commit '47cc8112c3f77637ef408ef18e48d146e8250a27':
Fix updating Bluetooth icon on status bar and for Wifi.
47cc8112c3f77637ef408ef18e48d146e8250a27 08-Dec-2009 Jaikumar Ganesh <jaikumar@google.com> am 9d3cb9bf: Merge change I204e4787 into eclair

Merge commit '9d3cb9bfc6d7a5f340d2dd8132b201b933687564' into eclair-mr2

* commit '9d3cb9bfc6d7a5f340d2dd8132b201b933687564':
Fix updating Bluetooth icon on status bar and for Wifi.
c7a34f44308936599fb6edeb765283191b2537a2 08-Dec-2009 Robert Greenwalt <robdroid@android.com> am 9ae9763b: Merge change Ib097fbbf into eclair

Merge commit '9ae9763b7e5dd872619b13c889b72b0df176f956' into eclair-plus-aosp

* commit '9ae9763b7e5dd872619b13c889b72b0df176f956':
DO NOT MERGE Reverting change I53e91db7.
8646076fb4b1a565ed782cb97a9aa9064e29a54e 08-Dec-2009 Jaikumar Ganesh <jaikumar@google.com> am 9d3cb9bf: Merge change I204e4787 into eclair

Merge commit '9d3cb9bfc6d7a5f340d2dd8132b201b933687564' into eclair-plus-aosp

* commit '9d3cb9bfc6d7a5f340d2dd8132b201b933687564':
Fix updating Bluetooth icon on status bar and for Wifi.
9ae9763b7e5dd872619b13c889b72b0df176f956 08-Dec-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change Ib097fbbf into eclair

* changes:
DO NOT MERGE Reverting change I53e91db7.
9d3cb9bfc6d7a5f340d2dd8132b201b933687564 08-Dec-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I204e4787 into eclair

* changes:
Fix updating Bluetooth icon on status bar and for Wifi.
b097fbbff339adc2d38fe670c689f3dad69c2549 08-Dec-2009 Robert Greenwalt <robdroid@android.com> DO NOT MERGE Reverting change I53e91db7.

Accidentally submitted into eclair instead of eclair-mr2.
I apparently rebased my mr2 working dir to eclair by mistake.

Do not merge this so the desired change will survive on mr2 as intended.

bug: 2265222
om/android/server/ConnectivityService.java
084c665421502b13271e94bd0a342b0ddbbaa7ca 07-Dec-2009 Jaikumar Ganesh <jaikumar@google.com> Fix updating Bluetooth icon on status bar and for Wifi.

Status bar uses the SINK_STATE_CHANGE intent to determine the icon.
This intent also has the device. Thus, we can get this intent for any
device and we update the icon wrongly. The same problem is with Wifi.

This was not commonly observed till now, but with the car dock changes
its easy to reproduce as we can get an incoming connection from the
car's bluetooth system. For Wifi, this will cause coexistance issues
especially with desk docks.

Dr No: Eastham
Bug: 2133530
om/android/server/WifiService.java
om/android/server/status/StatusBarPolicy.java
47a2573e5463a1bac0f856a52ad7a8bce15a631e 08-Dec-2009 Robert Greenwalt <robdroid@android.com> am 096871e7: am 90d1b745: Merge change I53e91db7 into eclair

Merge commit '096871e7e1a1f8cdfbaa1acc4bc485b69ddf22a4' into eclair-mr2-plus-aosp

* commit '096871e7e1a1f8cdfbaa1acc4bc485b69ddf22a4':
Filter out minor Connectivity Notifications.
096871e7e1a1f8cdfbaa1acc4bc485b69ddf22a4 08-Dec-2009 Robert Greenwalt <robdroid@android.com> am 90d1b745: Merge change I53e91db7 into eclair

Merge commit '90d1b745ec4a7ccd15cdcc185420bf2000b4f7a3' into eclair-mr2

* commit '90d1b745ec4a7ccd15cdcc185420bf2000b4f7a3':
Filter out minor Connectivity Notifications.
22de2aecab812c7e009b1f0e5f8ee09d97fd7474 08-Dec-2009 Robert Greenwalt <robdroid@android.com> am 90d1b745: Merge change I53e91db7 into eclair

Merge commit '90d1b745ec4a7ccd15cdcc185420bf2000b4f7a3' into eclair-plus-aosp

* commit '90d1b745ec4a7ccd15cdcc185420bf2000b4f7a3':
Filter out minor Connectivity Notifications.
97d7f79aef97c83f486d790c733a0b8364531374 07-Dec-2009 Doug Zongker <dougz@android.com> am 0f91f870: am f6683bb5: Merge change I5f1d2d24 into eclair-mr2

Merge commit '0f91f87002a9cdf0216aa9ae60001b1d4ff6ea61'

* commit '0f91f87002a9cdf0216aa9ae60001b1d4ff6ea61':
move event log tags used by ActivityManager into this package
d8ec3d87db188633ab5287306345c6037fe2e862 07-Dec-2009 Suchi Amalapurapu <asuchitra@google.com> am 32c66ee4: am ccbf4c28: am ae952b3b: Merge change Ibe1c422a into eclair

Merge commit '32c66ee4976857c0db80ebfcfe42d7627dc9d2a2'

* commit '32c66ee4976857c0db80ebfcfe42d7627dc9d2a2':
If the usage stats file doesn't exist in the first place there is no need to
511288a04639859a6d9bbfedfa2f2b4d7d2c3e88 07-Dec-2009 Robert Greenwalt <robdroid@android.com> Filter out minor Connectivity Notifications.

Don't send a connectivity change notification if the change is in detailed state only.
IE, Disconnect/Idle -> Disconnect/Scanning should not trigger a connection change
notification.

bug: 2265222
om/android/server/ConnectivityService.java
18803d37e2ce47407b7ac52513e3254207e8b287 07-Dec-2009 Doug Zongker <dougz@android.com> resolved conflicts for merge of 5a2fdbba to master
0f91f87002a9cdf0216aa9ae60001b1d4ff6ea61 05-Dec-2009 Doug Zongker <dougz@android.com> am f6683bb5: Merge change I5f1d2d24 into eclair-mr2

Merge commit 'f6683bb5592825a62e30760abb0734deaaf7bd93' into eclair-mr2-plus-aosp

* commit 'f6683bb5592825a62e30760abb0734deaaf7bd93':
move event log tags used by ActivityManager into this package
f6683bb5592825a62e30760abb0734deaaf7bd93 05-Dec-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I5f1d2d24 into eclair-mr2

* changes:
move event log tags used by ActivityManager into this package
2bec3d44982ae42e132a7547c35d8ba8b7c95f6d 04-Dec-2009 Doug Zongker <dougz@android.com> move event log tags used by ActivityManager into this package

We can now locate event log tag definitions in individual packages
(and java constants for the tag numbers get auto-generated), so move
all the tags used by the system server into the package.
ndroid.mk
om/android/server/am/ActivityManagerService.java
om/android/server/am/EventLogTags.logtags
om/android/server/am/HistoryRecord.java
32c66ee4976857c0db80ebfcfe42d7627dc9d2a2 05-Dec-2009 Suchi Amalapurapu <asuchitra@google.com> am ccbf4c28: am ae952b3b: Merge change Ibe1c422a into eclair

Merge commit 'ccbf4c282f6d27602896b812485b41b74eaf8c6d' into eclair-mr2-plus-aosp

* commit 'ccbf4c282f6d27602896b812485b41b74eaf8c6d':
If the usage stats file doesn't exist in the first place there is no need to
3f075ad943df8d5a378afb9460c24489bf5226f7 05-Dec-2009 Suchi Amalapurapu <asuchitra@google.com> am ae952b3b: Merge change Ibe1c422a into eclair

Merge commit 'ae952b3bcc3eb744cceb5cd0ae65b2c7a83f9de7' into eclair-plus-aosp

* commit 'ae952b3bcc3eb744cceb5cd0ae65b2c7a83f9de7':
If the usage stats file doesn't exist in the first place there is no need to
ccbf4c282f6d27602896b812485b41b74eaf8c6d 05-Dec-2009 Suchi Amalapurapu <asuchitra@google.com> am ae952b3b: Merge change Ibe1c422a into eclair

Merge commit 'ae952b3bcc3eb744cceb5cd0ae65b2c7a83f9de7' into eclair-mr2

* commit 'ae952b3bcc3eb744cceb5cd0ae65b2c7a83f9de7':
If the usage stats file doesn't exist in the first place there is no need to
be1c422a73cf70e1478a13463de5ab929991c619 04-Dec-2009 Suchi Amalapurapu <asuchitra@google.com> If the usage stats file doesn't exist in the first place there is no need to
backup and short return.
om/android/server/am/UsageStatsService.java
5a2fdbba3d7c19a03380f37338b84cbe2d47f055 04-Dec-2009 Doug Zongker <dougz@android.com> am 48476b0a: Merge change Iab5c49c7 into eclair-mr2

Merge commit '48476b0ade7594a64612db2b867792737193b2ec' into eclair-mr2-plus-aosp

* commit '48476b0ade7594a64612db2b867792737193b2ec':
move event log tags used by system server into this package
3baf1bf734b6212908486d84b356ed1bc7cd838b 30-Nov-2009 Oscar Montemayor <oam@google.com> Encrypted File Systems. Recovery changes for framework.
Modifications to allow for new call to recovery to toggle EFS settings.
om/android/server/FallbackCheckinService.java
ab5c49c7e7f5f61040650109a76f38a443fb852d 04-Dec-2009 Doug Zongker <dougz@android.com> move event log tags used by system server into this package

We can now locate event log tag definitions in individual packages
(and java constants for the tag numbers get auto-generated), so move
all the tags used by the system server into the package.
ndroid.mk
om/android/server/BackupManagerService.java
om/android/server/BatteryService.java
om/android/server/ConnectivityService.java
om/android/server/DeviceStorageMonitorService.java
om/android/server/EventLogTags.logtags
om/android/server/InputMethodManagerService.java
om/android/server/NotificationManagerService.java
om/android/server/PackageManagerService.java
om/android/server/PowerManagerService.java
om/android/server/SystemServer.java
om/android/server/Watchdog.java
om/android/server/WindowManagerService.java
ab4a32d8d8858aae4a3409d937341ecda1d13b13 04-Dec-2009 Jaikumar Ganesh <jaikumar@google.com> am 0b18c94f: am 11a2853e: am 8c411fb1: Merge change I79420b02 into eclair

Merge commit '0b18c94f765d8e98be3da037ce9757f099b541b2'

* commit '0b18c94f765d8e98be3da037ce9757f099b541b2':
Add support for Car Dock.
626c77e0219741ec3f65f85e904a6de18d24360e 04-Dec-2009 Mike Lockwood <lockwood@android.com> am 20e7c267: am 44000eb2: am 678c2e35: Merge change I9ef88863 into eclair

Merge commit '20e7c267c8f8d2de8f121bbf20f5d34487f17997'

* commit '20e7c267c8f8d2de8f121bbf20f5d34487f17997':
Add WindowManagerPolicy.OFF_BECAUSE_OF_PROX_SENSOR to indicate screen was turned off by the proximity sensor.
0b18c94f765d8e98be3da037ce9757f099b541b2 04-Dec-2009 Jaikumar Ganesh <jaikumar@google.com> am 11a2853e: am 8c411fb1: Merge change I79420b02 into eclair

Merge commit '11a2853e0196905e25a2dc5c227320688e04e950' into eclair-mr2-plus-aosp

* commit '11a2853e0196905e25a2dc5c227320688e04e950':
Add support for Car Dock.
20e7c267c8f8d2de8f121bbf20f5d34487f17997 04-Dec-2009 Mike Lockwood <lockwood@android.com> am 44000eb2: am 678c2e35: Merge change I9ef88863 into eclair

Merge commit '44000eb2a2340b1a47eaa587d4829810e04cbcdc' into eclair-mr2-plus-aosp

* commit '44000eb2a2340b1a47eaa587d4829810e04cbcdc':
Add WindowManagerPolicy.OFF_BECAUSE_OF_PROX_SENSOR to indicate screen was turned off by the proximity sensor.
11a2853e0196905e25a2dc5c227320688e04e950 03-Dec-2009 Jaikumar Ganesh <jaikumar@google.com> am 8c411fb1: Merge change I79420b02 into eclair

Merge commit '8c411fb13923d1fa28fcd98452bf3d17b8b1a338' into eclair-mr2

* commit '8c411fb13923d1fa28fcd98452bf3d17b8b1a338':
Add support for Car Dock.
2e1ff896cc024a558b5b38a694b341af3301c8c3 03-Dec-2009 Jaikumar Ganesh <jaikumar@google.com> am 8c411fb1: Merge change I79420b02 into eclair

Merge commit '8c411fb13923d1fa28fcd98452bf3d17b8b1a338' into eclair-plus-aosp

* commit '8c411fb13923d1fa28fcd98452bf3d17b8b1a338':
Add support for Car Dock.
8c411fb13923d1fa28fcd98452bf3d17b8b1a338 03-Dec-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I79420b02 into eclair

* changes:
Add support for Car Dock.
3fbf7b62bb48b10316353087d09cc3720af00642 03-Dec-2009 Jaikumar Ganesh <jaikumar@google.com> Add support for Car Dock.

Dr No: Eastham
Bug: 2133530
om/android/server/DockObserver.java
44000eb2a2340b1a47eaa587d4829810e04cbcdc 03-Dec-2009 Mike Lockwood <lockwood@android.com> am 678c2e35: Merge change I9ef88863 into eclair

Merge commit '678c2e35768a5426b4ad8f67c836008e7751a353' into eclair-mr2

* commit '678c2e35768a5426b4ad8f67c836008e7751a353':
Add WindowManagerPolicy.OFF_BECAUSE_OF_PROX_SENSOR to indicate screen was turned off by the proximity sensor.
0d26301ba48ea9aaeb68d6dfff0e6005b748788a 03-Dec-2009 Mike Lockwood <lockwood@android.com> am 678c2e35: Merge change I9ef88863 into eclair

Merge commit '678c2e35768a5426b4ad8f67c836008e7751a353' into eclair-plus-aosp

* commit '678c2e35768a5426b4ad8f67c836008e7751a353':
Add WindowManagerPolicy.OFF_BECAUSE_OF_PROX_SENSOR to indicate screen was turned off by the proximity sensor.
06253f58fbba65eb1c8eb0e67cc8f2228462c137 03-Dec-2009 Joe Onorato <joeo@android.com> am a6c4556d: am a8974b63: am 19a4157c: Make the notification panel send the position as well.

Merge commit 'a6c4556dea7d498783aff8a38e0e50c2b172beda'

* commit 'a6c4556dea7d498783aff8a38e0e50c2b172beda':
Make the notification panel send the position as well.
435eb6464c1f326caf8179438a5401f358f0d7ac 03-Dec-2009 Mike Lockwood <lockwood@android.com> Add WindowManagerPolicy.OFF_BECAUSE_OF_PROX_SENSOR to indicate screen was turned off by the proximity sensor.

Part of a fix for bug b/2300622 (Proximity sensor always blows up the lock screen while in call)

Change-Id: I9ef888638b19540a78a34507d52ff522f505102f
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/PowerManagerService.java
a6c4556dea7d498783aff8a38e0e50c2b172beda 03-Dec-2009 Joe Onorato <joeo@android.com> am a8974b63: am 19a4157c: Make the notification panel send the position as well.

Merge commit 'a8974b637c384d10bac10d94fae7487afdb2c16d' into eclair-mr2-plus-aosp

* commit 'a8974b637c384d10bac10d94fae7487afdb2c16d':
Make the notification panel send the position as well.
4ceb0f3855a6cd2b43f5dad0fd37eba77340e3a3 03-Dec-2009 Joe Onorato <joeo@android.com> am 19a4157c: Make the notification panel send the position as well.

Merge commit '19a4157ce40f4ab77b60445b8e73069c5877bb8a' into eclair-plus-aosp

* commit '19a4157ce40f4ab77b60445b8e73069c5877bb8a':
Make the notification panel send the position as well.
a8974b637c384d10bac10d94fae7487afdb2c16d 03-Dec-2009 Joe Onorato <joeo@android.com> am 19a4157c: Make the notification panel send the position as well.

Merge commit '19a4157ce40f4ab77b60445b8e73069c5877bb8a' into eclair-mr2

* commit '19a4157ce40f4ab77b60445b8e73069c5877bb8a':
Make the notification panel send the position as well.
19a4157ce40f4ab77b60445b8e73069c5877bb8a 03-Dec-2009 Joe Onorato <joeo@android.com> Make the notification panel send the position as well.
om/android/server/status/StatusBarService.java
f623fbc45d5c25c0863314a5766624bd35914e7a 03-Dec-2009 Dianne Hackborn <hackbod@google.com> am 1dde14bc: am a45e9251: am dcd58cfd: Merge change I7b9328c7 into eclair

Merge commit '1dde14bc84e39b81df7108a2d64a7918a97b20df'

* commit '1dde14bc84e39b81df7108a2d64a7918a97b20df':
Fix issue #2300232: Bugs in resolving conflicting pointers
af942bf8b35253e5f989c4cbd2ff7de108a55e13 03-Dec-2009 Mike Lockwood <lockwood@android.com> am cd753d16: am f72fb68b: resolved conflicts for merge of 9b7dba93 to eclair-mr2

Merge commit 'cd753d168f9d62b6e852c5ab0f61436619085e6f'

* commit 'cd753d168f9d62b6e852c5ab0f61436619085e6f':
Implement new notification LED blinking logic:
8a1b6decfbee41bd513540d86423258743cf8d00 03-Dec-2009 Dianne Hackborn <hackbod@google.com> am e2585127: am 9ed7dc10: am 5886050f: Merge change I0d8f7593 into eclair

Merge commit 'e2585127974ce972a013407e2af95d8776a99a8e'

* commit 'e2585127974ce972a013407e2af95d8776a99a8e':
Fix issue #2296457: PackageManager.addPackageToPreferred needs to a no-op
1dde14bc84e39b81df7108a2d64a7918a97b20df 03-Dec-2009 Dianne Hackborn <hackbod@google.com> am a45e9251: am dcd58cfd: Merge change I7b9328c7 into eclair

Merge commit 'a45e925108f6c9d35d9e7b5e8def9aba49ee0dba' into eclair-mr2-plus-aosp

* commit 'a45e925108f6c9d35d9e7b5e8def9aba49ee0dba':
Fix issue #2300232: Bugs in resolving conflicting pointers
fa99f378f7962f546c598c7d679147bd339211f7 03-Dec-2009 Dianne Hackborn <hackbod@google.com> am dcd58cfd: Merge change I7b9328c7 into eclair

Merge commit 'dcd58cfda366c915b1f0739cb115f9d972351c73' into eclair-plus-aosp

* commit 'dcd58cfda366c915b1f0739cb115f9d972351c73':
Fix issue #2300232: Bugs in resolving conflicting pointers
a45e925108f6c9d35d9e7b5e8def9aba49ee0dba 03-Dec-2009 Dianne Hackborn <hackbod@google.com> am dcd58cfd: Merge change I7b9328c7 into eclair

Merge commit 'dcd58cfda366c915b1f0739cb115f9d972351c73' into eclair-mr2

* commit 'dcd58cfda366c915b1f0739cb115f9d972351c73':
Fix issue #2300232: Bugs in resolving conflicting pointers
709d6db48d11974a6a05df424221748b4dfafb59 03-Dec-2009 Dianne Hackborn <hackbod@google.com> Fix issue #2300232: Bugs in resolving conflicting pointers

Change-Id: I7b9328c7a1c4f6b731e64cdca2ed9de71b84587f
om/android/server/InputDevice.java
cd753d168f9d62b6e852c5ab0f61436619085e6f 03-Dec-2009 Mike Lockwood <lockwood@android.com> am f72fb68b: resolved conflicts for merge of 9b7dba93 to eclair-mr2

Merge commit 'f72fb68bf32014b075fe577c8495c2c8a86476a9' into eclair-mr2-plus-aosp

* commit 'f72fb68bf32014b075fe577c8495c2c8a86476a9':
Implement new notification LED blinking logic:
f72fb68bf32014b075fe577c8495c2c8a86476a9 03-Dec-2009 Mike Lockwood <lockwood@android.com> resolved conflicts for merge of 9b7dba93 to eclair-mr2

Change-Id: I9a5412b8812aebc934540b1f6f9a9f9c96d89f59
fbe460e88841a45c005a2dd359e5f3ba2700f6eb 03-Dec-2009 Mike Lockwood <lockwood@android.com> am 9b7dba93: Merge change Icc49422a into eclair

Merge commit '9b7dba936c24fa7959561ddf1a0c8ba4d2165782' into eclair-plus-aosp

* commit '9b7dba936c24fa7959561ddf1a0c8ba4d2165782':
Implement new notification LED blinking logic:
c22404a4e7ff9385c47a32b3aed83e9153478f0b 02-Dec-2009 Mike Lockwood <lockwood@android.com> Implement new notification LED blinking logic:

1) Do not pulse notification LED when screen is on.
2) Pulse once on new notification if Settings.System.NOTIFICATION_LIGHT_PULSE is false,
otherwise pulse persistently while screen is off.

Fixes part of bug b/2238250 (trackball should pulse occasionally to indicate new email)

Change-Id: Icc49422a4e9d14412fc159a8e2596503a85bac51
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/NotificationManagerService.java
e2585127974ce972a013407e2af95d8776a99a8e 02-Dec-2009 Dianne Hackborn <hackbod@google.com> am 9ed7dc10: am 5886050f: Merge change I0d8f7593 into eclair

Merge commit '9ed7dc10d263a505da32522139098f085fee811a' into eclair-mr2-plus-aosp

* commit '9ed7dc10d263a505da32522139098f085fee811a':
Fix issue #2296457: PackageManager.addPackageToPreferred needs to a no-op
9ed7dc10d263a505da32522139098f085fee811a 02-Dec-2009 Dianne Hackborn <hackbod@google.com> am 5886050f: Merge change I0d8f7593 into eclair

Merge commit '5886050fad97923c33cbc831fe07a5b1746b2b58' into eclair-mr2

* commit '5886050fad97923c33cbc831fe07a5b1746b2b58':
Fix issue #2296457: PackageManager.addPackageToPreferred needs to a no-op
c8a6379bd4305eacc2b99982ad4aa9ff1574ef1b 02-Dec-2009 Mike Lockwood <lockwood@android.com> am 8fcb312f: am c1bb46e9: am abf7fed2: Merge change I2b7c8a32 into eclair

Merge commit '8fcb312f6ca409ca46812303a405e3403fe71e9a'

* commit '8fcb312f6ca409ca46812303a405e3403fe71e9a':
Fix more of bug 2290852: Don't wake screen when bluetooth headset is connected or disconnected.
ed2168524b37c4124fd084b0e92f51b681773a75 02-Dec-2009 Eric Laurent <elaurent@google.com> am e77d4083: am 5e392e2b: am bb3bb57a: Merge change I524dc046 into eclair

Merge commit 'e77d40834589ec70abcf71d93a82d24ca6e5535b'

* commit 'e77d40834589ec70abcf71d93a82d24ca6e5535b':
Fix issue 2192673: Music Pausing Even when notifications are set to silent.
8fcb312f6ca409ca46812303a405e3403fe71e9a 02-Dec-2009 Mike Lockwood <lockwood@android.com> am c1bb46e9: am abf7fed2: Merge change I2b7c8a32 into eclair

Merge commit 'c1bb46e9d58f05449d8420c81f5cae06e1084ac2' into eclair-mr2-plus-aosp

* commit 'c1bb46e9d58f05449d8420c81f5cae06e1084ac2':
Fix more of bug 2290852: Don't wake screen when bluetooth headset is connected or disconnected.
e77d40834589ec70abcf71d93a82d24ca6e5535b 02-Dec-2009 Eric Laurent <elaurent@google.com> am 5e392e2b: am bb3bb57a: Merge change I524dc046 into eclair

Merge commit '5e392e2b028fb0f92b2efe6de24b60a57cd4c565' into eclair-mr2-plus-aosp

* commit '5e392e2b028fb0f92b2efe6de24b60a57cd4c565':
Fix issue 2192673: Music Pausing Even when notifications are set to silent.
c1bb46e9d58f05449d8420c81f5cae06e1084ac2 02-Dec-2009 Mike Lockwood <lockwood@android.com> am abf7fed2: Merge change I2b7c8a32 into eclair

Merge commit 'abf7fed21bfa7eb899be558477d928a7c9f3e1f6' into eclair-mr2

* commit 'abf7fed21bfa7eb899be558477d928a7c9f3e1f6':
Fix more of bug 2290852: Don't wake screen when bluetooth headset is connected or disconnected.
0b63b9fb5666347f610e02f2ef5516f27907a3a7 02-Dec-2009 Dianne Hackborn <hackbod@google.com> am 5886050f: Merge change I0d8f7593 into eclair

Merge commit '5886050fad97923c33cbc831fe07a5b1746b2b58' into eclair-plus-aosp

* commit '5886050fad97923c33cbc831fe07a5b1746b2b58':
Fix issue #2296457: PackageManager.addPackageToPreferred needs to a no-op
5e392e2b028fb0f92b2efe6de24b60a57cd4c565 02-Dec-2009 Eric Laurent <elaurent@google.com> am bb3bb57a: Merge change I524dc046 into eclair

Merge commit 'bb3bb57a6330f71323fcd7e93e88dbdab55daec3' into eclair-mr2

* commit 'bb3bb57a6330f71323fcd7e93e88dbdab55daec3':
Fix issue 2192673: Music Pausing Even when notifications are set to silent.
a7ca0e5e320bbb643f8bc9feb4717dbc5e78e0b9 01-Dec-2009 Dianne Hackborn <hackbod@google.com> Fix issue #2296457: PackageManager.addPackageToPreferred needs to a no-op

Change-Id: I0d8f75938226e1bb49cf7b1154445631b0bb0bc9
om/android/server/PackageManagerService.java
4cbe8ef11e4e913180133822da7e9b3ccc369569 01-Dec-2009 Mike Lockwood <lockwood@android.com> am 15740edd: am b70da2bb: Merge change I1c281504 into eclair-mr2

Merge commit '15740edd2ac0026e97699028d07e6b0e773d3643'

* commit '15740edd2ac0026e97699028d07e6b0e773d3643':
Remove some unused window manager methods.
67045f1629e97f29bc58d0182d8e8bf3768583e5 01-Dec-2009 Mike Lockwood <lockwood@android.com> am 239775a2: am 3766ae55: Merge change I707f53cd into eclair-mr2

Merge commit '239775a2ce01f7faf938a5edafe9941922542150'

* commit '239775a2ce01f7faf938a5edafe9941922542150':
LightsService cleanup:
2746a1efb1740f6f2d1965320eb99f935f5fae2c 01-Dec-2009 Mike Lockwood <lockwood@android.com> am abf7fed2: Merge change I2b7c8a32 into eclair

Merge commit 'abf7fed21bfa7eb899be558477d928a7c9f3e1f6' into eclair-plus-aosp

* commit 'abf7fed21bfa7eb899be558477d928a7c9f3e1f6':
Fix more of bug 2290852: Don't wake screen when bluetooth headset is connected or disconnected.
abf7fed21bfa7eb899be558477d928a7c9f3e1f6 01-Dec-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I2b7c8a32 into eclair

* changes:
Fix more of bug 2290852: Don't wake screen when bluetooth headset is connected or disconnected.
5154ae7665743b114c71f90dcc577dc50c63b398 30-Oct-2009 Robert Greenwalt <robdroid@android.com> Cleanup ConnectivityServices network configuration

Don't instantiate objects not needed for the device.

bug: 2226064
om/android/server/ConnectivityService.java
5db424001254ba1b8b2d1e7f503b02ffca921037 30-Nov-2009 Mike Lockwood <lockwood@android.com> Fix more of bug 2290852: Don't wake screen when bluetooth headset is connected or disconnected.

This fixes another case where the screen would turn on when the keyguard is open but hidden by another activity.

Change-Id: I2b7c8a329036401709e96ded4f4c138041192a71
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/WindowManagerService.java
15740edd2ac0026e97699028d07e6b0e773d3643 30-Nov-2009 Mike Lockwood <lockwood@android.com> am b70da2bb: Merge change I1c281504 into eclair-mr2

Merge commit 'b70da2bbc594b093472d5333386d79f677fd9e01' into eclair-mr2-plus-aosp

* commit 'b70da2bbc594b093472d5333386d79f677fd9e01':
Remove some unused window manager methods.
239775a2ce01f7faf938a5edafe9941922542150 30-Nov-2009 Mike Lockwood <lockwood@android.com> am 3766ae55: Merge change I707f53cd into eclair-mr2

Merge commit '3766ae5551e6231c251b0af38206aea30a49df63' into eclair-mr2-plus-aosp

* commit '3766ae5551e6231c251b0af38206aea30a49df63':
LightsService cleanup:
55da000c1d2e0f50bf96953ea967d69b27d70ea3 30-Nov-2009 Eric Laurent <elaurent@google.com> am bb3bb57a: Merge change I524dc046 into eclair

Merge commit 'bb3bb57a6330f71323fcd7e93e88dbdab55daec3' into eclair-plus-aosp

* commit 'bb3bb57a6330f71323fcd7e93e88dbdab55daec3':
Fix issue 2192673: Music Pausing Even when notifications are set to silent.
db727a8a0384ba2ac4dcb4bf93e1dd54e3062b28 29-Nov-2009 Mike Lockwood <lockwood@android.com> Remove some unused window manager methods.

Change-Id: I1c28150416b92b96b9f434270652c4be2613434c
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/WindowManagerService.java
3cb67a37f185a7a5b12712907630acb68e0ac402 27-Nov-2009 Mike Lockwood <lockwood@android.com> LightsService cleanup:

Add Light subclass to replace LightsService light setting methods
Remove LightsService.setAttentionLight() and LightsService.pulseBreathingLight()
Add support for Wifi and Bluetooth lights

Change-Id: I707f53cda27481c25649f402567a665d52e9cb62
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/LightsService.java
om/android/server/NotificationManagerService.java
om/android/server/PowerManagerService.java
524dc046b1225087f481878a5c3ae7f733c9f0e2 27-Nov-2009 Eric Laurent <elaurent@google.com> Fix issue 2192673: Music Pausing Even when notifications are set to silent.

Do not play ringtones, notifications or camera sounds if ringer mode is silent.
om/android/server/NotificationManagerService.java
4b505ef4b18ce297c72c0cf37fef41221fbdcc91 25-Nov-2009 Dan Egnor <egnor@google.com> am 413eed9e: am ed8d33b7: Merge change I5ec249ab into eclair-mr2

Merge commit '413eed9eb4fa8e3b76be46be3eb6e92675d423d4'

* commit '413eed9eb4fa8e3b76be46be3eb6e92675d423d4':
More elimination of Formatter (I was tired of waiting several
413eed9eb4fa8e3b76be46be3eb6e92675d423d4 25-Nov-2009 Dan Egnor <egnor@google.com> am ed8d33b7: Merge change I5ec249ab into eclair-mr2

Merge commit 'ed8d33b7976c006b4bd28eb89cac36074e4eccf5' into eclair-mr2-plus-aosp

* commit 'ed8d33b7976c006b4bd28eb89cac36074e4eccf5':
More elimination of Formatter (I was tired of waiting several
ed8d33b7976c006b4bd28eb89cac36074e4eccf5 25-Nov-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I5ec249ab into eclair-mr2

* changes:
More elimination of Formatter (I was tired of waiting several seconds for "dumpsys dropbox"...).
5ec249abe376898d3249e978b44fd2ee0cc8c573 25-Nov-2009 Dan Egnor <egnor@google.com> More elimination of Formatter (I was tired of waiting several
seconds for "dumpsys dropbox"...).
om/android/server/DropBoxManagerService.java
f3ab5c6b32e682e94e6909ef427e1ac7381f0490 25-Nov-2009 Dan Egnor <egnor@google.com> am 86ef717e: am 99cee031: Merge change Ieb7a7d57 into eclair-mr2

Merge commit '86ef717e2660dbc914dcf68295fbf9943c45bc44'

* commit '86ef717e2660dbc914dcf68295fbf9943c45bc44':
Change the DropBoxManager API slightly (this is public, but not yet released) --
86ef717e2660dbc914dcf68295fbf9943c45bc44 25-Nov-2009 Dan Egnor <egnor@google.com> am 99cee031: Merge change Ieb7a7d57 into eclair-mr2

Merge commit '99cee0318bdceb6e996bbe9a3e0f961d622e0365' into eclair-mr2-plus-aosp

* commit '99cee0318bdceb6e996bbe9a3e0f961d622e0365':
Change the DropBoxManager API slightly (this is public, but not yet released) --
99cee0318bdceb6e996bbe9a3e0f961d622e0365 25-Nov-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change Ieb7a7d57 into eclair-mr2

* changes:
Change the DropBoxManager API slightly (this is public, but not yet released) -- take a File instead of a ParcelFileDescriptor (gets opened internally) -- that way the caller doesn't have to worry about closing their PFD and so on. (Pretty much 100% of the time the caller will be uploading a file, anyway.)
d107146ca174adc51721b2e654e9d29d7478234b 25-Nov-2009 Mike Lockwood <lockwood@android.com> am f6a1dab0: am f3e291a0: Merge change Id7b9903e into eclair-mr2

Merge commit 'f6a1dab030095ad1ed58d387ff21a112bca5b610'

* commit 'f6a1dab030095ad1ed58d387ff21a112bca5b610':
Add setAttentionLight() to IPowerManager for the Phone app.
f6a1dab030095ad1ed58d387ff21a112bca5b610 25-Nov-2009 Mike Lockwood <lockwood@android.com> am f3e291a0: Merge change Id7b9903e into eclair-mr2

Merge commit 'f3e291a05d1e30fe409b06ca43538ca22ee2e69b' into eclair-mr2-plus-aosp

* commit 'f3e291a05d1e30fe409b06ca43538ca22ee2e69b':
Add setAttentionLight() to IPowerManager for the Phone app.
eb7a7d57ca50f85b054edadab766b51ff22a2dfd 25-Nov-2009 Dan Egnor <egnor@google.com> Change the DropBoxManager API slightly (this is public, but not yet released) --
take a File instead of a ParcelFileDescriptor (gets opened internally) --
that way the caller doesn't have to worry about closing their PFD and so on.
(Pretty much 100% of the time the caller will be uploading a file, anyway.)
om/android/server/BootReceiver.java
f3e291a05d1e30fe409b06ca43538ca22ee2e69b 25-Nov-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change Id7b9903e into eclair-mr2

* changes:
Add setAttentionLight() to IPowerManager for the Phone app.
b11832de735e95aac1a1b9e900dbbd8285cee3ad 25-Nov-2009 Mike Lockwood <lockwood@android.com> Add setAttentionLight() to IPowerManager for the Phone app.

Change-Id: Id7b9903e1efaf56a2336519a8653962b6ae2c13d
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/PowerManagerService.java
2875f209cbe0f2347132eef1b7150bc0e2e20f31 25-Nov-2009 Doug Zongker <dougz@android.com> am 79347f94: am a85a0ac1: Merge change I4413e8bc into eclair-mr2

Merge commit '79347f94fa2b06425d1e6fdc766a2a22d88fb2c5'

* commit '79347f94fa2b06425d1e6fdc766a2a22d88fb2c5':
close file descriptors passed to drop box
726a570258828d85e401ab62fd4220812fe9344f 25-Nov-2009 Mike Lockwood <lockwood@android.com> resolved conflicts for merge of dfaf2e03 to master

Change-Id: I440d2042dd404a421789063e42102699fa33b7c0
79347f94fa2b06425d1e6fdc766a2a22d88fb2c5 25-Nov-2009 Doug Zongker <dougz@android.com> am a85a0ac1: Merge change I4413e8bc into eclair-mr2

Merge commit 'a85a0ac1072c7653fdafa791416658154b76ac0d' into eclair-mr2-plus-aosp

* commit 'a85a0ac1072c7653fdafa791416658154b76ac0d':
close file descriptors passed to drop box
dfaf2e03ad7c4d55ede1d2ef100ff4e21c04cd5c 25-Nov-2009 Mike Lockwood <lockwood@android.com> am 30348b0d: Merge change I086d681f into eclair-mr2

Merge commit '30348b0de11b6c6cba43dfc7960e4d2084af6d8b' into eclair-mr2-plus-aosp

* commit '30348b0de11b6c6cba43dfc7960e4d2084af6d8b':
Remove HardwareService and move vibrator support to VibratorService.
a85a0ac1072c7653fdafa791416658154b76ac0d 25-Nov-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I4413e8bc into eclair-mr2

* changes:
close file descriptors passed to drop box
3a32213c4029a03fe39486f3d6ebd0ea18928ee1 24-Nov-2009 Mike Lockwood <lockwood@android.com> Remove HardwareService and move vibrator support to VibratorService.

The lights support is only needed by PowerManagerService and NotificationManagerService, so we do not need a Binder API for it.
Move backlight and notification light support to new LightsService class.
The camera flash is now handled directly by the camera HAL, so the flash Hardware service flash support is obsolete.

Change-Id: I086d681f54668e7f7de3e8b90df3de19d59833c5
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/HardwareService.java
om/android/server/LightsService.java
om/android/server/NotificationManagerService.java
om/android/server/PowerManagerService.java
om/android/server/SystemServer.java
om/android/server/VibratorService.java
4413e8bc4c857902f090858d1af6f039099bf014 25-Nov-2009 Doug Zongker <dougz@android.com> close file descriptors passed to drop box

The ParcelFileDescriptors passed to DropBoxManager.addFile() are
supposed to be closed after the call.
om/android/server/BootReceiver.java
f8557a85de11ceafc80f959dbdb8b3f038779085 25-Nov-2009 Dianne Hackborn <hackbod@google.com> am 80d5fc0f: am 9ad091ab: am 118d92f7: Merge change I16925b91 into eclair

Merge commit '80d5fc0f5add0c42e617ea6f4318b8a2b61370df'

* commit '80d5fc0f5add0c42e617ea6f4318b8a2b61370df':
Finish fixing issue #2228381: android.view.InflateException...
80d5fc0f5add0c42e617ea6f4318b8a2b61370df 25-Nov-2009 Dianne Hackborn <hackbod@google.com> am 9ad091ab: am 118d92f7: Merge change I16925b91 into eclair

Merge commit '9ad091ab1065e85222da0927bb33913530f56f65' into eclair-mr2-plus-aosp

* commit '9ad091ab1065e85222da0927bb33913530f56f65':
Finish fixing issue #2228381: android.view.InflateException...
9ad091ab1065e85222da0927bb33913530f56f65 25-Nov-2009 Dianne Hackborn <hackbod@google.com> am 118d92f7: Merge change I16925b91 into eclair

Merge commit '118d92f73fe9dd1cc9cb900205cd1ec0dac28a1b' into eclair-mr2

* commit '118d92f73fe9dd1cc9cb900205cd1ec0dac28a1b':
Finish fixing issue #2228381: android.view.InflateException...
e9719c8d38a9555d463e597c391aaceca7952cae 25-Nov-2009 Dan Egnor <egnor@google.com> am 5057d9f5: am b29fefe6: Merge change Ic4cf6caa into eclair-mr2

Merge commit '5057d9f5582a9d7f1c522178a3f5a5c414e0c05a'

* commit '5057d9f5582a9d7f1c522178a3f5a5c414e0c05a':
Copy SYSTEM_LAST_KMSG from /proc/last_kmsg instead of /data/dontpanic/last_kmsg.
5057d9f5582a9d7f1c522178a3f5a5c414e0c05a 24-Nov-2009 Dan Egnor <egnor@google.com> am b29fefe6: Merge change Ic4cf6caa into eclair-mr2

Merge commit 'b29fefe6aeed68c22c7711263357348006ab8b79' into eclair-mr2-plus-aosp

* commit 'b29fefe6aeed68c22c7711263357348006ab8b79':
Copy SYSTEM_LAST_KMSG from /proc/last_kmsg instead of /data/dontpanic/last_kmsg.
85af68c82a4557142b019d6015cbf1eb49324352 24-Nov-2009 Dianne Hackborn <hackbod@google.com> am 118d92f7: Merge change I16925b91 into eclair

Merge commit '118d92f73fe9dd1cc9cb900205cd1ec0dac28a1b' into eclair-plus-aosp

* commit '118d92f73fe9dd1cc9cb900205cd1ec0dac28a1b':
Finish fixing issue #2228381: android.view.InflateException...
a8529f68671a8a118751cb6ad577f44eaf076b96 18-Nov-2009 Oscar Montemayor <oam@google.com> Encrypted File Systems Project. Installer modifications.
Started to modify isntaller for data redirection to a secure location.
om/android/server/BackupManagerService.java
om/android/server/Installer.java
om/android/server/PackageManagerService.java
195f6a0ff33c140c922f1f27ee7a306d7eb8f0ab 24-Nov-2009 Dianne Hackborn <hackbod@google.com> Finish fixing issue #2228381: android.view.InflateException...

...Binary XML file line #37: Error inflating class <unknown> after adding a secondary account

The problem was that we weren't dealing well with the situation where we start a transition
from activity A to B, then transition back to A before B is shown (it finishes before being
shown), then transition from A to C. At this point we had some state showing that we
were in the process of showing A from it being hidden (due to the middle transition from
B to A), which would cause the layout pass to ensure its window is hidden before the
transition starts.

The solution is to detect the case where we are showing a token and it is already actually
shown, and in this case not do all of the token setup for it to wait for its windows to
be displayed before it is shown. This isn't needed, the windows are already displayed
or the token is already set up to wait for them to be displayed.

Change-Id: I16925b91e1e2449dd65ade162a5758173c6e2695
om/android/server/WindowManagerService.java
c4cf6caa991df4c96fe1b72a60f2294ac4ac513b 24-Nov-2009 Dan Egnor <egnor@google.com> Copy SYSTEM_LAST_KMSG from /proc/last_kmsg instead of /data/dontpanic/last_kmsg.
(In preparation for not copying to /data/dontpanic/last_kmsg at all.)
om/android/server/BootReceiver.java
01d9fe1d064af2394c82648c0ec7ffa721353889 24-Nov-2009 Dianne Hackborn <hackbod@google.com> am cfe90ce4: am 05799981: Fix issue #2281046: Size and pressure don\'t change

Merge commit 'cfe90ce461eacf3ae6a8556594a0f682a31cfb84' into eclair-mr2-plus-aosp

* commit 'cfe90ce461eacf3ae6a8556594a0f682a31cfb84':
Fix issue #2281046: Size and pressure don't change
6f8797a7b1132694980a748beee8ccffb775fe0f 24-Nov-2009 Dianne Hackborn <hackbod@google.com> am 05799981: Fix issue #2281046: Size and pressure don\'t change

Merge commit '05799981d8d930e0b929cdb99f9407e3ee18c142' into eclair-plus-aosp

* commit '05799981d8d930e0b929cdb99f9407e3ee18c142':
Fix issue #2281046: Size and pressure don't change
cfe90ce461eacf3ae6a8556594a0f682a31cfb84 24-Nov-2009 Dianne Hackborn <hackbod@google.com> am 05799981: Fix issue #2281046: Size and pressure don\'t change

Merge commit '05799981d8d930e0b929cdb99f9407e3ee18c142' into eclair-mr2

* commit '05799981d8d930e0b929cdb99f9407e3ee18c142':
Fix issue #2281046: Size and pressure don't change
05799981d8d930e0b929cdb99f9407e3ee18c142 23-Nov-2009 Dianne Hackborn <hackbod@google.com> Fix issue #2281046: Size and pressure don't change

Change-Id: Iadc1d438a494bb1495ee6d93d0dd3b4a491a378f
om/android/server/InputDevice.java
f7a5721895ee95f4c7b58e8993fb03ec017dab85 23-Nov-2009 Eric Olsen <eolsen@android.com> am b2796da2: am 0d631b9b: Merge change Ie7096ebb into eclair

Merge commit 'b2796da2ed4d0ef3bd94e187156c3d21e7e2a07f' into eclair-mr2-plus-aosp

* commit 'b2796da2ed4d0ef3bd94e187156c3d21e7e2a07f':
Add logging of headset events to help debug issue.
b2796da2ed4d0ef3bd94e187156c3d21e7e2a07f 23-Nov-2009 Eric Olsen <eolsen@android.com> am 0d631b9b: Merge change Ie7096ebb into eclair

Merge commit '0d631b9b58db54bee58da717b38b8020bc3d0437' into eclair-mr2

* commit '0d631b9b58db54bee58da717b38b8020bc3d0437':
Add logging of headset events to help debug issue.
90face60c6a65bddb8e3372182f84c1aeddde78a 23-Nov-2009 Eric Olsen <eolsen@android.com> am 0d631b9b: Merge change Ie7096ebb into eclair

Merge commit '0d631b9b58db54bee58da717b38b8020bc3d0437' into eclair-plus-aosp

* commit '0d631b9b58db54bee58da717b38b8020bc3d0437':
Add logging of headset events to help debug issue.
fa351d388d0441432f4e616ef87a5c97a088dd04 23-Nov-2009 Mike Lockwood <lockwood@android.com> am e5683369: Merge change I60dfecdc into eclair-mr2

Merge commit 'e5683369d2f3cbda3e6c09c66b4d6df77c9b3c0a' into eclair-mr2-plus-aosp

* commit 'e5683369d2f3cbda3e6c09c66b4d6df77c9b3c0a':
Add window manager support for overriding button and keyboard backlight values.
e7096ebba1f188871d0c5f04055d21c6153b9907 23-Nov-2009 Eric Olsen <eolsen@android.com> Add logging of headset events to help debug issue.

Signed-off-by: Eric Olsen <eolsen@android.com>
om/android/server/HeadsetObserver.java
fb73f79340375013225618a5d87f46b958f698ef 20-Nov-2009 Mike Lockwood <lockwood@android.com> Add window manager support for overriding button and keyboard backlight values.

The new backlightBrightness field works similarly as the existing WindowManager.LayoutParams.screenBrightness field

Needed for bugs:
b/2233655 (under low ambient light the touch keys remain illuminated during video playback and never timeout)
b/2221079 (Backlight for home/search/back/etc buttons should turn off when in dock in night mode)

Change-Id: I60dfecdc7bb653b0db38094464de651220b3d438
om/android/server/PowerManagerService.java
om/android/server/WindowManagerService.java
6ed9c32c04d7f57bf66835c481a17b254762cea3 23-Nov-2009 Eric Laurent <elaurent@google.com> am 132dab8f: am a0f9a4f7: Merge change I2083b297 into eclair

Merge commit '132dab8f91f5e87581660069753f238ea9914732' into eclair-mr2-plus-aosp

* commit '132dab8f91f5e87581660069753f238ea9914732':
Fix issue 2265111: Loss of downlink audio while listening, and get a MT call.
a0b6c0261a625f8dd09cc4484d3b69bc6a2f794d 23-Nov-2009 Eric Laurent <elaurent@google.com> am a0f9a4f7: Merge change I2083b297 into eclair

Merge commit 'a0f9a4f73579c2afa4dd82499a69abce94a3f23f' into eclair-plus-aosp

* commit 'a0f9a4f73579c2afa4dd82499a69abce94a3f23f':
Fix issue 2265111: Loss of downlink audio while listening, and get a MT call.
132dab8f91f5e87581660069753f238ea9914732 23-Nov-2009 Eric Laurent <elaurent@google.com> am a0f9a4f7: Merge change I2083b297 into eclair

Merge commit 'a0f9a4f73579c2afa4dd82499a69abce94a3f23f' into eclair-mr2

* commit 'a0f9a4f73579c2afa4dd82499a69abce94a3f23f':
Fix issue 2265111: Loss of downlink audio while listening, and get a MT call.
1f0a0ed549f79c4ad6d783c93319d6807ab88847 23-Nov-2009 Dianne Hackborn <hackbod@google.com> am 41039247: am 8abd5f0d: Fix issue #2267665 IME keyboard appears as Blank in compose view...

Merge commit '4103924742c376716ce5866f6d2f53eac4f3cb59' into eclair-mr2-plus-aosp

* commit '4103924742c376716ce5866f6d2f53eac4f3cb59':
Fix issue #2267665 IME keyboard appears as Blank in compose view...
a0f9a4f73579c2afa4dd82499a69abce94a3f23f 23-Nov-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I2083b297 into eclair

* changes:
Fix issue 2265111: Loss of downlink audio while listening, and get a MT call.
75732ac4a852d7caaf942002093c56d901657b1f 23-Nov-2009 Dianne Hackborn <hackbod@google.com> am 8abd5f0d: Fix issue #2267665 IME keyboard appears as Blank in compose view...

Merge commit '8abd5f0d519afa787e7c64e429df17ccc661ce75' into eclair-plus-aosp

* commit '8abd5f0d519afa787e7c64e429df17ccc661ce75':
Fix issue #2267665 IME keyboard appears as Blank in compose view...
4103924742c376716ce5866f6d2f53eac4f3cb59 23-Nov-2009 Dianne Hackborn <hackbod@google.com> am 8abd5f0d: Fix issue #2267665 IME keyboard appears as Blank in compose view...

Merge commit '8abd5f0d519afa787e7c64e429df17ccc661ce75' into eclair-mr2

* commit '8abd5f0d519afa787e7c64e429df17ccc661ce75':
Fix issue #2267665 IME keyboard appears as Blank in compose view...
8abd5f0d519afa787e7c64e429df17ccc661ce75 21-Nov-2009 Dianne Hackborn <hackbod@google.com> Fix issue #2267665 IME keyboard appears as Blank in compose view...

...if you re-lunch messaging application after deleting the
character and pressing home key

Change-Id: Idc7da05e54730958644e80069764237e5db6f288
om/android/server/WindowManagerService.java
1866591c192a434c3edcafb808e31b8262cadeb2 23-Nov-2009 Mike Lockwood <lockwood@android.com> am 34c5813e: am 174b7269: Merge change Id886fb28 into eclair

Merge commit '34c5813e488fd4f044e545f177a20f553580ce6a' into eclair-mr2-plus-aosp

* commit '34c5813e488fd4f044e545f177a20f553580ce6a':
Fix deadlock in WindowManagerService.reenableKeyguard()
2823157001ab09c96a443efa7b7716eb1273c7a5 23-Nov-2009 Mike Lockwood <lockwood@android.com> am 174b7269: Merge change Id886fb28 into eclair

Merge commit '174b726917c12d61f9135a180afc8413d845dc2d' into eclair-plus-aosp

* commit '174b726917c12d61f9135a180afc8413d845dc2d':
Fix deadlock in WindowManagerService.reenableKeyguard()
34c5813e488fd4f044e545f177a20f553580ce6a 23-Nov-2009 Mike Lockwood <lockwood@android.com> am 174b7269: Merge change Id886fb28 into eclair

Merge commit '174b726917c12d61f9135a180afc8413d845dc2d' into eclair-mr2

* commit '174b726917c12d61f9135a180afc8413d845dc2d':
Fix deadlock in WindowManagerService.reenableKeyguard()
983ee099de60e0288997e33e3fea5c4ff647f5cd 22-Nov-2009 Mike Lockwood <lockwood@android.com> Fix deadlock in WindowManagerService.reenableKeyguard()

If reenableKeyguard() is called before the previous disableKeyguard() call is processed,
then TokenWatcher.sendNotificationLocked() will cancel the request, resulting in neither
the TokenWatcher acquired() or released() methods being called.
In that case, reenableKeyguard() will hang waiting for released() to set
mWaitingUntilKeyguardReenabled to false. Now we only wait in reenableKeyguard()
if the TokenWatcher acquired() method is called and the keyguard has actually been disabled.

This should fix bug b/2270192

Change-Id: Id886fb28df607dbb4543124f2db6997121d6a682
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/WindowManagerService.java
589f8d7d414b132afcef4405122fdf02228f3c8b 20-Nov-2009 Mike Lockwood <lockwood@android.com> am 53e9c126: am a1ce6551: Merge change I69324a33 into eclair

Merge commit '53e9c126f5fc39459554f0290a2c863f645d397a' into eclair-mr2-plus-aosp

* commit '53e9c126f5fc39459554f0290a2c863f645d397a':
AlarmManagerService: Fix daylight savings time offset computation
b1715b1569a4a8ddf110d9668aa944cc1f67da89 20-Nov-2009 Mike Lockwood <lockwood@android.com> am a1ce6551: Merge change I69324a33 into eclair

Merge commit 'a1ce6551e1fd8a1ed4af58857413c0a7f701b5c2' into eclair-plus-aosp

* commit 'a1ce6551e1fd8a1ed4af58857413c0a7f701b5c2':
AlarmManagerService: Fix daylight savings time offset computation
53e9c126f5fc39459554f0290a2c863f645d397a 20-Nov-2009 Mike Lockwood <lockwood@android.com> am a1ce6551: Merge change I69324a33 into eclair

Merge commit 'a1ce6551e1fd8a1ed4af58857413c0a7f701b5c2' into eclair-mr2

* commit 'a1ce6551e1fd8a1ed4af58857413c0a7f701b5c2':
AlarmManagerService: Fix daylight savings time offset computation
1f7b4134db07acbb429cd770441ff460fa6f4b1b 20-Nov-2009 Mike Lockwood <lockwood@android.com> AlarmManagerService: Fix daylight savings time offset computation

Fixes b/2244560 (Time Stamp On Bug Reports And Pictures Is One Hour Off)

Change-Id: I69324a33f80e41ce68a0e6fdba08b80ed9453e19
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/AlarmManagerService.java
9d633968ceb502e95f9785b169742624f72614f5 20-Nov-2009 Mike Lockwood <lockwood@android.com> am 401a712e: IPowerManager: remove some unused methods.

Merge commit '401a712e3b3b41c77e79a130d7b07d653e18bcab' into eclair-mr2-plus-aosp

* commit '401a712e3b3b41c77e79a130d7b07d653e18bcab':
IPowerManager: remove some unused methods.
401a712e3b3b41c77e79a130d7b07d653e18bcab 20-Nov-2009 Mike Lockwood <lockwood@android.com> IPowerManager: remove some unused methods.

Change-Id: I7c7fa7eaf6c99e723da20939c27fbc172ad51613
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/PowerManagerService.java
2083b297e401957dfae07ca11c29e8c95f440a97 20-Nov-2009 Eric Laurent <elaurent@google.com> Fix issue 2265111: Loss of downlink audio while listening, and get a MT call.

The cause of the problem is that under certain circumstance the HeadsetObserver receives unexpected connection events. For instance,
when removing a bad quality 3.5mm stereo jack without mic the following events can be received:
1 connection of a headset with mic
2 removal of a headset with mic.

The result is that the no mic headset is never disconnected and audio policy manager considers it is still present. Then the music or downlink call audio is always routed to headset even if none is connected giving the impression that audio is lost, except whne you reconnect a headset of enable speaker phone.

The fix consists in adding more checks in HeadsetObserver to reject illegal transitions in headset state received from event observer.
om/android/server/HeadsetObserver.java
a7ad3f6c71ad6701fcaa6ecf75452563addb0dd0 20-Nov-2009 Doug Zongker <dougz@android.com> am 50a21f4d: add reboot() method to PowerManager

Merge commit '50a21f4d3b70360b36acad20e234c380654fd59f' into eclair-mr2-plus-aosp

* commit '50a21f4d3b70360b36acad20e234c380654fd59f':
add reboot() method to PowerManager
50a21f4d3b70360b36acad20e234c380654fd59f 19-Nov-2009 Doug Zongker <dougz@android.com> add reboot() method to PowerManager

In order to unbundle System Update, we need some to expose in the SDK
some way to reboot the device into recovery. Add a reboot() method to
PowerManager, protected by the android.permission.REBOOT permission.
om/android/server/PowerManagerService.java
d9a49b00ce8702820a20ce00b4904f70718dc63b 19-Nov-2009 Mike Lockwood <lockwood@android.com> Fix broken merges from MR2:

e090281428cbd1114f4ae2f10755013cea09cdb5 Fix a race condition that resulted in the screen coming on without the brightness set to the correct value.
0e5bb7f1c9558bcf76af4f31dd5a11e78bcbdc9d PowerManagerService: Hold a wakelock while mProximityTask is queued

Change-Id: I8082b546467f839f53187534bb4264e59bd4a7db
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/PowerManagerService.java
d28fcd5bb8e5734a12b83f7cefde759c009e7b6e 19-Nov-2009 repo sync <lockwood@android.com> resolved conflicts for merge of efd91d7c to eclair-mr2-plus-aosp

Signed-off-by: repo sync <lockwood@android.com>
8cfccb1514b1c72dc6acbe4f96ead454ebbbeaa3 19-Nov-2009 Mike Lockwood <lockwood@android.com> am 03786b83: Merge change I813fdb7a into eclair

Merge commit '03786b83bd02f8dd8e1049d333fbfdee395ac965' into eclair-plus-aosp

* commit '03786b83bd02f8dd8e1049d333fbfdee395ac965':
Fixes for proximity sensor behavior:
efd91d7ce01c7bd538fb0ca66d9f5395352211f8 19-Nov-2009 Mike Lockwood <lockwood@android.com> am 03786b83: Merge change I813fdb7a into eclair

Merge commit '03786b83bd02f8dd8e1049d333fbfdee395ac965' into eclair-mr2

* commit '03786b83bd02f8dd8e1049d333fbfdee395ac965':
Fixes for proximity sensor behavior:
03786b83bd02f8dd8e1049d333fbfdee395ac965 19-Nov-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I813fdb7a into eclair

* changes:
Fixes for proximity sensor behavior:
0e39ea83c5578e0d55e120c91ff7cfeeb0c1cb2f 18-Nov-2009 Mike Lockwood <lockwood@android.com> Fixes for proximity sensor behavior:

Add optional flag to Wakelock.release() to specify whether we should wait for proximity sensor to go negative before turning on the screen.
Clear the "waiting for proximity sensor to go negative" state when the power key is pressed.

Part of the fix for b/2243198 (Black screen lockup after ending call)

Change-Id: I813fdb7aa4192cd3384a25be9e59d7d4b90da53a
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/PowerManagerService.java
08a22a200739e0e14784e1c7139ed78e50c15dfa 18-Nov-2009 Dianne Hackborn <hackbod@google.com> am a2f4c254: am 1d62ea9d: Fix issue #2249821: Unable to start passion in safe mode

Merge commit 'a2f4c2543a7f78b77491c701230e8f406dcca540' into eclair-mr2-plus-aosp

* commit 'a2f4c2543a7f78b77491c701230e8f406dcca540':
Fix issue #2249821: Unable to start passion in safe mode
a2f4c2543a7f78b77491c701230e8f406dcca540 18-Nov-2009 Dianne Hackborn <hackbod@google.com> am 1d62ea9d: Fix issue #2249821: Unable to start passion in safe mode

Merge commit '1d62ea9d8c2646d198b6967e2c6ae3dad5c18f9e' into eclair-mr2

* commit '1d62ea9d8c2646d198b6967e2c6ae3dad5c18f9e':
Fix issue #2249821: Unable to start passion in safe mode
abcb849d098eb7d3b7669247209f4715e75ab585 18-Nov-2009 Dianne Hackborn <hackbod@google.com> am 1d62ea9d: Fix issue #2249821: Unable to start passion in safe mode

Merge commit '1d62ea9d8c2646d198b6967e2c6ae3dad5c18f9e' into eclair-plus-aosp

* commit '1d62ea9d8c2646d198b6967e2c6ae3dad5c18f9e':
Fix issue #2249821: Unable to start passion in safe mode
1d62ea9d8c2646d198b6967e2c6ae3dad5c18f9e 17-Nov-2009 Dianne Hackborn <hackbod@google.com> Fix issue #2249821: Unable to start passion in safe mode

Holding down the trackball now works.

Also fix a little API check warning from Intent.

Change-Id: Icb1f901535cb521917bf7f847a93c4ff7861d20e
om/android/server/KeyInputQueue.java
om/android/server/WindowManagerService.java
5021e08d58fc32e0a9a21a11196590da14ab8cd5 18-Nov-2009 Dan Egnor <egnor@google.com> am 9a5985a8: Merge change I24e47245 into eclair-mr2

Merge commit '9a5985a8d975f88e314a321392cc7e25bd14ad0e' into eclair-mr2-plus-aosp

* commit '9a5985a8d975f88e314a321392cc7e25bd14ad0e':
Add boot events (SYSTEM_LAST_KMSG and friends) to the dropbox.
9a5985a8d975f88e314a321392cc7e25bd14ad0e 18-Nov-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I24e47245 into eclair-mr2

* changes:
Add boot events (SYSTEM_LAST_KMSG and friends) to the dropbox. Optimize DropBoxManagerService.dump() a bit.
3d40df335e4c0df972720271a84277077f168f65 17-Nov-2009 Dan Egnor <egnor@google.com> Add boot events (SYSTEM_LAST_KMSG and friends) to the dropbox.
Optimize DropBoxManagerService.dump() a bit.
om/android/server/BootReceiver.java
om/android/server/DropBoxManagerService.java
95230656e46ee7e236f6bb02de1334659a2d1244 18-Nov-2009 Joe Onorato <joeo@android.com> am 0036b4de: am df7dbb68: Fix bug 2252145 - Notification panel not closing completely when a call comes in

Merge commit '0036b4def5242429abdf6e8e420896eb5296316e' into eclair-mr2-plus-aosp

* commit '0036b4def5242429abdf6e8e420896eb5296316e':
Fix bug 2252145 - Notification panel not closing completely when a call comes in
0196ee24c674ae329accc531903184f2e4626425 17-Nov-2009 Joe Onorato <joeo@android.com> am df7dbb68: Fix bug 2252145 - Notification panel not closing completely when a call comes in

Merge commit 'df7dbb68d330eae88c1ca6d03390dc8c18386871' into eclair-plus-aosp

* commit 'df7dbb68d330eae88c1ca6d03390dc8c18386871':
Fix bug 2252145 - Notification panel not closing completely when a call comes in
0036b4def5242429abdf6e8e420896eb5296316e 17-Nov-2009 Joe Onorato <joeo@android.com> am df7dbb68: Fix bug 2252145 - Notification panel not closing completely when a call comes in

Merge commit 'df7dbb68d330eae88c1ca6d03390dc8c18386871' into eclair-mr2

* commit 'df7dbb68d330eae88c1ca6d03390dc8c18386871':
Fix bug 2252145 - Notification panel not closing completely when a call comes in
df7dbb68d330eae88c1ca6d03390dc8c18386871 17-Nov-2009 Joe Onorato <joeo@android.com> Fix bug 2252145 - Notification panel not closing completely when a call comes in
om/android/server/status/StatusBarService.java
11c89c48281dd75da20b0649e5b6e19b057901eb 17-Nov-2009 Mike Lockwood <lockwood@android.com> am 0d829149: am f8c4af65: Merge change I51b84496 into eclair

Merge commit '0d829149292713f05b85f33fedaba88771627533' into eclair-mr2-plus-aosp

* commit '0d829149292713f05b85f33fedaba88771627533':
Revert "PowerManagerService: enable logging for when mPowerState changes."
e5b5aa490372099c3541e51b8ed260cf9280247d 17-Nov-2009 Mike Cleron <mcleron@google.com> am fd5cfd88: am f36b8f43: Merge change Ia428b2c2 into eclair

Merge commit 'fd5cfd885da4ee883153474d43e883aac7516023' into eclair-mr2-plus-aosp

* commit 'fd5cfd885da4ee883153474d43e883aac7516023':
This time for sure: make wallpapers work
3a624abe2735168d288bf905ab9cb8ca60a77be5 17-Nov-2009 Dianne Hackborn <hackbod@google.com> am 92b18800: am ab5efde8: Merge change Iff5b8ce3 into eclair

Merge commit '92b1880084ccfbe2ae03eec6a9656c5372c03f12' into eclair-mr2-plus-aosp

* commit '92b1880084ccfbe2ae03eec6a9656c5372c03f12':
Work on issue 2259506: camera ANRed and then device runtime restarted
0d829149292713f05b85f33fedaba88771627533 17-Nov-2009 Mike Lockwood <lockwood@android.com> am f8c4af65: Merge change I51b84496 into eclair

Merge commit 'f8c4af65e8f9c7f395ac8eb52fe741242f6747b6' into eclair-mr2

* commit 'f8c4af65e8f9c7f395ac8eb52fe741242f6747b6':
Revert "PowerManagerService: enable logging for when mPowerState changes."
fd5cfd885da4ee883153474d43e883aac7516023 17-Nov-2009 Mike Cleron <mcleron@google.com> am f36b8f43: Merge change Ia428b2c2 into eclair

Merge commit 'f36b8f439babc141970b1207d1d9c12b7a14c468' into eclair-mr2

* commit 'f36b8f439babc141970b1207d1d9c12b7a14c468':
This time for sure: make wallpapers work
92b1880084ccfbe2ae03eec6a9656c5372c03f12 17-Nov-2009 Dianne Hackborn <hackbod@google.com> am ab5efde8: Merge change Iff5b8ce3 into eclair

Merge commit 'ab5efde8dcdfcafea7e9d95350e18022b1adc679' into eclair-mr2

* commit 'ab5efde8dcdfcafea7e9d95350e18022b1adc679':
Work on issue 2259506: camera ANRed and then device runtime restarted
4d7ffd37ff81a9939b5443f4dc3c514a985ba00f 17-Nov-2009 Mike Lockwood <lockwood@android.com> am f8c4af65: Merge change I51b84496 into eclair

Merge commit 'f8c4af65e8f9c7f395ac8eb52fe741242f6747b6' into eclair-plus-aosp

* commit 'f8c4af65e8f9c7f395ac8eb52fe741242f6747b6':
Revert "PowerManagerService: enable logging for when mPowerState changes."
51b844965be75a2f2e4e83efdd887b0635637d19 17-Nov-2009 Mike Lockwood <lockwood@android.com> Revert "PowerManagerService: enable logging for when mPowerState changes."

This reverts commit 24ace3395b532e3cbb63d2a6197a91dd9242bb36.

Bug b/2265538 (verbose logging from power manager)
om/android/server/PowerManagerService.java
b755c752aa20d8bec5c9cb3a20351d6b832558e3 17-Nov-2009 Mike Cleron <mcleron@google.com> am f36b8f43: Merge change Ia428b2c2 into eclair

Merge commit 'f36b8f439babc141970b1207d1d9c12b7a14c468' into eclair-plus-aosp

* commit 'f36b8f439babc141970b1207d1d9c12b7a14c468':
This time for sure: make wallpapers work
f36b8f439babc141970b1207d1d9c12b7a14c468 17-Nov-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change Ia428b2c2 into eclair

* changes:
This time for sure: make wallpapers work
3235ccac1f0da4f1b6a4ed6d93c4defa1b12625e 17-Nov-2009 Dianne Hackborn <hackbod@google.com> am ab5efde8: Merge change Iff5b8ce3 into eclair

Merge commit 'ab5efde8dcdfcafea7e9d95350e18022b1adc679' into eclair-plus-aosp

* commit 'ab5efde8dcdfcafea7e9d95350e18022b1adc679':
Work on issue 2259506: camera ANRed and then device runtime restarted
f6cee83f8150882944db9bd3561bcb444f96fd4e 16-Nov-2009 Mike Lockwood <lockwood@android.com> am 5fd01f7a: am fa82d97d: Merge change Ib1fb3fcf into eclair

Merge commit '5fd01f7aff5bf3e835ce233b68199db19ac93c1d' into eclair-mr2-plus-aosp

* commit '5fd01f7aff5bf3e835ce233b68199db19ac93c1d':
Keep screen bright until boot completed.
f670ef72354502c7169934af949af42e45e738bb 16-Nov-2009 Dianne Hackborn <hackbod@google.com> Work on issue 2259506: camera ANRed and then device runtime restarted

If a process fails to come up, we could leave content providers and
services hanging around.

Change-Id: Iff5b8ce3b933580954724338a89e110e45f1b00c
om/android/server/am/ActivityManagerService.java
5fd01f7aff5bf3e835ce233b68199db19ac93c1d 16-Nov-2009 Mike Lockwood <lockwood@android.com> am fa82d97d: Merge change Ib1fb3fcf into eclair

Merge commit 'fa82d97dc67b2c3047ad2abe7553d4a0f47b6e7f' into eclair-mr2

* commit 'fa82d97dc67b2c3047ad2abe7553d4a0f47b6e7f':
Keep screen bright until boot completed.
3b8f3f1d2db324a094af6f06314d79803c1000b7 16-Nov-2009 Mike Lockwood <lockwood@android.com> am fa82d97d: Merge change Ib1fb3fcf into eclair

Merge commit 'fa82d97dc67b2c3047ad2abe7553d4a0f47b6e7f' into eclair-plus-aosp

* commit 'fa82d97dc67b2c3047ad2abe7553d4a0f47b6e7f':
Keep screen bright until boot completed.
a428b2c260dddd267b541909517cc4f6cf769714 16-Nov-2009 Mike Cleron <mcleron@google.com> This time for sure: make wallpapers work

Fix http://b/issue?id=2262556. Make restoring
work as well as switching between live and
non-live wallpapers. Also support live wallpaper
as default.
om/android/server/WallpaperManagerService.java
2d7bb81ac4c04447a1e04fef82986b939823dea4 16-Nov-2009 Mike Lockwood <lockwood@android.com> Keep screen bright until boot completed.

Fixes b/2262575 (device boots into darkness)

Change-Id: Ib1fb3fcfd4a389d8aa5803a60e07660cfbe4fe47
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/PowerManagerService.java
7f9fb0c4de7b9c8e9e33260d64844aad8a075609 15-Nov-2009 Mike Lockwood <lockwood@android.com> am 04c585e3: Merge changes Ia4825f54,If6f80560 into eclair

Merge commit '04c585e3bcb75c85ceeacf2fd94ea4194f332404' into eclair-mr2

* commit '04c585e3bcb75c85ceeacf2fd94ea4194f332404':
Fix a race condition that resulted in the screen coming on without the brightness set to the correct value.
PowerManagerService: Hold a wakelock while mProximityTask is queued
478de466ce0504b9af639c3338b883893670a8e8 15-Nov-2009 Jean-Baptiste Queru <jbq@google.com> merge from eclair
8a4e470fc2c1351d58a6ab2d99eb12d01c5c2656 15-Nov-2009 Jean-Baptiste Queru <jbq@google.com> merge from open-source master
e5e2916c7e57aa6cf1ff076c331fe79fe9ec1873 15-Nov-2009 Mike Lockwood <lockwood@android.com> am 04c585e3: Merge changes Ia4825f54,If6f80560 into eclair

Merge commit '04c585e3bcb75c85ceeacf2fd94ea4194f332404' into eclair-plus-aosp

* commit '04c585e3bcb75c85ceeacf2fd94ea4194f332404':
Fix a race condition that resulted in the screen coming on without the brightness set to the correct value.
PowerManagerService: Hold a wakelock while mProximityTask is queued
e090281428cbd1114f4ae2f10755013cea09cdb5 15-Nov-2009 Mike Lockwood <lockwood@android.com> Fix a race condition that resulted in the screen coming on without the brightness set to the correct value.

Do not cancel screen brightness animation in forceUserActivityLocked unless screen is turning off.
Also not turn the screen on if PowerManager.preventScreenOn(false) is called while proximity sensor is active.

Fixes b/2254818 (dim display) where due to a race condition the screen is stuck in a dim state.

Change-Id: If6f805609c8d463631b9e22805e5242714ce34c0
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/PowerManagerService.java
0e5bb7f1c9558bcf76af4f31dd5a11e78bcbdc9d 14-Nov-2009 Mike Lockwood <lockwood@android.com> PowerManagerService: Hold a wakelock while mProximityTask is queued

This prevents the device from sleeping while a deferred proximity sensor
event is pending.
Fixes b/2260005 (Proximity sensor can fail due to missing wakelock)

Change-Id: Ia4825f548b5b7d8a0b184f720b32c2f21b77b96e
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/PowerManagerService.java
c0355905414c330c7fe7fe64f82fcd90c0675d7e 14-Nov-2009 Mike Cleron <mcleron@google.com> am 0a27865a: am d54261aa: Merge change Id6c0b844 into eclair

Merge commit '0a27865a015d9e0401b6b3bff9eedd06d59043b3' into eclair-mr2-plus-aosp

* commit '0a27865a015d9e0401b6b3bff9eedd06d59043b3':
Unbreak setting photos as wallpaper
26431be568a2b7f5e54935c92da9f19a00615fed 14-Nov-2009 Mike Cleron <mcleron@google.com> am d54261aa: Merge change Id6c0b844 into eclair

Merge commit 'd54261aab0a96defc9584c4c59a3218015cdb1f7' into eclair-plus-aosp

* commit 'd54261aab0a96defc9584c4c59a3218015cdb1f7':
Unbreak setting photos as wallpaper
0a27865a015d9e0401b6b3bff9eedd06d59043b3 14-Nov-2009 Mike Cleron <mcleron@google.com> am d54261aa: Merge change Id6c0b844 into eclair

Merge commit 'd54261aab0a96defc9584c4c59a3218015cdb1f7' into eclair-mr2

* commit 'd54261aab0a96defc9584c4c59a3218015cdb1f7':
Unbreak setting photos as wallpaper
d54261aab0a96defc9584c4c59a3218015cdb1f7 14-Nov-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change Id6c0b844 into eclair

* changes:
Unbreak setting photos as wallpaper
d6c0b844a0eb128a9429aa01d23d15ce095ef479 14-Nov-2009 Mike Cleron <mcleron@google.com> Unbreak setting photos as wallpaper
om/android/server/WallpaperManagerService.java
9db3d07b9620b4269ab33f78604a36327e536ce1 13-Nov-2009 Jean-Baptiste Queru <jbq@google.com> eclair snapshot
om/android/server/AccessibilityManagerService.java
om/android/server/AppWidgetService.java
om/android/server/BackupManagerService.java
om/android/server/BatteryService.java
om/android/server/ConnectivityService.java
om/android/server/DeviceStorageMonitorService.java
om/android/server/DockObserver.java
om/android/server/HardwareService.java
om/android/server/HeadsetObserver.java
om/android/server/InputDevice.java
om/android/server/InputMethodManagerService.java
om/android/server/JournaledFile.java
om/android/server/KeyInputQueue.java
om/android/server/LocationManagerService.java
om/android/server/MasterClearReceiver.java
om/android/server/MountService.java
om/android/server/NotificationManagerService.java
om/android/server/PackageManagerBackupAgent.java
om/android/server/PackageManagerService.java
om/android/server/PowerManagerService.java
om/android/server/ProcessStats.java
om/android/server/RandomBlock.java
om/android/server/SensorService.java
om/android/server/ShutdownActivity.java
om/android/server/SystemBackupAgent.java
om/android/server/SystemServer.java
om/android/server/TelephonyRegistry.java
om/android/server/WallpaperManagerService.java
om/android/server/WallpaperService.java
om/android/server/WifiService.java
om/android/server/WindowManagerService.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/BatteryStatsService.java
om/android/server/am/BroadcastRecord.java
om/android/server/am/ConnectionRecord.java
om/android/server/am/PendingIntentRecord.java
om/android/server/am/ProcessRecord.java
om/android/server/am/ServiceRecord.java
om/android/server/am/UsageStatsService.java
om/android/server/status/NotificationData.java
om/android/server/status/StatusBarIcon.java
om/android/server/status/StatusBarPolicy.java
om/android/server/status/StatusBarService.java
om/android/server/status/TrackingPatternView.java
fcd2917a3550e2b4f5c6ff2038ae5de91c81d28c 13-Nov-2009 Mike Cleron <mcleron@google.com> am aaa8e7e6: am 27d6e65b: Merge change I322b6ee7 into eclair

Merge commit 'aaa8e7e633b61b221d10f21006bf2cd197004093' into eclair-mr2-plus-aosp

* commit 'aaa8e7e633b61b221d10f21006bf2cd197004093':
Add support for making a LiveWallpaper the default
b9456ac7263393bca14697ad0b28f51b28a16d38 13-Nov-2009 Dianne Hackborn <hackbod@google.com> am 6e0ff0c3: am 826d17c0: A little more on #2256270: Package manager sends bad broadcasts when components change

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

* commit '6e0ff0c37cd293d49c3c874ee30a49b1d5902b5e':
A little more on #2256270: Package manager sends bad broadcasts when components change
e351da6cde9a0e63ad696ece5d963428ec5209fb 13-Nov-2009 Mike Cleron <mcleron@google.com> am 27d6e65b: Merge change I322b6ee7 into eclair

Merge commit '27d6e65b71f515deafbd93d5aa98732898c34ddf' into eclair-plus-aosp

* commit '27d6e65b71f515deafbd93d5aa98732898c34ddf':
Add support for making a LiveWallpaper the default
fac7bd834582636b67509bc1c67acb490b966048 13-Nov-2009 Dianne Hackborn <hackbod@google.com> am 826d17c0: A little more on #2256270: Package manager sends bad broadcasts when components change

Merge commit '826d17c0690e086ed96f43714d731ec6e0ddcf96' into eclair-plus-aosp

* commit '826d17c0690e086ed96f43714d731ec6e0ddcf96':
A little more on #2256270: Package manager sends bad broadcasts when components change
aaa8e7e633b61b221d10f21006bf2cd197004093 13-Nov-2009 Mike Cleron <mcleron@google.com> am 27d6e65b: Merge change I322b6ee7 into eclair

Merge commit '27d6e65b71f515deafbd93d5aa98732898c34ddf' into eclair-mr2

* commit '27d6e65b71f515deafbd93d5aa98732898c34ddf':
Add support for making a LiveWallpaper the default
6e0ff0c37cd293d49c3c874ee30a49b1d5902b5e 13-Nov-2009 Dianne Hackborn <hackbod@google.com> am 826d17c0: A little more on #2256270: Package manager sends bad broadcasts when components change

Merge commit '826d17c0690e086ed96f43714d731ec6e0ddcf96' into eclair-mr2

* commit '826d17c0690e086ed96f43714d731ec6e0ddcf96':
A little more on #2256270: Package manager sends bad broadcasts when components change
27d6e65b71f515deafbd93d5aa98732898c34ddf 13-Nov-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I322b6ee7 into eclair

* changes:
Add support for making a LiveWallpaper the default
826d17c0690e086ed96f43714d731ec6e0ddcf96 12-Nov-2009 Dianne Hackborn <hackbod@google.com> A little more on #2256270: Package manager sends bad broadcasts when components change

Don't go through all this work if the enabled state hasn't changed.

Change-Id: If7393f53d6c0d0770960bb37bcaa5adebdbb3099
om/android/server/am/ActivityManagerService.java
355743c70d9810fda3e59d718d055f9513fb05b7 13-Nov-2009 Eric Laurent <elaurent@google.com> am 609acfd2: am 1aa9f3ca: Merge change I923d7d72 into eclair

Merge commit '609acfd2a1067f49e51925776484b070a24d8301' into eclair-mr2-plus-aosp

* commit '609acfd2a1067f49e51925776484b070a24d8301':
Fix issue 2242614: Wired headset not recognized: bogus "state" in ACTION_HEADSET_PLUG broadcast.
567716acc5761245e7073f258f74cad769d97f34 13-Nov-2009 David 'Digit' Turner <digit@google.com> am 097855eb: am 6f5ba934: Merge change I42a0f7a5 into eclair

Merge commit '097855eb00971092ff6332aa2bf0fae71f42ab5f' into eclair-mr2-plus-aosp

* commit '097855eb00971092ff6332aa2bf0fae71f42ab5f':
PackageManager: Support secondary ABI for native code at installation time.
322b6ee7e158b0b979d8156df8fd59f4a9b95ab9 12-Nov-2009 Mike Cleron <mcleron@google.com> Add support for making a LiveWallpaper the default
om/android/server/WallpaperManagerService.java
609acfd2a1067f49e51925776484b070a24d8301 13-Nov-2009 Eric Laurent <elaurent@google.com> am 1aa9f3ca: Merge change I923d7d72 into eclair

Merge commit '1aa9f3cac31a7c2b50fcb3c9259cead8d638ae54' into eclair-mr2

* commit '1aa9f3cac31a7c2b50fcb3c9259cead8d638ae54':
Fix issue 2242614: Wired headset not recognized: bogus "state" in ACTION_HEADSET_PLUG broadcast.
097855eb00971092ff6332aa2bf0fae71f42ab5f 13-Nov-2009 David 'Digit' Turner <digit@google.com> am 6f5ba934: Merge change I42a0f7a5 into eclair

Merge commit '6f5ba93469bc26f33b5a260a394406970536c260' into eclair-mr2

* commit '6f5ba93469bc26f33b5a260a394406970536c260':
PackageManager: Support secondary ABI for native code at installation time.
e8302a64c7fb2e12bd04ac70114682c3a1260d03 13-Nov-2009 Eric Laurent <elaurent@google.com> am 1aa9f3ca: Merge change I923d7d72 into eclair

Merge commit '1aa9f3cac31a7c2b50fcb3c9259cead8d638ae54' into eclair-plus-aosp

* commit '1aa9f3cac31a7c2b50fcb3c9259cead8d638ae54':
Fix issue 2242614: Wired headset not recognized: bogus "state" in ACTION_HEADSET_PLUG broadcast.
1aa9f3cac31a7c2b50fcb3c9259cead8d638ae54 13-Nov-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I923d7d72 into eclair

* changes:
Fix issue 2242614: Wired headset not recognized: bogus "state" in ACTION_HEADSET_PLUG broadcast.
392ae2eee9db2ad1982365537cc125b6cfad478f 13-Nov-2009 David 'Digit' Turner <digit@google.com> am 6f5ba934: Merge change I42a0f7a5 into eclair

Merge commit '6f5ba93469bc26f33b5a260a394406970536c260' into eclair-plus-aosp

* commit '6f5ba93469bc26f33b5a260a394406970536c260':
PackageManager: Support secondary ABI for native code at installation time.
feba743b47440954e6cc5b9f9f8f6b229d4ea14e 07-Nov-2009 David 'Digit' Turner <digit@google.com> PackageManager: Support secondary ABI for native code at installation time.

The goal of this change is to allow the Package Manager to look for native
shared libraries corresponding to the CPU ABI reported by ro.product.cpu.abi2
if none was found for the CPU ABI given by ro.product.cpu.abi

This is used to support both ARMv5 and ARMv7 native code on modern ARMv7-based
devices. Typically, such a device would report a primary ABI of 'armeabi-v7a'
and a secondary one of 'armeabi', to indicate that it can run the binaries
generated for both.
om/android/server/PackageManagerService.java
00556831f7503a922a5402c525b4387ebdd1a4bb 12-Nov-2009 Dan Egnor <egnor@google.com> am f18a01c7: Rename [I]DropBox[Service] to [I]DropBoxManager[Service].

Merge commit 'f18a01c77e78209b74e34d05cfb352fa4a92db5f' into eclair-mr2-plus-aosp

* commit 'f18a01c77e78209b74e34d05cfb352fa4a92db5f':
Rename [I]DropBox[Service] to [I]DropBoxManager[Service].
f18a01c77e78209b74e34d05cfb352fa4a92db5f 12-Nov-2009 Dan Egnor <egnor@google.com> Rename [I]DropBox[Service] to [I]DropBoxManager[Service].

Un-hide the DropBoxManager interface, and update the public API accordingly.
om/android/server/DropBoxManagerService.java
om/android/server/DropBoxService.java
om/android/server/SystemServer.java
923d7d721d37f6ba5148e7d79d61a4fa48e79df2 12-Nov-2009 Eric Laurent <elaurent@google.com> Fix issue 2242614: Wired headset not recognized: bogus "state" in ACTION_HEADSET_PLUG broadcast.

The headset state indicated by HeadsetObserver in the broadcast intent ACTION_HEADSET_PLUG was not 0 or 1 as specified in the java doc but contained a bit field indicating the type of headset connected.

Modified HeadsetObserver to broacast a state conforming to java doc.
Added an extra to intent ACTION_HEADSET_PLUG to indicate if headset has a microphone or not.
Removed handling of non standard headset indications from HeadsetObserver.
Removed platform specific devices from output devices defined in AudioSystem.
Modified AudioService to use new ACTION_HEADSET_PLUG intent extra instead of bitfield in state.
om/android/server/HeadsetObserver.java
cd90b2773e81b337436e71717cb6c8b5704af5c8 12-Nov-2009 Dan Egnor <egnor@google.com> am 17d176d8: am ddf157ca: Merge change I5ae73af7 into eclair

Merge commit '17d176d8570f7d76532afee43853339c60fc9850' into eclair-mr2-plus-aosp

* commit '17d176d8570f7d76532afee43853339c60fc9850':
Don't back up system wallpapers.
0ccf64b24b01abd230c9f10892925e2dea5a881e 12-Nov-2009 Dan Egnor <egnor@google.com> am ddf157ca: Merge change I5ae73af7 into eclair

Merge commit 'ddf157cae48a17e72e740538a981a63394ec2274' into eclair-plus-aosp

* commit 'ddf157cae48a17e72e740538a981a63394ec2274':
Don't back up system wallpapers.
17d176d8570f7d76532afee43853339c60fc9850 12-Nov-2009 Dan Egnor <egnor@google.com> am ddf157ca: Merge change I5ae73af7 into eclair

Merge commit 'ddf157cae48a17e72e740538a981a63394ec2274' into eclair-mr2

* commit 'ddf157cae48a17e72e740538a981a63394ec2274':
Don't back up system wallpapers.
ddf157cae48a17e72e740538a981a63394ec2274 12-Nov-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I5ae73af7 into eclair

* changes:
Don't back up system wallpapers.
541fa51e5ccba9e2def2632f9835db0c9407ec5c 12-Nov-2009 Dan Egnor <egnor@google.com> Don't back up system wallpapers.
om/android/server/SystemBackupAgent.java
d2aaeefc31c37417e6074fefeabe3434ea2768d9 12-Nov-2009 Dianne Hackborn <hackbod@google.com> am c5dc6872: am 360d710e: Merge change I580de484 into eclair

Merge commit 'c5dc6872dac40f87b6b8261c3cd5260a52325aba' into eclair-mr2-plus-aosp

* commit 'c5dc6872dac40f87b6b8261c3cd5260a52325aba':
Fix issue #2256270: Package manager sends bad broadcasts when components change
6e6a89b0e48832d6671c81d0a4efc1e2a0067da9 12-Nov-2009 Dianne Hackborn <hackbod@google.com> am 360d710e: Merge change I580de484 into eclair

Merge commit '360d710ebccc2a2b53bf6233e722d3287d585476' into eclair-plus-aosp

* commit '360d710ebccc2a2b53bf6233e722d3287d585476':
Fix issue #2256270: Package manager sends bad broadcasts when components change
c5dc6872dac40f87b6b8261c3cd5260a52325aba 12-Nov-2009 Dianne Hackborn <hackbod@google.com> am 360d710e: Merge change I580de484 into eclair

Merge commit '360d710ebccc2a2b53bf6233e722d3287d585476' into eclair-mr2

* commit '360d710ebccc2a2b53bf6233e722d3287d585476':
Fix issue #2256270: Package manager sends bad broadcasts when components change
86a72dacbea3331cd5423c1f2f6ecbfae535e57c 12-Nov-2009 Dianne Hackborn <hackbod@google.com> Fix issue #2256270: Package manager sends bad broadcasts when components change

Also reworks this intent protocol a little bit to be much more efficient, only
requiring one broadcast per package.

Change-Id: I580de4843ebd3c7f2e6df7295a2f80d2937cef7c
om/android/server/PackageManagerService.java
7bd2179f22c63cba9b444b4089242af327501f85 12-Nov-2009 Dianne Hackborn <hackbod@google.com> am 823edb76: am 532d5603: Merge change I80022375 into eclair

Merge commit '823edb76661d57c1af7dbf4eb56eb0e3cb78e229' into eclair-mr2-plus-aosp

* commit '823edb76661d57c1af7dbf4eb56eb0e3cb78e229':
Fix issue #2256032: Change CONFIGURATION_CHANGED and add a locale changed broadcast
8c3fc0801bb32a99dd5ab97c93bb615999b2c977 12-Nov-2009 Dianne Hackborn <hackbod@google.com> am 5bb200fd: am 2ade6421: Merge change I775e1ec0 into eclair

Merge commit '5bb200fde2306d9da1972a81c0238c26ca6f475b' into eclair-mr2-plus-aosp

* commit '5bb200fde2306d9da1972a81c0238c26ca6f475b':
Debugging for issue #2250075: Desk dock clock app sometimes doesn't
823edb76661d57c1af7dbf4eb56eb0e3cb78e229 12-Nov-2009 Dianne Hackborn <hackbod@google.com> am 532d5603: Merge change I80022375 into eclair

Merge commit '532d56034532809da7691059742371c1b4d0656c' into eclair-mr2

* commit '532d56034532809da7691059742371c1b4d0656c':
Fix issue #2256032: Change CONFIGURATION_CHANGED and add a locale changed broadcast
7a2d9782f939e8421d88f30f00aaa7a96c6d7eca 12-Nov-2009 Dianne Hackborn <hackbod@google.com> am 532d5603: Merge change I80022375 into eclair

Merge commit '532d56034532809da7691059742371c1b4d0656c' into eclair-plus-aosp

* commit '532d56034532809da7691059742371c1b4d0656c':
Fix issue #2256032: Change CONFIGURATION_CHANGED and add a locale changed broadcast
5bb200fde2306d9da1972a81c0238c26ca6f475b 12-Nov-2009 Dianne Hackborn <hackbod@google.com> am 2ade6421: Merge change I775e1ec0 into eclair

Merge commit '2ade6421f2d6dd615b559c951deace7143958b90' into eclair-mr2

* commit '2ade6421f2d6dd615b559c951deace7143958b90':
Debugging for issue #2250075: Desk dock clock app sometimes doesn't
af194fe6afeb45e9913ae124e50b535ca83ff523 12-Nov-2009 Dianne Hackborn <hackbod@google.com> am 2ade6421: Merge change I775e1ec0 into eclair

Merge commit '2ade6421f2d6dd615b559c951deace7143958b90' into eclair-plus-aosp

* commit '2ade6421f2d6dd615b559c951deace7143958b90':
Debugging for issue #2250075: Desk dock clock app sometimes doesn't
362d5b9b6429a2766f5b980d2010262135788ad8 12-Nov-2009 Dianne Hackborn <hackbod@google.com> Fix issue #2256032: Change CONFIGURATION_CHANGED and add a locale changed broadcast

You can no longer receive CONFIGURATION_CHANGED in a manifest, which is really really
bad (launching apps every time the screen is rotated!). A new LOCALE_CHANGED broadcast
is sent that you can receive in a manifest.

Change-Id: I80022375f0716db2e672382a29db3cea1af74702
om/android/server/am/ActivityManagerService.java
12527f9fb1cb0a1ad3be8149c1c88a0e731cb4d6 12-Nov-2009 Dianne Hackborn <hackbod@google.com> Debugging for issue #2250075: Desk dock clock app sometimes doesn't

This adds a history of the last 100 broadcasts that is printed in the
debug log, to be able to see what recently happened at the time the
bug report was taken. Also does some optimization of the printing of
the broadcast records to make it feasible to print this number of
entries. (We kind-of need to do this because there are some broadcasts
like SIG_STR and SYNC_STATE_CHANGED that are being broadcast a LOT.)

Change-Id: I775e1ec0f63369c8bca8c83cee27b95ddc5ec450
om/android/server/am/ActivityManagerService.java
om/android/server/am/BroadcastFilter.java
om/android/server/am/BroadcastRecord.java
2cd22586ab5c16a5caaeb4ec7114b040e07fd6bc 12-Nov-2009 Mike Lockwood <lockwood@android.com> am ad99c287: am f1f26bbb: Merge change I7b8b6cfb into eclair

Merge commit 'ad99c2876cf57a61829ac0b03ee48fa86a51da6b' into eclair-mr2-plus-aosp

* commit 'ad99c2876cf57a61829ac0b03ee48fa86a51da6b':
Do not force screen on when undocking from the desk dock.
3bfca6a3a78dee6ff695e4a1b273a939109b07ac 12-Nov-2009 Dianne Hackborn <hackbod@google.com> am e0751066: am 250aa068: Merge change Idf7fafd3 into eclair

Merge commit 'e0751066b05eda8532b7c7d9d55003796490e334' into eclair-mr2-plus-aosp

* commit 'e0751066b05eda8532b7c7d9d55003796490e334':
Fix issue #2248951: Need to turn off touch filtering outside of sholes
ad99c2876cf57a61829ac0b03ee48fa86a51da6b 12-Nov-2009 Mike Lockwood <lockwood@android.com> am f1f26bbb: Merge change I7b8b6cfb into eclair

Merge commit 'f1f26bbb2aa36f69f0efcac21ea27b1055b98a11' into eclair-mr2

* commit 'f1f26bbb2aa36f69f0efcac21ea27b1055b98a11':
Do not force screen on when undocking from the desk dock.
e0751066b05eda8532b7c7d9d55003796490e334 12-Nov-2009 Dianne Hackborn <hackbod@google.com> am 250aa068: Merge change Idf7fafd3 into eclair

Merge commit '250aa068eae7424d454fc65ea83c8a65ca717112' into eclair-mr2

* commit '250aa068eae7424d454fc65ea83c8a65ca717112':
Fix issue #2248951: Need to turn off touch filtering outside of sholes
6c82b7fe24d90ae7fc05bad8fd050aab0a2ebf39 12-Nov-2009 Dianne Hackborn <hackbod@google.com> am acbd9fda: am 48515f49: Merge change I0de7979b into eclair

Merge commit 'acbd9fdaf02ff14c873ce23cfa95afc71af69ae4' into eclair-mr2-plus-aosp

* commit 'acbd9fdaf02ff14c873ce23cfa95afc71af69ae4':
Fix issue #2170897: wallpaper touch-up event not seen when exiting lock screen
bc12b0260b111393cbe354d571f9143dfddf439d 12-Nov-2009 Mike Lockwood <lockwood@android.com> am f1f26bbb: Merge change I7b8b6cfb into eclair

Merge commit 'f1f26bbb2aa36f69f0efcac21ea27b1055b98a11' into eclair-plus-aosp

* commit 'f1f26bbb2aa36f69f0efcac21ea27b1055b98a11':
Do not force screen on when undocking from the desk dock.
1d069925363c684eda639f076d19232b7b6d47ca 12-Nov-2009 Mike Lockwood <lockwood@android.com> Do not force screen on when undocking from the desk dock.

The fact that the phone is losing power will do this anyway,
and this fixes (or works around) bug b/2250075
(Desk dock clock app sometimes doesn't exit when removing a sleeping droid from the dock)

Change-Id: I7b8b6cfb44ca16d2d9eb67589cb9d9a108a8de82
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/DockObserver.java
b1557cc417b75ba3d423f6a963c2a10e18913f1a 11-Nov-2009 Dianne Hackborn <hackbod@google.com> am 250aa068: Merge change Idf7fafd3 into eclair

Merge commit '250aa068eae7424d454fc65ea83c8a65ca717112' into eclair-plus-aosp

* commit '250aa068eae7424d454fc65ea83c8a65ca717112':
Fix issue #2248951: Need to turn off touch filtering outside of sholes
acbd9fdaf02ff14c873ce23cfa95afc71af69ae4 11-Nov-2009 Dianne Hackborn <hackbod@google.com> am 48515f49: Merge change I0de7979b into eclair

Merge commit '48515f495b29c01b473579825d5ba5e690ff5db7' into eclair-mr2

* commit '48515f495b29c01b473579825d5ba5e690ff5db7':
Fix issue #2170897: wallpaper touch-up event not seen when exiting lock screen
7e2b4f602a1a876475da2756c5b92297552e0bc8 11-Nov-2009 Jean-Baptiste Queru <jbq@google.com> merge from open-source master
65cb605e5d6ba099e7ce085e284b0b46fde8cabc 11-Nov-2009 Dianne Hackborn <hackbod@google.com> Fix issue #2248951: Need to turn off touch filtering outside of sholes

Yet another configuration!

Change-Id: Idf7fafd338a2bebd4c305c131cd9b7ae4f906a5b
om/android/server/KeyInputQueue.java
348cf2f7d1231f1bd159b5a6eb107b904af56bf0 11-Nov-2009 Dianne Hackborn <hackbod@google.com> am 48515f49: Merge change I0de7979b into eclair

Merge commit '48515f495b29c01b473579825d5ba5e690ff5db7' into eclair-plus-aosp

* commit '48515f495b29c01b473579825d5ba5e690ff5db7':
Fix issue #2170897: wallpaper touch-up event not seen when exiting lock screen
48515f495b29c01b473579825d5ba5e690ff5db7 11-Nov-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I0de7979b into eclair

* changes:
Fix issue #2170897: wallpaper touch-up event not seen when exiting lock screen
6adba2467ca524b4c4f3d775de6aa10a9ad57aea 10-Nov-2009 Dianne Hackborn <hackbod@google.com> Fix issue #2170897: wallpaper touch-up event not seen when exiting lock screen

Make sure to deliver events to the wallpaper until the final up.

Also fix behavior in the case where a window goes away while the pointer is still
down in it, which is a fairly novel situation introduced by the new lock screen.

Also add infrastructure for delivering motion events during preview.

Change-Id: I0de7979be27e00caf0b1eff794ea899a815142f6
om/android/server/WindowManagerService.java
f30404929e4f44eeb1190d85e1b3794a24b4a5b4 10-Nov-2009 Mike Lockwood <lockwood@android.com> am e93f49b7: am cc9a63db: Add support for specifying the current LCD brightness mode to the backlight driver.

Merge commit 'e93f49b7ff34b1f8c689b6a3ed85ef92b64d094a' into eclair-mr2-plus-aosp

* commit 'e93f49b7ff34b1f8c689b6a3ed85ef92b64d094a':
Add support for specifying the current LCD brightness mode to the backlight driver.
c2ae1aa55a629576234c40c7a8cd456e347203dc 10-Nov-2009 Mike Lockwood <lockwood@android.com> am cc9a63db: Add support for specifying the current LCD brightness mode to the backlight driver.

Merge commit 'cc9a63dbc2b5569ef65ec3a04d86dbdfdee3f134' into eclair-plus-aosp

* commit 'cc9a63dbc2b5569ef65ec3a04d86dbdfdee3f134':
Add support for specifying the current LCD brightness mode to the backlight driver.
e93f49b7ff34b1f8c689b6a3ed85ef92b64d094a 10-Nov-2009 Mike Lockwood <lockwood@android.com> am cc9a63db: Add support for specifying the current LCD brightness mode to the backlight driver.

Merge commit 'cc9a63dbc2b5569ef65ec3a04d86dbdfdee3f134' into eclair-mr2

* commit 'cc9a63dbc2b5569ef65ec3a04d86dbdfdee3f134':
Add support for specifying the current LCD brightness mode to the backlight driver.
cc9a63dbc2b5569ef65ec3a04d86dbdfdee3f134 10-Nov-2009 Mike Lockwood <lockwood@android.com> Add support for specifying the current LCD brightness mode to the backlight driver.

This allows the driver to behave differently depending on if the lighting is being
managed by the light sensor or by a user preference.

Change-Id: I4b9325f82b7aded0ce5cfc6c07658666bbdae331
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/HardwareService.java
om/android/server/PowerManagerService.java
260fdc776b5455df5ce01cf745e1591eeac6d9f4 10-Nov-2009 Mike Lockwood <lockwood@android.com> am 07e7e3f4: am 50c548d2: Disabling user activity now resets user power state so the keyguard can set short screen timeout when keyguard is unhidden.

Merge commit '07e7e3f4be8fac3b7b6b2bea492429d66fbb0a9c' into eclair-mr2-plus-aosp

* commit '07e7e3f4be8fac3b7b6b2bea492429d66fbb0a9c':
Disabling user activity now resets user power state so the keyguard can set short screen timeout when keyguard is unhidden.
07e7e3f4be8fac3b7b6b2bea492429d66fbb0a9c 10-Nov-2009 Mike Lockwood <lockwood@android.com> am 50c548d2: Disabling user activity now resets user power state so the keyguard can set short screen timeout when keyguard is unhidden.

Merge commit '50c548d242d637328ec6b2c4987969b02695cc7d' into eclair-mr2

* commit '50c548d242d637328ec6b2c4987969b02695cc7d':
Disabling user activity now resets user power state so the keyguard can set short screen timeout when keyguard is unhidden.
70e12210a1e1671651e8877e613bf001abf7f973 10-Nov-2009 Mike Lockwood <lockwood@android.com> am 50c548d2: Disabling user activity now resets user power state so the keyguard can set short screen timeout when keyguard is unhidden.

Merge commit '50c548d242d637328ec6b2c4987969b02695cc7d' into eclair-plus-aosp

* commit '50c548d242d637328ec6b2c4987969b02695cc7d':
Disabling user activity now resets user power state so the keyguard can set short screen timeout when keyguard is unhidden.
50c548d242d637328ec6b2c4987969b02695cc7d 09-Nov-2009 Mike Lockwood <lockwood@android.com> Disabling user activity now resets user power state so the keyguard can set short screen timeout when keyguard is unhidden.

This is part of a fix for bug b/2248320 (Lock screen does not time out after

Change-Id: Iba7f8a7b9997ecb0e4da37667600055f9a35531c
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/PowerManagerService.java
16182e74c81e6a54826a57aa6ddcd7df2c2c11da 10-Nov-2009 Mike Lockwood <lockwood@android.com> am 245eaeed: am ee2b094d: Do not deactivate the proximity sensor until after the sensor returns negative.

Merge commit '245eaeedf873c5c60e1ad442d2290c108336fb67' into eclair-mr2-plus-aosp

* commit '245eaeedf873c5c60e1ad442d2290c108336fb67':
Do not deactivate the proximity sensor until after the sensor returns negative.
5f289596bac72ddd56506bc10bef455ee288ebfe 10-Nov-2009 Mike Lockwood <lockwood@android.com> am ee2b094d: Do not deactivate the proximity sensor until after the sensor returns negative.

Merge commit 'ee2b094de0c5d7ffa64d51e7bd4ec3238be97113' into eclair-plus-aosp

* commit 'ee2b094de0c5d7ffa64d51e7bd4ec3238be97113':
Do not deactivate the proximity sensor until after the sensor returns negative.
245eaeedf873c5c60e1ad442d2290c108336fb67 10-Nov-2009 Mike Lockwood <lockwood@android.com> am ee2b094d: Do not deactivate the proximity sensor until after the sensor returns negative.

Merge commit 'ee2b094de0c5d7ffa64d51e7bd4ec3238be97113' into eclair-mr2

* commit 'ee2b094de0c5d7ffa64d51e7bd4ec3238be97113':
Do not deactivate the proximity sensor until after the sensor returns negative.
ee2b094de0c5d7ffa64d51e7bd4ec3238be97113 09-Nov-2009 Mike Lockwood <lockwood@android.com> Do not deactivate the proximity sensor until after the sensor returns negative.

This ensures that we do not get cheek presses immediately after a call is ended.
Fixes bug b/2246824 (prox sensor subtleties when call ends)

Change-Id: I97d39b7689d9ea2e94ea9aceeb93bf15228ec095
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/PowerManagerService.java
5747e11ca058b18da6105100994aece6d610fb99 10-Nov-2009 Mike Lockwood <lockwood@android.com> am e4fed7dc: am de342a01: Merge change Idcd98310 into eclair

Merge commit 'e4fed7dc2465726892da426ae193bbec9a34d554' into eclair-mr2-plus-aosp

* commit 'e4fed7dc2465726892da426ae193bbec9a34d554':
PowerManagerService: enable logging for when mPowerState changes.
e4fed7dc2465726892da426ae193bbec9a34d554 10-Nov-2009 Mike Lockwood <lockwood@android.com> am de342a01: Merge change Idcd98310 into eclair

Merge commit 'de342a01a0272540c8468fcfcf0f0067c0d743e0' into eclair-mr2

* commit 'de342a01a0272540c8468fcfcf0f0067c0d743e0':
PowerManagerService: enable logging for when mPowerState changes.
548816533ae1c2a46fb41ac66c61812059ff4f34 10-Nov-2009 Mike Lockwood <lockwood@android.com> am de342a01: Merge change Idcd98310 into eclair

Merge commit 'de342a01a0272540c8468fcfcf0f0067c0d743e0' into eclair-plus-aosp

* commit 'de342a01a0272540c8468fcfcf0f0067c0d743e0':
PowerManagerService: enable logging for when mPowerState changes.
de342a01a0272540c8468fcfcf0f0067c0d743e0 10-Nov-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change Idcd98310 into eclair

* changes:
PowerManagerService: enable logging for when mPowerState changes.
eac4222f7f30bf1df14b223cf62e594914dd32d4 10-Nov-2009 Marco Nelissen <marcone@google.com> am 949ffa3d: am 11cff8cd: Merge change Ie211adae into eclair

Merge commit '949ffa3da5231772425c3bde50caeab6c4d08ec5' into eclair-mr2-plus-aosp

* commit '949ffa3da5231772425c3bde50caeab6c4d08ec5':
Add a way for wallpapers to know the delta between virtual screens.
949ffa3da5231772425c3bde50caeab6c4d08ec5 10-Nov-2009 Marco Nelissen <marcone@google.com> am 11cff8cd: Merge change Ie211adae into eclair

Merge commit '11cff8cd30f03b5adb137e985532543da5e960c4' into eclair-mr2

* commit '11cff8cd30f03b5adb137e985532543da5e960c4':
Add a way for wallpapers to know the delta between virtual screens.
47fc5e2a43af7cf42d535d6e3c2dba3507d6a543 10-Nov-2009 Marco Nelissen <marcone@google.com> am 11cff8cd: Merge change Ie211adae into eclair

Merge commit '11cff8cd30f03b5adb137e985532543da5e960c4' into eclair-plus-aosp

* commit '11cff8cd30f03b5adb137e985532543da5e960c4':
Add a way for wallpapers to know the delta between virtual screens.
bf6956b1d95442e9d9c483894d578fe6b7044cbb 10-Nov-2009 Marco Nelissen <marcone@google.com> Add a way for wallpapers to know the delta between virtual screens.
om/android/server/WindowManagerService.java
24ace3395b532e3cbb63d2a6197a91dd9242bb36 10-Nov-2009 Mike Lockwood <lockwood@android.com> PowerManagerService: enable logging for when mPowerState changes.

Change-Id: Idcd983106d66629070eda15e1160f708c789ab05
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/PowerManagerService.java
6a3f9e24b61e4da16bec7846b504c851ac7ac289 10-Nov-2009 Mike Lockwood <lockwood@android.com> am 6bfd8d2a: am ba8eb1ef: Use SystemClock.elapsedRealtime() instead of sensor timestamp

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

* commit '6bfd8d2a31037716f2e0964625807fc7b8e90e92':
Use SystemClock.elapsedRealtime() instead of sensor timestamp
e59631b601dda685cd0ad244ec502ff3bf308dc0 10-Nov-2009 Mike Lockwood <lockwood@android.com> am 149f6710: am 17479ebe: Merge change I1bc566a1 into eclair

Merge commit '149f6710f774f36570de7be8ffa3dd6e8194a11d' into eclair-mr2-plus-aosp

* commit '149f6710f774f36570de7be8ffa3dd6e8194a11d':
Ignore the light sensor if the screen is turning off.
6bfd8d2a31037716f2e0964625807fc7b8e90e92 10-Nov-2009 Mike Lockwood <lockwood@android.com> am ba8eb1ef: Use SystemClock.elapsedRealtime() instead of sensor timestamp

Merge commit 'ba8eb1efefdc98c016b64e10c26f9729697f254f' into eclair-mr2

* commit 'ba8eb1efefdc98c016b64e10c26f9729697f254f':
Use SystemClock.elapsedRealtime() instead of sensor timestamp
149f6710f774f36570de7be8ffa3dd6e8194a11d 10-Nov-2009 Mike Lockwood <lockwood@android.com> am 17479ebe: Merge change I1bc566a1 into eclair

Merge commit '17479ebe90a5ebd17ee386b8fd83256765afce0b' into eclair-mr2

* commit '17479ebe90a5ebd17ee386b8fd83256765afce0b':
Ignore the light sensor if the screen is turning off.
f2db9fb0f877057a9ef56908d54f3c95fc3fd552 31-Aug-2009 Alexey Tarasov <tarasov@dodologics.com> Typo fix in javadoc

@throw -> @throws
@Deprecated -> @deprecated
om/android/server/LocationManagerService.java
65fac51faf8ffe759a634497b1654a3b47406107 09-Nov-2009 Mike Lockwood <lockwood@android.com> am 9882f385: am 96fce6e1: Merge change I62704736 into eclair

Merge commit '9882f38584882461dbfef229e4fe316dacebd9c5' into eclair-mr2-plus-aosp

* commit '9882f38584882461dbfef229e4fe316dacebd9c5':
Do not apply light sensor debounce logic while the light sensor is still warming up.
9882f38584882461dbfef229e4fe316dacebd9c5 09-Nov-2009 Mike Lockwood <lockwood@android.com> am 96fce6e1: Merge change I62704736 into eclair

Merge commit '96fce6e112aec1e09c82cfd7657381ce112dc555' into eclair-mr2

* commit '96fce6e112aec1e09c82cfd7657381ce112dc555':
Do not apply light sensor debounce logic while the light sensor is still warming up.
f10be630999cbbe3c90c1379b6199114a749e082 09-Nov-2009 Mike Lockwood <lockwood@android.com> am ba8eb1ef: Use SystemClock.elapsedRealtime() instead of sensor timestamp

Merge commit 'ba8eb1efefdc98c016b64e10c26f9729697f254f' into eclair-plus-aosp

* commit 'ba8eb1efefdc98c016b64e10c26f9729697f254f':
Use SystemClock.elapsedRealtime() instead of sensor timestamp
3e0677168009600c771eb12dc89789ab004e67ae 09-Nov-2009 Mike Lockwood <lockwood@android.com> am 17479ebe: Merge change I1bc566a1 into eclair

Merge commit '17479ebe90a5ebd17ee386b8fd83256765afce0b' into eclair-plus-aosp

* commit '17479ebe90a5ebd17ee386b8fd83256765afce0b':
Ignore the light sensor if the screen is turning off.
34894fb43e93e9ce1dfa91a39abe622d8e3de468 09-Nov-2009 Mike Lockwood <lockwood@android.com> am 96fce6e1: Merge change I62704736 into eclair

Merge commit '96fce6e112aec1e09c82cfd7657381ce112dc555' into eclair-plus-aosp

* commit '96fce6e112aec1e09c82cfd7657381ce112dc555':
Do not apply light sensor debounce logic while the light sensor is still warming up.
ba8eb1efefdc98c016b64e10c26f9729697f254f 09-Nov-2009 Mike Lockwood <lockwood@android.com> Use SystemClock.elapsedRealtime() instead of sensor timestamp

when processing light and proximity events.
This should fix loss of 2 second hysterisis for light sensor (b/2243521)

Change-Id: Ia3ce331e67d803eb5e51810cb7161b7c528312d7
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/PowerManagerService.java
497087e33d422d576d007f72fb970613d008f1cf 09-Nov-2009 Mike Lockwood <lockwood@android.com> Ignore the light sensor if the screen is turning off.

Fixes bug b/2202165. The light sensor was interfering with the screen off animation.

Change-Id: I1bc566a164af689b60b066e6cb3dcbf7959bc50a
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/PowerManagerService.java
20ee6f2dd30b8f0940b5f447ef2df340628e1876 08-Nov-2009 Mike Lockwood <lockwood@android.com> Do not apply light sensor debounce logic while the light sensor is still warming up.

This allows us to adjust immediately when we receive a correct light sensor reading
after the screen turns on.

Change-Id: I627047365640761727348e577c9164a6d6be2772
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/PowerManagerService.java
4335552259c893dc5e8ebfd8980a36ff8547ee5d 06-Nov-2009 Mike Lockwood <lockwood@android.com> am dc2a3f60: am b8933665: Merge change I3f0ded49 into eclair

Merge commit 'dc2a3f60f2bed20ceb44d18ae03e75d360de4ca6' into eclair-mr2-plus-aosp

* commit 'dc2a3f60f2bed20ceb44d18ae03e75d360de4ca6':
Increase light sensor delay from one to two seconds.
dc2a3f60f2bed20ceb44d18ae03e75d360de4ca6 06-Nov-2009 Mike Lockwood <lockwood@android.com> am b8933665: Merge change I3f0ded49 into eclair

Merge commit 'b8933665376905c91069eb29fa78c029aa790ce9' into eclair-mr2

* commit 'b8933665376905c91069eb29fa78c029aa790ce9':
Increase light sensor delay from one to two seconds.
fe84a0cfbfc3d84fefcc3ebd98924237dab19f74 06-Nov-2009 Mike Lockwood <lockwood@android.com> am b8933665: Merge change I3f0ded49 into eclair

Merge commit 'b8933665376905c91069eb29fa78c029aa790ce9' into eclair-plus-aosp

* commit 'b8933665376905c91069eb29fa78c029aa790ce9':
Increase light sensor delay from one to two seconds.
9b813692f5cfe06f10416b61bcb388f1e9ac198b 06-Nov-2009 Mike Lockwood <lockwood@android.com> Increase light sensor delay from one to two seconds.

Change-Id: I3f0ded49cb447835133cf8d5d693260e8312aa89
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/PowerManagerService.java
7e3873a0d24453057850b408f17fa0e2e37ba0c7 06-Nov-2009 Charles Mendis <cmendis@google.com> am 6b07bf3d: am 3cba7288: Merge change I6ccd2ebc into eclair

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

* commit '6b07bf3d8f8f9b5124c19f1206e11634a774c356':
Expose PowerManager.isScreenOn in the public api.
d1c0ecae60a8e4d925a95ed6dbdd00448eee0550 06-Nov-2009 Charles Mendis <cmendis@google.com> am 3cba7288: Merge change I6ccd2ebc into eclair

Merge commit '3cba72880b78b81cda2868136462c9e261a3e403' into eclair-plus-aosp

* commit '3cba72880b78b81cda2868136462c9e261a3e403':
Expose PowerManager.isScreenOn in the public api.
6b07bf3d8f8f9b5124c19f1206e11634a774c356 06-Nov-2009 Charles Mendis <cmendis@google.com> am 3cba7288: Merge change I6ccd2ebc into eclair

Merge commit '3cba72880b78b81cda2868136462c9e261a3e403' into eclair-mr2

* commit '3cba72880b78b81cda2868136462c9e261a3e403':
Expose PowerManager.isScreenOn in the public api.
322591cb4b158dc2edbc3d95cd02e44f132feb5f 29-Oct-2009 Charles Mendis <cmendis@google.com> Expose PowerManager.isScreenOn in the public api.

Change-Id: I6ccd2ebcbf3f8ad9ffa4b86a9c037cb0c25a7b78
om/android/server/PowerManagerService.java
om/android/server/WindowManagerService.java
bd2473a9aaf0504609e7b8caca00646af53bbed6 06-Nov-2009 Mike Lockwood <lockwood@android.com> am 0cb3f587: am 0d72f7e9: Fix a race condition that could result in the screen being forced off indefinitely after a phone call.

Merge commit '0cb3f58741efa2b2b7477cbae973a29e614c62e8' into eclair-mr2-plus-aosp

* commit '0cb3f58741efa2b2b7477cbae973a29e614c62e8':
Fix a race condition that could result in the screen being forced off indefinitely after a phone call.
0cb3f58741efa2b2b7477cbae973a29e614c62e8 06-Nov-2009 Mike Lockwood <lockwood@android.com> am 0d72f7e9: Fix a race condition that could result in the screen being forced off indefinitely after a phone call.

Merge commit '0d72f7e9fc0d6f774eda5758d111bec5608bcf42' into eclair-mr2

* commit '0d72f7e9fc0d6f774eda5758d111bec5608bcf42':
Fix a race condition that could result in the screen being forced off indefinitely after a phone call.
0bb02894a404a6d286c2ae8cccb17f329b031413 06-Nov-2009 Mike Lockwood <lockwood@android.com> am 0d72f7e9: Fix a race condition that could result in the screen being forced off indefinitely after a phone call.

Merge commit '0d72f7e9fc0d6f774eda5758d111bec5608bcf42' into eclair-plus-aosp

* commit '0d72f7e9fc0d6f774eda5758d111bec5608bcf42':
Fix a race condition that could result in the screen being forced off indefinitely after a phone call.
0d72f7e9fc0d6f774eda5758d111bec5608bcf42 06-Nov-2009 Mike Lockwood <lockwood@android.com> Fix a race condition that could result in the screen being forced off indefinitely after a phone call.

This should fix a "black screen" bug that Motorola identified.
mProximitySensorActive was being set to true due to a proximity sensor change being posted
just after we disabled the proximity sensor.
Now we ignore proximity changes after the phone app releases the proximity lock after the call is done.

Change-Id: I417d423de3d43515389b1b7b008cdcb795cd10f6
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/PowerManagerService.java
972bad3cb805494e10b0af1a40c1c3b2dc8d1fea 06-Nov-2009 Suchi Amalapurapu <asuchitra@google.com> am 750e82e5: am bf50200b: Merge change Ic9568e39 into eclair

Merge commit '750e82e51921428dc4ad9a75f18b02b8048734d8' into eclair-mr2-plus-aosp

* commit '750e82e51921428dc4ad9a75f18b02b8048734d8':
When tasks are moved to top or bottom, the app tokens are being rearranged.
750e82e51921428dc4ad9a75f18b02b8048734d8 06-Nov-2009 Suchi Amalapurapu <asuchitra@google.com> am bf50200b: Merge change Ic9568e39 into eclair

Merge commit 'bf50200ba494db0ac2ce655a95f76640f49355ee' into eclair-mr2

* commit 'bf50200ba494db0ac2ce655a95f76640f49355ee':
When tasks are moved to top or bottom, the app tokens are being rearranged.
7442abf98e5e722afb361c6f0cb7aef2609e854b 06-Nov-2009 Suchi Amalapurapu <asuchitra@google.com> am bf50200b: Merge change Ic9568e39 into eclair

Merge commit 'bf50200ba494db0ac2ce655a95f76640f49355ee' into eclair-plus-aosp

* commit 'bf50200ba494db0ac2ce655a95f76640f49355ee':
When tasks are moved to top or bottom, the app tokens are being rearranged.
e0c1bc983431254a6fb4084ccda507f15e8247f6 06-Nov-2009 Mike Lockwood <lockwood@android.com> am b31174de: am 9ce3df55: Merge change I2c6e54e4 into eclair

Merge commit 'b31174de6a3d5ba39ccea02c9b653ea4f950bb89' into eclair-mr2-plus-aosp

* commit 'b31174de6a3d5ba39ccea02c9b653ea4f950bb89':
Throttle proximity sensor values so we do not process more than one change a second.
b31174de6a3d5ba39ccea02c9b653ea4f950bb89 06-Nov-2009 Mike Lockwood <lockwood@android.com> am 9ce3df55: Merge change I2c6e54e4 into eclair

Merge commit '9ce3df55bab12bea563faf764f7beb3555d5942c' into eclair-mr2

* commit '9ce3df55bab12bea563faf764f7beb3555d5942c':
Throttle proximity sensor values so we do not process more than one change a second.
c9568e3989f1491abaa7960eca986af12743cb05 06-Nov-2009 Suchi Amalapurapu <asuchitra@google.com> When tasks are moved to top or bottom, the app tokens are being rearranged.
The window token rearrangement is defered if an animation is
underway. Force a focus recomputation when the window tokens are finally
rearranged so that we have a valid focused window.
om/android/server/WindowManagerService.java
om/android/server/am/ActivityManagerService.java
d7f852488b5ba2a40de9c21d3d097bfe906eb737 06-Nov-2009 Mike Lockwood <lockwood@android.com> am 9ce3df55: Merge change I2c6e54e4 into eclair

Merge commit '9ce3df55bab12bea563faf764f7beb3555d5942c' into eclair-plus-aosp

* commit '9ce3df55bab12bea563faf764f7beb3555d5942c':
Throttle proximity sensor values so we do not process more than one change a second.
9ce3df55bab12bea563faf764f7beb3555d5942c 06-Nov-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I2c6e54e4 into eclair

* changes:
Throttle proximity sensor values so we do not process more than one change a second.
8d9ef036115981735b5d32181e7d8cbea174dc2a 05-Nov-2009 Android Code Review <code-review@android.com> Merge change I8f67f092

* changes:
Fix of compatibility with multifunction extUSB adapters. Tested with HTC YC A300.
9d216dfd5169be831f9e542e6225b132924918b1 05-Nov-2009 Amith Yamasani <yamasani@google.com> am 7b2aa74f: am 4ab2c777: Merge change I14fb81af into eclair

Merge commit '7b2aa74f4644979acea456e1047c96e17e09bc6d' into eclair-mr2-plus-aosp

* commit '7b2aa74f4644979acea456e1047c96e17e09bc6d':
Fix for 2221718: Hang in BatteryStatsService.noteBluetoothOn
7b2aa74f4644979acea456e1047c96e17e09bc6d 05-Nov-2009 Amith Yamasani <yamasani@google.com> am 4ab2c777: Merge change I14fb81af into eclair

Merge commit '4ab2c7770c8e55072ee7a083fa84e318e07c8c3e' into eclair-mr2

* commit '4ab2c7770c8e55072ee7a083fa84e318e07c8c3e':
Fix for 2221718: Hang in BatteryStatsService.noteBluetoothOn
99b5f8cf69383effbaa77a8d33556b5bcab3f9a2 05-Nov-2009 Amith Yamasani <yamasani@google.com> am 4ab2c777: Merge change I14fb81af into eclair

Merge commit '4ab2c7770c8e55072ee7a083fa84e318e07c8c3e' into eclair-plus-aosp

* commit '4ab2c7770c8e55072ee7a083fa84e318e07c8c3e':
Fix for 2221718: Hang in BatteryStatsService.noteBluetoothOn
20f87d7aed6c926eadd8beea44968a8d13780021 05-Nov-2009 Mike Lockwood <lockwood@android.com> Throttle proximity sensor values so we do not process more than one change a second.

This is to prevent a noisy proximity sensor from causing the screen to turn on and off
in rapid succession, which can trigger race conditions in the keyguard manager.

Change-Id: I2c6e54e4b41716e038854ed9a827c901579c8865
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/PowerManagerService.java
14fb81af281468735bed1da99931ecc5a0539344 05-Nov-2009 Amith Yamasani <yamasani@google.com> Fix for 2221718: Hang in BatteryStatsService.noteBluetoothOn

This should remove the deadlock. I'm not absolutely positive that
it fixes it, as it's not easy to reproduce.
om/android/server/am/BatteryStatsService.java
d6210cdeb72bee9de12a9f69da9f2cd8011f37e0 05-Nov-2009 Eric Olsen <eolsen@android.com> am e772eb7a: am 62335430: Merge change I4499ad72 into eclair

Merge commit 'e772eb7af049b55c89241fae799569030c1f5570' into eclair-mr2-plus-aosp

* commit 'e772eb7af049b55c89241fae799569030c1f5570':
Fix bad merge fixes build breakage.
e772eb7af049b55c89241fae799569030c1f5570 05-Nov-2009 Eric Olsen <eolsen@android.com> am 62335430: Merge change I4499ad72 into eclair

Merge commit '62335430b05d92ad2255bf20b76b35e012b385c9' into eclair-mr2

* commit '62335430b05d92ad2255bf20b76b35e012b385c9':
Fix bad merge fixes build breakage.
8e49e998fd66905904fbc9fc8e1022430b3b1780 05-Nov-2009 Eric Olsen <eolsen@android.com> am 62335430: Merge change I4499ad72 into eclair

Merge commit '62335430b05d92ad2255bf20b76b35e012b385c9' into eclair-plus-aosp

* commit '62335430b05d92ad2255bf20b76b35e012b385c9':
Fix bad merge fixes build breakage.
62335430b05d92ad2255bf20b76b35e012b385c9 05-Nov-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I4499ad72 into eclair

* changes:
Fix bad merge fixes build breakage.
4499ad729ac4ae3bad5911385a61b7ef0e5493d7 05-Nov-2009 Eric Olsen <eolsen@android.com> Fix bad merge fixes build breakage.

Signed-off-by: Eric Olsen <eolsen@android.com>
om/android/server/HardwareService.java
122f412a0177c54e32d52a23bf92b78aae4679f7 05-Nov-2009 Eric Olsen <eolsen@android.com> am 76922b83: am 9053fdb3: Merge change I76127f6f into eclair

Merge commit '76922b8378f235e79fd861ba846bed833199e59f' into eclair-mr2-plus-aosp

* commit '76922b8378f235e79fd861ba846bed833199e59f':
Add support for colored LED on jogball backlight.
76922b8378f235e79fd861ba846bed833199e59f 05-Nov-2009 Eric Olsen <eolsen@android.com> am 9053fdb3: Merge change I76127f6f into eclair

Merge commit '9053fdb32b38d1240d856bd6efedf72eefba48d3' into eclair-mr2

* commit '9053fdb32b38d1240d856bd6efedf72eefba48d3':
Add support for colored LED on jogball backlight.
5a301c0d1762fa7e0b425c3f71375a873135f463 05-Nov-2009 Eric Olsen <eolsen@android.com> am 9053fdb3: Merge change I76127f6f into eclair

Merge commit '9053fdb32b38d1240d856bd6efedf72eefba48d3' into eclair-plus-aosp

* commit '9053fdb32b38d1240d856bd6efedf72eefba48d3':
Add support for colored LED on jogball backlight.
9d45108a5f341f426d2e5472e6c9319b8e482748 05-Nov-2009 Christopher Tate <ctate@android.com> am 888b702c: am 595596fe: Merge change I561011bc into eclair

Merge commit '888b702c81b21847b19c4e2845686ed35cc03a0e' into eclair-mr2-plus-aosp

* commit '888b702c81b21847b19c4e2845686ed35cc03a0e':
Fix #2176803 - restores from userdebug to user builds not working
9053fdb32b38d1240d856bd6efedf72eefba48d3 05-Nov-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I76127f6f into eclair

* changes:
Add support for colored LED on jogball backlight.
888b702c81b21847b19c4e2845686ed35cc03a0e 05-Nov-2009 Christopher Tate <ctate@android.com> am 595596fe: Merge change I561011bc into eclair

Merge commit '595596fe6b6fd52bf26d224f18b8724a4d151316' into eclair-mr2

* commit '595596fe6b6fd52bf26d224f18b8724a4d151316':
Fix #2176803 - restores from userdebug to user builds not working
409d10c30c4397e1989004696cd2fb46333e775c 05-Nov-2009 Christopher Tate <ctate@android.com> am 595596fe: Merge change I561011bc into eclair

Merge commit '595596fe6b6fd52bf26d224f18b8724a4d151316' into eclair-plus-aosp

* commit '595596fe6b6fd52bf26d224f18b8724a4d151316':
Fix #2176803 - restores from userdebug to user builds not working
f42f15cf450772d8eeb9c0c81a8403d33ffe1c9b 30-Oct-2009 Eric Olsen <eolsen@android.com> Add support for colored LED on jogball backlight.

Signed-off-by: Eric Olsen <eolsen@android.com>
om/android/server/HardwareService.java
78dd4a737172afe98c25ad19dacc0106a6f5474a 04-Nov-2009 Christopher Tate <ctate@android.com> Fix #2176803 - restores from userdebug to user builds not working

The underlying issue is that ordinarily, the restore mechanism checks the
signature block of the package which uploaded the restore data against the
signature of the package on-device that will be handling the restore. This is
to ensure that the restore goes to the "same" application as the one that
uploaded it.

However, applications bundled on the system partition as part of the device
build are signed not with a permanent, app-identifying signature, but rather
with the device's signature block, which is different for each kind of device
and potentially between kinds of build for the same device. That renders the
stored backup data unusable when changing devices / builds / etc.

This change works around the problem by explicitly privileging applications that
reside on the system partition: they have been built into the device, and so
are trusted to be able to handle data that is marked as coming from its package
name.

Change-Id: I561011bce2b54cff3e695e82e7544b126b6ac31e
om/android/server/BackupManagerService.java
7efae9ae50923ebe1bd1b50c0397220b8f0d642f 04-Nov-2009 Mike Lockwood <lockwood@android.com> am 6de8bbb0: am 27c6dd7a: PowerManagerService: Fix manual brightness mode.

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

* commit '6de8bbb00a6183c7d4eec76fa7f253cf80736422':
PowerManagerService: Fix manual brightness mode.
b8d8bb40a1d30795b1f71ce123024a9a26cd5848 04-Nov-2009 Mike Lockwood <lockwood@android.com> am 27c6dd7a: PowerManagerService: Fix manual brightness mode.

Merge commit '27c6dd7aa4ff6f57435a3c87d8b9a782cf7c9116' into eclair-plus-aosp

* commit '27c6dd7aa4ff6f57435a3c87d8b9a782cf7c9116':
PowerManagerService: Fix manual brightness mode.
6de8bbb00a6183c7d4eec76fa7f253cf80736422 04-Nov-2009 Mike Lockwood <lockwood@android.com> am 27c6dd7a: PowerManagerService: Fix manual brightness mode.

Merge commit '27c6dd7aa4ff6f57435a3c87d8b9a782cf7c9116' into eclair-mr2

* commit '27c6dd7aa4ff6f57435a3c87d8b9a782cf7c9116':
PowerManagerService: Fix manual brightness mode.
27c6dd7aa4ff6f57435a3c87d8b9a782cf7c9116 04-Nov-2009 Mike Lockwood <lockwood@android.com> PowerManagerService: Fix manual brightness mode.

Change-Id: I10aec64e3f7ae2715475b9797565747295c19a00
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/PowerManagerService.java
b0c8cd25fb9d00e96a6f028aec9749a3eccb09d8 04-Nov-2009 Amith Yamasani <yamasani@google.com> am 1283fd9e: am 86396f97: Merge changes Idcdd2978,Ied564b31,I6179126d into eclair

Merge commit '1283fd9e7f6fc2f7b74f916ad3033ae1bdd1a76f' into eclair-mr2-plus-aosp

* commit '1283fd9e7f6fc2f7b74f916ad3033ae1bdd1a76f':
Fix 2233444 (No IME).
Revert "Revert "Fix notification bar performance.""
Revert "Revert "fix 2233092 - Notification shade gets stuck half-open""
1209c012a2f4d25ab1ea10401d07a291e9dc3d62 04-Nov-2009 Amith Yamasani <yamasani@google.com> am 86396f97: Merge changes Idcdd2978,Ied564b31,I6179126d into eclair

Merge commit '86396f97c998358390d912903395828ee244e2d5' into eclair-plus-aosp

* commit '86396f97c998358390d912903395828ee244e2d5':
Fix 2233444 (No IME).
Revert "Revert "Fix notification bar performance.""
Revert "Revert "fix 2233092 - Notification shade gets stuck half-open""
1283fd9e7f6fc2f7b74f916ad3033ae1bdd1a76f 04-Nov-2009 Amith Yamasani <yamasani@google.com> am 86396f97: Merge changes Idcdd2978,Ied564b31,I6179126d into eclair

Merge commit '86396f97c998358390d912903395828ee244e2d5' into eclair-mr2

* commit '86396f97c998358390d912903395828ee244e2d5':
Fix 2233444 (No IME).
Revert "Revert "Fix notification bar performance.""
Revert "Revert "fix 2233092 - Notification shade gets stuck half-open""
fe6168b8976a2676e489108235887e0514043264 03-Nov-2009 Android Git Automerger <android-git-automerger@android.com> am c6b2d297: am b96a9d92: Revert "fix 2233092 - Notification shade gets stuck half-open"

Merge commit 'c6b2d2970891790aa1c626a6f0d5ea39f5240161' into eclair-mr2-plus-aosp

* commit 'c6b2d2970891790aa1c626a6f0d5ea39f5240161':
Revert "fix 2233092 - Notification shade gets stuck half-open"
264863cb4b63decefa5040106ec9fe19e6af27d8 03-Nov-2009 Android Git Automerger <android-git-automerger@android.com> am a3f84bb2: am 6e8f47b0: Revert "Fix notification bar performance."

Merge commit 'a3f84bb2f434d507c866e3e8c52e0817c00da958' into eclair-mr2-plus-aosp

* commit 'a3f84bb2f434d507c866e3e8c52e0817c00da958':
Revert "Fix notification bar performance."
6179126dad0396880ce6b808bf81c9e506757626 03-Nov-2009 Amith Yamasani <yamasani@google.com> Fix 2233444 (No IME).

Fix the flags for the StatusBarExpanded window that were causing the Window Manager to
think that it needed input.
om/android/server/status/StatusBarService.java
ed564b319d6c3b54a566e6400afa9262b2a4ae83 03-Nov-2009 Amith Yamasani <yamasani@google.com> Revert "Revert "Fix notification bar performance.""

This reverts commit 6e8f47b0ed2ffdb55b695d9f154cccd3ea3c98de.
om/android/server/status/StatusBarService.java
om/android/server/status/TrackingPatternView.java
dcdd29781a85c3cdc55d495cd8e77d9628b20010 03-Nov-2009 Amith Yamasani <yamasani@google.com> Revert "Revert "fix 2233092 - Notification shade gets stuck half-open""

This reverts commit b96a9d9296925fef6a1c0e5ad4d847d96bf9acb5.
om/android/server/status/StatusBarService.java
d2801942a94ac574043909796e09a786426dc467 03-Nov-2009 Android Git Automerger <android-git-automerger@android.com> am b96a9d92: Revert "fix 2233092 - Notification shade gets stuck half-open"

Merge commit 'b96a9d9296925fef6a1c0e5ad4d847d96bf9acb5' into eclair-plus-aosp

* commit 'b96a9d9296925fef6a1c0e5ad4d847d96bf9acb5':
Revert "fix 2233092 - Notification shade gets stuck half-open"
8383d06fac993fc74d8fe68be2001900c0fe74c5 03-Nov-2009 Android Git Automerger <android-git-automerger@android.com> am 6e8f47b0: Revert "Fix notification bar performance."

Merge commit '6e8f47b0ed2ffdb55b695d9f154cccd3ea3c98de' into eclair-plus-aosp

* commit '6e8f47b0ed2ffdb55b695d9f154cccd3ea3c98de':
Revert "Fix notification bar performance."
c6b2d2970891790aa1c626a6f0d5ea39f5240161 03-Nov-2009 Android Git Automerger <android-git-automerger@android.com> am b96a9d92: Revert "fix 2233092 - Notification shade gets stuck half-open"

Merge commit 'b96a9d9296925fef6a1c0e5ad4d847d96bf9acb5' into eclair-mr2

* commit 'b96a9d9296925fef6a1c0e5ad4d847d96bf9acb5':
Revert "fix 2233092 - Notification shade gets stuck half-open"
a3f84bb2f434d507c866e3e8c52e0817c00da958 03-Nov-2009 Android Git Automerger <android-git-automerger@android.com> am 6e8f47b0: Revert "Fix notification bar performance."

Merge commit '6e8f47b0ed2ffdb55b695d9f154cccd3ea3c98de' into eclair-mr2

* commit '6e8f47b0ed2ffdb55b695d9f154cccd3ea3c98de':
Revert "Fix notification bar performance."
b96a9d9296925fef6a1c0e5ad4d847d96bf9acb5 03-Nov-2009 Android Git Automerger <android-git-automerger@android.com> Revert "fix 2233092 - Notification shade gets stuck half-open"

As per Dr. No; revert commit 6a7899a8d6444989657d1058666269263b5b50c0.
om/android/server/status/StatusBarService.java
6e8f47b0ed2ffdb55b695d9f154cccd3ea3c98de 03-Nov-2009 Android Git Automerger <android-git-automerger@android.com> Revert "Fix notification bar performance."

As per Dr. No; revert commit 0d7dc3b800d0489c43ad9071615b2b4ebec80443.
om/android/server/status/StatusBarService.java
om/android/server/status/TrackingPatternView.java
44795bc2be71428dac7557468f24f71b7857a8f7 03-Nov-2009 Mike Lockwood <lockwood@android.com> am 0ce9c58f: am d2c68794: Merge changes I116424c4,Ibd0ef67f into eclair

Merge commit '0ce9c58fe33a3b96219944762adbff99d12212a3' into eclair-mr2-plus-aosp

* commit '0ce9c58fe33a3b96219944762adbff99d12212a3':
Remove obsolete hardware auto-brightness support.
Add documentation for proximity and light sensors.
5e2cd87f0964938736888c84cfe8e734e418758a 03-Nov-2009 Joe Onorato <joeo@android.com> am 564fe1ba: am 6a7899a8: fix 2233092 - Notification shade gets stuck half-open

Merge commit '564fe1ba091f816f03cfae4dbdebcc7df22ae7f9' into eclair-mr2-plus-aosp

* commit '564fe1ba091f816f03cfae4dbdebcc7df22ae7f9':
fix 2233092 - Notification shade gets stuck half-open
0ce9c58fe33a3b96219944762adbff99d12212a3 03-Nov-2009 Mike Lockwood <lockwood@android.com> am d2c68794: Merge changes I116424c4,Ibd0ef67f into eclair

Merge commit 'd2c68794364120d0531667e797f078416ebef3f5' into eclair-mr2

* commit 'd2c68794364120d0531667e797f078416ebef3f5':
Remove obsolete hardware auto-brightness support.
Add documentation for proximity and light sensors.
3580ee41f1fdc0597268a141646e3a98163b2e92 03-Nov-2009 Mike Lockwood <lockwood@android.com> am d2c68794: Merge changes I116424c4,Ibd0ef67f into eclair

Merge commit 'd2c68794364120d0531667e797f078416ebef3f5' into eclair-plus-aosp

* commit 'd2c68794364120d0531667e797f078416ebef3f5':
Remove obsolete hardware auto-brightness support.
Add documentation for proximity and light sensors.
564fe1ba091f816f03cfae4dbdebcc7df22ae7f9 03-Nov-2009 Joe Onorato <joeo@android.com> am 6a7899a8: fix 2233092 - Notification shade gets stuck half-open

Merge commit '6a7899a8d6444989657d1058666269263b5b50c0' into eclair-mr2

* commit '6a7899a8d6444989657d1058666269263b5b50c0':
fix 2233092 - Notification shade gets stuck half-open
179af55bd851e6ec3bb5ba8204c4432f4fb1a0be 03-Nov-2009 Joe Onorato <joeo@android.com> am 6a7899a8: fix 2233092 - Notification shade gets stuck half-open

Merge commit '6a7899a8d6444989657d1058666269263b5b50c0' into eclair-plus-aosp

* commit '6a7899a8d6444989657d1058666269263b5b50c0':
fix 2233092 - Notification shade gets stuck half-open
d2c68794364120d0531667e797f078416ebef3f5 03-Nov-2009 Android (Google) Code Review <android-gerrit@google.com> Merge changes I116424c4,Ibd0ef67f into eclair

* changes:
Remove obsolete hardware auto-brightness support.
Add documentation for proximity and light sensors.
6a7899a8d6444989657d1058666269263b5b50c0 03-Nov-2009 Joe Onorato <joeo@android.com> fix 2233092 - Notification shade gets stuck half-open

Follow up to bug 2195678. This was one of the reprocussions that
I was worried about with respect to that bug, so I'm counting
Dr. No on that change as the one for this one.
om/android/server/status/StatusBarService.java
f90ffcc639fe979f346f062d620d34c28e57c885 03-Nov-2009 Mike Lockwood <lockwood@android.com> Remove obsolete hardware auto-brightness support.

Change-Id: Ibd0ef67f887254f26ce19faf0627f8b246ec0a18
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/HardwareService.java
om/android/server/PowerManagerService.java
96c178498c7c65388955cb8d2f8f11b0fac76c8d 02-Nov-2009 Dan Egnor <egnor@google.com> am cc1d35e2: am afd81beb: Merge change Icbb3aa0a into eclair

Merge commit 'cc1d35e2e5e0c2370361294a64ff0e580856b9d2' into eclair-mr2-plus-aosp

* commit 'cc1d35e2e5e0c2370361294a64ff0e580856b9d2':
Use setRepeating() rather than setInexactRepeating() for backup scheduling,
cc1d35e2e5e0c2370361294a64ff0e580856b9d2 02-Nov-2009 Dan Egnor <egnor@google.com> am afd81beb: Merge change Icbb3aa0a into eclair

Merge commit 'afd81beb33cce3b296927d13821fe0dc874ce7db' into eclair-mr2

* commit 'afd81beb33cce3b296927d13821fe0dc874ce7db':
Use setRepeating() rather than setInexactRepeating() for backup scheduling,
d0f054a5ed5efef85c408e1a83a490649517bfe5 02-Nov-2009 Dan Egnor <egnor@google.com> am afd81beb: Merge change Icbb3aa0a into eclair

Merge commit 'afd81beb33cce3b296927d13821fe0dc874ce7db' into eclair-plus-aosp

* commit 'afd81beb33cce3b296927d13821fe0dc874ce7db':
Use setRepeating() rather than setInexactRepeating() for backup scheduling,
afd81beb33cce3b296927d13821fe0dc874ce7db 02-Nov-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change Icbb3aa0a into eclair

* changes:
Use setRepeating() rather than setInexactRepeating() for backup scheduling, and add some random fuzz to the scheduling times, to make sure we aren't creating hour-aligned server load spikes.
384b4b4efc6166268b9ac009cb375e035ceb46c0 02-Nov-2009 Joe Onorato <joeo@android.com> am c13a9d05: am cce9f0fa: Merge change I0d7dc3b8 into eclair

Merge commit 'c13a9d0515f1a6e9dbe64f00e711eef4776aaef3' into eclair-mr2-plus-aosp

* commit 'c13a9d0515f1a6e9dbe64f00e711eef4776aaef3':
Fix notification bar performance.
c13a9d0515f1a6e9dbe64f00e711eef4776aaef3 02-Nov-2009 Joe Onorato <joeo@android.com> am cce9f0fa: Merge change I0d7dc3b8 into eclair

Merge commit 'cce9f0fa862b6fa9de8dbf5a7a7b63167770a9b3' into eclair-mr2

* commit 'cce9f0fa862b6fa9de8dbf5a7a7b63167770a9b3':
Fix notification bar performance.
ac8d865866786661f63bb69fb0067b68cbed658f 02-Nov-2009 Joe Onorato <joeo@android.com> am cce9f0fa: Merge change I0d7dc3b8 into eclair

Merge commit 'cce9f0fa862b6fa9de8dbf5a7a7b63167770a9b3' into eclair-plus-aosp

* commit 'cce9f0fa862b6fa9de8dbf5a7a7b63167770a9b3':
Fix notification bar performance.
cce9f0fa862b6fa9de8dbf5a7a7b63167770a9b3 02-Nov-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I0d7dc3b8 into eclair

* changes:
Fix notification bar performance.
0d7dc3b800d0489c43ad9071615b2b4ebec80443 02-Nov-2009 Joe Onorato <joeo@android.com> Fix notification bar performance.

Bug 2195678

We had all this stuff there to keep the notification view
around so it doesn't need to be reconstructed each time,
and we weren't using it. This fixes that, and it looks
much better now.
om/android/server/status/StatusBarService.java
om/android/server/status/TrackingPatternView.java
a94da0e7d98cdeae65cd48d4e7cfcf8f8b9aacfb 02-Nov-2009 Mike Lockwood <lockwood@android.com> am e94261b8: am 989b76aa: Merge change Ieca126e6 into eclair

Merge commit 'e94261b874b7d0704dade14540dbb9477a828163' into eclair-mr2-plus-aosp

* commit 'e94261b874b7d0704dade14540dbb9477a828163':
Fix problem with proximity sensor not reawaking screen if the values change too quickly.
b98837dc2dfa79db036343bb9c97415ab548c89f 02-Nov-2009 Mike Lockwood <lockwood@android.com> am 989b76aa: Merge change Ieca126e6 into eclair

Merge commit '989b76aadd92538c7ab4ca00c34508b42fda8cef' into eclair-plus-aosp

* commit '989b76aadd92538c7ab4ca00c34508b42fda8cef':
Fix problem with proximity sensor not reawaking screen if the values change too quickly.
e94261b874b7d0704dade14540dbb9477a828163 02-Nov-2009 Mike Lockwood <lockwood@android.com> am 989b76aa: Merge change Ieca126e6 into eclair

Merge commit '989b76aadd92538c7ab4ca00c34508b42fda8cef' into eclair-mr2

* commit '989b76aadd92538c7ab4ca00c34508b42fda8cef':
Fix problem with proximity sensor not reawaking screen if the values change too quickly.
952211b4ae8fa8cd626ae5a077b87924f35e0081 02-Nov-2009 Mike Lockwood <lockwood@android.com> Fix problem with proximity sensor not reawaking screen if the values change too quickly.

The logic that disables user activity while turning off the screen should not affect proximity sensor.

Fixes bug b/2228734 (in-call, prox sensor gets confused)

Change-Id: Ieca126e6f79bf7baa5741981aea72d306ba03edc
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/PowerManagerService.java
db61b03c23267d2687c18a4dfec1448ab5325764 02-Nov-2009 Mike Lockwood <lockwood@android.com> am b2346324: am f1d14f6a: Do not advance mLastEventTime when enabling or disabling user activity.

Merge commit 'b2346324e5f6062fed7bdeaedb9cf968b05050ec' into eclair-mr2-plus-aosp

* commit 'b2346324e5f6062fed7bdeaedb9cf968b05050ec':
Do not advance mLastEventTime when enabling or disabling user activity.
b2346324e5f6062fed7bdeaedb9cf968b05050ec 02-Nov-2009 Mike Lockwood <lockwood@android.com> am f1d14f6a: Do not advance mLastEventTime when enabling or disabling user activity.

Merge commit 'f1d14f6a33bc6086db52a77b6a1217452b7eac90' into eclair-mr2

* commit 'f1d14f6a33bc6086db52a77b6a1217452b7eac90':
Do not advance mLastEventTime when enabling or disabling user activity.
29d03dd25d4569e7a9c93299ae14f68bd892e414 02-Nov-2009 Mike Lockwood <lockwood@android.com> am f1d14f6a: Do not advance mLastEventTime when enabling or disabling user activity.

Merge commit 'f1d14f6a33bc6086db52a77b6a1217452b7eac90' into eclair-plus-aosp

* commit 'f1d14f6a33bc6086db52a77b6a1217452b7eac90':
Do not advance mLastEventTime when enabling or disabling user activity.
f1d14f6a33bc6086db52a77b6a1217452b7eac90 02-Nov-2009 Mike Lockwood <lockwood@android.com> Do not advance mLastEventTime when enabling or disabling user activity.

Fixes a race condition between the keyguard and power key that sometimes resulted
in the power key failing to turn off the screen.

Fixes bug b/2212852 (Power button does not put phone to sleep)

Change-Id: I92498c5fddf2bfc32b105ea1a7ea14a06d83888e
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/PowerManagerService.java
69cbd296820d21fac1f866fe8d3b03d3007bb241 02-Nov-2009 Mike Lockwood <lockwood@android.com> am f2055570: am 9efd523c: Add warning that hardware auto-brightness is deprecated and will be removed in the next release.

Merge commit 'f20555706c81dcb9fcb1fee9ce263072cd77ea3c' into eclair-mr2-plus-aosp

* commit 'f20555706c81dcb9fcb1fee9ce263072cd77ea3c':
Add warning that hardware auto-brightness is deprecated and will be removed in the next release.
0fe19fb891d65f94bdab46b2dd3ecfdabd2876ee 02-Nov-2009 Mike Lockwood <lockwood@android.com> am f6fc4131: am 4984e73d: Manage button and keyboard backlights with light sensor in both manual and automatic mode.

Merge commit 'f6fc41314d253962720b2c75f3a64025037acf0e' into eclair-mr2-plus-aosp

* commit 'f6fc41314d253962720b2c75f3a64025037acf0e':
Manage button and keyboard backlights with light sensor in both manual and automatic mode.
f20555706c81dcb9fcb1fee9ce263072cd77ea3c 01-Nov-2009 Mike Lockwood <lockwood@android.com> am 9efd523c: Add warning that hardware auto-brightness is deprecated and will be removed in the next release.

Merge commit '9efd523c4611c0cf10e712453a699c083a01064c' into eclair-mr2

* commit '9efd523c4611c0cf10e712453a699c083a01064c':
Add warning that hardware auto-brightness is deprecated and will be removed in the next release.
f6fc41314d253962720b2c75f3a64025037acf0e 01-Nov-2009 Mike Lockwood <lockwood@android.com> am 4984e73d: Manage button and keyboard backlights with light sensor in both manual and automatic mode.

Merge commit '4984e73dc5fc3df757e4ac8dd333b88151deb3ea' into eclair-mr2

* commit '4984e73dc5fc3df757e4ac8dd333b88151deb3ea':
Manage button and keyboard backlights with light sensor in both manual and automatic mode.
a0b0e720a1b57f54323e8b1d12e03f0c3e24ff5a 01-Nov-2009 Mike Lockwood <lockwood@android.com> am 9efd523c: Add warning that hardware auto-brightness is deprecated and will be removed in the next release.

Merge commit '9efd523c4611c0cf10e712453a699c083a01064c' into eclair-plus-aosp

* commit '9efd523c4611c0cf10e712453a699c083a01064c':
Add warning that hardware auto-brightness is deprecated and will be removed in the next release.
1cd948b427e95bec14815ae171eb5c867de785ad 01-Nov-2009 Mike Lockwood <lockwood@android.com> am 4984e73d: Manage button and keyboard backlights with light sensor in both manual and automatic mode.

Merge commit '4984e73dc5fc3df757e4ac8dd333b88151deb3ea' into eclair-plus-aosp

* commit '4984e73dc5fc3df757e4ac8dd333b88151deb3ea':
Manage button and keyboard backlights with light sensor in both manual and automatic mode.
9efd523c4611c0cf10e712453a699c083a01064c 01-Nov-2009 Mike Lockwood <lockwood@android.com> Add warning that hardware auto-brightness is deprecated and will be removed in the next release.

Change-Id: I90eae78f71f377f6479d0aaf7ced38a7b988a7ee
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/PowerManagerService.java
47fd5cd1fae6cfaac1b9d5c492be013663c0c9fc 01-Nov-2009 Mike Lockwood <lockwood@android.com> am 7dc642d0: am df024920: Don\'t turn on keyboard backlights when keyboard is closed in auto brightness mode.

Merge commit '7dc642d0b9f9395221818978d2cd9143cd3cad36' into eclair-mr2-plus-aosp

* commit '7dc642d0b9f9395221818978d2cd9143cd3cad36':
Don't turn on keyboard backlights when keyboard is closed in auto brightness mode.
301eff069cbf086450af7a6e546acda20ca0055f 01-Nov-2009 Mike Lockwood <lockwood@android.com> am 148f666b: am aa66ea88: Use separate flags for enabling hardware and software auto-brightness.

Merge commit '148f666b0a10183afc987809482f18d8199d747c' into eclair-mr2-plus-aosp

* commit '148f666b0a10183afc987809482f18d8199d747c':
Use separate flags for enabling hardware and software auto-brightness.
23fc31c793c832866b86afdaaba87430dfa1a6bb 01-Nov-2009 Mike Lockwood <lockwood@android.com> am df024920: Don\'t turn on keyboard backlights when keyboard is closed in auto brightness mode.

Merge commit 'df024920ebc63a82f570105c7a26e339ff244afd' into eclair-plus-aosp

* commit 'df024920ebc63a82f570105c7a26e339ff244afd':
Don't turn on keyboard backlights when keyboard is closed in auto brightness mode.
794b882e9bdbf07e8087cd74ca2d7378da7b2c31 01-Nov-2009 Mike Lockwood <lockwood@android.com> am aa66ea88: Use separate flags for enabling hardware and software auto-brightness.

Merge commit 'aa66ea880f58c9caa49e31c166bb3bd6bbf14e21' into eclair-plus-aosp

* commit 'aa66ea880f58c9caa49e31c166bb3bd6bbf14e21':
Use separate flags for enabling hardware and software auto-brightness.
7dc642d0b9f9395221818978d2cd9143cd3cad36 01-Nov-2009 Mike Lockwood <lockwood@android.com> am df024920: Don\'t turn on keyboard backlights when keyboard is closed in auto brightness mode.

Merge commit 'df024920ebc63a82f570105c7a26e339ff244afd' into eclair-mr2

* commit 'df024920ebc63a82f570105c7a26e339ff244afd':
Don't turn on keyboard backlights when keyboard is closed in auto brightness mode.
148f666b0a10183afc987809482f18d8199d747c 01-Nov-2009 Mike Lockwood <lockwood@android.com> am aa66ea88: Use separate flags for enabling hardware and software auto-brightness.

Merge commit 'aa66ea880f58c9caa49e31c166bb3bd6bbf14e21' into eclair-mr2

* commit 'aa66ea880f58c9caa49e31c166bb3bd6bbf14e21':
Use separate flags for enabling hardware and software auto-brightness.
4984e73dc5fc3df757e4ac8dd333b88151deb3ea 01-Nov-2009 Mike Lockwood <lockwood@android.com> Manage button and keyboard backlights with light sensor in both manual and automatic mode.

Now the manual brightness mode only applies to the LCD backlight and
button and keyboard backlights are always managed automatically.

Fixes bug b/2195798 (Passion capacitive key backlights don't always come on)

This change only affects the framework based auto-brightness implementation.
Hardware auto-brightness is not affected.

Change-Id: Ib88310d642d498591e8879c8269d630ff3f7c8af
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/PowerManagerService.java
df024920ebc63a82f570105c7a26e339ff244afd 30-Oct-2009 Mike Lockwood <lockwood@android.com> Don't turn on keyboard backlights when keyboard is closed in auto brightness mode.

For framework light sensor support (does not affect hardware based approach).

Change-Id: I6896a7c5b3fd3ed136c4f25c63a0e5813c349f68
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/PowerManagerService.java
aa66ea880f58c9caa49e31c166bb3bd6bbf14e21 31-Oct-2009 Mike Lockwood <lockwood@android.com> Use separate flags for enabling hardware and software auto-brightness.

This cleans up the code in preparation for some other auto-brightness changes
and fixes support for devices without light sensors.

Change-Id: I3d4802cf860a865ffd86a8bb57cd57b46359433d
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/PowerManagerService.java
c1c49c024f990bf54b2a7d16fdf5110263693aea 31-Oct-2009 Dan Egnor <egnor@google.com> Use setRepeating() rather than setInexactRepeating() for backup scheduling,
and add some random fuzz to the scheduling times, to make sure we aren't
creating hour-aligned server load spikes.

See bug 2226553 for details & Dr. No information.
om/android/server/BackupManagerService.java
df4bc1d1d508a6482fa9985d415e3e3afc114a28 30-Oct-2009 Suchi Amalapurapu <asuchitra@google.com> am a7bbedca: am 22dad592: Merge change I6cae32c7 into eclair

Merge commit 'a7bbedca97498e75b32c6f6ca4afe56d4cf481f7' into eclair-mr2-plus-aosp

* commit 'a7bbedca97498e75b32c6f6ca4afe56d4cf481f7':
When upgrading packages with shared user ids make sure we are eliminating
a7bbedca97498e75b32c6f6ca4afe56d4cf481f7 30-Oct-2009 Suchi Amalapurapu <asuchitra@google.com> am 22dad592: Merge change I6cae32c7 into eclair

Merge commit '22dad5928d1d1f2c791616d9d6ab3a3172cec62e' into eclair-mr2

* commit '22dad5928d1d1f2c791616d9d6ab3a3172cec62e':
When upgrading packages with shared user ids make sure we are eliminating
f545e798ebbe7e081c8e87ad32aa450388364bef 29-Oct-2009 Suchi Amalapurapu <asuchitra@google.com> am 18eedbac: am a47a1e77: Merge change Ic03d28b9 into eclair

Merge commit '18eedbacac964f200309f99fdfca06a0a01e5bf5' into eclair-mr2-plus-aosp

* commit '18eedbacac964f200309f99fdfca06a0a01e5bf5':
Check that the window which wants to force hide is visible before setting the flag forceHiding to true. If we do layout the surfaces
18eedbacac964f200309f99fdfca06a0a01e5bf5 29-Oct-2009 Suchi Amalapurapu <asuchitra@google.com> am a47a1e77: Merge change Ic03d28b9 into eclair

Merge commit 'a47a1e77a4dc9510187f57d5cdf12f5ecf6b3ab0' into eclair-mr2

* commit 'a47a1e77a4dc9510187f57d5cdf12f5ecf6b3ab0':
Check that the window which wants to force hide is visible before setting the flag forceHiding to true. If we do layout the surfaces
25510e077766cf023dd0adb9c84d6d5f82cc01bc 29-Oct-2009 Eric Fischer <enf@google.com> am 8071b146: am fb872d1a: Merge change Id4d04def into eclair

Merge commit '8071b14680f8081019ac1b995d7c7f09a8aeeba7' into eclair-mr2-plus-aosp

* commit '8071b14680f8081019ac1b995d7c7f09a8aeeba7':
Fix a race that kept the locale picker from working under heavy CPU load.
a41ff4b7c2b68aa5d651bcecfce9fc9621c145cb 29-Oct-2009 Mike Lockwood <lockwood@android.com> am c867958e: am d376d240: Merge change I081f08c1 into eclair

Merge commit 'c867958eb6fb50210a767fa24757bfa19228c22e' into eclair-mr2-plus-aosp

* commit 'c867958eb6fb50210a767fa24757bfa19228c22e':
A better solution for ignoring user activity while the screen is animating off.
4f049475c739dadeea53b428bf2e445a78ebaec5 29-Oct-2009 Mike Lockwood <lockwood@android.com> am f634f492: am 5ef89808: Merge change I9c242127 into eclair

Merge commit 'f634f4922894cc23a9b2298a0c971ffac763c132' into eclair-mr2-plus-aosp

* commit 'f634f4922894cc23a9b2298a0c971ffac763c132':
PowerManagerService: Animate LCD backlight changes due to autobrightness support.
8071b14680f8081019ac1b995d7c7f09a8aeeba7 29-Oct-2009 Eric Fischer <enf@google.com> am fb872d1a: Merge change Id4d04def into eclair

Merge commit 'fb872d1af3c775114ac7d241eb1924a9aafbb9df' into eclair-mr2

* commit 'fb872d1af3c775114ac7d241eb1924a9aafbb9df':
Fix a race that kept the locale picker from working under heavy CPU load.
c867958eb6fb50210a767fa24757bfa19228c22e 29-Oct-2009 Mike Lockwood <lockwood@android.com> am d376d240: Merge change I081f08c1 into eclair

Merge commit 'd376d2407bbc14a2d221dfef9955d0feeab0d550' into eclair-mr2

* commit 'd376d2407bbc14a2d221dfef9955d0feeab0d550':
A better solution for ignoring user activity while the screen is animating off.
f634f4922894cc23a9b2298a0c971ffac763c132 29-Oct-2009 Mike Lockwood <lockwood@android.com> am 5ef89808: Merge change I9c242127 into eclair

Merge commit '5ef898080c1b8b596531c938eae87b3c35331ac2' into eclair-mr2

* commit '5ef898080c1b8b596531c938eae87b3c35331ac2':
PowerManagerService: Animate LCD backlight changes due to autobrightness support.
ebacbff0f495f768d5f022efec5fb5a7dee85ae1 29-Oct-2009 Suchi Amalapurapu <asuchitra@google.com> am 22dad592: Merge change I6cae32c7 into eclair

Merge commit '22dad5928d1d1f2c791616d9d6ab3a3172cec62e' into eclair-plus-aosp

* commit '22dad5928d1d1f2c791616d9d6ab3a3172cec62e':
When upgrading packages with shared user ids make sure we are eliminating
d83006cbe86545a1e8882b1a4ed90005ebf3423e 29-Oct-2009 Suchi Amalapurapu <asuchitra@google.com> When upgrading packages with shared user ids make sure we are eliminating
the package about to be deleted or upgraded when updating permissions associated
with the shared user. Include a simple null check when retrieving the permission.

Fix PackageParser to avoid ArrayIndexOutOfBounds exceptions in several places
om/android/server/PackageManagerService.java
473bbd2140a2515a6a9a450ee955a790e0b6dcff 29-Oct-2009 Dan Egnor <egnor@google.com> am 95240270: Instead of a raw AIDL interface, give DropBox a Java interface (android.os.DropBox); move the Binder interface behind the scenes. Make DropBoxEntry into DropBox.Entry. Make it possible to get a dropbox from an (Application)Context with the usual getSyste

Merge commit '952402704a175ba27f6c89dff1ada634c5ce5626' into eclair-mr2-plus-aosp

* commit '952402704a175ba27f6c89dff1ada634c5ce5626':
Instead of a raw AIDL interface, give DropBox a Java
952402704a175ba27f6c89dff1ada634c5ce5626 28-Oct-2009 Dan Egnor <egnor@google.com> Instead of a raw AIDL interface, give DropBox a Java
interface (android.os.DropBox); move the Binder interface
behind the scenes. Make DropBoxEntry into DropBox.Entry.
Make it possible to get a dropbox from an (Application)Context
with the usual getSystemService(DROPBOX_SERVICE) type thing.
Update the tests accordingly.
om/android/server/DropBoxService.java
om/android/server/SystemServer.java
cdf899435f816321b02b933037cd823c35dde2cc 28-Oct-2009 Suchi Amalapurapu <asuchitra@google.com> am a47a1e77: Merge change Ic03d28b9 into eclair

Merge commit 'a47a1e77a4dc9510187f57d5cdf12f5ecf6b3ab0' into eclair-plus-aosp

* commit 'a47a1e77a4dc9510187f57d5cdf12f5ecf6b3ab0':
Check that the window which wants to force hide is visible before setting the flag forceHiding to true. If we do layout the surfaces
c03d28b9e96f667d29ec6e480bed171bbd07169d 28-Oct-2009 Suchi Amalapurapu <asuchitra@google.com> Check that the window which wants to force hide is visible before setting the flag forceHiding to true. If we do layout the surfaces
again this flag gets set no matter what since the keyguard window is always present in the list of tokens and this hides the window which would
have become visible since the keyguard just got dismissed.
This causes unnecessary focus changes due to changes in visibility of current window.

This will resolve issues related to current focus and time outs when dispatching key events.
om/android/server/WindowManagerService.java
80b6367dc6e2c6339884eed5b16f462289eb28b7 28-Oct-2009 Mike Lockwood <lockwood@android.com> am 8d1eeb21: am 2d155d26: PowerManagerService: Fix bug resulting in backlights turning on while screen is off.

Merge commit '8d1eeb2144945365cae281552bd7bc5eb14f7688' into eclair-mr2-plus-aosp

* commit '8d1eeb2144945365cae281552bd7bc5eb14f7688':
PowerManagerService: Fix bug resulting in backlights turning on while screen is off.
e1da9d35834fa9680ab2e23fde42eb0eacb28ac7 28-Oct-2009 Mike Lockwood <lockwood@android.com> am 7c64d448: am 8061f64f: Merge change Ib0d3d9d0 into eclair

Merge commit '7c64d4486ad8704f0b63474e2da0dd89147771ad' into eclair-mr2-plus-aosp

* commit '7c64d4486ad8704f0b63474e2da0dd89147771ad':
PowerManagerService: Clear Binder calling identity around calls to Sensor Manager.
c2f735741bf944a0331eea3545c226238afacb9d 28-Oct-2009 Christopher Tate <ctate@android.com> am 763ccae7: Merge change I8e7f5f07 into eclair

Merge commit '763ccae7d734cc7e55772936dc3f101a2bf453d4' into eclair-plus-aosp

* commit '763ccae7d734cc7e55772936dc3f101a2bf453d4':
DO NOT MERGE: Fix loss of focus after wakeup into incall screen
763ccae7d734cc7e55772936dc3f101a2bf453d4 28-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I8e7f5f07 into eclair

* changes:
DO NOT MERGE: Fix loss of focus after wakeup into incall screen
405d0898630a1c35e8e5ece072d8703fd68aca3b 28-Oct-2009 Christopher Tate <ctate@android.com> DO NOT MERGE: Fix loss of focus after wakeup into incall screen

Because of the asynchronous behavior of keyguard, and incall explicitly
disabling keyguard, sometimes the window manager would wind up in a state in
which the "correct" app and activity window were shown, but focus was
recalculated "too soon," at a time when keyguard was just about gone but not
quite, and incall was not yet fully shown. In this case there was no currently
valid event target, but the final show of the incall window would not prompt a
focus recalculation, so that "no current focus" state would incorrectly persist,
resulting in spurious ANRs until some other phone activity forced a focus
update.

We now detect the problematic case when windows are shown, and make sure to
recalculate focus explicitly thereafter. This change does *not* fix the
underlying race conditions that have been resulting in mismatched state within
the window manager, but it does force a validation pass that puts things in
order so that normal operation can continue.

Change-Id: I8e7f5f0795f0042a0da074aeed385e3fbc210360
om/android/server/WindowManagerService.java
8d1eeb2144945365cae281552bd7bc5eb14f7688 28-Oct-2009 Mike Lockwood <lockwood@android.com> am 2d155d26: PowerManagerService: Fix bug resulting in backlights turning on while screen is off.

Merge commit '2d155d264e5cefc27abf2c5020fcfa06bde755ec' into eclair-mr2

* commit '2d155d264e5cefc27abf2c5020fcfa06bde755ec':
PowerManagerService: Fix bug resulting in backlights turning on while screen is off.
7c64d4486ad8704f0b63474e2da0dd89147771ad 28-Oct-2009 Mike Lockwood <lockwood@android.com> am 8061f64f: Merge change Ib0d3d9d0 into eclair

Merge commit '8061f64f6246116381131fc7951b6d88be37161a' into eclair-mr2

* commit '8061f64f6246116381131fc7951b6d88be37161a':
PowerManagerService: Clear Binder calling identity around calls to Sensor Manager.
5b9dee8c07ccbb54dde2261c63fe1b15bf11acb1 28-Oct-2009 Mike Lockwood <lockwood@android.com> am 4dee223c: am 86328a99: LocationManagerService: clear calling identity in mock provider calls.

Merge commit '4dee223c68d98ebac6bb3d91c2d6e47eb2b0a001' into eclair-mr2-plus-aosp

* commit '4dee223c68d98ebac6bb3d91c2d6e47eb2b0a001':
LocationManagerService: clear calling identity in mock provider calls.
84b0d236a307915d3de8ffeb6fad1d8b89cd8d16 28-Oct-2009 Mike Lockwood <lockwood@android.com> am ed7755cc: am 3333fa4f: PowerManagerService: Ensure that recent changes do not effect the hardware ALS case.

Merge commit 'ed7755cc30fe6b2b0254207347629ad0cae094db' into eclair-mr2-plus-aosp

* commit 'ed7755cc30fe6b2b0254207347629ad0cae094db':
PowerManagerService: Ensure that recent changes do not effect the hardware ALS case.
4dee223c68d98ebac6bb3d91c2d6e47eb2b0a001 28-Oct-2009 Mike Lockwood <lockwood@android.com> am 86328a99: LocationManagerService: clear calling identity in mock provider calls.

Merge commit '86328a99bd55532e318441d48ee9eb96cdc42403' into eclair-mr2

* commit '86328a99bd55532e318441d48ee9eb96cdc42403':
LocationManagerService: clear calling identity in mock provider calls.
ed7755cc30fe6b2b0254207347629ad0cae094db 28-Oct-2009 Mike Lockwood <lockwood@android.com> am 3333fa4f: PowerManagerService: Ensure that recent changes do not effect the hardware ALS case.

Merge commit '3333fa4f3d2e1bd3842fe7d41d19557ff9a98372' into eclair-mr2

* commit '3333fa4f3d2e1bd3842fe7d41d19557ff9a98372':
PowerManagerService: Ensure that recent changes do not effect the hardware ALS case.
bf09620baf289464d2392cd5b31d4ccd70db121b 28-Oct-2009 Eric Fischer <enf@google.com> am fb872d1a: Merge change Id4d04def into eclair

Merge commit 'fb872d1af3c775114ac7d241eb1924a9aafbb9df' into eclair-plus-aosp

* commit 'fb872d1af3c775114ac7d241eb1924a9aafbb9df':
Fix a race that kept the locale picker from working under heavy CPU load.
fb872d1af3c775114ac7d241eb1924a9aafbb9df 28-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change Id4d04def into eclair

* changes:
Fix a race that kept the locale picker from working under heavy CPU load.
69dfa623089981d5f1a3287962fcbd01b0949e4c 28-Oct-2009 Mike Lockwood <lockwood@android.com> am d376d240: Merge change I081f08c1 into eclair

Merge commit 'd376d2407bbc14a2d221dfef9955d0feeab0d550' into eclair-plus-aosp

* commit 'd376d2407bbc14a2d221dfef9955d0feeab0d550':
A better solution for ignoring user activity while the screen is animating off.
05067120682487df7121b8d2b6f7b02deeb9cd93 28-Oct-2009 Mike Lockwood <lockwood@android.com> A better solution for ignoring user activity while the screen is animating off.

Fixes a deadlock that occurred because mAnimatingScreenOff was left set to true
after aborting turning off the screen.
This change removes the mAnimatingScreenOff flag and checks for
(mScreenBrightness.animating && mScreenBrightness.targetValue == 0) instead.

Fixes bug b/2219706

Change-Id: I081f08c14ad7585a953fb567867238b1f3db841f
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/PowerManagerService.java
d4d04def2cad706894098f6e0c779b173e95892c 28-Oct-2009 Eric Fischer <enf@google.com> Fix a race that kept the locale picker from working under heavy CPU load.

The locale picker and the activity transition would both change the
configuration, and depending upon the timing, the activity transition
would undo what the locale picker had just done. Usually it worked right,
but would often fail if the user changed locales just after a data wipe,
when the media scanner was working hard in the background to index
the contents of the SD card.

http://b/issue?id=2216298
om/android/server/am/ActivityManagerService.java
21df525f67ec9aededa01649f8cca7c0bb99f303 27-Oct-2009 Mike Lockwood <lockwood@android.com> am 5ef89808: Merge change I9c242127 into eclair

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

* commit '5ef898080c1b8b596531c938eae87b3c35331ac2':
PowerManagerService: Animate LCD backlight changes due to autobrightness support.
dd9668ec63887136b62642546d4b82ff21db17f8 27-Oct-2009 Mike Lockwood <lockwood@android.com> PowerManagerService: Animate LCD backlight changes due to autobrightness support.

Change-Id: I9c242127df801125c30f399198d1f7e9c8579612
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/PowerManagerService.java
a5ead91de535b18647644ae51f55b6fee7171518 27-Oct-2009 Mike Lockwood <lockwood@android.com> am 2d155d26: PowerManagerService: Fix bug resulting in backlights turning on while screen is off.

Merge commit '2d155d264e5cefc27abf2c5020fcfa06bde755ec' into eclair-plus-aosp

* commit '2d155d264e5cefc27abf2c5020fcfa06bde755ec':
PowerManagerService: Fix bug resulting in backlights turning on while screen is off.
2d155d264e5cefc27abf2c5020fcfa06bde755ec 27-Oct-2009 Mike Lockwood <lockwood@android.com> PowerManagerService: Fix bug resulting in backlights turning on while screen is off.

Fixes bugs b/2216879 and b/2197060

Change-Id: I5de3cbdbc0601dd7950dba74cacfff06d41ad18e
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/PowerManagerService.java
cc9961e1954d29bf49b3f8ac6f00e16a5119c9fc 27-Oct-2009 Mike Lockwood <lockwood@android.com> am 8061f64f: Merge change Ib0d3d9d0 into eclair

Merge commit '8061f64f6246116381131fc7951b6d88be37161a' into eclair-plus-aosp

* commit '8061f64f6246116381131fc7951b6d88be37161a':
PowerManagerService: Clear Binder calling identity around calls to Sensor Manager.
809ad0fce357de0a55fbc57356a06f29a1021e3b 27-Oct-2009 Mike Lockwood <lockwood@android.com> PowerManagerService: Clear Binder calling identity around calls to Sensor Manager.

This fixes a problem that resulted in bogus battery statistics for the prox and light sensors
due to the sensors being enabled in an app's context and disabled in the system context.

Fixes problems reported in bug b/2211960

Change-Id: Ib0d3d9d06f043b386d3b8d494b9bad5bd40bb6e1
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/PowerManagerService.java
ce5d49d0436484857a834d0146f1a89076b96ce6 26-Oct-2009 Mike Lockwood <lockwood@android.com> am 86328a99: LocationManagerService: clear calling identity in mock provider calls.

Merge commit '86328a99bd55532e318441d48ee9eb96cdc42403' into eclair-plus-aosp

* commit '86328a99bd55532e318441d48ee9eb96cdc42403':
LocationManagerService: clear calling identity in mock provider calls.
86328a99bd55532e318441d48ee9eb96cdc42403 23-Oct-2009 Mike Lockwood <lockwood@android.com> LocationManagerService: clear calling identity in mock provider calls.

Fixes bug b/2198028 (testDirectionsFromScratchByTyping fails because of android.permission.ACCESS_WIFI_STATE)

Change-Id: I44e95981d805189ed6d906d388c5189ee788802f
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/LocationManagerService.java
dc1b4bd3eb91c9c48e528c378df9ecfa528973c0 26-Oct-2009 Mike Lockwood <lockwood@android.com> am 3333fa4f: PowerManagerService: Ensure that recent changes do not effect the hardware ALS case.

Merge commit '3333fa4f3d2e1bd3842fe7d41d19557ff9a98372' into eclair-plus-aosp

* commit '3333fa4f3d2e1bd3842fe7d41d19557ff9a98372':
PowerManagerService: Ensure that recent changes do not effect the hardware ALS case.
3333fa4f3d2e1bd3842fe7d41d19557ff9a98372 26-Oct-2009 Mike Lockwood <lockwood@android.com> PowerManagerService: Ensure that recent changes do not effect the hardware ALS case.

Change-Id: I42d2d1331c2a6234dfbdaa99f0cc8ab249f7ce22
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/PowerManagerService.java
a6f7e41979cf34ab403c88b7c5521e1b5cfc442e 25-Oct-2009 Mike Lockwood <lockwood@android.com> am 9baeff05: am 6eb14c30: PowerManagerService: Do not enable light sensor if hardware backlight management is being used.

Merge commit '9baeff05a8bf9bd4479f2a357dca0463cc750202' into eclair-mr2-plus-aosp

* commit '9baeff05a8bf9bd4479f2a357dca0463cc750202':
PowerManagerService: Do not enable light sensor if hardware backlight management is being used.
9baeff05a8bf9bd4479f2a357dca0463cc750202 25-Oct-2009 Mike Lockwood <lockwood@android.com> am 6eb14c30: PowerManagerService: Do not enable light sensor if hardware backlight management is being used.

Merge commit '6eb14c30387d9c13538887e54bc180a430b2ac40' into eclair-mr2

* commit '6eb14c30387d9c13538887e54bc180a430b2ac40':
PowerManagerService: Do not enable light sensor if hardware backlight management is being used.
1b1cfbad20773c2e109b883205fa244d5be78d7a 25-Oct-2009 Mike Lockwood <lockwood@android.com> am 6eb14c30: PowerManagerService: Do not enable light sensor if hardware backlight management is being used.

Merge commit '6eb14c30387d9c13538887e54bc180a430b2ac40' into eclair-plus-aosp

* commit '6eb14c30387d9c13538887e54bc180a430b2ac40':
PowerManagerService: Do not enable light sensor if hardware backlight management is being used.
6eb14c30387d9c13538887e54bc180a430b2ac40 25-Oct-2009 Mike Lockwood <lockwood@android.com> PowerManagerService: Do not enable light sensor if hardware backlight management is being used.

Change-Id: Ic652ac22ec3256d71d12504148927349dfbd3384
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/PowerManagerService.java
23546ac55d3196fa93786018230f3e4a30e2dc2c 23-Oct-2009 Robert Greenwalt <robdroid@android.com> am 48153e7f: Merge change I064698b3 into eclair-mr2

Merge commit '48153e7f7fe46586c1994d69f899f75355847245' into eclair-mr2-plus-aosp

* commit '48153e7f7fe46586c1994d69f899f75355847245':
Add wifi "HANGED" driver state triggering reload.
f75aa36fc86989ca3bae2f46207e6b897a32d7ae 23-Oct-2009 Robert Greenwalt <robdroid@android.com> Add wifi "HANGED" driver state triggering reload.

The driver can now report to us that they are hosed and we'll shut
down wifi and restart it - only to be used as a last resort.

Also fixing synch problem with updateWifiState.

bug: 2173119
om/android/server/WifiService.java
8368e510a90ab30a9f850144f5adabb0455d26f9 23-Oct-2009 Dianne Hackborn <hackbod@google.com> am c6bead14: am 7580493b: Implement feature #2117336: Create event communication APIs for live wallpaper

Merge commit 'c6bead14fe6fe70bcfd8802ee9f0259476a074ce' into eclair-mr2-plus-aosp

* commit 'c6bead14fe6fe70bcfd8802ee9f0259476a074ce':
Implement feature #2117336: Create event communication APIs for live wallpaper
53dee9654f787525ed03596a8d4be26afb883713 23-Oct-2009 Dianne Hackborn <hackbod@google.com> am 7580493b: Implement feature #2117336: Create event communication APIs for live wallpaper

Merge commit '7580493b014a2c7ea883cd291255798dc72ebbff' into eclair-plus-aosp

* commit '7580493b014a2c7ea883cd291255798dc72ebbff':
Implement feature #2117336: Create event communication APIs for live wallpaper
c6bead14fe6fe70bcfd8802ee9f0259476a074ce 23-Oct-2009 Dianne Hackborn <hackbod@google.com> am 7580493b: Implement feature #2117336: Create event communication APIs for live wallpaper

Merge commit '7580493b014a2c7ea883cd291255798dc72ebbff' into eclair-mr2

* commit '7580493b014a2c7ea883cd291255798dc72ebbff':
Implement feature #2117336: Create event communication APIs for live wallpaper
7580493b014a2c7ea883cd291255798dc72ebbff 21-Oct-2009 Dianne Hackborn <hackbod@google.com> Implement feature #2117336: Create event communication APIs for live wallpaper

Note: currently only implements an async version (no result), and not yet
actually tested.

Change-Id: Id47ed045a4b0eb309ea8c58daf41a0e03eff1d3a
om/android/server/WindowManagerService.java
52ab52f35b9b6be78b818f377608c18d97f137ce 23-Oct-2009 Eric Fischer <enf@google.com> am fa48000a: am 94f2c524: Merge change I63c2d9ed into eclair

Merge commit 'fa48000a25a32de1a117c716dcd6f9c255bffe58' into eclair-mr2-plus-aosp

* commit 'fa48000a25a32de1a117c716dcd6f9c255bffe58':
Update the names of the widgets when the locale changes.
fa48000a25a32de1a117c716dcd6f9c255bffe58 23-Oct-2009 Eric Fischer <enf@google.com> am 94f2c524: Merge change I63c2d9ed into eclair

Merge commit '94f2c524214b56ac2416f79cf9e81fa598327917' into eclair-mr2

* commit '94f2c524214b56ac2416f79cf9e81fa598327917':
Update the names of the widgets when the locale changes.
d11b463c739a7ac9fb9c3d491761e5b7c1d92328 23-Oct-2009 Eric Fischer <enf@google.com> am 94f2c524: Merge change I63c2d9ed into eclair

Merge commit '94f2c524214b56ac2416f79cf9e81fa598327917' into eclair-plus-aosp

* commit '94f2c524214b56ac2416f79cf9e81fa598327917':
Update the names of the widgets when the locale changes.
94f2c524214b56ac2416f79cf9e81fa598327917 23-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I63c2d9ed into eclair

* changes:
Update the names of the widgets when the locale changes.
63c2d9ed9cb2174137ee43acb6ee2a86ff4451ea 23-Oct-2009 Eric Fischer <enf@google.com> Update the names of the widgets when the locale changes.

Bug 1814373, Bug 2152730
om/android/server/AppWidgetService.java
36cf8123d8cf9047c64633a963706f40cecc0bb1 22-Oct-2009 Mike Lockwood <lockwood@android.com> am d278ffc0: am 96e0c315: Merge change Ia3f7ef64 into eclair

Merge commit 'd278ffc0984d730b333f53636a223eae6d9b7657' into eclair-mr2-plus-aosp

* commit 'd278ffc0984d730b333f53636a223eae6d9b7657':
PowerManager: Don't poke user activity in setKeyboardVisibility unless the state actually changed.
f79518165e8191fa3aba7df9c5e4f62fc7af98b1 22-Oct-2009 Mike Lockwood <lockwood@android.com> am 96e0c315: Merge change Ia3f7ef64 into eclair

Merge commit '96e0c3156e21bbdb0d94201b08d80379b98c472a' into eclair-plus-aosp

* commit '96e0c3156e21bbdb0d94201b08d80379b98c472a':
PowerManager: Don't poke user activity in setKeyboardVisibility unless the state actually changed.
d278ffc0984d730b333f53636a223eae6d9b7657 22-Oct-2009 Mike Lockwood <lockwood@android.com> am 96e0c315: Merge change Ia3f7ef64 into eclair

Merge commit '96e0c3156e21bbdb0d94201b08d80379b98c472a' into eclair-mr2

* commit '96e0c3156e21bbdb0d94201b08d80379b98c472a':
PowerManager: Don't poke user activity in setKeyboardVisibility unless the state actually changed.
3c9435a20597adec7ec2e110b92920b4a9ecb0e7 22-Oct-2009 Mike Lockwood <lockwood@android.com> PowerManager: Don't poke user activity in setKeyboardVisibility unless the state actually changed.

Fixes bug b/2158297 (lock screen should time out after 7 seconds)

Change-Id: Ia3f7ef6464129ab78283923dbfd7f7472136e676
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/PowerManagerService.java
54df9665d1580550de591cda5e715e78137cb5e5 22-Oct-2009 Mike Lockwood <lockwood@android.com> am fee0f577: Merge change I99dc6477 into eclair

Merge commit 'fee0f5773335e42f4ffdf2d2d1c344ceee3ccb33' into eclair-plus-aosp

* commit 'fee0f5773335e42f4ffdf2d2d1c344ceee3ccb33':
Add WindowManagerPolicy.allowKeyRepeat() method for disabling key repeats.
95b0d15e2d253658aa0e3ddd0a61ea705f12ea27 22-Oct-2009 Mike Lockwood <lockwood@android.com> am eadb97b4: Merge change I53f83502 into eclair

Merge commit 'eadb97b4826bb6a2fa34db9c65b5a0d6f7baade9' into eclair-plus-aosp

* commit 'eadb97b4826bb6a2fa34db9c65b5a0d6f7baade9':
PowerManagerService: Ignore user activity while the screen is animating off.
b830788c303d7faf2b8f14ebbd15cc3d6177e1a2 22-Oct-2009 Brandon Ballinger <brandonb@google.com> am 0737b164: Merge change I959a6f46 into eclair

Merge commit '0737b1643071694cf8767e3609ad628f1679d63a' into eclair-plus-aosp

* commit '0737b1643071694cf8767e3609ad628f1679d63a':
Fix bug 2194213: Non-default system IMEs are enabled, but not initially shown in input method switcher.
4c907528d941ff132f5f51ba2d3ac28b2208751f 22-Oct-2009 Mike Lockwood <lockwood@android.com> am 3d4247ef: am fee0f577: Merge change I99dc6477 into eclair

Merge commit '3d4247ef9541afc88af5ac8d4634f331b20ed5cb' into eclair-mr2-plus-aosp

* commit '3d4247ef9541afc88af5ac8d4634f331b20ed5cb':
Add WindowManagerPolicy.allowKeyRepeat() method for disabling key repeats.
61cf4b906ba09da49c924dc6f9295169c6638ef0 22-Oct-2009 Mike Lockwood <lockwood@android.com> am f8a57dcb: am eadb97b4: Merge change I53f83502 into eclair

Merge commit 'f8a57dcb5983ad465bff697bbccb0eca031e7072' into eclair-mr2-plus-aosp

* commit 'f8a57dcb5983ad465bff697bbccb0eca031e7072':
PowerManagerService: Ignore user activity while the screen is animating off.
a18f812540403aa3f19d3c4bdd1548aadbbec746 22-Oct-2009 Brandon Ballinger <brandonb@google.com> am 9f9f5621: am 0737b164: Merge change I959a6f46 into eclair

Merge commit '9f9f56212610ddd69c8af8ddeeed39265c0e58e1' into eclair-mr2-plus-aosp

* commit '9f9f56212610ddd69c8af8ddeeed39265c0e58e1':
Fix bug 2194213: Non-default system IMEs are enabled, but not initially shown in input method switcher.
3d4247ef9541afc88af5ac8d4634f331b20ed5cb 22-Oct-2009 Mike Lockwood <lockwood@android.com> am fee0f577: Merge change I99dc6477 into eclair

Merge commit 'fee0f5773335e42f4ffdf2d2d1c344ceee3ccb33' into eclair-mr2

* commit 'fee0f5773335e42f4ffdf2d2d1c344ceee3ccb33':
Add WindowManagerPolicy.allowKeyRepeat() method for disabling key repeats.
f8a57dcb5983ad465bff697bbccb0eca031e7072 22-Oct-2009 Mike Lockwood <lockwood@android.com> am eadb97b4: Merge change I53f83502 into eclair

Merge commit 'eadb97b4826bb6a2fa34db9c65b5a0d6f7baade9' into eclair-mr2

* commit 'eadb97b4826bb6a2fa34db9c65b5a0d6f7baade9':
PowerManagerService: Ignore user activity while the screen is animating off.
9f9f56212610ddd69c8af8ddeeed39265c0e58e1 22-Oct-2009 Brandon Ballinger <brandonb@google.com> am 0737b164: Merge change I959a6f46 into eclair

Merge commit '0737b1643071694cf8767e3609ad628f1679d63a' into eclair-mr2

* commit '0737b1643071694cf8767e3609ad628f1679d63a':
Fix bug 2194213: Non-default system IMEs are enabled, but not initially shown in input method switcher.
1e067a7338949da812ac5c327c6b5d7944e4d297 22-Oct-2009 Dianne Hackborn <hackbod@google.com> am 7fad4ee7: am 8d9ddbe2: Merge change I1f30f3f1 into eclair

Merge commit '7fad4ee736b8a64c1acac7a9b40384f68562b664' into eclair-mr2-plus-aosp

* commit '7fad4ee736b8a64c1acac7a9b40384f68562b664':
Fix #2201615: getCallingPackage returns calling process instead of calling package
c0e1bb88fd3029ad8a6ab4587da7bcfb127100c7 22-Oct-2009 Suchi Amalapurapu <asuchitra@google.com> am 6d924c69: am 5b48223d: Merge change I14e833fa into eclair

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

* commit '6d924c69af055559ed84afaf487aa38bd6fd2e33':
If we fail to persist the current settings and fall back to the back settings file
7fad4ee736b8a64c1acac7a9b40384f68562b664 22-Oct-2009 Dianne Hackborn <hackbod@google.com> am 8d9ddbe2: Merge change I1f30f3f1 into eclair

Merge commit '8d9ddbe2aa3db86237880102ccf320945e7f57d3' into eclair-mr2

* commit '8d9ddbe2aa3db86237880102ccf320945e7f57d3':
Fix #2201615: getCallingPackage returns calling process instead of calling package
6d924c69af055559ed84afaf487aa38bd6fd2e33 22-Oct-2009 Suchi Amalapurapu <asuchitra@google.com> am 5b48223d: Merge change I14e833fa into eclair

Merge commit '5b48223d0e8b8becea0c120895d964e6472b3552' into eclair-mr2

* commit '5b48223d0e8b8becea0c120895d964e6472b3552':
If we fail to persist the current settings and fall back to the back settings file
fee0f5773335e42f4ffdf2d2d1c344ceee3ccb33 22-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I99dc6477 into eclair

* changes:
Add WindowManagerPolicy.allowKeyRepeat() method for disabling key repeats.
eadb97b4826bb6a2fa34db9c65b5a0d6f7baade9 22-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I53f83502 into eclair

* changes:
PowerManagerService: Ignore user activity while the screen is animating off.
3d0ea72dd74bb0a7ad082a82dbf53df11a4f487c 22-Oct-2009 Mike Lockwood <lockwood@android.com> Add WindowManagerPolicy.allowKeyRepeat() method for disabling key repeats.

Part of a fix for bug b/2198537

Change-Id: I99dc64772fa7644b12432d5549603025196ea3e2
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/WindowManagerService.java
f003c0c15d28fbd70f00aa8a4529cc081a21e0f0 21-Oct-2009 Mike Lockwood <lockwood@android.com> PowerManagerService: Ignore user activity while the screen is animating off.

Fixes bug b/2202165 (Often I when pressing power to turn off I get the lock screen)

Change-Id: I53f8350203d57fbb5f143edc44985879caadd78f
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/PowerManagerService.java
0737b1643071694cf8767e3609ad628f1679d63a 22-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I959a6f46 into eclair

* changes:
Fix bug 2194213: Non-default system IMEs are enabled, but not initially shown in input method switcher. - Ensure system IMEs are put on the enabled list at startup/install. - If the default IME is not installed, choose another one whenever building input method list.
6da35a0c1205398b7df4776e359f7794584fb128 21-Oct-2009 Brandon Ballinger <brandonb@google.com> Fix bug 2194213: Non-default system IMEs are enabled, but not initially shown in input method switcher.
- Ensure system IMEs are put on the enabled list at startup/install.
- If the default IME is not installed, choose another one whenever building input method list.
om/android/server/InputMethodManagerService.java
337b2cd674e084807cb0656b6609aae3dd02d2c0 22-Oct-2009 Robert Greenwalt <robdroid@android.com> am a86f1ccc: Merge change Ie2d155a5 into eclair-mr2

Merge commit 'a86f1ccca0bf54f27c398b4dbb0f2f1ec7293315' into eclair-mr2-plus-aosp

* commit 'a86f1ccca0bf54f27c398b4dbb0f2f1ec7293315':
Add a new API for initing Wifi multicast filtering
e2d155a51e68694e17fa6e27d05c928215a5dbcf 21-Oct-2009 Robert Greenwalt <robdroid@android.com> Add a new API for initing Wifi multicast filtering

Gets rid of the old method which generated Log noise.

bug: 1973855
om/android/server/WifiService.java
8b54776eddc5de3cc39f3911396a41ab53a4fcca 21-Oct-2009 Dianne Hackborn <hackbod@google.com> am 8d9ddbe2: Merge change I1f30f3f1 into eclair

Merge commit '8d9ddbe2aa3db86237880102ccf320945e7f57d3' into eclair-plus-aosp

* commit '8d9ddbe2aa3db86237880102ccf320945e7f57d3':
Fix #2201615: getCallingPackage returns calling process instead of calling package
8d9ddbe2aa3db86237880102ccf320945e7f57d3 21-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I1f30f3f1 into eclair

* changes:
Fix #2201615: getCallingPackage returns calling process instead of calling package
7ed9faae8db6fbcb11c9127d3bb7907b7d89f81b 21-Oct-2009 Suchi Amalapurapu <asuchitra@google.com> am 5b48223d: Merge change I14e833fa into eclair

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

* commit '5b48223d0e8b8becea0c120895d964e6472b3552':
If we fail to persist the current settings and fall back to the back settings file
5b48223d0e8b8becea0c120895d964e6472b3552 21-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I14e833fa into eclair

* changes:
If we fail to persist the current settings and fall back to the back settings file when reading settings in PackageManager, we might rename the corrupted settings to backup(in case of power failure between the earlier write failure and file deletion) and end up loosing both files. So just clear up the corrupted current settings file if we have backup. The backup wouldn't exist if everything went well with persisting the earlier settings.
9bbcb916c56371d2aee1dc4a6afc17d4ea9a83e0 21-Oct-2009 Dianne Hackborn <hackbod@google.com> Fix #2201615: getCallingPackage returns calling process instead of calling package

Change-Id: I1f30f3f1ce8928796c1ab502d0c2dc02de86e8e7
om/android/server/am/ActivityManagerService.java
484a065ce325a1c1bf38627ff924516b25a02efb 20-Oct-2009 Dan Egnor <egnor@google.com> am 2a2805b7: Merge change Ib3b06fc3 into eclair-mr2

Merge commit '2a2805b7fbd25ee11ad554e33bf34dbb2e8b71c5' into eclair-mr2-plus-aosp

* commit '2a2805b7fbd25ee11ad554e33bf34dbb2e8b71c5':
It turns out to be useful to allow enumeration on a per-tag basis,
14e833faa0d7a4754ddc9b3ae323a3935cb50af5 20-Oct-2009 Suchi Amalapurapu <asuchitra@google.com> If we fail to persist the current settings and fall back to the back settings file
when reading settings in PackageManager, we might rename the corrupted settings to
backup(in case of power failure between the earlier write failure and file deletion)
and end up loosing both files.
So just clear up the corrupted current settings file if we have backup.
The backup wouldn't exist if everything went well with persisting the earlier settings.

We do this in both read and write just in case.
om/android/server/PackageManagerService.java
2a2805b7fbd25ee11ad554e33bf34dbb2e8b71c5 20-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change Ib3b06fc3 into eclair-mr2

* changes:
It turns out to be useful to allow enumeration on a per-tag basis, and it's easy to support based on the data structures we have, so add a tag parameter to getNextEvent().
b3b06fc39b032288d33f663b687d78bec7f1d724 20-Oct-2009 Dan Egnor <egnor@google.com> It turns out to be useful to allow enumeration on a per-tag basis,
and it's easy to support based on the data structures we have, so
add a tag parameter to getNextEvent().
om/android/server/DropBoxService.java
44bb53c92313e8c496f5191582b59ea536e2c3a3 20-Oct-2009 Dianne Hackborn <hackbod@google.com> am a8f1a805: am 61462b43: Merge change I1864d098 into eclair

Merge commit 'a8f1a805c8b6dff5becbd95122462d91c1d1b254' into eclair-mr2-plus-aosp

* commit 'a8f1a805c8b6dff5becbd95122462d91c1d1b254':
Improve wallpaper offset handling.
2b4abebd9576c618ce112cbfae3965bb540a78fc 20-Oct-2009 Dianne Hackborn <hackbod@google.com> am cc62ee77: am 359f0b09: Merge change Ib5736616 into eclair

Merge commit 'cc62ee77d3253c7b4e454a849a771826bc35f57f' into eclair-mr2-plus-aosp

* commit 'cc62ee77d3253c7b4e454a849a771826bc35f57f':
Fix issue #2191572: Difficulties drawing window shade
db54522d9bd7a793b93550e5a6cd4223e339a1c3 20-Oct-2009 Dianne Hackborn <hackbod@google.com> am 61462b43: Merge change I1864d098 into eclair

Merge commit '61462b437067a591bfc52c498ad964e566aaffac' into eclair-plus-aosp

* commit '61462b437067a591bfc52c498ad964e566aaffac':
Improve wallpaper offset handling.
a8f1a805c8b6dff5becbd95122462d91c1d1b254 20-Oct-2009 Dianne Hackborn <hackbod@google.com> am 61462b43: Merge change I1864d098 into eclair

Merge commit '61462b437067a591bfc52c498ad964e566aaffac' into eclair-mr2

* commit '61462b437067a591bfc52c498ad964e566aaffac':
Improve wallpaper offset handling.
cc62ee77d3253c7b4e454a849a771826bc35f57f 20-Oct-2009 Dianne Hackborn <hackbod@google.com> am 359f0b09: Merge change Ib5736616 into eclair

Merge commit '359f0b0998c26d2501346334d8850a2248920f0f' into eclair-mr2

* commit '359f0b0998c26d2501346334d8850a2248920f0f':
Fix issue #2191572: Difficulties drawing window shade
5e594d88dfaab3da264888baab3a8a58ca11fcab 20-Oct-2009 Dianne Hackborn <hackbod@google.com> am 359f0b09: Merge change Ib5736616 into eclair

Merge commit '359f0b0998c26d2501346334d8850a2248920f0f' into eclair-plus-aosp

* commit '359f0b0998c26d2501346334d8850a2248920f0f':
Fix issue #2191572: Difficulties drawing window shade
61462b437067a591bfc52c498ad964e566aaffac 20-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I1864d098 into eclair

* changes:
Improve wallpaper offset handling.
359f0b0998c26d2501346334d8850a2248920f0f 20-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change Ib5736616 into eclair

* changes:
Fix issue #2191572: Difficulties drawing window shade
4d7c4b0bab9dd2479dbb35ee117d5f58c3ab1a5e 20-Oct-2009 Mike Lockwood <lockwood@android.com> am cf2a595f: am fa68ab4f: PowerManagerService: Add missing synchronization in mAutoBrightnessTask.

Merge commit 'cf2a595f582fe72af19f979fd2026026f7a5de65' into eclair-mr2-plus-aosp

* commit 'cf2a595f582fe72af19f979fd2026026f7a5de65':
PowerManagerService: Add missing synchronization in mAutoBrightnessTask.
f18a659e0917946b87bf9247ddbda78890aa128c 20-Oct-2009 Mike Lockwood <lockwood@android.com> am bca5bb8a: am 6c97fcab: Power Manager light sensor fixes:

Merge commit 'bca5bb8a25c93df18f8a903e233bd266dece47c3' into eclair-mr2-plus-aosp

* commit 'bca5bb8a25c93df18f8a903e233bd266dece47c3':
Power Manager light sensor fixes:
b0219b5aadd9271daa316c47202a849e02adeb7f 20-Oct-2009 Mike Lockwood <lockwood@android.com> am aa033b79: am d7786b41: Power Manager support for light sensor backlight management.

Merge commit 'aa033b79714f458b47d7c3fbc45e9fe51194f533' into eclair-mr2-plus-aosp

* commit 'aa033b79714f458b47d7c3fbc45e9fe51194f533':
Power Manager support for light sensor backlight management.
cf2a595f582fe72af19f979fd2026026f7a5de65 20-Oct-2009 Mike Lockwood <lockwood@android.com> am fa68ab4f: PowerManagerService: Add missing synchronization in mAutoBrightnessTask.

Merge commit 'fa68ab4fb0750b429c43af1d0c20539462ba6746' into eclair-mr2

* commit 'fa68ab4fb0750b429c43af1d0c20539462ba6746':
PowerManagerService: Add missing synchronization in mAutoBrightnessTask.
bca5bb8a25c93df18f8a903e233bd266dece47c3 20-Oct-2009 Mike Lockwood <lockwood@android.com> am 6c97fcab: Power Manager light sensor fixes:

Merge commit '6c97fcabbc4592a115afa5f3357b3172c4791855' into eclair-mr2

* commit '6c97fcabbc4592a115afa5f3357b3172c4791855':
Power Manager light sensor fixes:
aa033b79714f458b47d7c3fbc45e9fe51194f533 20-Oct-2009 Mike Lockwood <lockwood@android.com> am d7786b41: Power Manager support for light sensor backlight management.

Merge commit 'd7786b41b78ba8592daea708b024b5a75e441992' into eclair-mr2

* commit 'd7786b41b78ba8592daea708b024b5a75e441992':
Power Manager support for light sensor backlight management.
097955fd2de979d3eee697deb8ba9ab19edcfe7f 20-Oct-2009 Mike Lockwood <lockwood@android.com> am fa68ab4f: PowerManagerService: Add missing synchronization in mAutoBrightnessTask.

Merge commit 'fa68ab4fb0750b429c43af1d0c20539462ba6746' into eclair-plus-aosp

* commit 'fa68ab4fb0750b429c43af1d0c20539462ba6746':
PowerManagerService: Add missing synchronization in mAutoBrightnessTask.
fa68ab4fb0750b429c43af1d0c20539462ba6746 20-Oct-2009 Mike Lockwood <lockwood@android.com> PowerManagerService: Add missing synchronization in mAutoBrightnessTask.

Change-Id: Ie9b93253e991f709b223b28a9148be3b254fb273
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/PowerManagerService.java
40d7d0888a07424e43426f3626cf036c628b156a 20-Oct-2009 Mike Lockwood <lockwood@android.com> am 6c97fcab: Power Manager light sensor fixes:

Merge commit '6c97fcabbc4592a115afa5f3357b3172c4791855' into eclair-plus-aosp

* commit '6c97fcabbc4592a115afa5f3357b3172c4791855':
Power Manager light sensor fixes:
6c97fcabbc4592a115afa5f3357b3172c4791855 20-Oct-2009 Mike Lockwood <lockwood@android.com> Power Manager light sensor fixes:

Fix problem with ignored sensor events right after screen turns on.
Do not flash button backlights when device is booting.
Process the first light sensor change after waking the screen immediately rather than debouncing.
Cancel mAutoBrightnessTask when light sensor is disabled.

Change-Id: Iffc5e090b239432b7643812fa8ecb5f69da1679d
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/PowerManagerService.java
97269fccbd2ee38daceaefef69fa964eceffcd1f 20-Oct-2009 Mike Lockwood <lockwood@android.com> am d7786b41: Power Manager support for light sensor backlight management.

Merge commit 'd7786b41b78ba8592daea708b024b5a75e441992' into eclair-plus-aosp

* commit 'd7786b41b78ba8592daea708b024b5a75e441992':
Power Manager support for light sensor backlight management.
d7786b41b78ba8592daea708b024b5a75e441992 16-Oct-2009 Mike Lockwood <lockwood@android.com> Power Manager support for light sensor backlight management.

Change-Id: I470e2d7d12abf0dbfd31d84859b06bfae3cb36a1
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/PowerManagerService.java
73e92b4291823a7669e91483a5ce29c3d44f56b3 15-Oct-2009 Dianne Hackborn <hackbod@google.com> Improve wallpaper offset handling.

Fiddle around with the offsets of wallpapers to have better defaults, and
update the offset when the currently wallpaper target is not setting an
offset itself.

Change-Id: I1864d098fb4813fb0c67857af8ebf398b35e6876
om/android/server/WindowManagerService.java
dc95372cb5b6a223ddb25a566a0f607c0a5c4e0d 19-Oct-2009 Dianne Hackborn <hackbod@google.com> Fix issue #2191572: Difficulties drawing window shade

The touch location filtering hacks had a little problem.

Change-Id: Ib57366169c87f83af1adcc8b6a00dadc01582339
om/android/server/InputDevice.java
om/android/server/KeyInputQueue.java
c0df229d203aa8d4f06c7847c0d53d8ad9026b74 20-Oct-2009 Amith Yamasani <yamasani@google.com> am b0f4d0cd: am f37447ba: Proper fix for zero signal strength and no_service. Fixes #2176141

Merge commit 'b0f4d0cd249773927c891ab52505505b6b19347b' into eclair-mr2-plus-aosp

* commit 'b0f4d0cd249773927c891ab52505505b6b19347b':
Proper fix for zero signal strength and no_service. Fixes #2176141
b0f4d0cd249773927c891ab52505505b6b19347b 20-Oct-2009 Amith Yamasani <yamasani@google.com> am f37447ba: Proper fix for zero signal strength and no_service. Fixes #2176141

Merge commit 'f37447bad3773b62176baa837908daf6edb44273' into eclair-mr2

* commit 'f37447bad3773b62176baa837908daf6edb44273':
Proper fix for zero signal strength and no_service. Fixes #2176141
7f1e063b8ac02d2d84806ae86d0e42f35c1c9ea5 20-Oct-2009 Amith Yamasani <yamasani@google.com> am f37447ba: Proper fix for zero signal strength and no_service. Fixes #2176141

Merge commit 'f37447bad3773b62176baa837908daf6edb44273' into eclair-plus-aosp

* commit 'f37447bad3773b62176baa837908daf6edb44273':
Proper fix for zero signal strength and no_service. Fixes #2176141
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.
om/android/server/TelephonyRegistry.java
om/android/server/am/BatteryStatsService.java
7871e84b34310c19e065ec9d36369a872891c007 16-Oct-2009 Suchi Amalapurapu <asuchitra@google.com> am c75348a9: Merge change Ib897cff1 into eclair

Merge commit 'c75348a9384a5310bb34bf02cafd0076630f4a28' into eclair-plus-aosp

* commit 'c75348a9384a5310bb34bf02cafd0076630f4a28':
do not merge
c75348a9384a5310bb34bf02cafd0076630f4a28 16-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change Ib897cff1 into eclair

* changes:
do not merge Return valid package info for packages that have been uninstalled with an option to retain data and resources using the flag GET_UNINSTALLED_PACKAGES These packages do not have a package setting. just check the flag and return the required info from PackageParser.generatePackageInfo
d376366f1361d2d8ba5c035b830a204a2d4655fe 16-Oct-2009 Mike Lockwood <lockwood@android.com> am 08bb61a5: am 0b08abe1: Merge change I9521cf8b into eclair

Merge commit '08bb61a5290e37103ef74a8b08ac8adab8aba9f7' into eclair-mr2-plus-aosp

* commit '08bb61a5290e37103ef74a8b08ac8adab8aba9f7':
Register for light sensor events if non-hardware based auto-brightnees is enabled
5e6aa492b78f38d0dabaaa1559e2a3afe5259d74 16-Oct-2009 Mike Lockwood <lockwood@android.com> am 2086152c: am f55aa972: Merge change I01935be3 into eclair

Merge commit '2086152c1b60ad3bfe85c1ddc3871cff77e6da1b' into eclair-mr2-plus-aosp

* commit '2086152c1b60ad3bfe85c1ddc3871cff77e6da1b':
Remove PowerManager.setAutoBrightness()
08bb61a5290e37103ef74a8b08ac8adab8aba9f7 16-Oct-2009 Mike Lockwood <lockwood@android.com> am 0b08abe1: Merge change I9521cf8b into eclair

Merge commit '0b08abe1b8e4f49cfaefb8226696664ad3d5ca6a' into eclair-mr2

* commit '0b08abe1b8e4f49cfaefb8226696664ad3d5ca6a':
Register for light sensor events if non-hardware based auto-brightnees is enabled
2086152c1b60ad3bfe85c1ddc3871cff77e6da1b 16-Oct-2009 Mike Lockwood <lockwood@android.com> am f55aa972: Merge change I01935be3 into eclair

Merge commit 'f55aa972f9911c6aafc9fbdb736bdec11e004542' into eclair-mr2

* commit 'f55aa972f9911c6aafc9fbdb736bdec11e004542':
Remove PowerManager.setAutoBrightness()
fed2aee4cde722a7949c826f897460b2b73f1d38 16-Oct-2009 Mike Lockwood <lockwood@android.com> am 0b08abe1: Merge change I9521cf8b into eclair

Merge commit '0b08abe1b8e4f49cfaefb8226696664ad3d5ca6a' into eclair-plus-aosp

* commit '0b08abe1b8e4f49cfaefb8226696664ad3d5ca6a':
Register for light sensor events if non-hardware based auto-brightnees is enabled
0144bd7cf6ce51d37317a2352539329877a9a72f 16-Oct-2009 Mike Lockwood <lockwood@android.com> am f55aa972: Merge change I01935be3 into eclair

Merge commit 'f55aa972f9911c6aafc9fbdb736bdec11e004542' into eclair-plus-aosp

* commit 'f55aa972f9911c6aafc9fbdb736bdec11e004542':
Remove PowerManager.setAutoBrightness()
0b08abe1b8e4f49cfaefb8226696664ad3d5ca6a 16-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I9521cf8b into eclair

* changes:
Register for light sensor events if non-hardware based auto-brightnees is enabled
f55aa972f9911c6aafc9fbdb736bdec11e004542 16-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I01935be3 into eclair

* changes:
Remove PowerManager.setAutoBrightness()
8738e0c040061a179ad88adb997143f076277b04 04-Oct-2009 Mike Lockwood <lockwood@android.com> Register for light sensor events if non-hardware based auto-brightnees is enabled

Change-Id: I9521cf8b315306bdafa70c1500f2e4af83d94ec3
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/PowerManagerService.java
dc3494e3d8e17aeb0dbbe41953a5ef763d95ff78 15-Oct-2009 Mike Lockwood <lockwood@android.com> Remove PowerManager.setAutoBrightness()

We will use the System.SCREEN_BRIGHTNESS_MODE Settings value instead.
Add SCREEN_BRIGHTNESS_MODE_MANUAL and SCREEN_BRIGHTNESS_MODE_AUTOMATIC constants.

Change-Id: I01935be3fcb48cf76392d2c594205cb47babc5b2
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/PowerManagerService.java
3f48c07c16bb4416773a477a48280feb21b0978e 16-Oct-2009 Joe Onorato <joeo@android.com> am 2b7e284d: am 034cd0be: Merge change I486fdb55 into eclair

Merge commit '2b7e284dc140f904f6cea95a6b2c4b8fc6749214' into eclair-mr2-plus-aosp

* commit '2b7e284dc140f904f6cea95a6b2c4b8fc6749214':
Fix bug 2183179 - Hitting the back key repeatedly makes the notification shade jump up and down
2b7e284dc140f904f6cea95a6b2c4b8fc6749214 16-Oct-2009 Joe Onorato <joeo@android.com> am 034cd0be: Merge change I486fdb55 into eclair

Merge commit '034cd0be57d76b3bf5c7a3c118f6f10e67755772' into eclair-mr2

* commit '034cd0be57d76b3bf5c7a3c118f6f10e67755772':
Fix bug 2183179 - Hitting the back key repeatedly makes the notification shade jump up and down
af67d671c2723eae7a009bb4c757dc948fe61d5f 16-Oct-2009 Joe Onorato <joeo@android.com> am 034cd0be: Merge change I486fdb55 into eclair

Merge commit '034cd0be57d76b3bf5c7a3c118f6f10e67755772' into eclair-plus-aosp

* commit '034cd0be57d76b3bf5c7a3c118f6f10e67755772':
Fix bug 2183179 - Hitting the back key repeatedly makes the notification shade jump up and down
034cd0be57d76b3bf5c7a3c118f6f10e67755772 16-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I486fdb55 into eclair

* changes:
Fix bug 2183179 - Hitting the back key repeatedly makes the notification shade jump up and down
486fdb559658ea790e4d5cf310b5e13b244ae0a7 16-Oct-2009 Joe Onorato <joeo@android.com> Fix bug 2183179 - Hitting the back key repeatedly makes the notification shade jump up and down

This thing needs to be rewritten. It's grown too complicated for what it's doing,
and I don't like the physics anyway.

Also, this leaves the bug where if you press back while it's animating down, the
animation is ignored. However it no longer jumps down all the way, it just
essentially ignores the back key.

Also, this makes the collapse get executed on the back key up event, so it works
with the swipe on the soft keys at the bottom of the screen.
om/android/server/status/StatusBarService.java
b897cff1ef1981757d8e26e24d1fc77893a34e40 14-Oct-2009 Suchi Amalapurapu <asuchitra@google.com> do not merge
Return valid package info for packages that have been uninstalled with
an option to retain data and resources using the flag GET_UNINSTALLED_PACKAGES
These packages do not have a package setting. just check the flag and return
the required info from PackageParser.generatePackageInfo
om/android/server/PackageManagerService.java
8ab456b3fcb7e81af824a69daee31921d531696b 16-Oct-2009 Mike Lockwood <lockwood@android.com> am df284aa5: am 37a13208: Add separate configuration flag for hardware ALS support.

Merge commit 'df284aa534bd5611684604c469c04b4db6bb42c7' into eclair-mr2-plus-aosp

* commit 'df284aa534bd5611684604c469c04b4db6bb42c7':
Add separate configuration flag for hardware ALS support.
bb17ed394eac2113bb43fd5713978ffbc7feb84c 16-Oct-2009 Mike Lockwood <lockwood@android.com> am 37a13208: Add separate configuration flag for hardware ALS support.

Merge commit '37a13208c93bbe00cf233baf1ebcd6e081972a27' into eclair-plus-aosp

* commit '37a13208c93bbe00cf233baf1ebcd6e081972a27':
Add separate configuration flag for hardware ALS support.
df284aa534bd5611684604c469c04b4db6bb42c7 16-Oct-2009 Mike Lockwood <lockwood@android.com> am 37a13208: Add separate configuration flag for hardware ALS support.

Merge commit '37a13208c93bbe00cf233baf1ebcd6e081972a27' into eclair-mr2

* commit '37a13208c93bbe00cf233baf1ebcd6e081972a27':
Add separate configuration flag for hardware ALS support.
37a13208c93bbe00cf233baf1ebcd6e081972a27 14-Oct-2009 Mike Lockwood <lockwood@android.com> Add separate configuration flag for hardware ALS support.

A new flag config_hardware_automatic_brightness_available indicates
that the device has hardware support for automatic screen brightness management,
while config_automatic_brightness_available now indicates that automatic
brightness mode is available in general.

If config_automatic_brightness_available is true but config_hardware_automatic_brightness_available is false,
then automatic brightness mode support in PowerManager support will be used.

Bug b/2015734 (Ambient light sensor support in power manager)

Change-Id: I6cd888252043dd63df3c25a1d14c21a04a91ad28
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/HardwareService.java
ac05c898306bb36b57e39a13181a24911fb100ae 15-Oct-2009 Suchi Amalapurapu <asuchitra@google.com> am df830fda: Merge change I52c235db into eclair-mr2

Merge commit 'df830fdaf3a11002febeb1c79f547b634858b1e7' into eclair-mr2-plus-aosp

* commit 'df830fdaf3a11002febeb1c79f547b634858b1e7':
Return valid package info for packages that have been uninstalled with
52c235dbe7bc434ac067574fef4a19a070ef7d3b 14-Oct-2009 Suchi Amalapurapu <asuchitra@google.com> Return valid package info for packages that have been uninstalled with
an option to retain data and resources using the flag GET_UNINSTALLED_PACKAGES
These packages do not have a package setting. just check the flag and return
the required info from PackageParser.generatePackageInfo
om/android/server/PackageManagerService.java
5f9dc75cc99b3cfcab0073b563dba88680722fbc 14-Oct-2009 Dianne Hackborn <hackbod@google.com> am 720094bf: am cbf77e9b: Merge change I875200fe into eclair

Merge commit '720094bfaac28bb65cf9d5a0313f298dd8178f7f' into eclair-mr2-plus-aosp

* commit '720094bfaac28bb65cf9d5a0313f298dd8178f7f':
Another fix for #2186897: Cannot unlock the device by swiping
720094bfaac28bb65cf9d5a0313f298dd8178f7f 14-Oct-2009 Dianne Hackborn <hackbod@google.com> am cbf77e9b: Merge change I875200fe into eclair

Merge commit 'cbf77e9bef0db68c55b60994d93674bf6fd1ca13' into eclair-mr2

* commit 'cbf77e9bef0db68c55b60994d93674bf6fd1ca13':
Another fix for #2186897: Cannot unlock the device by swiping
ecea8011a382fa9a897d5eb0e540bb7fadf0550a 14-Oct-2009 Dianne Hackborn <hackbod@google.com> am cbf77e9b: Merge change I875200fe into eclair

Merge commit 'cbf77e9bef0db68c55b60994d93674bf6fd1ca13' into eclair-plus-aosp

* commit 'cbf77e9bef0db68c55b60994d93674bf6fd1ca13':
Another fix for #2186897: Cannot unlock the device by swiping
f2ddfb15288b71b0ddaf23df5128ed6525c71cb9 14-Oct-2009 Dianne Hackborn <hackbod@google.com> Another fix for #2186897: Cannot unlock the device by swiping

This was probably a side-effect of the divide by zero exception,
but we'll be safe anyway.

Change-Id: I875200febb9b3090d12f170066b2bea74c9f77f8
om/android/server/KeyInputQueue.java
f6d6d180f8c2bec2b152e5dbf74a0c8aec3ec8ee 14-Oct-2009 Dianne Hackborn <hackbod@google.com> am 126ac7f9: am b10e2f1a: Merge change Iac534225 into eclair

Merge commit '126ac7f9f957c6be35d6d43f8dee1d5ee7139f95' into eclair-mr2-plus-aosp

* commit '126ac7f9f957c6be35d6d43f8dee1d5ee7139f95':
Fix issue #2186709: Can't unlock the device for a while
4b6651b9c2995d13ffd4dc0667c45d0528fe8df7 14-Oct-2009 Dianne Hackborn <hackbod@google.com> am b10e2f1a: Merge change Iac534225 into eclair

Merge commit 'b10e2f1a861933f50d9ad8ea24b5dfa5643a2c11' into eclair-plus-aosp

* commit 'b10e2f1a861933f50d9ad8ea24b5dfa5643a2c11':
Fix issue #2186709: Can't unlock the device for a while
126ac7f9f957c6be35d6d43f8dee1d5ee7139f95 14-Oct-2009 Dianne Hackborn <hackbod@google.com> am b10e2f1a: Merge change Iac534225 into eclair

Merge commit 'b10e2f1a861933f50d9ad8ea24b5dfa5643a2c11' into eclair-mr2

* commit 'b10e2f1a861933f50d9ad8ea24b5dfa5643a2c11':
Fix issue #2186709: Can't unlock the device for a while
53cd579459132b01442118c0cafc545f4ff54f01 14-Oct-2009 Dianne Hackborn <hackbod@google.com> Fix issue #2186709: Can't unlock the device for a while

Change-Id: Iac5342254036cc286ad502dba943520f55ea2405
om/android/server/InputDevice.java
eac70503c27104117f42de405cd5bd73579096be 14-Oct-2009 Dan Egnor <egnor@google.com> am 5c8a80b8: Merge change I4410ec8f into eclair-mr2

Merge commit '5c8a80b8fc7a25dda269cd16e0b90b35227fd625' into eclair-mr2-plus-aosp

* commit '5c8a80b8fc7a25dda269cd16e0b90b35227fd625':
Framework-side DropBox service that maintains a size-bounded
4410ec8f7cec6ab05a8c24c04fe2d5ed5d1e18df 12-Sep-2009 Dan Egnor <egnor@google.com> Framework-side DropBox service that maintains a size-bounded
queue of data chunks (sort of a blob-oriented logcat).

In the future, this will be coupled with a revised checkin service that
would actually upload this data.
om/android/server/DropBoxService.java
om/android/server/SystemServer.java
80f518b74d9ffa1e86ab8e5dc66723c0544901ca 13-Oct-2009 Dianne Hackborn <hackbod@google.com> am d34f3994: am 2a21a77d: Merge change I1369e9ab into eclair

Merge commit 'd34f3994da32d0fcf5f6d6824d123d51c02c988e' into eclair-mr2-plus-aosp

* commit 'd34f3994da32d0fcf5f6d6824d123d51c02c988e':
Work on issue #2144454: Inconsistent swipes...
b4731d1533f851d828c049a2057f40e30aed2bb3 13-Oct-2009 Dianne Hackborn <hackbod@google.com> am 2a21a77d: Merge change I1369e9ab into eclair

Merge commit '2a21a77d5cf481b129a7cb4e3e00424e4d300e6d' into eclair-plus-aosp

* commit '2a21a77d5cf481b129a7cb4e3e00424e4d300e6d':
Work on issue #2144454: Inconsistent swipes...
d34f3994da32d0fcf5f6d6824d123d51c02c988e 13-Oct-2009 Dianne Hackborn <hackbod@google.com> am 2a21a77d: Merge change I1369e9ab into eclair

Merge commit '2a21a77d5cf481b129a7cb4e3e00424e4d300e6d' into eclair-mr2

* commit '2a21a77d5cf481b129a7cb4e3e00424e4d300e6d':
Work on issue #2144454: Inconsistent swipes...
2a21a77d5cf481b129a7cb4e3e00424e4d300e6d 13-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I1369e9ab into eclair

* changes:
Work on issue #2144454: Inconsistent swipes...
1411d1c822664bbdaa61162f7e62137bc4865e23 13-Oct-2009 Dianne Hackborn <hackbod@google.com> Work on issue #2144454: Inconsistent swipes...

This introduces some hacks in the framework to try to clean up the
data we are getting from the touch screen. There are two main things
being done here:

1. Look for changes in position that are unreasonably large, and
ignore them. This is intended to eliminate the spurious jumps that
often happen when releasing.

2. Add some simple adaptive averaging of the touch data. If the
difference between the last and next point is large enough, we
disable the averaging; otherwise we average up to the last 5 points.
The goal is to get rid of the noise of small movements so that things
like taps don't look like short flings, while still responding quickly
to rapid movement.

For averaging pressure, we also weight each averaged coordinate by
the reported pressure at that point. This is intended to keep the
coordinates closer together during a release, when the pressure is
going down and the accuracy decreasing. It may also result in some
other interesting artifacts, but hopefully nothing problematic.

Change-Id: I1369e9ab015c406946a45c2d72547da9c604178f
om/android/server/InputDevice.java
om/android/server/KeyInputQueue.java
00f166dedca88a781e7a64c07a42451a213f04ed 13-Oct-2009 Robert Greenwalt <robdroid@android.com> am ceabc645: am 16cb04ab: Merge change If1acb2dd into eclair

Merge commit 'ceabc645d1e4c84b6f8d8b01725a6fa68719842a' into eclair-mr2-plus-aosp

* commit 'ceabc645d1e4c84b6f8d8b01725a6fa68719842a':
Add a little logging to diagnose wifi cycle bug
ceabc645d1e4c84b6f8d8b01725a6fa68719842a 13-Oct-2009 Robert Greenwalt <robdroid@android.com> am 16cb04ab: Merge change If1acb2dd into eclair

Merge commit '16cb04ab1cd88d917fdd34a9063fe4a9707aa5b1' into eclair-mr2

* commit '16cb04ab1cd88d917fdd34a9063fe4a9707aa5b1':
Add a little logging to diagnose wifi cycle bug
78eec13af83b9ad6fea0b6d30092aa4bac859aec 13-Oct-2009 Robert Greenwalt <robdroid@android.com> am 16cb04ab: Merge change If1acb2dd into eclair

Merge commit '16cb04ab1cd88d917fdd34a9063fe4a9707aa5b1' into eclair-plus-aosp

* commit '16cb04ab1cd88d917fdd34a9063fe4a9707aa5b1':
Add a little logging to diagnose wifi cycle bug
f1acb2ddcde20638d592b3cdcf61cfaf01d3df7b 13-Oct-2009 Robert Greenwalt <robdroid@android.com> Add a little logging to diagnose wifi cycle bug

Hiroshi approved (with serious code review).
bug: 2171575
om/android/server/WifiService.java
3adcc2184998a0e22df430bb75d056fbb00b6244 13-Oct-2009 Chung-yih Wang <cywang@google.com> am cf4f2c22: Merge change Ic6d1545d into eclair-mr2

Merge commit 'cf4f2c22cbe62843324718f657021ce0c459a3db' into eclair-mr2-plus-aosp

* commit 'cf4f2c22cbe62843324718f657021ce0c459a3db':
Support double-quote SSID in WifiService.
cf4f2c22cbe62843324718f657021ce0c459a3db 13-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change Ic6d1545d into eclair-mr2

* changes:
Support double-quote SSID in WifiService.
a8d15941392956c383902e715028032afb583952 09-Oct-2009 Chung-yih Wang <cywang@google.com> Support double-quote SSID in WifiService.

+ push the double-quote handling down to framework.

wpa_supplicant keeps the ssid in a quoted string in the config file. However,
the UI currently needs to handle the quoted string which makes it difficult
to handle the SSID containing the quotes. The change will move the
supplicant-specific double-quote handling from UI to framework, i.e. to
add/remove doubel-quotes in framework instead of in UI settings.
om/android/server/WifiService.java
a7cdac0329d837a3f986a499f2c1a5fbe9bc8d7e 12-Oct-2009 Mike Lockwood <lockwood@android.com> am 5ad40971: am 6abf7c8f: Merge change Iad66a274 into eclair

Merge commit '5ad409719809b4070ba0bb36c5326c7cac7c75ea' into eclair-mr2-plus-aosp

* commit '5ad409719809b4070ba0bb36c5326c7cac7c75ea':
Fix race condition in WindowManagerService.disableKeyguard()
4679fa4f3243821ac3d80bf7701370678eb7abb3 12-Oct-2009 Mike Lockwood <lockwood@android.com> am 6abf7c8f: Merge change Iad66a274 into eclair

Merge commit '6abf7c8fccf1430bf5d730592b79d77fbeccfe5b' into eclair-plus-aosp

* commit '6abf7c8fccf1430bf5d730592b79d77fbeccfe5b':
Fix race condition in WindowManagerService.disableKeyguard()
5ad409719809b4070ba0bb36c5326c7cac7c75ea 12-Oct-2009 Mike Lockwood <lockwood@android.com> am 6abf7c8f: Merge change Iad66a274 into eclair

Merge commit '6abf7c8fccf1430bf5d730592b79d77fbeccfe5b' into eclair-mr2

* commit '6abf7c8fccf1430bf5d730592b79d77fbeccfe5b':
Fix race condition in WindowManagerService.disableKeyguard()
8cbafb83b4d3eda68c9de2db359813c370d21cbe 12-Oct-2009 Dianne Hackborn <hackbod@google.com> am 7fa61063: am f836acf2: Merge change I067d55ea into eclair

Merge commit '7fa610638b09f2a4a29d7df1b16d2fe686b5e5e6' into eclair-mr2-plus-aosp

* commit '7fa610638b09f2a4a29d7df1b16d2fe686b5e5e6':
Fix issue #2179931: Power key to wake up frequently ignored when in dock app
6abf7c8fccf1430bf5d730592b79d77fbeccfe5b 12-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change Iad66a274 into eclair

* changes:
Fix race condition in WindowManagerService.disableKeyguard()
d47f1d89a63c5921992b550be93c46c9e21fc7bb 12-Oct-2009 Dianne Hackborn <hackbod@google.com> am f836acf2: Merge change I067d55ea into eclair

Merge commit 'f836acf241f10d943d72d439fa425fda73a6d56b' into eclair-plus-aosp

* commit 'f836acf241f10d943d72d439fa425fda73a6d56b':
Fix issue #2179931: Power key to wake up frequently ignored when in dock app
7fa610638b09f2a4a29d7df1b16d2fe686b5e5e6 12-Oct-2009 Dianne Hackborn <hackbod@google.com> am f836acf2: Merge change I067d55ea into eclair

Merge commit 'f836acf241f10d943d72d439fa425fda73a6d56b' into eclair-mr2

* commit 'f836acf241f10d943d72d439fa425fda73a6d56b':
Fix issue #2179931: Power key to wake up frequently ignored when in dock app
dd8846886aa21980ecdca7ba42deac4f7ecd8ff0 11-Oct-2009 Mike Lockwood <lockwood@android.com> Fix race condition in WindowManagerService.disableKeyguard()

TokenWatcher.acquire() synchronizes on mTokens, not this,
so we need to synchronize on mKeyguardDisabled in disableKeyguard()
to synchronize properly with reenableKeyguard().

This should fix b/2180142 (Stuck in enable keyguard when receiving phone call)

Change-Id: Iad66a2748c7fbf2c516fdb8a00988696719ea80c
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/WindowManagerService.java
aa80b60b596e54dcfae55db73262440b0acba198 10-Oct-2009 Dianne Hackborn <hackbod@google.com> Fix issue #2179931: Power key to wake up frequently ignored when in dock app

The dock app is forcing the screen to a particular brightness level. This
causes the window manager to often call into the power manager with the
new brightness. This causes us to go in to updateLightsLocked() to figure
out and apply the real brightness to use. When the screen is off the
real brightness always remains 0, but even if it didn't change from the
last one we would start an animation which would when done put the system
to sleep and fight with the user trying to turn the device on.

Now, if the new target brightness is the same as the last one, we leave the
animation as-is -- either running or not as appropriate.

Change-Id: I067d55ea2b39e294c5d5291587a4d8727c0b8083
om/android/server/PowerManagerService.java
a614b948e18189adfe8e2553754db574ecb3fd7a 09-Oct-2009 David Krause <david.krause@motorola.com> Merge branch 'eclair-plus-aosp' of ssh://android-git.corp.google.com:29418/platform/frameworks/base into eclair-mr2-plus-aosp
6105ea00a8cfff5cdaa3a08f2ead44b1fad2f971 09-Oct-2009 Robert Greenwalt <robdroid@android.com> am 98e0b146: Make PhoneStateListeners not call TelephonyManager

Merge commit '98e0b146b80670b52805b4b210ef5582dad6bb68' into eclair-plus-aosp

* commit '98e0b146b80670b52805b4b210ef5582dad6bb68':
Make PhoneStateListeners not call TelephonyManager
2515cf85d50ef137a6e4a15a79a75a51c923ce6f 09-Oct-2009 Robert Greenwalt <robdroid@android.com> am 98e0b146: Make PhoneStateListeners not call TelephonyManager

Merge commit '98e0b146b80670b52805b4b210ef5582dad6bb68' into eclair-mr2

* commit '98e0b146b80670b52805b4b210ef5582dad6bb68':
Make PhoneStateListeners not call TelephonyManager
98e0b146b80670b52805b4b210ef5582dad6bb68 09-Oct-2009 Robert Greenwalt <robdroid@android.com> Make PhoneStateListeners not call TelephonyManager

Since the StatusBarPolicy is run in the System Process and shouldn't therefore call into
the Telephony process we decided to make sure all the needed info was passed along with the
original notifications.

bug: 2173053
om/android/server/TelephonyRegistry.java
om/android/server/status/StatusBarPolicy.java
6195432b6fde3cda4bc7e2406c8f2975795933a7 09-Oct-2009 James Dong <jdong@google.com> Merge branch 'eclair-plus-aosp' of ssh://android-git.corp.google.com:29418/platform/frameworks/base into eclair-mr2-plus-aosp
93939786f91e652b5fb6f2e8e13da52f57ced7c8 09-Oct-2009 Dianne Hackborn <hackbod@google.com> am 2c6c5e6e: Fix issue #2176944: Need API so browser, others can determine memory size of device

Merge commit '2c6c5e6e49795e6e24cd089c9018377d837ba931' into eclair-plus-aosp

* commit '2c6c5e6e49795e6e24cd089c9018377d837ba931':
Fix issue #2176944: Need API so browser, others can determine memory size of device
81aaf56f9015f99a18a6578b913276ebae2731d3 09-Oct-2009 Dianne Hackborn <hackbod@google.com> am 2c6c5e6e: Fix issue #2176944: Need API so browser, others can determine memory size of device

Merge commit '2c6c5e6e49795e6e24cd089c9018377d837ba931' into eclair-mr2

* commit '2c6c5e6e49795e6e24cd089c9018377d837ba931':
Fix issue #2176944: Need API so browser, others can determine memory size of device
0c35e6ff1d15716c552af664e67ed390c5def26d 09-Oct-2009 Dianne Hackborn <hackbod@google.com> am d10d02f5: Merge change I490e01ba into eclair

Merge commit 'd10d02f53ec00bfa9eb9f5accf6454e4a4bbb6a6' into eclair-mr2

* commit 'd10d02f53ec00bfa9eb9f5accf6454e4a4bbb6a6':
Fix issue #2174566: HOT STABILITY: NPE in activity manager
374efe6a9652e8ee539c54cda888358261135333 09-Oct-2009 Dianne Hackborn <hackbod@google.com> am d10d02f5: Merge change I490e01ba into eclair

Merge commit 'd10d02f53ec00bfa9eb9f5accf6454e4a4bbb6a6' into eclair-plus-aosp

* commit 'd10d02f53ec00bfa9eb9f5accf6454e4a4bbb6a6':
Fix issue #2174566: HOT STABILITY: NPE in activity manager
2c6c5e6e49795e6e24cd089c9018377d837ba931 09-Oct-2009 Dianne Hackborn <hackbod@google.com> Fix issue #2176944: Need API so browser, others can determine memory size of device

Change-Id: I65d91cdb70df91b67fe84297dd6a94d26a785131
om/android/server/am/ActivityManagerService.java
94f3a36326ddecaa09787d795451b0a229fe111c 09-Oct-2009 Eric Fischer <enf@google.com> Merge branch 'eclair-plus-aosp' of ssh://android-git.corp.google.com:29418/platform/frameworks/base into eclair-mr2-plus-aosp
d5b090b26b740be890395887b27db8cb2186c3b8 09-Oct-2009 Mike Lockwood <lockwood@android.com> am 348b92bd: Merge change Iee227ace into eclair

Merge commit '348b92bd513087369ac682e29620d7829fa1381b' into eclair-mr2

* commit '348b92bd513087369ac682e29620d7829fa1381b':
GPS: Fix problem with SUPL when SUPL APN is already active.
2d4b58f29eda24fe5ec1dd1850823a9e7bddacc6 09-Oct-2009 John Wang <johnwang@google.com> am 33e21fcc: Control H icon display in Status bar.

Merge commit '33e21fcc99dd91061ea245984c4e9a1544cb943f' into eclair-mr2

* commit '33e21fcc99dd91061ea245984c4e9a1544cb943f':
Control H icon display in Status bar.
3612487d618df84530645c45c7c3979383b39c12 09-Oct-2009 Dianne Hackborn <hackbod@google.com> Fix issue #2174566: HOT STABILITY: NPE in activity manager

- Don't crash if the service's app process doesn't have a thread (this
can happen if we are currently starting the process and then try to
start the service again).
- Be more robust about deciding to start a service's process: try each
time it is started; the startProcess call will take care of ignoring
it if the process is already started.
- Fix some issues where we would leave dead processes on the low memory
list.

Change-Id: I490e01ba7b45adc191bab7ace377b6873e284897
om/android/server/am/ActivityManagerService.java
a4f6c96f1acb4f0e7aaa233c2a5b884aaac2f573 09-Oct-2009 Mike Lockwood <lockwood@android.com> am 348b92bd: Merge change Iee227ace into eclair

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

* commit '348b92bd513087369ac682e29620d7829fa1381b':
GPS: Fix problem with SUPL when SUPL APN is already active.
0221ec55ac57f32a42fb1e7b66779ca955d58558 08-Oct-2009 Brett Chabot <brettchabot@android.com> Merge branch 'eclair-plus-aosp' of ssh://android-git.corp.google.com:29418/platform/frameworks/base into eclair-mr2-plus-aosp
03d246779ea65fc2bd10d0b4f32620f45211133a 08-Oct-2009 Mike Lockwood <lockwood@android.com> GPS: Fix problem with SUPL when SUPL APN is already active.

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

Fixes bug b/2155661

Change-Id: Iee227ace7d536b36cf7973e3e6a8b7a621ce6565
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/LocationManagerService.java
c6726351a6cb432acfe73083e1d9758e2eb64781 08-Oct-2009 John Wang <johnwang@google.com> am 33e21fcc: Control H icon display in Status bar.

Merge commit '33e21fcc99dd91061ea245984c4e9a1544cb943f' into eclair-plus-aosp

* commit '33e21fcc99dd91061ea245984c4e9a1544cb943f':
Control H icon display in Status bar.
33e21fcc99dd91061ea245984c4e9a1544cb943f 08-Oct-2009 John Wang <johnwang@google.com> Control H icon display in Status bar.

Bug 2138275. Add a config setting to control if status bar
should show different icons for UMTS and HSPA connnection.
om/android/server/status/StatusBarPolicy.java
5f836334e3af9c0cdfcde1f3b6a51c46a6a12412 08-Oct-2009 Daisuke Miyakawa <dmiyakawa@google.com> Merge branch 'eclair-plus-aosp' of ssh://android-git.corp.google.com:29418/platform/frameworks/base into eclair-mr2-plus-aosp
cd6c33dec901a3a7564a19cc16f6aa3120d2c628 08-Oct-2009 Joshua Bartel <joshua.bartel@gmail.com> am bd324c9b: Merge change I50a321c9 into eclair

Merge commit 'bd324c9bd32a3c86634c1cc1ab8525f46a56b694' into eclair-plus-aosp

* commit 'bd324c9bd32a3c86634c1cc1ab8525f46a56b694':
LocationManagerService: Fix race when removing LocationListener
41ae5d5adda1987316b02d123a5698180abb1899 08-Oct-2009 Joshua Bartel <joshua.bartel@gmail.com> am bd324c9b: Merge change I50a321c9 into eclair

Merge commit 'bd324c9bd32a3c86634c1cc1ab8525f46a56b694' into eclair-mr2

* commit 'bd324c9bd32a3c86634c1cc1ab8525f46a56b694':
LocationManagerService: Fix race when removing LocationListener
bd324c9bd32a3c86634c1cc1ab8525f46a56b694 08-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I50a321c9 into eclair

* changes:
LocationManagerService: Fix race when removing LocationListener
080b61ba17014b8c93914f642ccbe05c76dc611d 05-Oct-2009 Joshua Bartel <joshua.bartel@gmail.com> LocationManagerService: Fix race when removing LocationListener

In LocationManagerService if a LocationListener is removed while it has
a pending broadcast the wake lock held while pending broadcasts are
outstanding do not get cleared properly.

There are 2 cases of this race that are fixed:

1. locationCallbackFinished was changed to check the mReceivers HashMap
directly instead of calling getReceiver. getReceiver would add the
ILocationListener as a new Receiver if it did not exist which caused
a receiver that was removed when it still had a broadcast pending to
be added back in a bad state when the pending broadcast completed.

2. removeUpdatesLocked was changed to decrement the pending broadcasts
when a Receiver is removed that has pending broadcasts.

Fixes bug b/2163871

Change-Id: I50a321c9b3359bf69845236dc4a4b9e38e847335
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/LocationManagerService.java
c7ed01f4011e688af59f91b613e48203690c394d 08-Oct-2009 Dianne Hackborn <hackbod@google.com> Merge branch 'eclair-plus-aosp' of ssh://android-git.corp.google.com:29418/platform/frameworks/base into eclair-mr2-plus-aosp
3f4313667e18fbf93a372a8870e88196012dce78 08-Oct-2009 Dianne Hackborn <hackbod@google.com> am b134b203: Merge change Id8c9cb2f into eclair

Merge commit 'b134b2038ecabcbec3f9b657834d45de27707068' into eclair-plus-aosp

* commit 'b134b2038ecabcbec3f9b657834d45de27707068':
More fix #2163209: alarm clock rings but is hidden behind lock screen
8c815d9dedc89fcf94c07b03bdf8b3a8ea33e240 08-Oct-2009 Dianne Hackborn <hackbod@google.com> am b134b203: Merge change Id8c9cb2f into eclair

Merge commit 'b134b2038ecabcbec3f9b657834d45de27707068' into eclair-mr2

* commit 'b134b2038ecabcbec3f9b657834d45de27707068':
More fix #2163209: alarm clock rings but is hidden behind lock screen
3d163f073f5cf3b3bf0287fc7d60fabce0269748 08-Oct-2009 Dianne Hackborn <hackbod@google.com> More fix #2163209: alarm clock rings but is hidden behind lock screen

There was another way we could ignore the application windows flags
while the lock screen was displayed. This is the infrastructure to
deal with that.

Change-Id: Id8c9cb2f7081df6757ccb797a7cde618e82f7b38
om/android/server/WindowManagerService.java
9136c39d4933bcf60bff0f76bc377d1985736ea5 08-Oct-2009 Grace Kloba <klobag@google.com> Merge branch 'eclair-plus-aosp' of ssh://android-git.corp.google.com:29418/platform/frameworks/base into eclair-mr2-plus-aosp
83b600803cdbcb3f9788845c77e5c1d17bc36dd5 08-Oct-2009 Doug Zongker <dougz@android.com> am 9af53ea6: am 3161795b: when logging free space on /data, log /system and /cache as well

Merge commit '9af53ea6ef9a986bc65bcd11deb7994f1f4ba8ec' into eclair-mr2

* commit '9af53ea6ef9a986bc65bcd11deb7994f1f4ba8ec':
when logging free space on /data, log /system and /cache as well
3253b16a0d026c25627729606fc46318e8f48469 08-Oct-2009 Doug Zongker <dougz@android.com> am 9af53ea6: am 3161795b: when logging free space on /data, log /system and /cache as well

Merge commit '9af53ea6ef9a986bc65bcd11deb7994f1f4ba8ec' into eclair-plus-aosp

* commit '9af53ea6ef9a986bc65bcd11deb7994f1f4ba8ec':
when logging free space on /data, log /system and /cache as well
9af53ea6ef9a986bc65bcd11deb7994f1f4ba8ec 08-Oct-2009 Doug Zongker <dougz@android.com> am 3161795b: when logging free space on /data, log /system and /cache as well

Merge commit '3161795b2353171bb0636fb3ea6dab7dec80a4f4' into eclair

* commit '3161795b2353171bb0636fb3ea6dab7dec80a4f4':
when logging free space on /data, log /system and /cache as well
fb256574b4b5b5237ddda0efcf876b8eb436c961 08-Oct-2009 Dianne Hackborn <hackbod@google.com> Merge branch 'eclair-plus-aosp' of ssh://android-git.corp.google.com:29418/platform/frameworks/base into eclair-mr2-plus-aosp
d78fbdddea1e0cbecfd0f209c09b6dd4ef56e7d4 08-Oct-2009 Dianne Hackborn <hackbod@google.com> am 568cae57: Fix issue #2171460: Turn off background blurring of power dialog

Merge commit '568cae571a3d74d1992176a21722e07b44e9a3c4' into eclair-mr2

* commit '568cae571a3d74d1992176a21722e07b44e9a3c4':
Fix issue #2171460: Turn off background blurring of power dialog
496b8c5d6bc656d54bc9378d00c6f9e214337bbb 08-Oct-2009 Dianne Hackborn <hackbod@google.com> am 568cae57: Fix issue #2171460: Turn off background blurring of power dialog

Merge commit '568cae571a3d74d1992176a21722e07b44e9a3c4' into eclair-plus-aosp

* commit '568cae571a3d74d1992176a21722e07b44e9a3c4':
Fix issue #2171460: Turn off background blurring of power dialog
568cae571a3d74d1992176a21722e07b44e9a3c4 08-Oct-2009 Dianne Hackborn <hackbod@google.com> Fix issue #2171460: Turn off background blurring of power dialog

Change-Id: I521629e0ccd0116acf149eeb7476c8474fc7c74a
om/android/server/status/StatusBarPolicy.java
3161795b2353171bb0636fb3ea6dab7dec80a4f4 08-Oct-2009 Doug Zongker <dougz@android.com> when logging free space on /data, log /system and /cache as well

Report space free on system and cache so we can estimate bad block
statistics for devices in the field.
om/android/server/DeviceStorageMonitorService.java
b2ad0f18bc030535687aed67f5c3a3139045dd84 08-Oct-2009 Nick Pelly <npelly@google.com> Merge branch 'eclair-plus-aosp' of ssh://android-git.corp.google.com:29418/platform/frameworks/base into eclair-mr2-plus-aosp
8af4d8797fbaff195d12ee1e5d9b9578edf31b57 08-Oct-2009 Nick Pelly <npelly@google.com> am 7a865a5d: Merge change Ieed8be00 into eclair

Merge commit '7a865a5de8214aa4975371b9d8a2165a01f6b69c' into eclair-plus-aosp

* commit '7a865a5de8214aa4975371b9d8a2165a01f6b69c':
Introduce BluetoothAdapter.getDefaultAdapter().
d7ebc7a42d52063f731890f42206162c38702e0c 08-Oct-2009 Nick Pelly <npelly@google.com> am 7a865a5d: Merge change Ieed8be00 into eclair

Merge commit '7a865a5de8214aa4975371b9d8a2165a01f6b69c' into eclair-mr2

* commit '7a865a5de8214aa4975371b9d8a2165a01f6b69c':
Introduce BluetoothAdapter.getDefaultAdapter().
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
om/android/server/SystemServer.java
om/android/server/status/StatusBarPolicy.java
7a889217d7cb0523b4e08e1fed444bb91a684d39 07-Oct-2009 Dianne Hackborn <hackbod@google.com> am 0c3154d3: Fix issue #2163654: deadlock, runtime restart

Merge commit '0c3154d3fc54a1b3d8358a2932042cca729327b9' into eclair-plus-aosp

* commit '0c3154d3fc54a1b3d8358a2932042cca729327b9':
Fix issue #2163654: deadlock, runtime restart
c0565fb88c8fff380f938ed6831893ad23dc330a 07-Oct-2009 Robert Greenwalt <robdroid@android.com> am 92b5caa4: Merge change Id8df149c into eclair

Merge commit '92b5caa4e21d48db6efeddba532d1546c6e686b1' into eclair-plus-aosp

* commit '92b5caa4e21d48db6efeddba532d1546c6e686b1':
Turn some logging back on in ConnectionManager
1d16200eefd1ce9d47fde70625fc3f4812c0d361 07-Oct-2009 Suchi Amalapurapu <asuchitra@google.com> am 5163cd6d: Merge change I5be3d603 into eclair

Merge commit '5163cd6d1cb664977eb4473b98657c7e92ae430e' into eclair-plus-aosp

* commit '5163cd6d1cb664977eb4473b98657c7e92ae430e':
Make sdk version and code names static finals in PackageParser.
c4f52bd7550f57b1d483091a71871653d8928901 07-Oct-2009 Dianne Hackborn <hackbod@google.com> am 7e5c5d97: am 0c3154d3: Fix issue #2163654: deadlock, runtime restart

Merge commit '7e5c5d975297ef76ae6640e06505a19fa8c0270e' into eclair-mr2-plus-aosp

* commit '7e5c5d975297ef76ae6640e06505a19fa8c0270e':
Fix issue #2163654: deadlock, runtime restart
91f360869e3cf845043ccef31f9a6ab8f57b2896 07-Oct-2009 Robert Greenwalt <robdroid@android.com> am c24c0e9b: Merge change Ib8f16340 into eclair-mr2

Merge commit 'c24c0e9b5f81541af5d3094774eeebb4216655c5' into eclair-mr2-plus-aosp

* commit 'c24c0e9b5f81541af5d3094774eeebb4216655c5':
Fix ConnectivityManager permissions check.
ae9fc517654efd5c6a9c4c44704b85c1c6b5326f 07-Oct-2009 Dianne Hackborn <hackbod@google.com> am 68d881cf: Fix issue #2166755: BroadcastReceiver trying to return result during a non-ordered broadcast

Merge commit '68d881cf2d2b252f6f795cd64d43e316a1d736e5' into eclair-plus-aosp

* commit '68d881cf2d2b252f6f795cd64d43e316a1d736e5':
Fix issue #2166755: BroadcastReceiver trying to return result during a non-ordered broadcast
4083f8cf4db8d58caa3fc205597ea027589d5370 07-Oct-2009 Dianne Hackborn <hackbod@google.com> am 9830a4ac: Fix issue #2161169: onStop not being called.

Merge commit '9830a4ac42c9e16db91d1de6120cc2eb613fc946' into eclair-plus-aosp

* commit '9830a4ac42c9e16db91d1de6120cc2eb613fc946':
Fix issue #2161169: onStop not being called.
031e4ac7dd0405e16664d2ec5311d2e96221ce23 07-Oct-2009 Dianne Hackborn <hackbod@google.com> am 48e6725c: Merge change Iaca22686 into eclair

Merge commit '48e6725c828a8d420d43925b0c9a9a915a8c4e2f' into eclair-plus-aosp

* commit '48e6725c828a8d420d43925b0c9a9a915a8c4e2f':
Work on issue #2163789: Way too much logging
463852db23f42131839b9784101b8bdef1f7d0c4 07-Oct-2009 Dianne Hackborn <hackbod@google.com> am cbc52b7b: Merge change Iee638412 into eclair

Merge commit 'cbc52b7bcbea7dc6ae3b7cfc84fd44ae86711910' into eclair-plus-aosp

* commit 'cbc52b7bcbea7dc6ae3b7cfc84fd44ae86711910':
Fix issue #2161726: Car dock app bypasses setup wizard
7e5c5d975297ef76ae6640e06505a19fa8c0270e 07-Oct-2009 Dianne Hackborn <hackbod@google.com> am 0c3154d3: Fix issue #2163654: deadlock, runtime restart

Merge commit '0c3154d3fc54a1b3d8358a2932042cca729327b9' into eclair-mr2

* commit '0c3154d3fc54a1b3d8358a2932042cca729327b9':
Fix issue #2163654: deadlock, runtime restart
0c3154d3fc54a1b3d8358a2932042cca729327b9 07-Oct-2009 Dianne Hackborn <hackbod@google.com> Fix issue #2163654: deadlock, runtime restart

Don't hold a lock when the activity thread is telling the activity manager
to release a provider.

This requires that the activity manager now keep a reference count on the
providers, because without the lock it is possible for activity thread to
call in to request the provider again before it has finished telling
about the release.

Change-Id: I5f912903891f4edae85e28819d4e6f14b8f2e688
om/android/server/am/ActivityManagerService.java
om/android/server/am/ProcessRecord.java
b8f16340b531809aa08cb73c55ddadd5f94de080 07-Oct-2009 Robert Greenwalt <robdroid@android.com> Fix ConnectivityManager permissions check.

bug: 2160462
om/android/server/ConnectivityService.java
2a9b411d4ed60acbe089068c93850ecd049f57f2 07-Oct-2009 Robert Greenwalt <robdroid@android.com> am e8830120: am 92b5caa4: Merge change Id8df149c into eclair

Merge commit 'e8830120c8e416a26520dfbbd0e386e77255dbda' into eclair-mr2-plus-aosp

* commit 'e8830120c8e416a26520dfbbd0e386e77255dbda':
Turn some logging back on in ConnectionManager
5a535026bfc1d091c0d029b21cc63f929c2def0a 06-Oct-2009 Suchi Amalapurapu <asuchitra@google.com> am ef3c63ad: am 5163cd6d: Merge change I5be3d603 into eclair

Merge commit 'ef3c63ad20c4c45c0ae1748a67b5f33d26415938' into eclair-mr2-plus-aosp

* commit 'ef3c63ad20c4c45c0ae1748a67b5f33d26415938':
Make sdk version and code names static finals in PackageParser.
d8df149cfb82cf02cef7e04c05f229d7caf7fe90 06-Oct-2009 Robert Greenwalt <robdroid@android.com> Turn some logging back on in ConnectionManager

Trimmed a bunch of logging out, but turned it on so we get the critical stuff.

bug: 2168291
om/android/server/ConnectivityService.java
8d5ae98549f68a1214a72e6d79456503eb7d96f5 06-Oct-2009 Suchi Amalapurapu <asuchitra@google.com> Make sdk version and code names static finals in PackageParser.
Remove api to set these values.
Remove an unused method in AppSecurityPermissions
om/android/server/PackageManagerService.java
4bc6158d6bdeff796cfd61d489c01db0d203534c 06-Oct-2009 Dianne Hackborn <hackbod@google.com> am baad552d: am 68d881cf: Fix issue #2166755: BroadcastReceiver trying to return result during a non-ordered broadcast

Merge commit 'baad552dfd6e9d244659e7509ff958ec8f449c03' into eclair-mr2-plus-aosp

* commit 'baad552dfd6e9d244659e7509ff958ec8f449c03':
Fix issue #2166755: BroadcastReceiver trying to return result during a non-ordered broadcast
68d881cf2d2b252f6f795cd64d43e316a1d736e5 05-Oct-2009 Dianne Hackborn <hackbod@google.com> Fix issue #2166755: BroadcastReceiver trying to return result during a non-ordered broadcast

Tell the broadcast receiver whether it is getting an initial sticky value,
so it will be quiet about attempts to do ordered broadcast stuff.

Note that the original bug being reported was not actually a crash, just
an error log. So all we are doing here is making the log quieter.

Change-Id: Iaf1b718d82093ec1197142410a64feff47eb3859
om/android/server/am/ActivityManagerService.java
om/android/server/am/BroadcastRecord.java
om/android/server/am/PendingIntentRecord.java
72650c31c7f7722836184984678508af95d52519 05-Oct-2009 Dianne Hackborn <hackbod@google.com> am a4a8a88b: am 9830a4ac: Fix issue #2161169: onStop not being called.

Merge commit 'a4a8a88bf7aeec3413eda09c8a61c1df01c474ac' into eclair-mr2-plus-aosp

* commit 'a4a8a88bf7aeec3413eda09c8a61c1df01c474ac':
Fix issue #2161169: onStop not being called.
9830a4ac42c9e16db91d1de6120cc2eb613fc946 05-Oct-2009 Dianne Hackborn <hackbod@google.com> Fix issue #2161169: onStop not being called.

There was a bug with the starting window where it could be added to
the app window list twice, so the buddy list would end up with one
left over after all was done. This would result in visibility
changes not being delivered to it correctly, delaying the dispatch
of onStop.

Change-Id: If1993eaf9cfbba1f523ce5aaa478be0239d0c7db
om/android/server/WindowManagerService.java
8e20e88ba664ff606cd7eb427dd05fd981355410 05-Oct-2009 Patrick Scott <phanna@android.com> Merge branch 'eclair-plus-aosp' of ssh://android-git.corp.google.com:29418/platform/frameworks/base into eclair-mr2-plus-aosp
9ff67a5f9b0bca15ad6933eac90a65b11b29eb2e 05-Oct-2009 Joshua Bartel <joshua.bartel@gmail.com> LocationManagerService: Fix race when removing LocationListener

In LocationManagerService if a LocationListener is removed while it has
a pending broadcast the wake lock held while pending broadcasts are
outstanding do not get cleared properly.

There are 2 cases of this race that are fixed:

1. locationCallbackFinished was changed to check the mReceivers HashMap
directly instead of calling getReceiver. getReceiver would add the
ILocationListener as a new Receiver if it did not exist which caused
a receiver that was removed when it still had a broadcast pending to
be added back in a bad state when the pending broadcast completed.

2. removeUpdatesLocked was changed to decrement the pending broadcasts
when a Receiver is removed that has pending broadcasts.
om/android/server/LocationManagerService.java
48e6725c828a8d420d43925b0c9a9a915a8c4e2f 05-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change Iaca22686 into eclair

* changes:
Work on issue #2163789: Way too much logging
bd0a81ff1c0e92e80e05e2f12bb1805c7d081e94 04-Oct-2009 Dianne Hackborn <hackbod@google.com> Work on issue #2163789: Way too much logging

Dr.No from mcleron.

Change-Id: Iaca2268684f83fe8757e64db0b0e047a19755311
om/android/server/ConnectivityService.java
om/android/server/KeyInputQueue.java
om/android/server/RandomBlock.java
om/android/server/am/ActivityManagerService.java
om/android/server/status/StatusBarIcon.java
om/android/server/status/StatusBarPolicy.java
om/android/server/status/StatusBarService.java
4949334d2064b32118b04c231dd622804a9df1cb 02-Oct-2009 Dianne Hackborn <hackbod@google.com> Fix issue #2161726: Car dock app bypasses setup wizard

We now just don't send out dock broadcasts/launches when the
device is not provisioned. Good enough for our purposes.

Change-Id: Iee6384121675e0e9854745ec1168245e8a23a241
om/android/server/DockObserver.java
436743075aa3994365dc8c72a6be3ec90cb44d69 01-Oct-2009 Romain Guy <romainguy@android.com> am 9825ec61: Prevents the WindowManager from requesting empty or negative surfaces.

Merge commit '9825ec61b4a40ed92a5bb28019289e5bab9cfb56' into eclair-plus-aosp

* commit '9825ec61b4a40ed92a5bb28019289e5bab9cfb56':
Prevents the WindowManager from requesting empty or negative surfaces.
9825ec61b4a40ed92a5bb28019289e5bab9cfb56 01-Oct-2009 Romain Guy <romainguy@android.com> Prevents the WindowManager from requesting empty or negative surfaces.

Windows with a negative Y position can end up in createSurfaceLocked()
with mFrame containing a negative height, causing SurfaceFlinger to go
crazy when asked to create the surface. This change simply guards
against such a situation by instead asking for a 1x1 surface and relying
or later layout operations to resize the window to the appropriate size.

Change-Id: I66f2058f4cd1cf069b12d3d23e6fd340dc76b74e
om/android/server/WindowManagerService.java
41829e0138dbf3c3334eb3ca3bfcc08a26871f39 01-Oct-2009 Dianne Hackborn <hackbod@google.com> am e88846ee: Semi-workaround for #2027266: app drawer showing up on the side of the screen

Merge commit 'e88846eeaf70f9f4299af9e3d54ba5dacede42b6' into eclair-plus-aosp

* commit 'e88846eeaf70f9f4299af9e3d54ba5dacede42b6':
Semi-workaround for #2027266: app drawer showing up on the side of the screen
e88846eeaf70f9f4299af9e3d54ba5dacede42b6 01-Oct-2009 Dianne Hackborn <hackbod@google.com> Semi-workaround for #2027266: app drawer showing up on the side of the screen

(when booted while docked)

This isn't really a fix, but we now have the activity report the configuration
it actually launched in, so the activity manager will later adjust it if
needed. Should help us recover from hitting the race in this particular case.

Change-Id: I3bb83a48c2d692b4cb1822d8ae7d924cfa9187b2
om/android/server/am/ActivityManagerService.java
1412308467116347e0443117b358c63da103774f 01-Oct-2009 Robert Greenwalt <robdroid@android.com> am a1323c77: Merge change Iaf08eabc into eclair

Merge commit 'a1323c77b961ae1b9cfaf5305e05780b07e88226' into eclair-plus-aosp

* commit 'a1323c77b961ae1b9cfaf5305e05780b07e88226':
Reduce the ConnectivityManager logging.
1ef95f9eed610897b46a00f51a7cd7944ef26e62 01-Oct-2009 Robert Greenwalt <robdroid@android.com> Reduce the ConnectivityManager logging.

Same great info, just fewer chars.
om/android/server/ConnectivityService.java
91a13318d4c44edcd10a1ed7021d1ef7ff8893b1 01-Oct-2009 Robert Greenwalt <robdroid@android.com> am e6b27966: Merge change I94132420 into eclair

Merge commit 'e6b27966fd7e181a52b35cd95937b935ba05783b' into eclair-plus-aosp

* commit 'e6b27966fd7e181a52b35cd95937b935ba05783b':
Fix network-feature timeout code.
e6b27966fd7e181a52b35cd95937b935ba05783b 01-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I94132420 into eclair

* changes:
Fix network-feature timeout code.
6a444d4f5060a720d77daf8a81452566e327f266 01-Oct-2009 Christopher Tate <ctate@android.com> am 5f3c928f: Merge change Id93f4c9e into eclair

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

* commit '5f3c928f5ecdd2f41f238807c59241d34a02517e':
Turn off the last of the STOPSHIP verbose debugging
8f20d5c9dfcf9d74d4c008758960df14c37e1117 01-Oct-2009 Mike Lockwood <lockwood@android.com> am 51cef844: Merge change Ic7e251a7 into eclair

Merge commit '51cef8440df1971f06e41eba8a87c58a225d4e8f' into eclair-plus-aosp

* commit '51cef8440df1971f06e41eba8a87c58a225d4e8f':
Update SD card notification icons.
6678aeccec58f5ff306fb93ad4411208ed6227db 01-Oct-2009 Christopher Tate <ctate@android.com> am 436344ae: Turn off most of the backup-related debug logging

Merge commit '436344ae12c819f58306ceb94241a266141e1218' into eclair-plus-aosp

* commit '436344ae12c819f58306ceb94241a266141e1218':
Turn off most of the backup-related debug logging
5f3c928f5ecdd2f41f238807c59241d34a02517e 01-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change Id93f4c9e into eclair

* changes:
Turn off the last of the STOPSHIP verbose debugging
13f4a64ddd0d81ffa04cb2ff4fd4c6500d6d21ed 01-Oct-2009 Christopher Tate <ctate@android.com> Turn off the last of the STOPSHIP verbose debugging

Change-Id: Id93f4c9e9fb8468a554ae1e5c5c767f72903662c
om/android/server/BackupManagerService.java
51cef8440df1971f06e41eba8a87c58a225d4e8f 01-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change Ic7e251a7 into eclair

* changes:
Update SD card notification icons.
436344ae12c819f58306ceb94241a266141e1218 01-Oct-2009 Christopher Tate <ctate@android.com> Turn off most of the backup-related debug logging

The core logging in BackupManagerService and in the Google backup transport are
still enabled at this point.

Change-Id: I10abfa565bbd1097dd3631051b6aca163e4af33a
om/android/server/am/ActivityManagerService.java
de46acddf597da5637b99a8a6e52ffd642ae913e 01-Oct-2009 Mike Lockwood <lockwood@android.com> Update SD card notification icons.

Stop using SIM card icons for USB notifications
Fixes b/1700510

Change-Id: Ic7e251a7ecad3ed46044181eae41481791df85bd
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/MountService.java
8f4f41df559630ce2da6d2e466440328aaafb4ba 01-Oct-2009 Dianne Hackborn <hackbod@google.com> am 48e9a0dd: Merge change Ice5e9209 into eclair

Merge commit '48e9a0dd66b832cfaf668deba584394eba0ffdfc' into eclair-plus-aosp

* commit '48e9a0dd66b832cfaf668deba584394eba0ffdfc':
Fix issue #2150258: Suggestions become inactive and do not respond when pressed.
7a51b14d9f7f8c48c74ed1787bed3ef83aae6658 01-Oct-2009 Suchi Amalapurapu <asuchitra@google.com> am 094e3e0b: Merge change Icb89d482 into eclair

Merge commit '094e3e0bcc81a795f35ac2ea218d0fc0109100cf' into eclair-plus-aosp

* commit '094e3e0bcc81a795f35ac2ea218d0fc0109100cf':
Check if rename of backed up file fails before persisting new changes.
48e9a0dd66b832cfaf668deba584394eba0ffdfc 01-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change Ice5e9209 into eclair

* changes:
Fix issue #2150258: Suggestions become inactive and do not respond when pressed.
8550f255232eb4e4852466c5297fdc125887f5af 30-Sep-2009 Suchi Amalapurapu <asuchitra@google.com> Check if rename of backed up file fails before persisting new changes.
If not these system services will end up with inconsistent settings files
when the device runs out of storage.
Delete mangled settings file in PackageManager if the current write fails
so that we don't end up overwriting the backed up version with the
mangled version
Include null check when retrieving fwd locked resource for an existing package
om/android/server/AppWidgetService.java
om/android/server/PackageManagerService.java
om/android/server/am/UsageStatsService.java
1bcf5a8a61b53d846b094da583f1011b0024281e 01-Oct-2009 Dianne Hackborn <hackbod@google.com> Fix issue #2150258: Suggestions become inactive and do not respond when pressed.

Change-Id: Ice5e920998fbe7eb1862f0ee7dca99876482b659
om/android/server/am/ActivityManagerService.java
e67de07627e5a35e499eeefdfb0334b50590d053 01-Oct-2009 Dianne Hackborn <hackbod@google.com> am a33e3f79: Fix issue #2154794: Force close when start facebook application.

Merge commit 'a33e3f79259b56b03c7912af35944f34ad190e3c' into eclair-plus-aosp

* commit 'a33e3f79259b56b03c7912af35944f34ad190e3c':
Fix issue #2154794: Force close when start facebook application.
a33e3f79259b56b03c7912af35944f34ad190e3c 30-Sep-2009 Dianne Hackborn <hackbod@google.com> Fix issue #2154794: Force close when start facebook application.

I think when we were scanning the updated app in the system image,
from an older version on the data partition, we were not setting
the existing package to have the system flag, so not auto-granting
any new permissions.

This also includes some other cleanup in the package manager to
remove old files in various places, and tighten up logging.

Also similar logging cleanup elsewhere.

Change-Id: I6d113c7cf7e736ab9be512d6d7c94c806a24199a
om/android/server/PackageManagerService.java
om/android/server/WindowManagerService.java
om/android/server/am/ActivityManagerService.java
722d67dcb6bd64ac73a4c1033b3b97c1a3215efe 30-Sep-2009 Dan Egnor <egnor@google.com> am 46e462a3: Merge change I852f8e46 into eclair

Merge commit '46e462a380f90ed8101f9ac3f950a3c702772842' into eclair-plus-aosp

* commit '46e462a380f90ed8101f9ac3f950a3c702772842':
Only re-initialize backup state if @pm@ metadata is missing,
46e462a380f90ed8101f9ac3f950a3c702772842 30-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I852f8e46 into eclair

* changes:
Only re-initialize backup state if @pm@ metadata is missing, to defensively work around a still-mysterious bug where the list of saved packages ends up being empty even though we still have state pending. If we do re-initialize, then wipe all state to make sure the right thing happens.
04e8a925c00ef0a1bf58932b84253ed72daf8404 30-Sep-2009 Dianne Hackborn <hackbod@google.com> am 935cbda0: Merge change I174d16a3 into eclair

Merge commit '935cbda0df2d55247c30d65534ecf31b1ee164b5' into eclair-plus-aosp

* commit '935cbda0df2d55247c30d65534ecf31b1ee164b5':
Debugging for #2027266: app drawer showing up on the side
dc6b635cfa440454985461444c3cf1da8078cee1 30-Sep-2009 Dianne Hackborn <hackbod@google.com> Debugging for #2027266: app drawer showing up on the side

Nothing fixed, but this tells us what is going on.

Change-Id: I174d16a3864af2fa235e8cc7b1e74d32a375fb42
om/android/server/am/ActivityManagerService.java
852f8e4660302a4163bfdc4a9b1e8012296522b0 30-Sep-2009 Dan Egnor <egnor@google.com> Only re-initialize backup state if @pm@ metadata is missing,
to defensively work around a still-mysterious bug where the
list of saved packages ends up being empty even though we still
have state pending. If we do re-initialize, then wipe all state
to make sure the right thing happens.

Don't keep open journal files -- close them after every update.
A bit less efficient, but possibly more reliable (again, this is
defensive programming here). Also change "rwd" to "rws" mode
for fully synchronous operation.
om/android/server/BackupManagerService.java
32a702a7a8a328a7080c18fd65478caf82d86e0e 30-Sep-2009 Fred Quintana <fredq@google.com> am 609c2c08: Merge change Ia54b1bf0 into eclair

Merge commit '609c2c08d7d059681434ea322b551264abab8a71' into eclair-plus-aosp

* commit '609c2c08d7d059681434ea322b551264abab8a71':
- make SyncManager get the accounts list during the constructor,
609c2c08d7d059681434ea322b551264abab8a71 30-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change Ia54b1bf0 into eclair

* changes:
- make SyncManager get the accounts list during the constructor, which will allow syncs to be scheduled during bootup. The providers need this so that they can potentially schedule syncs while they are starting up. - make the SyncManager message handler wait until boot has completed to start dispatching messages
e91ebe2be9580625ff31af8583e55aaefc50474f 30-Sep-2009 Fred Quintana <fredq@google.com> - make SyncManager get the accounts list during the constructor,
which will allow syncs to be scheduled during bootup. The
providers need this so that they can potentially schedule
syncs while they are starting up.
- make the SyncManager message handler wait until boot
has completed to start dispatching messages
om/android/server/SystemServer.java
515052fe87eacbf3ce864077657297ef548f1716 30-Sep-2009 Robert Greenwalt <robdroid@android.com> am a3431e4c: Merge change I84612ea6 into eclair

Merge commit 'a3431e4c7d6307b845d7008955d99425d842ff72' into eclair-plus-aosp

* commit 'a3431e4c7d6307b845d7008955d99425d842ff72':
Add a delay to wifi driver stop on screen off.
84612ea6110267928eb159b532d52fa3328d746a 30-Sep-2009 Robert Greenwalt <robdroid@android.com> Add a delay to wifi driver stop on screen off.

We already had a delay if we were associated, but we have some race conditions
we think will be masked if we delay the driver stop for the other cases
too. Don't wait as long (2 min instead of 15).

bug: 2147260
om/android/server/WifiService.java
5495ee0c09661b44ecec095e111b9564e356e272 30-Sep-2009 Dan Egnor <egnor@google.com> am b1b289a0: Merge change Id6688603 into eclair

Merge commit 'b1b289a01d20a3a2e08775d31994f0abca996a63' into eclair-plus-aosp

* commit 'b1b289a01d20a3a2e08775d31994f0abca996a63':
Better event log tracking for initializeDevice() requests --
726247ca6153d801e56ba5c574e0d9ba48135a5c 30-Sep-2009 Dan Egnor <egnor@google.com> Better event log tracking for initializeDevice() requests --
on success, record "backup_initialize" event; on failure,
record "backup_transport_failure" event (and add tags to
"backup_transport_failure" events that aren't associated
with a particular package -- namely "(initialize)" and
"(finish)").
om/android/server/BackupManagerService.java
450a60f8eca9308e23dcdd1c38c8ff8726b7b3c4 30-Sep-2009 Christopher Tate <ctate@android.com> am 072c9e74: Merge change I52e20bac into eclair

Merge commit '072c9e7473f4ff1a1b08ec08a906cc8308ed1c91' into eclair-plus-aosp

* commit '072c9e7473f4ff1a1b08ec08a906cc8308ed1c91':
Add more useful-for-debug info to 'dumpsys backup'
55f931a375cf6da96c525aa70d97541c0878951e 30-Sep-2009 Christopher Tate <ctate@android.com> Add more useful-for-debug info to 'dumpsys backup'

Change-Id: I52e20bac01ff63feaf28920a79311881992293a3
om/android/server/BackupManagerService.java
57a924d3eaf1ce2a31ef444639f9d6f490b34352 30-Sep-2009 Christopher Tate <ctate@android.com> am 49de6949: Merge change Ia75da053 into eclair

Merge commit '49de69498f6814e93939a0a0a357ac56697ef4ff' into eclair-plus-aosp

* commit '49de69498f6814e93939a0a0a357ac56697ef4ff':
Remove DEBUG-only logging in metadata backup agent
b808a939328b935592d9259e06c66b433a13c1a9 30-Sep-2009 Christopher Tate <ctate@android.com> Remove DEBUG-only logging in metadata backup agent

Change-Id: Ia75da053463249597b91ba629fd7a663cab1a07c
om/android/server/PackageManagerBackupAgent.java
9c75d4af63f92806943a9fa9d942644bd601310e 28-Sep-2009 Robert Greenwalt <robdroid@android.com> Fix network-feature timeout code.

Track requests independently with seperate timers. Clean up on expiration
by just stopping that particular request, not immediately restoring the default.

bug: 2127590
om/android/server/ConnectivityService.java
a2fbe44783d190236a42950e0a2585d8835d657f 29-Sep-2009 John Michelau <john.michelau@motorola.com> am a2f5afe6: Merge change I27009b08 into eclair

Merge commit 'a2f5afe6c690ad84aec046c4fa0178f2ee590c8e' into eclair-plus-aosp

* commit 'a2f5afe6c690ad84aec046c4fa0178f2ee590c8e':
Fix EVDO SNR signal bar calculation
a2f5afe6c690ad84aec046c4fa0178f2ee590c8e 29-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I27009b08 into eclair

* changes:
Fix EVDO SNR signal bar calculation
7219195066f365ae4ada788dd416e5e87fc906f5 29-Sep-2009 Dianne Hackborn <hackbod@google.com> am 6b1cb352: Fix issue #2149126: unable to answer incoming call, various problems

Merge commit '6b1cb352b86f2cf983026f2e6814665e12eb8452' into eclair-plus-aosp

* commit '6b1cb352b86f2cf983026f2e6814665e12eb8452':
Fix issue #2149126: unable to answer incoming call, various problems
6b1cb352b86f2cf983026f2e6814665e12eb8452 29-Sep-2009 Dianne Hackborn <hackbod@google.com> Fix issue #2149126: unable to answer incoming call, various problems

Now that we can have a non-app-window cross-wallpaper animation,
we need to make sure to not access a null app token.

Change-Id: Ia00debd4b2b431d15bd074927a9035e1bc0a6445
om/android/server/WindowManagerService.java
c78f617bb66123c224c833ed2bd151d588a9a06d 29-Sep-2009 Mike Lockwood <lockwood@android.com> am 733fdf34: Disable keyguard while docked when the lock screen is insecure.

Merge commit '733fdf34b6a8a8e3983ff7663828a928d3c19944' into eclair-plus-aosp

* commit '733fdf34b6a8a8e3983ff7663828a928d3c19944':
Disable keyguard while docked when the lock screen is insecure.
733fdf34b6a8a8e3983ff7663828a928d3c19944 29-Sep-2009 Mike Lockwood <lockwood@android.com> Disable keyguard while docked when the lock screen is insecure.

Change-Id: If6e11bb49a2cbbe904517e6037d1e8b99fe2717c
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/DockObserver.java
om/android/server/WindowManagerService.java
ccc624ca9a8fd8f9435afb854313aa9bda51b0b0 29-Sep-2009 Dianne Hackborn <hackbod@google.com> am ebd45e5c: Merge change I55edce63 into eclair

Merge commit 'ebd45e5ca9690110ecb50c26b0b791054ee4c0ef' into eclair-plus-aosp

* commit 'ebd45e5ca9690110ecb50c26b0b791054ee4c0ef':
Fix issue #2149145: Safe Mode does not work on Sholes device
6af0d50a8edb101d9da1306b6d85abf5dd3f9a30 28-Sep-2009 Dianne Hackborn <hackbod@google.com> Fix issue #2149145: Safe Mode does not work on Sholes device

The APIs for checking whether keys are held down now also look
at virtual keys.

However it turns out there is less than a second between the time we
start the input thread and check for safe mode, so there is not enough
time to actually open all of the devices and get the data from them
about the finger being down to determine if a virtual key is down.

So now you can also hold DPAD center, trackball center, or s to
enter safe mode. Also give some vibrator feedback.

Change-Id: I55edce63bc0c375813bd3751766b8070beeb0153
om/android/server/KeyInputQueue.java
om/android/server/SystemServer.java
om/android/server/WindowManagerService.java
1336a563684ff2226d4daf340ab5ef299e19870b 28-Sep-2009 John Michelau <john.michelau@motorola.com> Fix EVDO SNR signal bar calculation

Bug: 2149249
Change-Id: I27009b083fab7a8cae7d3b74046f50235458dde0
om/android/server/status/StatusBarPolicy.java
dd205d14468b532395a2d9896dd550150f09cc23 28-Sep-2009 Christopher Tate <ctate@android.com> am 5fbbdf2a: Merge change 27325 into eclair

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

* commit '5fbbdf2a21e5d41a3eaaa7122f4a46d30f81f7f7':
Don't forget to clear "backup in progress" state when finishing a pass
5fbbdf2a21e5d41a3eaaa7122f4a46d30f81f7f7 28-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 27325 into eclair

* changes:
Don't forget to clear "backup in progress" state when finishing a pass
a253f16cf8e70e0dcb0bcd6338441c83c3e44c3a 28-Sep-2009 Christopher Tate <ctate@android.com> Don't forget to clear "backup in progress" state when finishing a pass

If a backup pass had been skipped (either because the transport was unavailable
or -- in a common case! -- because there was simply no work pending when the
periodic backup check fired), we were forgetting to reset the "backup currently
in progress" flag. Once we'd done that, the device would *NEVER* perform a
backup until it was rebooted, since it would forever think that there was one
currently in operation that must not be interfered with.

Change-Id: I0d6d7375dc6de99b599222a449934e70fe13ebb9
om/android/server/BackupManagerService.java
a1414d1c5bd2c91571e83fb147c17996ec170555 27-Sep-2009 Dianne Hackborn <hackbod@google.com> am ac939d08: Merge change 27291 into eclair

Merge commit 'ac939d086c42afeaef0982cee0e5861184dd82eb' into eclair-plus-aosp

* commit 'ac939d086c42afeaef0982cee0e5861184dd82eb':
Fix issue #2148939: Sholes slow to wake up in landscape mode
ac939d086c42afeaef0982cee0e5861184dd82eb 27-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 27291 into eclair

* changes:
Fix issue #2148939: Sholes slow to wake up in landscape mode
7433e8aebd86e5916839508da478f9b9d63b969e 27-Sep-2009 Dianne Hackborn <hackbod@google.com> Fix issue #2148939: Sholes slow to wake up in landscape mode

This was introduced when I did the fading of the lock screen,
which relies on setting the policy visibility of the windows behind
it to be hidden. As a result, when the orientation changed or
the activity was restarted, they wouldn't be resized or reported
as drawn, and the activity manager would wait until its timeout
before unfreezing the screen.

We now have a new method on WindowState to find out if a window
has drawn itself, which is used in the appropriate places.

Change-Id: If05f8b1947d3029917f62ad0f89b43544bd0a4dc
om/android/server/WindowManagerService.java
fadc915addec91ac0d220ba13d1feaad29c2e71c 27-Sep-2009 Mike Lockwood <lockwood@android.com> am e7d60bfd: Merge change 27032 into eclair

Merge commit 'e7d60bfdff35ad8eace600d2a6cb81163c966bb0' into eclair-plus-aosp

* commit 'e7d60bfdff35ad8eace600d2a6cb81163c966bb0':
BatteryService: Specify low battery levels in resources.
d81b1f41e5e7bf0ccd3e4c08838d65eacdc8dda0 25-Sep-2009 Mike Lockwood <lockwood@android.com> BatteryService: Specify low battery levels in resources.

Also trigger low battery when battery reaches the specified level
rather than when it drops below the level.

Fixes bug b/1788656

Change-Id: I81f5cbb9892fc6574320d92e153211f83c69f415
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/BatteryService.java
om/android/server/status/StatusBarPolicy.java
bc21ba2410233b40b21a190b26285a791ac5cc58 27-Sep-2009 Dianne Hackborn <hackbod@google.com> am 093f5810: Merge change 27238 into eclair

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

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

Also extend the feature APIs a bit.

Change-Id: I99e932d7f4e61edb0e20f75c55e9831e4b59a14d
om/android/server/PackageManagerService.java
7bae17c6de08a1a6416f7d0e8da8b31c0c31ff9b 26-Sep-2009 Dianne Hackborn <hackbod@google.com> am 48c84052: Merge change 27162 into eclair

Merge commit '48c84052e25c1ac1cdb6c86ac2d231d40a7801af' into eclair-plus-aosp

* commit '48c84052e25c1ac1cdb6c86ac2d231d40a7801af':
Fix Activity.overridePendingTransition().
48c84052e25c1ac1cdb6c86ac2d231d40a7801af 26-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 27162 into eclair

* changes:
Fix Activity.overridePendingTransition().
abd4d965db17d8e77119da5246d5a9c367ae9c58 26-Sep-2009 Fred Quintana <fredq@google.com> am 6ecaff15: add a optional String to the key of notifications to allow users to scope them

Merge commit '6ecaff15836581336b1e8fad6ac42f3ff4a13544' into eclair-plus-aosp

* commit '6ecaff15836581336b1e8fad6ac42f3ff4a13544':
add a optional String to the key of notifications to allow users
8b571a817cc953ce96750f440645f104c7f55157 26-Sep-2009 Dianne Hackborn <hackbod@google.com> Fix Activity.overridePendingTransition().

Change-Id: I4ce995bd58efbbedbe4d0d1e9e0d0f4a8e261843
om/android/server/WindowManagerService.java
6ecaff15836581336b1e8fad6ac42f3ff4a13544 25-Sep-2009 Fred Quintana <fredq@google.com> add a optional String to the key of notifications to allow users
to scope them
om/android/server/NotificationManagerService.java
om/android/server/status/NotificationData.java
om/android/server/status/StatusBarService.java
6c52fdb684740a7ee86a743cacc701d9db24e8da 25-Sep-2009 David 'Digit' Turner <digit@google.com> am a0cad2f5: Merge change 27078 into eclair

Merge commit 'a0cad2f5d19d95cfe496ebb82f3227dd4ed7c169' into eclair-plus-aosp

* commit 'a0cad2f5d19d95cfe496ebb82f3227dd4ed7c169':
Fix generic build boot sequence.
a0cad2f5d19d95cfe496ebb82f3227dd4ed7c169 25-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 27078 into eclair

* changes:
Fix generic build boot sequence.
4ef8ec3a21da69091200aeebff80dbcde336709c 25-Sep-2009 David 'Digit' Turner <digit@google.com> Fix generic build boot sequence.

The TelephonyRegistry service crashed badly in the generic build, because
there is no system property to tell if the phone is GSM or CDMA. Adding a
simple null check solves the issue and allows the system to boot properly.
om/android/server/TelephonyRegistry.java
7510aba7a5a1024394be938c7e8b35de785f7355 25-Sep-2009 Dianne Hackborn <hackbod@google.com> am 896b15ab: Merge change 27016 into eclair

Merge commit '896b15abea4e1c0ee98330964474672a7316ee50' into eclair-plus-aosp

* commit '896b15abea4e1c0ee98330964474672a7316ee50':
A variety of work on animations.
3b3e145d3c41fd68974e08f799b1fd1f8f060cf0 25-Sep-2009 Dianne Hackborn <hackbod@google.com> A variety of work on animations.

- The lock screen now fades in and out.
- Fixed a bug where we would accidentally freeze the screen when switching
to an activity with a different orientation than the current (but
the screen itself is in the current orientation). This would mess up
the animations on the car dock.
- New API to force a particular animation for an activity transition
(untested).
- New wallpaper animations.
- Resources now uses the next API version when in a development build,
to help applications being developed against such builds.

Change-Id: I2d9998f8400967ff09a04d693dc4ce55f0dbef5b
om/android/server/WindowManagerService.java
om/android/server/am/ActivityManagerService.java
f45076dd37a649c9bdf10aaf5bc42793c72b497d 25-Sep-2009 Mike Cleron <mcleron@google.com> am fdf53a46: Merge change 26935 into eclair

Merge commit 'fdf53a4628f915203752660aa07049aa22c01b5a' into eclair-plus-aosp

* commit 'fdf53a4628f915203752660aa07049aa22c01b5a':
Fix bug 2129190
fdf53a4628f915203752660aa07049aa22c01b5a 25-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 26935 into eclair

* changes:
Fix bug 2129190 The context used by the status bar (i.e., the system context) was not properly initialized to have the right ApplicationInfo inside its PackageInfo. This eventually caused it to believe that it was running at 160dpi.
432b713c9442a4c0e1e4d400fada0c44dc17e786 25-Sep-2009 Mike Cleron <mcleron@google.com> Fix bug 2129190
The context used by the status bar (i.e., the system context) was
not properly initialized to have the right ApplicationInfo inside
its PackageInfo. This eventually caused it to believe that it
was running at 160dpi.

Kudos to Dianne for figuring this out.
om/android/server/am/ActivityManagerService.java
dbb031baeef3361feb402a0b239fe433edecc508 25-Sep-2009 Christopher Tate <ctate@android.com> am 3656a344: Merge change 26974 into eclair

Merge commit '3656a344072394f1ac9804be1c0d63f341233667' into eclair-plus-aosp

* commit '3656a344072394f1ac9804be1c0d63f341233667':
Disallow concurrent backups; consult transport requestBackupTime()
21ab6a5bdb791c138f284442cdac9e73ca6c5c11 25-Sep-2009 Christopher Tate <ctate@android.com> Disallow concurrent backups; consult transport requestBackupTime()

* We now check for in-progress backups when asked to perform one, and don't
bother firing off another one concurrently (nor do we adjust the scheduling;
after all, someone asked to do a backup "now" and we're doing one, so we are
in line with expectations). We also defer backup passes while a restore is
in flight, and abort attempts to perform a restore during a backup pass.

* When a backup attempt fails, we now ask the transport how far in the future we
should put our retry. Previously we were simply not bothering to consult with
the transport, so we would wind up retrying backup while network connectivity
was known to be down, etc.

Change-Id: Ic7758010b74e06e90c50d46b7b0dd01b17af7c90
om/android/server/BackupManagerService.java
2b091c882d64947b4dabc08d7284c42b9f051959 24-Sep-2009 Christopher Tate <ctate@android.com> am 4cc86e1a: Clear the device\'s data from the transport when backup is disabled

Merge commit '4cc86e1ae80eb1938500fe5fa06bbdf8b4b7b50d' into eclair-plus-aosp

* commit '4cc86e1ae80eb1938500fe5fa06bbdf8b4b7b50d':
Clear the device's data from the transport when backup is disabled
4cc86e1ae80eb1938500fe5fa06bbdf8b4b7b50d 22-Sep-2009 Christopher Tate <ctate@android.com> Clear the device's data from the transport when backup is disabled

Turning off backup in the Settings UI constitutes an opt-out of the whole
mechanism. For privacy reasons we instruct the backend to wipe all of the data
belonging to this device when the user does this. If the attempt fails it is
rescheduled in the future based on the transport's requestBackupTime()
suggestion. If network connectivity changes prompt the transport to indicate a
backup pass is appropriate "now," any pending init operation is processed before
the backup schedule is resumed.

The broadcasts used internally to the backup manager are now fully protected;
third party apps can neither send nor receive them.

(Also a minor logging change; don't log 'appropriate' EOF encountered during
parsing of a backup data stream.)
om/android/server/BackupManagerService.java
ad8d9dfb2458e5195df71afdcf07725a13ebe1c7 24-Sep-2009 Dianne Hackborn <hackbod@google.com> am ffa42480: Fix issue #2133206: dialogs/menus should auto-dismiss when screen turns off

Merge commit 'ffa424800d0338b8b894aef2ea1e3e3344cbda7a' into eclair-plus-aosp

* commit 'ffa424800d0338b8b894aef2ea1e3e3344cbda7a':
Fix issue #2133206: dialogs/menus should auto-dismiss when screen turns off
ffa424800d0338b8b894aef2ea1e3e3344cbda7a 24-Sep-2009 Dianne Hackborn <hackbod@google.com> Fix issue #2133206: dialogs/menus should auto-dismiss when screen turns off

Lot of infrastructure for more things to go away when "clear system dialogs"
happens, and now do this when we turn on the lock screen.

Change-Id: I567130296fe47ce82df065ed58ef21b37416ceaf
om/android/server/WindowManagerService.java
om/android/server/am/ActivityManagerService.java
b8f193da852dcd341b506dbbd14860be2ed3b2fc 24-Sep-2009 Dianne Hackborn <hackbod@google.com> am ce605142: Merge change 26717 into eclair

Merge commit 'ce60514221f2a143a0f85a1c63637d674eaa3d58' into eclair-plus-aosp

* commit 'ce60514221f2a143a0f85a1c63637d674eaa3d58':
Newer animations.
ce60514221f2a143a0f85a1c63637d674eaa3d58 24-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 26717 into eclair

* changes:
Newer animations.
2b813142d265b7005b901865152605391525263e 24-Sep-2009 Ken Shirriff <kens@google.com> am 2cca29a3: Merge change 26711 into eclair

Merge commit '2cca29a333eb2d29d4f7cceb5e73313d7857ca82' into eclair-plus-aosp

* commit '2cca29a333eb2d29d4f7cceb5e73313d7857ca82':
Fix widget stopListening NPE.
5baba1698964194daa02d30d4dd93807b08c9379 24-Sep-2009 Dianne Hackborn <hackbod@google.com> Newer animations.

Change-Id: I1bb8e52f91dc60a6ec9496e2c66623bc8080b95d
om/android/server/WindowManagerService.java
e21167a9e5978f167fa6e8d26bbb2986b6609372 24-Sep-2009 Ken Shirriff <kens@google.com> Fix widget stopListening NPE.

lookupHostLocked caller needs to check for null return value.
om/android/server/AppWidgetService.java
8f0d64693e155b1db2ff89cde1f050b4b6b0ec7a 23-Sep-2009 Dianne Hackborn <hackbod@google.com> am c413d54c: Merge change 26573 into eclair

Merge commit 'c413d54cd9283778e6d73965a1d1d5f63ba62ec3' into eclair-plus-aosp

* commit 'c413d54cd9283778e6d73965a1d1d5f63ba62ec3':
Fix bug where onStartCommand() was never called with a null intent.
fed534ee5d47a96c1d104f9bd303e9480102813c 23-Sep-2009 Dianne Hackborn <hackbod@google.com> Fix bug where onStartCommand() was never called with a null intent.

Also clean up some of the service java docs.

Change-Id: I40e7d713e2393f7ee1db9822da8f07fb6304a9e4
om/android/server/am/ActivityManagerService.java
648297ff5d1a56f08985d26d58f1471e2ff0ba86 23-Sep-2009 Dianne Hackborn <hackbod@google.com> am 7c47adef: Merge change 26527 into eclair

Merge commit '7c47adefea3101876f747926e7631406b4fbf45e' into eclair-plus-aosp

* commit '7c47adefea3101876f747926e7631406b4fbf45e':
Dock screen on config can now select AC or USB.
99f7eb453cee23e13f3ac8a4fa0632dd28f3a4b8 23-Sep-2009 Dianne Hackborn <hackbod@google.com> Dock screen on config can now select AC or USB.

Change-Id: Ifae9af4eb0295ba8e46c65879440b0da543b18e6
om/android/server/BatteryService.java
cd8e04d7871eb9303de78af0a2ecd7bce29d2e58 22-Sep-2009 Christopher Tate <ctate@android.com> am b03b3bbd: If backup fails, reenqueue all of the affected packages for next time.

Merge commit 'b03b3bbd6833f7c6fbd8100fa3958220554f66a3' into eclair-plus-aosp

* commit 'b03b3bbd6833f7c6fbd8100fa3958220554f66a3':
If backup fails, reenqueue all of the affected packages for next time.
b03b3bbd6833f7c6fbd8100fa3958220554f66a3 22-Sep-2009 Christopher Tate <ctate@android.com> If backup fails, reenqueue all of the affected packages for next time.
om/android/server/BackupManagerService.java
353bf45201e9440b61de8f89c92d1823ba55a198 22-Sep-2009 Dianne Hackborn <hackbod@google.com> am 9bfb7075: Various fixes and improvements to window, activity.

Merge commit '9bfb707597898f54722460b48588007b682f3e2a' into eclair-plus-aosp

* commit '9bfb707597898f54722460b48588007b682f3e2a':
Various fixes and improvements to window, activity.
9bfb707597898f54722460b48588007b682f3e2a 22-Sep-2009 Dianne Hackborn <hackbod@google.com> Various fixes and improvements to window, activity.

- New meta-data you can add to a dock activity to have it launched by the
home key when the device is in that dock.

- Fix a deadlock involving ActivityThread's internal content provider lock.

- New window flag to have a non-secure keyguard entirely dismissed when a
window is displayed.

- New WindowManagerPolicy APIs to allow the policy to tell the system when
a change it makes during layout may cause the wall paper or
overall configuration to change.

- Fix a bug where an application token removed while one of its windows is
animating could cause the animating window to get stuck on screen.

Change-Id: I6d33fd39edd796bb9bdfd9dd7e077b84ca62ea08
om/android/server/DockObserver.java
om/android/server/WindowManagerService.java
ee852f5fbd887c8a566703300b0fed141351575f 22-Sep-2009 Dan Egnor <egnor@google.com> am 6c644f24: Merge change 26379 into eclair

Merge commit '6c644f248f553898248b8a6948fac4d62874fedd' into eclair-plus-aosp

* commit '6c644f248f553898248b8a6948fac4d62874fedd':
Add parameter for the restore set (device id) data is being restored from to the restore_start event
6c644f248f553898248b8a6948fac4d62874fedd 22-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 26379 into eclair

* changes:
Add parameter for the restore set (device id) data is being restored from to the restore_start event
313b29faafab789ab7253be84c84ac560e72db7c 22-Sep-2009 Dan Egnor <egnor@google.com> Add parameter for the restore set (device id) data is being restored from to the restore_start event
om/android/server/BackupManagerService.java
678fa1898f8928cd6b81d2fe60ed54af60be3695 22-Sep-2009 Mike Lockwood <lockwood@android.com> am 94db928d: PowerManager: Require proximity sensor value be less than Sensor.getMaximumRange()

Merge commit '94db928d8cf5a69e8c2907fc33a6d656045f263d' into eclair-plus-aosp

* commit '94db928d8cf5a69e8c2907fc33a6d656045f263d':
PowerManager: Require proximity sensor value be less than Sensor.getMaximumRange()
94db928d8cf5a69e8c2907fc33a6d656045f263d 22-Sep-2009 Mike Lockwood <lockwood@android.com> PowerManager: Require proximity sensor value be less than Sensor.getMaximumRange()

This allows us to support binary proximity sensors that only return 0.0 and 1.0

Change-Id: Ifaf3a4e6fc720cb246ac3558e3e733b4b612c95b
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/PowerManagerService.java
e5910775c892f37ddc05c63eeaf62b74228cfb30 22-Sep-2009 Dan Egnor <egnor@google.com> am 9bbd5ee4: Merge change 26290 into eclair

Merge commit '9bbd5ee49f4a26b87273c40a955557e63f10da3b' into eclair-plus-aosp

* commit '9bbd5ee49f4a26b87273c40a955557e63f10da3b':
Make IBackupTransport.finishBackup() also return an int code, since it too can
9bbd5ee49f4a26b87273c40a955557e63f10da3b 22-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 26290 into eclair

* changes:
Make IBackupTransport.finishBackup() also return an int code, since it too can return TRANSPORT_NOT_INITIALIZED (in fact that's typically how it comes).
7ce7f6333421feed8468d69c920cfe9826e51704 22-Sep-2009 Dianne Hackborn <hackbod@google.com> am fe2bddfa: Don\'t wake up the screen as soon as the lid opens.

Merge commit 'fe2bddfae1b8c2375f58216871d923cbfe267dd3' into eclair-plus-aosp

* commit 'fe2bddfae1b8c2375f58216871d923cbfe267dd3':
Don't wake up the screen as soon as the lid opens.
3ffe6b12c78397abb8ab1a3064583d5e8b6ce51c 22-Sep-2009 Dianne Hackborn <hackbod@google.com> am 7f3fb7de: Merge change 26130 into eclair

Merge commit '7f3fb7dec2afdffa37e3067ca8a5b9d01809a9ce' into eclair-plus-aosp

* commit '7f3fb7dec2afdffa37e3067ca8a5b9d01809a9ce':
Turn animations on by default.
fe2bddfae1b8c2375f58216871d923cbfe267dd3 21-Sep-2009 Dianne Hackborn <hackbod@google.com> Don't wake up the screen as soon as the lid opens.

We may need to wait until the lock screen is ready.

Change-Id: Id114f4f37051680ab880056b4c989b1fa8aa02b3
om/android/server/PowerManagerService.java
bfe319e06aa56c081d0d94d64a8181291d7f7388 21-Sep-2009 Dianne Hackborn <hackbod@google.com> Turn animations on by default.

Add API to skip the animation for a particular start activity, so that
a latter better one can be used.

Fix Theme.NoDisplay to actually work.

Fiddle with various animations: don't do a different animation for task
switching, try a scale animation for switching in/out of the wallpaper.

Adjust the animation duration so that at normal speed we have something
more like the slower animation option (so slow is now the default).

Change-Id: Ieba9f3db0bd9a762a19b327a3ecccbc7b547893d
om/android/server/WindowManagerService.java
om/android/server/am/ActivityManagerService.java
0144516e19b9fd5415a56f8b41191187e2344bb0 22-Sep-2009 Dan Egnor <egnor@google.com> Make IBackupTransport.finishBackup() also return an int code, since it too can
return TRANSPORT_NOT_INITIALIZED (in fact that's typically how it comes).

For consistency, make other IBackupTransport methods return int instead of
boolean, and handle accordingly.

Make initializeDevice() its own method instead of a flag on performBackup().
This will be needed when un-checking the settings box anyway, and is
conceptually unrelated to whatever happens to be the first post-initialization
backup we perform. (Note that even if the init is sent separately from the
backup operation, the server will remember that an init has been done and
will *not* return NOT_INITIALIZED for the subsequent backup.)

Fix LocalTransport accordingly (trivial changes).

Handle failures more robustly in BackupManagerService -- most notably,
doQueuedBackups() was ignoring the result code of processOneBackup(), so
a NOT_INITIALIZED error would go past unseen (at least until the next
backup pass). Keep track of error code returns more universally now.
(This includes finishBackup(), of course.)
om/android/server/BackupManagerService.java
d4644471db5b8b47fa03d099e3efbf69e170d292 21-Sep-2009 Christopher Tate <ctate@android.com> am 9568fb21: Merge change 26164 into eclair

Merge commit '9568fb21766684083ec256303a6ed7949ada7d9f' into eclair-plus-aosp

* commit '9568fb21766684083ec256303a6ed7949ada7d9f':
Reset backup tracking in response to transport data-wipe notification
d55e18acbe444b74dc9e71eff6ea2c3eaf25fbd0 21-Sep-2009 Christopher Tate <ctate@android.com> Reset backup tracking in response to transport data-wipe notification

When attempting a backup, the transport may inform us that the backend is in an
uninitialized state. This typically means that the device's data has been wiped
after a period [e.g. 90 days] of inactivity. This means that we need to
re-store all data subject to backup, and all of our incremental state tracking
on the device is now stale.

In response, we wipe all of our recorded backup state and restart the backup
pass on all participants.
om/android/server/BackupManagerService.java
73d7ca9d56fc020d806db76fc7c0ef310731e0fd 21-Sep-2009 Brad Fitzpatrick <bradfitz@google.com> am 77fa24a5: Merge change 26136 into eclair

Merge commit '77fa24a5ef3ee3bc108d4bf3c77b7b4c7d0d5451' into eclair-plus-aosp

* commit '77fa24a5ef3ee3bc108d4bf3c77b7b4c7d0d5451':
Fix NPE crash-loop when cpufreq not available in the kernel.
2eb239f92dbde5cd0fb6b8f665009878cbc63356 21-Sep-2009 Brad Fitzpatrick <bradfitz@google.com> Fix NPE crash-loop when cpufreq not available in the kernel.
om/android/server/ProcessStats.java
752e55006f6bdc35781111c7735b97fd6fb1e15d 21-Sep-2009 Christopher Tate <ctate@android.com> am e705ca96: Merge change 26103 into eclair

Merge commit 'e705ca961f6c4f76f5b403d8556ee38305553aa7' into eclair-plus-aosp

* commit 'e705ca961f6c4f76f5b403d8556ee38305553aa7':
Handle restore of the original naive wallpaper backup schema
e705ca961f6c4f76f5b403d8556ee38305553aa7 21-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 26103 into eclair

* changes:
Handle restore of the original naive wallpaper backup schema
7c2bb66db77653c0a690962858cf105b0cb981d7 21-Sep-2009 Christopher Tate <ctate@android.com> Handle restore of the original naive wallpaper backup schema
om/android/server/SystemBackupAgent.java
09481271507cfac0db2f27b878f4a453ed919fb1 21-Sep-2009 Amith Yamasani <yamasani@google.com> am 5ea916b1: Merge change 26050 into eclair

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

* commit '5ea916b17cf0071f4d49936a370f4b873e4eb3e3':
Track CPU speed stepping to get more accurate CPU cost per app.
e43530ab571e901f94361078c7c1f970a0bd27f2 21-Aug-2009 Amith Yamasani <yamasani@google.com> Track CPU speed stepping to get more accurate CPU cost per app.

More CPU speed stepping happening with newer devices, so we need
to qualify CPU time with the CPU speed, since power consumption
varies greatly by speed. Apps that peg the CPU should get a higher
penaltly.

Also, fix for 2062930: NPE at VolumePreference.onKey()
om/android/server/ProcessStats.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/BatteryStatsService.java
416eb3bb6e3e3721cf1cb70e478f27256d881467 21-Sep-2009 Christopher Tate <ctate@android.com> am eb8aad7b: Merge change 26047 into eclair

Merge commit 'eb8aad7b2a99d3332a2fa6d8778356d634c47127' into eclair-plus-aosp

* commit 'eb8aad7b2a99d3332a2fa6d8778356d634c47127':
Fix up the first-backup-ever tracking
90967f4f0d5ba38ae7225788b111289516d1dda1 21-Sep-2009 Christopher Tate <ctate@android.com> Fix up the first-backup-ever tracking

This changes a couple of bits of the Backup Manager's logic around
first-backup-ever handling. First, it uses the same "what we've ever backed up"
handling as the rest of the system for purposes of instructing the backend to do
a wipe when the metadata is initialized for the device, instead of looking at
the presence of the @pm@ file. Secondly, for the time being we won't be using
the saved state produced by agents' doRestore() logic. Until the server is
migrating each restored package's data over to the new dataset, this was
resulting in the client holding an agent state blob for which no data existed on
the server under this device's identity but which the device thought was fully
up to date.
om/android/server/BackupManagerService.java
d4b74574a071eaa692fe6612ee99f519f9f56311 20-Sep-2009 Christopher Tate <ctate@android.com> am 3a66413a: Merge change 25992 into eclair

Merge commit '3a66413af33f2f2a3511f644efe5b4e45198d7df' into eclair-plus-aosp

* commit '3a66413af33f2f2a3511f644efe5b4e45198d7df':
Add an 'init everything' operation to the first backup pass
25a747f5c47f25c1a18961b03507f309b84924fe 20-Sep-2009 Christopher Tate <ctate@android.com> Add an 'init everything' operation to the first backup pass

IBackupTransport.performBackup() now takes a flag "wipeAllFirst", which if set
will result in the entire restore set for the current device/account being wiped
clean prior to the storage of the provided package. This ensures that a device
on which backup has just been enabled will not confront potentially-stale
information, nor will the restore set potentially contain mismatched data from
orphaned packages.

The Backup Manager has also been revised to pass this flag when first backing up
its master metadata block (and never pass it thereafter unless something has
caused the backup state tracking to be erased, e.g. the user has opted out of
backup and then later re-enabled it).
om/android/server/BackupManagerService.java
f60be7bf62e157b978964b46196348dc9f41dc1d 20-Sep-2009 Robert Greenwalt <robdroid@android.com> am 4492bcd8: Merge change 25938 into eclair

Merge commit '4492bcd8b0437b1200e93c001ca75d9fa8c4ad30' into eclair-plus-aosp

* commit '4492bcd8b0437b1200e93c001ca75d9fa8c4ad30':
Don't require WAKE_LOCK permission to enable wifi
4492bcd8b0437b1200e93c001ca75d9fa8c4ad30 20-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 25938 into eclair

* changes:
Don't require WAKE_LOCK permission to enable wifi
c01513005085fd4a1e3c7183348cd22e4ac214f3 20-Sep-2009 Mike Lockwood <lockwood@android.com> am b8155068: Merge change 25944 into eclair

Merge commit 'b8155068ef855147d86465817be2660a5212a6bb' into eclair-plus-aosp

* commit 'b8155068ef855147d86465817be2660a5212a6bb':
Wake the screen if the proximity wakelock is released while the proximity sensor is active.
c70f90b484af17393986ff2a948f56575580c272 20-Sep-2009 Mike LeBeau <mlebeau@android.com> am 2b1cfef1: Merge change 25937 into eclair

Merge commit '2b1cfef19efb11d283a08042d37a326141c28429' into eclair-plus-aosp

* commit '2b1cfef19efb11d283a08042d37a326141c28429':
Change the broadcast intent for dock state changes from a sticky broadcast to
b8155068ef855147d86465817be2660a5212a6bb 20-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 25944 into eclair

* changes:
Wake the screen if the proximity wakelock is released while the proximity sensor is active.
200b30bba53412919d2b5b4b85c02727b87f51df 20-Sep-2009 Mike Lockwood <lockwood@android.com> Wake the screen if the proximity wakelock is released while the proximity sensor is active.

This fixes a problem that resulted in the screen staying off indefinitely if the prox sensor
is active at the beginning of a bluetooth call and could result in the screen staying off
in other similar circumstances.

Change-Id: Icfa0046d3179f9bb2247e7a3c1f9ff073312667a
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/PowerManagerService.java
a99f461b98df6b88c6b0fae83b41077dde9a2228 20-Sep-2009 Robert Greenwalt <robdroid@android.com> Don't require WAKE_LOCK permission to enable wifi

The process for starting wifi was using a wakelock around a message-pass and this was causing
an exception for meer mortals (who don't have WAKE_LOCK permission).

bug: 1750535
om/android/server/WifiService.java
1f6c7e6a2b99f99fdfbe438118241e60b4ded745 20-Sep-2009 Mike LeBeau <mlebeau@android.com> Change the broadcast intent for dock state changes from a sticky broadcast to
a sticky ordered broadcast. This is so individual apps can override the default
behavior and stop the related dock app from launching.
om/android/server/DockObserver.java
3bd5e2b22efe0da3864bc6d8c5aae68742c3c707 19-Sep-2009 Dianne Hackborn <hackbod@google.com> am e69335f8: Merge change 25931 into eclair

Merge commit 'e69335f8b4f4195e57613fe6b83e18e23e0c2760' into eclair-plus-aosp

* commit 'e69335f8b4f4195e57613fe6b83e18e23e0c2760':
Add better APIs for the battery status, and other cleanup.
edd9316ca9b3b24d54e8a2468927da7e813098fc 19-Sep-2009 Dianne Hackborn <hackbod@google.com> Add better APIs for the battery status, and other cleanup.

Also add new configs for keeping screen on while docked, which will
be used elsewhere.

Change-Id: Ifaa1118f14fd850ac809895f9a5c9e8c413259b8
om/android/server/BatteryService.java
3bd5378329b48af22613099b0e4709a3633396ff 19-Sep-2009 Dianne Hackborn <hackbod@google.com> am 84ab79c7: Merge change 25873 into eclair

Merge commit '84ab79c7f0263f5f5748d3c1ad0d0feedad604cc' into eclair-plus-aosp

* commit '84ab79c7f0263f5f5748d3c1ad0d0feedad604cc':
Fix transformation on windows.
65c23872066d39521e98fd4b000069c562c57076 19-Sep-2009 Dianne Hackborn <hackbod@google.com> Fix transformation on windows.

The window offset was being applied incorrectly in relation to the
animation transform.

Change-Id: Ia578129f48cf6c57ae795af862d2b6ce5d447994
om/android/server/WindowManagerService.java
a63276ed69ef10ec5cc29a5c3b392a268d25bf07 19-Sep-2009 Dan Egnor <egnor@google.com> am 90d8a6a4: Merge change 25628 into eclair

Merge commit '90d8a6a449dc12fea2b56b557c243e33746d914a' into eclair-plus-aosp

* commit '90d8a6a449dc12fea2b56b557c243e33746d914a':
Inefficient but correct fix for 2122381: call finishBackup after every performBackup
90d8a6a449dc12fea2b56b557c243e33746d914a 19-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 25628 into eclair

* changes:
Inefficient but correct fix for 2122381: call finishBackup after every performBackup
64f0e2430fa59105943cfe59ce2593b9b086514f 18-Sep-2009 Jacek Surazski <jaceks@google.com> am c3a3b399: Merge change 25752 into eclair

Merge commit 'c3a3b399a9d7707b7f3c4108e0e31a1b664a6f22' into eclair-plus-aosp

* commit 'c3a3b399a9d7707b7f3c4108e0e31a1b664a6f22':
Add a Gservices setting to controll the app error reporting feature.
c3a3b399a9d7707b7f3c4108e0e31a1b664a6f22 18-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 25752 into eclair

* changes:
Add a Gservices setting to controll the app error reporting feature.
1e8c95318f0cce70dc66fb29036d084d5665abd8 18-Sep-2009 Dianne Hackborn <hackbod@google.com> am ffda371c: Merge change 25734 into eclair

Merge commit 'ffda371c220de9c97663fef4e9d14bee7267383d' into eclair-plus-aosp

* commit 'ffda371c220de9c97663fef4e9d14bee7267383d':
Show the live wallpaper on the lock screen.
6136b7ef169a65a02a6660be636fcec370c68145 18-Sep-2009 Dianne Hackborn <hackbod@google.com> Show the live wallpaper on the lock screen.

This also takes care of the problem of system dialogs like the
crash dialog causing the status bar to dim behind the lock screen.

On the down side, the fade transition from the lock screen is
now gone, and I'm not sure how likely it is for it to return.

Change-Id: I7f9e6d0f3510a1fdbbe6ad252d986bd85a16475d
om/android/server/WindowManagerService.java
a233943cb1b064155d001556c573140ed333149e 18-Sep-2009 Jacek Surazski <jaceks@google.com> Add a Gservices setting to controll the app error reporting feature.
om/android/server/am/ActivityManagerService.java
1f3914b7f2f3c233da8b643c426c0ffd42f32f87 18-Sep-2009 Dianne Hackborn <hackbod@google.com> am fa82f22f: Fix issue #2093608: Calendar widget takes a few seconds to launch

Merge commit 'fa82f22f1d8c4c828bdf9b670006be4f4fec772e' into eclair-plus-aosp

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

Avert your eyes!

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

Change-Id: If097cf7478cbed7a3c04a304050bd7fd5703d197
om/android/server/am/ActivityManagerService.java
om/android/server/am/PendingIntentRecord.java
fb5c0fd8b42d86dd58380c3f09678fc6ecd81bca 18-Sep-2009 Robert Greenwalt <robdroid@android.com> am 1c7c3556: Merge change 25634 into eclair

Merge commit '1c7c355626ea870605beab6dc07d8ac7509a8b80' into eclair-plus-aosp

* commit '1c7c355626ea870605beab6dc07d8ac7509a8b80':
Report NO_CONNECTIVITY when failover net unavail
abdb3037ed75aad54861692cd392ff1cf6f3c0f2 18-Sep-2009 Suchi Amalapurapu <asuchitra@google.com> am 0d51d635: Merge change 25626 into eclair

Merge commit '0d51d63595014c4237010118aaac891e657c2d23' into eclair-plus-aosp

* commit '0d51d63595014c4237010118aaac891e657c2d23':
Check if rename of current settings file was successful before persisting
c7d2530d52e9c188392b118caea64673dbbad45c 17-Sep-2009 Robert Greenwalt <robdroid@android.com> Report NO_CONNECTIVITY when failover net unavail

Fix ConnectivityService so that it reports connection status correctly.

bug: 2128595
om/android/server/ConnectivityService.java
0d51d63595014c4237010118aaac891e657c2d23 18-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 25626 into eclair

* changes:
Check if rename of current settings file was successful before persisting new changes to settings.
3d7e855df3e8556b311ef3900990047554aaa0e5 18-Sep-2009 Suchi Amalapurapu <asuchitra@google.com> Check if rename of current settings file was successful before persisting
new changes to settings.
om/android/server/PackageManagerService.java
83861e74c3c89337b0cc43fb38daedfef19e6edf 18-Sep-2009 Dan Egnor <egnor@google.com> Inefficient but correct fix for 2122381: call finishBackup after every performBackup
om/android/server/BackupManagerService.java
3955bccd2d89573a065e16f3c0172f10f22fe7df 17-Sep-2009 Dianne Hackborn <hackbod@google.com> am 4ac137ca: Merge change 25526 into eclair

Merge commit '4ac137cad9fb9aa5b69776b4ae3c8f906cc57511' into eclair-plus-aosp

* commit '4ac137cad9fb9aa5b69776b4ae3c8f906cc57511':
Add API to retrieve memory used by running processes.
4ac137cad9fb9aa5b69776b4ae3c8f906cc57511 17-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 25526 into eclair

* changes:
Add API to retrieve memory used by running processes.
a038decb21419c42a70c83a84c3b8ba152524913 17-Sep-2009 Mike Lockwood <lockwood@android.com> am c2912a66: Merge change 25490 into eclair

Merge commit 'c2912a662d984e2f23187fa31e7e71122d9472d9' into eclair-plus-aosp

* commit 'c2912a662d984e2f23187fa31e7e71122d9472d9':
Revert "Don't activate keyguard if screen is turned off while proximity sensor is active."
c2912a662d984e2f23187fa31e7e71122d9472d9 17-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 25490 into eclair

* changes:
Revert "Don't activate keyguard if screen is turned off while proximity sensor is active."
4f21c4cf077cfee5b35a56703618115614bc40f2 17-Sep-2009 Dianne Hackborn <hackbod@google.com> Add API to retrieve memory used by running processes.

Change-Id: I9c1935c2ef3c78bd67ec4dfd811a1caaab4514c3
om/android/server/am/ActivityManagerService.java
5c063479966039085a5357335f961cc9ab090f02 17-Sep-2009 Yusuf T. Mobile <yusuf.saib@T-Mobile.com> am 6c41fead: Merge change 25519 into eclair

Merge commit '6c41feadc30448adba4f771b3c1b4ecda8d875b6' into eclair-plus-aosp

* commit '6c41feadc30448adba4f771b3c1b4ecda8d875b6':
LocationManagerService: Take fix accuracy into account in proximity zone logic.
5550ef48739a7bb16f80aa6b10e9c151b1438163 15-Jul-2009 Yusuf T. Mobile <yusuf.saib@T-Mobile.com> Fixed Android issue #2002: "Proximity alert detection logic is broken"
http://code.google.com/p/android/issues/detail?id=2002
om/android/server/LocationManagerService.java
2d2078aa1d6e31063f565a20b717f3b8908fff02 15-Jul-2009 Yusuf T. Mobile <yusuf.saib@T-Mobile.com> LocationManagerService: Take fix accuracy into account in proximity zone logic.

Fixes http://code.google.com/p/android/issues/detail?id=2002

Change-Id: If2b0665c556269279c5813f2254f9624a556bd92
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/LocationManagerService.java
c17f07aa0468424e3475d7761313b761372d1860 17-Sep-2009 Mike Lockwood <lockwood@android.com> Revert "Don't activate keyguard if screen is turned off while proximity sensor is active."

This reverts commit ddfe879b783ad72603308e28e8f683454464684e.
om/android/server/PowerManagerService.java
69f73363280830bcca2d62cf9ba247d6dec9e0cb 17-Sep-2009 Christopher Tate <ctate@android.com> am b8eb1cb7: Be sure to include shared lib path info when dealing with agents

Merge commit 'b8eb1cb79b2912b91a1b0198ba3e61776af07a79' into eclair-plus-aosp

* commit 'b8eb1cb79b2912b91a1b0198ba3e61776af07a79':
Be sure to include shared lib path info when dealing with agents
11ae4695c18587a376f5da06f377fae6c242f5a5 17-Sep-2009 Dianne Hackborn <hackbod@google.com> am e777e0a3: Merge change 25388 into eclair

Merge commit 'e777e0a3d1645c1b54f12af5779cb7ccf0c82234' into eclair-plus-aosp

* commit 'e777e0a3d1645c1b54f12af5779cb7ccf0c82234':
Fix #1827299: Google login screen to re-enter password is not viewable
b8eb1cb79b2912b91a1b0198ba3e61776af07a79 16-Sep-2009 Christopher Tate <ctate@android.com> Be sure to include shared lib path info when dealing with agents

In particular, this ensures that on the client side the full classpath is known
and used by the class loader during execution of the agent.
om/android/server/BackupManagerService.java
248b188860534c50147592fc9b486512bfe75c78 17-Sep-2009 Dianne Hackborn <hackbod@google.com> Fix #1827299: Google login screen to re-enter password is not viewable

This was a problem with not hiding the starting window when it got
transfered to an activity whose window (instead of token) animates
when displayed.

Change-Id: I9eb58faa6e27d53144687952a715fc083a5c5842
om/android/server/WindowManagerService.java
bdd1f2e37e67cc530e54ea7b8a23df60a4aa1a9b 16-Sep-2009 Mike Lockwood <lockwood@android.com> am 9092ab4d: Add support for launching activities when attaching to a car or desk dock.

Merge commit '9092ab4d458ad60b459d5fad52368bde5d25f665' into eclair-plus-aosp

* commit '9092ab4d458ad60b459d5fad52368bde5d25f665':
Add support for launching activities when attaching to a car or desk dock.
9092ab4d458ad60b459d5fad52368bde5d25f665 16-Sep-2009 Mike Lockwood <lockwood@android.com> Add support for launching activities when attaching to a car or desk dock.

Categories CATEGORY_CAR_DOCK and CATEGORY_DESK_DOCK can be assigned to
activities to make them launchable on docked events.
This is a better mechanism than listening for ACTION_DOCK_EVENT with a broadcast receiver.

Change-Id: Ic5f3ab3555ce02ca922bc31ebba41978cefe8bda
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/DockObserver.java
bbfbf187efc47eb55f07928abdc7055d781f859e 16-Sep-2009 Suchi Amalapurapu <asuchitra@google.com> am 2a66eee3: Merge change 25157 into eclair

Merge commit '2a66eee3ef88bdc7167e5e5d0471c1e8b2e68fc6' into eclair-plus-aosp

* commit '2a66eee3ef88bdc7167e5e5d0471c1e8b2e68fc6':
Remove deadlock in PackageManager when installing or upgrading packages.
2a66eee3ef88bdc7167e5e5d0471c1e8b2e68fc6 16-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 25157 into eclair

* changes:
Remove deadlock in PackageManager when installing or upgrading packages. PM first creates a temporary file from the input package uri before installing it. if the package uri points to a content uri, the content provider has to be retrieved via the ActivityManager which could cause deadlocks with the package manager locks being held. Clean up by always copying or creating temporary files before acquiring these locks. Fix issue when restoring a failed upgrade for third party apps.
614fd72d21a90c04ecf837f6ce69dc421ae852e2 16-Sep-2009 Chung-yih Wang <cywang@google.com> am 4337476a: Fix the missing part for reading enterprise fields in wifi configuration

Merge commit '4337476a6669ce52549ce4a60f5e4d07f8e3033f' into eclair-plus-aosp

* commit '4337476a6669ce52549ce4a60f5e4d07f8e3033f':
Fix the missing part for reading enterprise fields in wifi configuration
4337476a6669ce52549ce4a60f5e4d07f8e3033f 16-Sep-2009 Chung-yih Wang <cywang@google.com> Fix the missing part for reading enterprise fields in wifi configuration

+ refactor the enterprise fields.
om/android/server/WifiService.java
10bedaaf3ec24af5fa4dcea54545e4d4953a1c7d 16-Sep-2009 Dianne Hackborn <hackbod@google.com> am 7fc39b26: Merge change 25238 into eclair

Merge commit '7fc39b26fc4ec9df7d147ff34ebba90556cdb4da' into eclair-plus-aosp

* commit '7fc39b26fc4ec9df7d147ff34ebba90556cdb4da':
Implement issue #1780928: Need support hiding nav keys.
93e462b79d6896da10e15e74c5aec6beb098dddf 16-Sep-2009 Dianne Hackborn <hackbod@google.com> Implement issue #1780928: Need support hiding nav keys.

This implements support for devices whose hardware can hide
their navigation keys. It works much like the existing keyboardHidden
configuration, and for compatibility uses the same configuration
change bit.

Also add FLAG_TURN_ON_SCREEN for windows, which has the system
cause the screen to be turned on when the window is displayed.
Great fun when used with FLAG_SHOW_WHEN_LOCKED!

Change-Id: I0b867f19af85cfd8786a14cea194b34f7bdd9b7a
om/android/server/WindowManagerService.java
c562481380a4f5ddffc67dd72d81e2ded5bd201f 16-Sep-2009 Dianne Hackborn <hackbod@google.com> am 6ee7b04d: Merge change 25192 into eclair

Merge commit '6ee7b04d270824214fca0296d0386e0c3d733cdf' into eclair-plus-aosp

* commit '6ee7b04d270824214fca0296d0386e0c3d733cdf':
Some improvements for wallpaper configuration.
6ee7b04d270824214fca0296d0386e0c3d733cdf 16-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 25192 into eclair

* changes:
Some improvements for wallpaper configuration.
d071bbd7fbc64775040950d1e21174f93c8b831e 16-Sep-2009 Mathias Agopian <mathias@google.com> am 49071af7: Merge change 25188 into eclair

Merge commit '49071af7bd19491f21f23a59621227ef48c11146' into eclair-plus-aosp

* commit '49071af7bd19491f21f23a59621227ef48c11146':
make the window-shade use an opaque surface if possible
9767e41d92bd6f4cf16111b3f911cef78c8b01eb 16-Sep-2009 Dianne Hackborn <hackbod@google.com> Some improvements for wallpaper configuration.

This introduces a new activity that you can derive from to implement
a wall paper configuration activity. This is supposed to select
a theme based on whether it is being run to configure a real wallpaper
or a preview, but this is going to be more difficult to do than I
thought. :(

Also fix a problem in the white theme where the list view's background
was being set to white, so it wouldn't work on a transparent bg.

Change-Id: I26d5a8695a3c878a1664eb09900eded57eaff990
om/android/server/WindowManagerService.java
cc9f52f94349ce34489a5a2c803271e53961286b 16-Sep-2009 Mathias Agopian <mathias@google.com> make the window-shade use an opaque surface if possible
om/android/server/status/StatusBarService.java
ee5ece4a4db46458207b93bce2d4c01459236376 15-Sep-2009 Suchi Amalapurapu <asuchitra@google.com> Remove deadlock in PackageManager when installing or upgrading packages.
PM first creates a temporary file from the input package uri before installing it.
if the package uri points to a content uri, the content provider has to be retrieved via the ActivityManager
which could cause deadlocks with the package manager locks being held.
Clean up by always copying or creating temporary files before acquiring these locks.
Fix issue when restoring a failed upgrade for third party apps.
om/android/server/PackageManagerService.java
744dfae2e95cc3e6f4bf5ca1fea3d202e9f89bd7 15-Sep-2009 Mike Lockwood <lockwood@android.com> am 6d9eebe7: Merge change 25090 into eclair

Merge commit '6d9eebe7320637f0256c077ba5ed6724b5a4ab0d' into eclair-plus-aosp

* commit '6d9eebe7320637f0256c077ba5ed6724b5a4ab0d':
Move backlight brightness from HardwareService to PowerManager
237a29923a05663a2195bf93b392768dbaf31ebf 15-Sep-2009 Mike Lockwood <lockwood@android.com> Move backlight brightness from HardwareService to PowerManager

to prevent apps from changing the hardware behind its back.
Fixes b/2041941 Lock screen flashes the screen very bright before dimming

Change-Id: Ice757f7ae87902bdfb3634471cf44f020ebfaae4
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/HardwareService.java
om/android/server/PowerManagerService.java
dd4819f377509060bc441be9f04124e967acf0a3 15-Sep-2009 Ken Schultz <kschultz@motorola.com> am 74a0b820: Merge change 25089 into eclair

Merge commit '74a0b8209e0228bb48739a4b25e489e2eba2a2c4' into eclair-plus-aosp

* commit '74a0b8209e0228bb48739a4b25e489e2eba2a2c4':
DockObserver wakes the display when broadcasting a change
f02c0740d3039977149773604a229c9f76c8121d 11-Sep-2009 Ken Schultz <kschultz@motorola.com> DockObserver wakes the display when broadcasting a change
- normal display timeout applies after wake

Signed-off-by: Ken Schultz <kschultz@motorola.com>
om/android/server/DockObserver.java
om/android/server/SystemServer.java
5cf8d00f0c1f511a769c171843dfd3427312b99a 15-Sep-2009 Mike Lockwood <lockwood@android.com> am f73f91c5: Merge change 25012 into eclair

Merge commit 'f73f91c5b1f66bbe4b3ca59b743a62ad5a65853f' into eclair-plus-aosp

* commit 'f73f91c5b1f66bbe4b3ca59b743a62ad5a65853f':
PowerManagerService: Use 5 cm threshold for the proximity sensor.
fce5c3d6eefef9ab4d563721c39704842ce96bf4 15-Sep-2009 Dan Murphy <D.Murphy@motorola.com> am 4e3cdf85: Merge change 23619 into eclair

Merge commit '4e3cdf854441b84c15fd9f127127b6d116834c51' into eclair-plus-aosp

* commit '4e3cdf854441b84c15fd9f127127b6d116834c51':
Add automatic lighting control framework
d20ea369b26cb40ee6122dd819ce9ef947489146 15-Sep-2009 Mike Lockwood <lockwood@android.com> PowerManagerService: Use 5 cm threshold for the proximity sensor.

This eliminates the assumption that the proximity sensor will always return
zero distance when it is active.

Change-Id: I6245b074e4c42aeae3a181e6a5087554517046d2
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/PowerManagerService.java
951764b97010dfa073126f52b43ea1bdf1b35998 27-Aug-2009 Dan Murphy <D.Murphy@motorola.com> Add automatic lighting control framework

Add changes to have the ability to turn on and off the
automatic light sensing for the device. This is fully configurable
and is by default not present. Vendors should override the ALS setting
to enable the automatic lighting controls.

These changes will add a check box to the Brightness settings menu to give control
to the user to allow the device's display lighting to be controlled via the slide bar
or the auto lighting system.

If the user selects auto then the slide bar will become invisible. Manual mode
will present the slide bar to the user.

Change-Id: I146a6d75b99b08c9b839218ce6b85adf21f9fd73
Signed-off-by: Dan Murphy <D.Murphy@motorola.com>
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/HardwareService.java
om/android/server/PowerManagerService.java
a4160068beadf64db99f42ca327bfe263cc46a85 15-Sep-2009 Dianne Hackborn <hackbod@google.com> am 294cd985: Merge change 24850 into eclair

Merge commit '294cd9856e30daa07efbdd7d925b3fad8cb123de' into eclair-plus-aosp

* commit '294cd9856e30daa07efbdd7d925b3fad8cb123de':
Last big work on #1991910: Make swipes work with capacitive keys
83fe3f559249451706957b1a5f660b2b8272f114 13-Sep-2009 Dianne Hackborn <hackbod@google.com> Last big work on #1991910: Make swipes work with capacitive keys

This takes care of allowing us to cancel the back button. The
back button is a bear because it is strewn all over the place --
everywhere you can close something, there is some code looking
for the back button that now needs to deal with being canceled.

The main things changed are activity (of course), dialog,
input method, search dialog. There are some other misc places
in the framework (and some I missed here that I will get in a
second pass).

To facility all of this, the key dispatching APIs now provide
a lot more support for dealing with looking for cancelled keys,
and incidentally also provide an actual API for catching long
key presses. This also helped clean up the code in PhoneWindow
where it deals with all of the combinations of key pressed and
releases. (And also allows people to override
Activity.onKeyLongPress() to provide a different long press
action for a standard key like search.)

And while I was doing this, I reworked how we detect long
presses by having this be part of the key event delivered by
the window manager. This should greatly reduce (hopefully
outright eliminate) the problems with long presses being
mis-detected when an application is being slow.

Change-Id: Ia19066b8d588d573df3eee6d96e1c90fdc19f57d
om/android/server/KeyInputQueue.java
om/android/server/WindowManagerService.java
7c32e4bc300bb75203f65ca55b08ecd3156fa2bb 15-Sep-2009 Dianne Hackborn <hackbod@google.com> am d023f9a9: Merge change 24829 into eclair

Merge commit 'd023f9a9a90705410250cd86bc6446c738423a99' into eclair-plus-aosp

* commit 'd023f9a9a90705410250cd86bc6446c738423a99':
Some optizations to wallpaper drawing/scrolling.
d023f9a9a90705410250cd86bc6446c738423a99 15-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 24829 into eclair

* changes:
Some optizations to wallpaper drawing/scrolling.
19382ac1a4e4e7c23a1346d299368763f149de9c 12-Sep-2009 Dianne Hackborn <hackbod@google.com> Some optizations to wallpaper drawing/scrolling.

First, fix some issues with the final wallpaper bitmap
we use: ensure it is always 16bpp, and make sure dithering
of its bitmap is turned off. We take of dithering
when loading, to make sure we don't use it when drawing.

Also add new APIs to return the wallpaper with the equivalent
of Launcher's old FastBitmapDrawable. As doing this, also load
the default wallpaper the same way as custom ones, taking care to
resize it as needed at load time.

Finally implement a mechanism for the window manager to wait
for the wallpaper to redraw at its new position before returning
from the application's call to change the offset. This ensures
that the wallpaper better tracks the application. Note that there
is a timeout in this wait that is relatively short, and if it
expires we will run for a while without waiting.

Change-Id: Ife449437746da85958bd447e0a6cf3d2223b398c
om/android/server/WindowManagerService.java
f6cd6d63db5630139721785f53e352c2745ca136 14-Sep-2009 Mike Lockwood <lockwood@android.com> am 31504f0b: Merge change 24847 into eclair

Merge commit '31504f0bf41f65500c46af448dc3bad2523e70f4' into eclair-plus-aosp

* commit '31504f0bf41f65500c46af448dc3bad2523e70f4':
PowerManagerService: Fix keyboard backlight support:
a625b38cb3a6a6b3a890369b7bbbed7c028cb120 13-Sep-2009 Mike Lockwood <lockwood@android.com> PowerManagerService: Fix keyboard backlight support:

Turn off keyboard backlight immediately when keyboard is closed.
Changing keyboard visibility state signals user activity except in the case
where the keyboard is closed and the screen is already off.

Fixes bugs b/1351141 and b/1319625

Change-Id: If4bf2c1dd8e0c2bc08196e443b6103a6041f27e1
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/PowerManagerService.java
fb0bd47d3a61cf68b63940722542b8759be82df4 20-May-2009 David Strobach <lalochcz@gmail.com> Fix of compatibility with multifunction extUSB adapters.
Tested with HTC YC A300.
om/android/server/HeadsetObserver.java
905d7f57d44b8598994f3d24ca27db6f9748f05a 12-Sep-2009 Robert Greenwalt <robdroid@android.com> am f376c837: Merge change 24805 into eclair

Merge commit 'f376c837ea9d5b89c668ff8306f2a404bed4ff05' into eclair-plus-aosp

* commit 'f376c837ea9d5b89c668ff8306f2a404bed4ff05':
Don't init wifiChannels until after supplicant up
7c9bf7caa2936e8b76598be9fffea980d81c61d3 12-Sep-2009 Robert Greenwalt <robdroid@android.com> Don't init wifiChannels until after supplicant up

The supplicant can take up to 15 seconds to start - setting the number of wifi channels
immediately after requested wifi start often will fail.

Changed to set the number of channels when the supplicant is reported as alive.

bug:2083601
om/android/server/WifiService.java
e7eb85cae02375b8bc486d71f429ca0c60980d79 11-Sep-2009 Nick Pelly <npelly@google.com> am 005b228c: API_CHANGE: Cleanup, javadoc and unhide more Bluetooth API.

Merge commit '005b228cdfb369d9b3b325884c0337ba5968bf8c' into eclair-plus-aosp

* commit '005b228cdfb369d9b3b325884c0337ba5968bf8c':
API_CHANGE: Cleanup, javadoc and unhide more Bluetooth API.
005b228cdfb369d9b3b325884c0337ba5968bf8c 10-Sep-2009 Nick Pelly <npelly@google.com> API_CHANGE: Cleanup, javadoc and unhide more Bluetooth API.

This is a large batch, and covers:

-- Bluetooth Device Discovery --
BluetoothAdapter.ACTION_DISCOVERY_STARTED
BluetoothAdapter.ACTION_DISCOVERY_FINISHED
BluetoothAdapter.startDiscovery()
BluetoothAdapter.cancelDiscovery()
BluetoothAdapter.isDiscovering()

-- Bluetooth bonding (pairing) --
BluetoothAdapter.getBondedDevices()
BluetoothDevice.ACTION_BOND_STATE_CHANGED
BluetoothDevice.EXTRA_BOND_STATE
BluetoothDevice.EXTRA_PREVIOUS_BOND_STATE
BluetoothDevice.BOND_NONE
BluetoothDevice.BOND_BONDING
BluetoothDevice.BOND_BONDED
BluetoothDevice.getBondState()
BluetoothDevice.createBond()
BluetoothDevice.cancelBondProcess()
BluetoothDevice.removeBond()

-- BluetoothClass --
BluetoothDevice.ACTION_CLASS_CHANGED
BluetoothDevice.EXTRA_CLASS
BluetoothDevice.getBluetoothClass()
BluetoothClass.Service.*
BluetoothClass.Device.Major.*
BluetoothClass.Device.*
BluetoothClass.getDeviceClass()
BluetoothClass.getMajorDeviceClass()
BluetoothClass.hasService()

-- Misc BluetoothDevice --
BluetoothDevice.ACTION_ACL_CONNECTED
BluetoothDevice.ACTION_ACL_DISCONNECTED_REQUESTED
BluetoothDevice.ACTION_ACL_DISCONNECTED
BluetoothDevice.ACTION_DISCOVERED
BluetoothDevice.ACTION_NAME_CHANGED
BluetoothDevice.EXTRA_DEVICE
BluetoothDevice.EXTRA_NAME
BluetoothDevice.EXTRA_RSSI

-- Misc BluetoothAdapter --
BluetoothAdapter.ACTION_LOCAL_NAME_CHANGED
BluetoothAdapter.EXTRA_LOCAL_NAME
BluetoothAdapter.checkBluetoothAddress()

I deprecated BluetoothIntent and moved each intent into the class it relates
to.

Change-Id: I877b1280428ab46278b2bc25668bb44cda22dc36
om/android/server/WifiService.java
om/android/server/status/StatusBarPolicy.java
404d8d164fbb63bc868e10c575cdc1bd93423c84 11-Sep-2009 Robert Greenwalt <robdroid@android.com> am f3f72003: Merge change 24588 into eclair

Merge commit 'f3f720031932500d92090b0093393651e7a713e0' into eclair-plus-aosp

* commit 'f3f720031932500d92090b0093393651e7a713e0':
Fix for multi-apn MMS access.
f3f720031932500d92090b0093393651e7a713e0 11-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 24588 into eclair

* changes:
Fix for multi-apn MMS access.
8206ff30c23c76851bebc8d72a65e65b0f7f9a29 11-Sep-2009 Robert Greenwalt <robdroid@android.com> Fix for multi-apn MMS access.

Mark cellular variants with the same availability, regardless of which are currently in use.
Availability just means the radio is enabled and sees the network, but has no guarantees that
we could connect to an APN if requested.

Fix the requestRouteToHost logic to support apn switches without WIFI.

bug:2093841
om/android/server/ConnectivityService.java
b7024b1cf11f7a0d0c62be867027823d56469709 11-Sep-2009 Christopher Tate <ctate@android.com> am 68f591b1: Merge change 24607 into eclair

Merge commit '68f591b17537cb437ca0b25d00a6d3d08e507abb' into eclair-plus-aosp

* commit '68f591b17537cb437ca0b25d00a6d3d08e507abb':
Try not to crash the system server because of corrupt restore data
5a8a1151e267b29978f219f9569fdfc5e74cc210 11-Sep-2009 Christopher Tate <ctate@android.com> Try not to crash the system server because of corrupt restore data

When we're about to allocate an array based on the restore data for purposes of
unflattening a signature block, don't automatically assume that it's valid. If
it's corrupt [and we've seen this in practice] we can wind up trying to allocate
an array with 1.8 million objects, and throw an OutOfMemoryError, bringing down
the system.

This change arbitrarily decides that no package should have more than 20
signatures in its block, and aborts the restore if the metadata is thus revealed
to be corrupt.
om/android/server/PackageManagerBackupAgent.java
62e5480a70650ec3d151e627dc175c2fa1350edb 10-Sep-2009 Dianne Hackborn <hackbod@google.com> am bcbcaa7e: Wallpapers, animations, pending intent.

Merge commit 'bcbcaa7edd32ba67c6290d79f7e7821c4b5b39ac' into eclair-plus-aosp

* commit 'bcbcaa7edd32ba67c6290d79f7e7821c4b5b39ac':
Wallpapers, animations, pending intent.
bcbcaa7edd32ba67c6290d79f7e7821c4b5b39ac 10-Sep-2009 Dianne Hackborn <hackbod@google.com> Wallpapers, animations, pending intent.

Some more tweaks and fixes to wallpapers. Make sure wallpapers are
told they are not visible when the screen is off. Add some new animations
for transitions across tasks, and fiddle with many of the existing
animations. Clean up the relationship between translucent activities
and animations. Add new API to start a PendingIntent from an
activity.

Change-Id: Ie0bf45fe44081bb6982c75361257a55d9cd9d863
om/android/server/WindowManagerService.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/PendingIntentRecord.java
a62c071f610d1b0043cb8651a7c7a0d70ee7e463 10-Sep-2009 Mike Lockwood <lockwood@android.com> am 68f6f01c: Merge change 24527 into eclair

Merge commit '68f6f01cf62e0c282b570adf492352a5d4418584' into eclair-plus-aosp

* commit '68f6f01cf62e0c282b570adf492352a5d4418584':
MountService: Use correct icon for SD card notifications.
a7ef2698a6c9182ffd41574495a18da1ffc2be2c 10-Sep-2009 Mike Lockwood <lockwood@android.com> MountService: Use correct icon for SD card notifications.

Change-Id: Ia15847c48fce7957f1a376e173d39137b661d51c
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/MountService.java
bf765b6c70c0cc5e494c1361747d3b93e98d962d 09-Sep-2009 Nick Pelly <npelly@google.com> am 41140098: Merge change 24274 into eclair

Merge commit '411400980720895c4195c71e181831bc771a5a7b' into eclair-plus-aosp

* commit '411400980720895c4195c71e181831bc771a5a7b':
API_CHANGE
16a54b2861209a13194b02f7882a0ec247b69060 09-Sep-2009 Nick Pelly <npelly@google.com> am aadc9220: Merge change 24202 into eclair

Merge commit 'aadc9220bd04ba8dd016fe634fabf6c91a1ce672' into eclair-plus-aosp

* commit 'aadc9220bd04ba8dd016fe634fabf6c91a1ce672':
API_CHANGE
b24e11baac589fe16426f2d243b460ab84991c7b 09-Sep-2009 Nick Pelly <npelly@google.com> API_CHANGE

Deprecate BluetoothError.java.

I spent a lot of time experimenting with a class BluetoothError to enumerate
the many error codes returned by the Bluetooth API. But at the end of the day
they were never used. The vast majority of method calls only really need a
true/false error value, and often not even that.

Methods which do need more detailed error enumeration (for example, bonding
failures) can have there own enumerated error codes. But there is no need
for a common set of error codes.

Also change the IPC failed warnings in BluetoothA2dp to Log.e. These indicate
a very serious error.

Introduce BluetoothAdapter.ERROR and BluetoothDevice.ERROR as helper sentinel
values.
om/android/server/status/StatusBarPolicy.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()
om/android/server/status/StatusBarPolicy.java
f6b1edb3af8bd1297888fd083aad39a825f4591e 08-Sep-2009 Joe Onorato <joeo@android.com> am c19efc4a: Merge change 24183 into eclair

Merge commit 'c19efc4acb5a188650e0e04813899c0a143b4a96' into eclair-plus-aosp

* commit 'c19efc4acb5a188650e0e04813899c0a143b4a96':
Fix b/2105945 - Windowshade not closed when device locked.
da2e19c6ad5c153d87c8da1a695e5e823d17e29b 08-Sep-2009 Dianne Hackborn <hackbod@google.com> am eb034652: Implement all of the infrastructure for configuring wallpapers.

Merge commit 'eb034652c2037a47ebfd99779e8383bb8bb528af' into eclair-plus-aosp

* commit 'eb034652c2037a47ebfd99779e8383bb8bb528af':
Implement all of the infrastructure for configuring wallpapers.
2a5006c195c9635a66158bf6b3212351ea5232dc 08-Sep-2009 Dianne Hackborn <hackbod@google.com> am c916c044: Merge change 24099 into eclair

Merge commit 'c916c04495292c86051a2c31e90cca26a9bd99c1' into eclair-plus-aosp

* commit 'c916c04495292c86051a2c31e90cca26a9bd99c1':
Fix issue #2095422: Some fades from opaque to transparent don't work
72ba75f30c8ff812d97bae57840da639b04a502b 08-Sep-2009 Dianne Hackborn <hackbod@google.com> am 510469fb: Merge change 24098 into eclair

Merge commit '510469fbe1ad44c3c6255afb236f51502b6960cc' into eclair-plus-aosp

* commit '510469fbe1ad44c3c6255afb236f51502b6960cc':
Fix bug where we wouldn't release remote provider references.
0dbc9317540ce3200cf0587ee0f8f5fb241574b9 08-Sep-2009 Bob Lee <crazybob@crazybob.org> am 88e62579: Merge change 24060 into eclair

Merge commit '88e625795943dea84b2e7c32f37e71303143b728' into eclair-plus-aosp

* commit '88e625795943dea84b2e7c32f37e71303143b728':
Integrated the profiler into the framework. We run it all the time if the persist.sampling_profiler
f9e0e6bd5e070d4c213e0237fa2fb8d4bb558bcb 08-Sep-2009 Joe Onorato <joeo@android.com> Fix b/2105945 - Windowshade not closed when device locked.
om/android/server/status/StatusBarService.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
om/android/server/WallpaperManagerService.java
om/android/server/am/ActivityManagerService.java
c916c04495292c86051a2c31e90cca26a9bd99c1 07-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 24099 into eclair

* changes:
Fix issue #2095422: Some fades from opaque to transparent don't work
510469fbe1ad44c3c6255afb236f51502b6960cc 07-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 24098 into eclair

* changes:
Fix bug where we wouldn't release remote provider references.
0586a1b77a788a119166a37fccd909bf9ed65f23 07-Sep-2009 Dianne Hackborn <hackbod@google.com> Fix issue #2095422: Some fades from opaque to transparent don't work

ViewRoot was using Surface.clear(), which has different behavior
in different processes -- in the system process it would kill the
surface, causing all windows in that process to immediately disappear
instead of animating away.

This change makes Surface.release() public and uses that instead. It
also renames Surface.clear() to Surface.destroy().

Also fixed some issues in the window manager that were causing the
wallpaper to not get immediately resized when the orientation changes
and its target window is removed and re-added.

Change-Id: I2a992e365cf5747511f0bf1193db32dc2525b218
om/android/server/WindowManagerService.java
a1e989b5755ea171ebe6875994d9174deee4399a 02-Sep-2009 Dianne Hackborn <hackbod@google.com> Fix bug where we wouldn't release remote provider references.

The check for whether the release call is coming from another process was
very broken, and just happened to work by chance. It also never worked for
apps that had code running in two different processes, with one process
using a provider in another of its processes. Also a little cleanup and
debugging logs for provider management, and removal of that increasingly
annoying log about services being stopped.

Change-Id: Ibc298e674db7d35c4b6499fb32e30929a141b670
om/android/server/am/ActivityManagerService.java
e540833fdff4d58e37c9ba859388e24e2945ed45 05-Sep-2009 Bob Lee <crazybob@crazybob.org> Integrated the profiler into the framework. We run it all the time if the persist.sampling_profiler
system property is set. Saves snapshots to the SD card.
om/android/server/SystemServer.java
bdbe87d0756a54dbc2edd24b75b9cd98cab31442 05-Sep-2009 Dianne Hackborn <hackbod@google.com> am 6e4b7d66: Merge change 24020 into eclair

Merge commit '6e4b7d66998b9ec9255767f6070a2f94d83944a5' into eclair-plus-aosp

* commit '6e4b7d66998b9ec9255767f6070a2f94d83944a5':
Wallpapers: new transitions, hiding when not visible, other cleanup.
25994b4306a256b88d79159106834c9f114e6943 04-Sep-2009 Dianne Hackborn <hackbod@google.com> Wallpapers: new transitions, hiding when not visible, other cleanup.

This is work on the transitions with wallpapers. There are now new
animations specifically for leaving the wallpaper and returning to
it, which allow us to have a consistent animation when entering home
and returning to it. I also renamed the existing animations across
wallpapers, and cleaned up some junk in the various interpolators.

This also now hides the wallpaper surface when it is not visible,
to get rid of the wallpaper flickers people complained about albeit
in a somewhat brutal way. :) (Though really returning us to the
previous behavior with the same previous bugs and name back to them
not being very visible, yay!) There is are also some bug fixes
here and there about managing the wallpaper visibility that this
change revealed.

Change-Id: I913990a9a81651728122ed2e1101b75ed2c36fcb
om/android/server/WindowManagerService.java
267e621468516e4e5da82707f8a2d84ada164131 04-Sep-2009 Mike Lockwood <lockwood@android.com> am 445f4308: NotificationManagerService: Only blink red battery low LED when not charging.

Merge commit '445f43081e207ee704a5152a5333054d7b4e13a4' into eclair-plus-aosp

* commit '445f43081e207ee704a5152a5333054d7b4e13a4':
NotificationManagerService: Only blink red battery low LED when not charging.
445f43081e207ee704a5152a5333054d7b4e13a4 04-Sep-2009 Mike Lockwood <lockwood@android.com> NotificationManagerService: Only blink red battery low LED when not charging.

Change-Id: Ie5836ae99d4ca19d9d062e7c78c8b40cd8d6c29d
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/NotificationManagerService.java
be8e36e32b9cb2bb37e28e4c0d414ee0e46c84a2 04-Sep-2009 Jean-Baptiste Queru <jbq@google.com> merge from donut
6b085a3d821306a9b65cebdae19d75597b3c680e 03-Sep-2009 Dianne Hackborn <hackbod@google.com> am ebf0bbaa: Merge change 23868 into eclair

Merge commit 'ebf0bbaaf03269eda9831e3c6b5ff82010b1de57' into eclair-plus-aosp

* commit 'ebf0bbaaf03269eda9831e3c6b5ff82010b1de57':
Add better service reporting.
dd9b82c283815747b75fe4434c65e4b6c9c9b54f 03-Sep-2009 Dianne Hackborn <hackbod@google.com> Add better service reporting.

This will be used elsewhere.

Change-Id: Id561fa7fed5eb65446312cb697813483903d33a6
om/android/server/AccessibilityManagerService.java
om/android/server/InputMethodManagerService.java
om/android/server/WallpaperManagerService.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/ConnectionRecord.java
om/android/server/am/ProcessRecord.java
015897709182be40eb5e9aee19e9ef396738a33e 03-Sep-2009 Mike Lockwood <lockwood@android.com> am fbd9b87f: Merge change 23807 into eclair

Merge commit 'fbd9b87feab649dc7410711ceaa589e5f058c753' into eclair-plus-aosp

* commit 'fbd9b87feab649dc7410711ceaa589e5f058c753':
Add support for running apps with uid/gid AID_LOG by specifying android.uid.log in the manifest
d42685d5de1dbd6d75b48d42418f370adaa4daef 03-Sep-2009 Mike Lockwood <lockwood@android.com> Add support for running apps with uid/gid AID_LOG by specifying android.uid.log in the manifest

This is needed to allow the BugReportService to start the dumpstate service.

Change-Id: I12cab23767c919592da102c654b6b80416717661
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/PackageManagerService.java
3df6afc153d25c32b986b9935874e0dc9e90ec3d 03-Sep-2009 Dianne Hackborn <hackbod@google.com> am e3c393d3: Merge change 23787 into eclair

Merge commit 'e3c393d3d14dab5b1eab37d2c52b7283df253f7f' into eclair-plus-aosp

* commit 'e3c393d3d14dab5b1eab37d2c52b7283df253f7f':
Fix issue #2097313: Latin IME crashes first use
e3c393d3d14dab5b1eab37d2c52b7283df253f7f 03-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 23787 into eclair

* changes:
Fix issue #2097313: Latin IME crashes first use
cc27870098a5b6105d6007a18bebaec8940db2d5 03-Sep-2009 Dianne Hackborn <hackbod@google.com> Fix issue #2097313: Latin IME crashes first use

Change-Id: I50c48b66aff5aff42e71058591d20775eba73fed
om/android/server/InputMethodManagerService.java
03050e8cd2e895156ac4f94116582df2bb6e7f8f 03-Sep-2009 Dianne Hackborn <hackbod@google.com> am bdd52b26: Fix issue #2097060: Screen all messed up when setup wizard finished

Merge commit 'bdd52b264af8f562dd368d40b66771c88d45127f' into eclair-plus-aosp

* commit 'bdd52b264af8f562dd368d40b66771c88d45127f':
Fix issue #2097060: Screen all messed up when setup wizard finished
bdd52b264af8f562dd368d40b66771c88d45127f 03-Sep-2009 Dianne Hackborn <hackbod@google.com> Fix issue #2097060: Screen all messed up when setup wizard finished

The new code to rebuild the window list was missing some app tokens.
Also there were a few other smaller bugs floating around.

Change-Id: I7734917af0b76ee4aa304e6a5321401d87640f89
om/android/server/WindowManagerService.java
0250416a8fc49693772205eaf521ece544b29757 03-Sep-2009 Dianne Hackborn <hackbod@google.com> am 78c951b2: Merge change 23704 into eclair

Merge commit '78c951b286ad6fc5300e2d30a624b7e9963202e7' into eclair-plus-aosp

* commit '78c951b286ad6fc5300e2d30a624b7e9963202e7':
Fiddle system boot ordering.
a34f1ad7c3a68d971e6332aa2fb1c16d083920b3 02-Sep-2009 Dianne Hackborn <hackbod@google.com> Fiddle system boot ordering.

This makes the system a little more careful to not start third party
code until it is ready to.

Also fix a little bug in SyncManager that would cause it to crash
during boot if sync was in a failure state.

Change-Id: Ib2d287d8441d155d393fe740a5f98690895fd358
om/android/server/InputMethodManagerService.java
om/android/server/SystemServer.java
om/android/server/am/ActivityManagerService.java
08ca890ab226be71bbae2805c3dc44b469a39747 03-Sep-2009 Dianne Hackborn <hackbod@google.com> am 6db4303d: Merge change 23568 into eclair

Merge commit '6db4303d04d138cd2648b829306c4b1693ac12e8' into eclair-plus-aosp

* commit '6db4303d04d138cd2648b829306c4b1693ac12e8':
Work on issue #2079167: Flickering issue across multiple UI
a8f6018d6c2d28313f9550fa8fcb39c2f607e09c 02-Sep-2009 Dianne Hackborn <hackbod@google.com> Work on issue #2079167: Flickering issue across multiple UI

This addresses a few parts of the bug:

- There was a small issue in the window manager where we could show a window
too early before the transition animation starts, which was introduced
by the recent wallpaper work. This was the cause of the flicker when
starting the dialer for the first time.

- There was a much larger problem that has existing forever where moving
an application token to the front or back was not synchronized with the
application animation transaction. This was the cause of the flicker
when hanging up (now that the in-call screen moves to the back instead
of closing and we always have a wallpaper visible). The approach to
solving this is to have the window manager go ahead and move the app
tokens (it must in order to keep in sync with the activity manager), but
to delay the actual window movement: perform the movement to front when
the animation starts, and to back when it ends. Actually, when the
animation ends, we just go and completely rebuild the window list to
ensure it is correct, because there can be ways people can add windows
while in this intermediate state where they could end up at the wrong
place once we do the delayed movement to the front or back. And it is
simply reasuring to know that every time we finish a full app transition,
we re-evaluate the world and put everything in its proper place.

Also included in this change are a few little tweaks to the input system,
to perform better logging, and completely ignore input devices that do not
have any of our input classes. There is also a little cleanup of evaluating
configuration changes to not do more work than needed when an input
devices appears or disappears, and to only log a config change message when
the config is truly changing.

Change-Id: Ifb2db77f8867435121722a6abeb946ec7c3ea9d3
om/android/server/KeyInputQueue.java
om/android/server/WindowManagerService.java
om/android/server/am/ActivityManagerService.java
d79d627b609b348e506488f2ab07bd4c73f9ef68 03-Sep-2009 Dianne Hackborn <hackbod@google.com> am f52e9f70: am e1b4437d: Revert "Fix content provider"

Merge commit 'f52e9f703305a03e76f59ad41094c5bc8636d31c' into eclair-plus-aosp

* commit 'f52e9f703305a03e76f59ad41094c5bc8636d31c':
Revert "Fix content provider"
f52e9f703305a03e76f59ad41094c5bc8636d31c 03-Sep-2009 Dianne Hackborn <hackbod@google.com> am e1b4437d: Revert "Fix content provider"

Merge commit 'e1b4437dba7c33566af55d4e5d27d35729678684' into eclair

* commit 'e1b4437dba7c33566af55d4e5d27d35729678684':
Revert "Fix content provider"
2d18a24c934a429011cc5543cd78f409da7ba4d3 02-Sep-2009 Suchi Amalapurapu <asuchitra@google.com> am beea2690: Merge change 23323 into eclair

Merge commit 'beea2690008eaea5a901ff3ae748b01893e24e1b' into eclair-plus-aosp

* commit 'beea2690008eaea5a901ff3ae748b01893e24e1b':
For intent ACTION_PACKAGE_CHANGED, there could be a lot of broadcasts related to enabling/disabling
0214e9475fa3b9aa00a784b5152bf4f1939c941e 02-Sep-2009 Suchi Amalapurapu <asuchitra@google.com> For intent ACTION_PACKAGE_CHANGED, there could be a lot of broadcasts related to enabling/disabling
components by apps which could result in thrashing on the PackageManager. For apps that
do not want to be restarted when such a broadcast is sent, we can just aggregate these broadcasts and
handle them at one go.
Changes include:
New structure to hold pending broadcasts by class name. If a component is enabled or disabled frequently
aggregate component enabled/disabled settings in this structure in a 10 second window and then
send out the accumulated list of broadcasts to the ActivityManager.
A new Handler implementation handles this message
Add new attribute name EXTRA_CHANGED_COMPONENT_NAME in broadcast intent Intent.ACTION_PACKAGE_CHANGED for
additional information for apps like Launcher.
Rename a couple of parameters, the names were too jarring.
om/android/server/PackageManagerService.java
9073dc69b110cbd0d4bebd128ed6cc2b24a16695 02-Sep-2009 Christopher Tate <ctate@android.com> am 9756a70b: Merge change 23582 into eclair

Merge commit '9756a70bd92fb844d2fd8346cc4bb6c8bb768c4b' into eclair-plus-aosp

* commit '9756a70bd92fb844d2fd8346cc4bb6c8bb768c4b':
Expand apps' control over the settings restore process
5e1ab335e6e8fbfa19c64d53880a22f472010953 02-Sep-2009 Christopher Tate <ctate@android.com> Expand apps' control over the settings restore process

Applications can now specify two more aspects of the restore process: whether
they need to run with their own custom Application subclass rather than being
launched in the usual restricted mode during restore, and whether it's okay for
the backup manager to kill the app process once restore has completed. The new
manifest attributes for these are, respectively, android:restoreNeedsApplication
and android:killAfterRestore.

If unspecified in the manifest, restoreNeedsApplication is false, and
killAfterRestore is true.

In order to support kill-after-restore cleanly, this change also adds a new
system-process-only interface to the Activity Manager, which will schedule a
"commit suicide" event on the target app's main thread looper.

The framework backup agents have been given the appropriate new backup
attributes as well.
om/android/server/BackupManagerService.java
om/android/server/am/ActivityManagerService.java
e1b4437dba7c33566af55d4e5d27d35729678684 02-Sep-2009 Dianne Hackborn <hackbod@google.com> Revert "Fix content provider"

Argh!

This reverts commit da706900f45dca82d89f090e4e52fa5d1772c495.
om/android/server/am/ActivityManagerService.java
ea49cf658dc683ec4dd08a979e660e40187e8dbf 02-Sep-2009 Dianne Hackborn <hackbod@google.com> am ff0dc82c: am 6a98f8d9: Merge change 23499 into donut

Merge commit 'ff0dc82c1cfe780e6f4c87d1d34de6dc3b741a2d' into eclair-plus-aosp

* commit 'ff0dc82c1cfe780e6f4c87d1d34de6dc3b741a2d':
Fix content provider
ff0dc82c1cfe780e6f4c87d1d34de6dc3b741a2d 02-Sep-2009 Dianne Hackborn <hackbod@google.com> am 6a98f8d9: Merge change 23499 into donut

Merge commit '6a98f8d93e4ddd407baad8d9b7481a892001d281' into eclair

* commit '6a98f8d93e4ddd407baad8d9b7481a892001d281':
Fix content provider
da706900f45dca82d89f090e4e52fa5d1772c495 01-Sep-2009 Dianne Hackborn <hackbod@google.com> Fix content provider
om/android/server/am/ActivityManagerService.java
93ca790c025d51780bff9be42cffdd0055091edb 01-Sep-2009 Dianne Hackborn <hackbod@google.com> am d31825c6: Merge change 23403 into eclair

Merge commit 'd31825c6ff83a3e336efc97ced1b205fe65b11a9' into eclair-plus-aosp

* commit 'd31825c6ff83a3e336efc97ced1b205fe65b11a9':
Various infrastructure to support a running services UI.
85a2c7f1cad8fd55ed72a8a3dbb2b36632ebbff3 01-Sep-2009 Jean-Baptiste Queru <jbq@google.com> merge from open-source master
3025ef332c29e255388f74b2afefe05f64bce07c 01-Sep-2009 Dianne Hackborn <hackbod@google.com> Various infrastructure to support a running services UI.

Some of this is temporary (in particular the two approaches for getting
process memory, one working but horrible, the other not working but
preferred) until I figure out the best way to do it.

Change-Id: I8c8f25062d481fcea22a47d459b083d2fd8a5040
om/android/server/am/ActivityManagerService.java
195cb33f3f3f5adf62be0999d746444aa6c945f2 01-Sep-2009 Mike Lockwood <lockwood@android.com> am 84c4548d: Merge changes 23429,23430 into eclair

Merge commit '84c4548d046c7426cd346602cec18b98fdcdbf3c' into eclair-plus-aosp

* commit '84c4548d046c7426cd346602cec18b98fdcdbf3c':
LocationManagerService: Remove caching of last known locations to flash.
LocationManagerService: Add null pointer check and remove useless finalize() method.
9aa1fa2d3612d1d8ffeae6552d65669f4ca194d9 01-Sep-2009 Mike Lockwood <lockwood@android.com> LocationManagerService: Remove caching of last known locations to flash.

Change-Id: Ibbab20a7c48823fb74c2e175824f55248f25bf8a
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/LocationManagerService.java
3a76fd627945c1df59aa0318867401e0e53da022 01-Sep-2009 Mike Lockwood <lockwood@android.com> LocationManagerService: Add null pointer check and remove useless finalize() method.

Change-Id: I4017d38a1bea7564a85575486a7c2aef569dfe5d
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/LocationManagerService.java
72b1f379d5c97c8ff31d2201e78215af777d6bda 31-Aug-2009 Jean-Baptiste Queru <jbq@google.com> donut snapshot
om/android/server/AppWidgetService.java
om/android/server/LocationManagerService.java
om/android/server/ProcessStats.java
om/android/server/SystemServer.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/HistoryRecord.java
om/android/server/am/ProcessRecord.java
om/android/server/am/ServiceRecord.java
77304af27c97e0fbd319edb823be094e50580bd9 30-Aug-2009 Mike Lockwood <lockwood@android.com> am b0a05404: Merge change 23223 into eclair

Merge commit 'b0a054048329c31948c2f5dbcc11b6f99e454177' into eclair-plus-aosp

* commit 'b0a054048329c31948c2f5dbcc11b6f99e454177':
SensorService: call close_data_source when we have no more sensor clients.
b0a054048329c31948c2f5dbcc11b6f99e454177 30-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 23223 into eclair

* changes:
SensorService: call close_data_source when we have no more sensor clients.
c76db343537f935f76bd771ff90a3ef8319e99bd 30-Aug-2009 Mike Lockwood <lockwood@android.com> am 2d93a116: Merge change 23187 into eclair

Merge commit '2d93a11663d1d872bc7e9d6512a445fa84148583' into eclair-plus-aosp

* commit '2d93a11663d1d872bc7e9d6512a445fa84148583':
Do not send dock state changed broadcasts until the system has finished booting.
2d93a11663d1d872bc7e9d6512a445fa84148583 30-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 23187 into eclair

* changes:
Do not send dock state changed broadcasts until the system has finished booting.
2d6b67d37f3164e53b311650aab94faabf46ef67 29-Aug-2009 Mike Lockwood <lockwood@android.com> SensorService: call close_data_source when we have no more sensor clients.

Change-Id: I94accda4571c3f2cf6f8a5b6801e37c30c027fe1
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/SensorService.java
71562cc72d1d6be97297bb03b67c217a529ebec7 30-Aug-2009 Dianne Hackborn <hackbod@google.com> am 284ac93a: More work on wallpapers: animations, lifecycle, scaling, etc.

Merge commit '284ac93aa30642fda87d5c40263a1263677c21cd' into eclair-plus-aosp

* commit '284ac93aa30642fda87d5c40263a1263677c21cd':
More work on wallpapers: animations, lifecycle, scaling, etc.
284ac93aa30642fda87d5c40263a1263677c21cd 28-Aug-2009 Dianne Hackborn <hackbod@google.com> More work on wallpapers: animations, lifecycle, scaling, etc.

Yet more work on improving the behavior of wallpapers. This fixes a few
problems in their lifecycle (corresponding change in the picker also
required for this), makes their animations better for hardware that supports
alpha fades, adds animations for the wallpapers themselves, eliminates
fixed size wallpapers, and adjusts the API for retrieving a wallpaper
bitmap to take care of scaling the raw wallpaper image to match the current
desired width and height.

Change-Id: If1c0aaceba4ea4e175dcb7a8416ca7ddbb9bfa6f
om/android/server/WallpaperManagerService.java
om/android/server/WindowManagerService.java
d0e82cec71442485d9cc952e5e16165d9d98b16e 28-Aug-2009 Mike Lockwood <lockwood@android.com> Do not send dock state changed broadcasts until the system has finished booting.

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/DockObserver.java
om/android/server/SystemServer.java
554f6cb1c7433449257d07d57e3d36cacb48fc70 28-Aug-2009 Dianne Hackborn <hackbod@google.com> am 49237345: Add platform infrastructure for features.

Merge commit '49237345d83e62fdb9eb8d50b13ad086636a04fa' into eclair-plus-aosp

* commit '49237345d83e62fdb9eb8d50b13ad086636a04fa':
Add platform infrastructure for features.
49237345d83e62fdb9eb8d50b13ad086636a04fa 28-Aug-2009 Dianne Hackborn <hackbod@google.com> Add platform infrastructure for features.

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

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

Change-Id: I5b369b46cfa0b3d37c9e08fd14ef1098a978e67b
om/android/server/PackageManagerService.java
6f664bd89da4c9a3fdbee7ad784750cd868e4b41 28-Aug-2009 Dianne Hackborn <hackbod@google.com> am d6ac7c73: Merge change 22975 into eclair

Merge commit 'd6ac7c73e17f0ce0cc3b1290760c4f67cafcdec5' into eclair-plus-aosp

* commit 'd6ac7c73e17f0ce0cc3b1290760c4f67cafcdec5':
Fix issue #2069662: The wallpaper doesn't move along with the home screen
d6ac7c73e17f0ce0cc3b1290760c4f67cafcdec5 28-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 22975 into eclair

* changes:
Fix issue #2069662: The wallpaper doesn't move along with the home screen
0369a7c3ac97b4791716ddd183e83309b1455476 23-Mar-2009 root <pmerle@kph.uni-mainz.de> Improve warning messages for permission denial due to non-exported intent receivers.
om/android/server/am/ActivityManagerService.java
fb8910f958e93b7ad0fcea89fdd1dd579a962b37 27-Aug-2009 Mike Lockwood <lockwood@android.com> am 6391830d: Merge change 22958 into eclair

Merge commit '6391830d103ccb19465c69660065c22c2711dcfd' into eclair-plus-aosp

* commit '6391830d103ccb19465c69660065c22c2711dcfd':
Don't activate keyguard if screen is turned off while proximity sensor is active.
6391830d103ccb19465c69660065c22c2711dcfd 27-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 22958 into eclair

* changes:
Don't activate keyguard if screen is turned off while proximity sensor is active.
e1ecb7dfe976080ae2b8fef26e1e68668c7ca8fb 27-Aug-2009 Mike Lockwood <lockwood@android.com> am 18ad9f65: Only allow system code to call LocationManager.sendNiResponse()

Merge commit '18ad9f657bda79069233c0b8e1476888ffd894d4' into eclair-plus-aosp

* commit '18ad9f657bda79069233c0b8e1476888ffd894d4':
Only allow system code to call LocationManager.sendNiResponse()
18ad9f657bda79069233c0b8e1476888ffd894d4 27-Aug-2009 Mike Lockwood <lockwood@android.com> Only allow system code to call LocationManager.sendNiResponse()

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/LocationManagerService.java
18070866622146c053a0abc5d51d116e61986b25 27-Aug-2009 Danke Xie <dankex@qualcomm.com> am 22d1f9fb: gps: Network initiated SUPL

Merge commit '22d1f9fb23015471de6af1a70e40fb5c82ecb665' into eclair-plus-aosp

* commit '22d1f9fb23015471de6af1a70e40fb5c82ecb665':
gps: Network initiated SUPL
6c3f571a1498f513dd53a67313a79bff877d3160 26-Aug-2009 Dianne Hackborn <hackbod@google.com> Fix issue #2069662: The wallpaper doesn't move along with the home screen

The wallpaper target was being lost when an activity was restarted.

Change-Id: Ib05622591c9bb2f01bb8f2c0a0a8e77fe657ae88
om/android/server/WindowManagerService.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>
om/android/server/LocationManagerService.java
ddfe879b783ad72603308e28e8f683454464684e 27-Aug-2009 Mike Lockwood <lockwood@android.com> Don't activate keyguard if screen is turned off while proximity sensor is active.

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/PowerManagerService.java
c56a411120772f17ed4fbc2f3636114cd3c48e4c 27-Aug-2009 Dianne Hackborn <hackbod@google.com> am 1e0f7627: Merge change 22673 into eclair

Merge commit '1e0f7627389a18d7a2ea74d7a5fb2c251de56a56' into eclair-plus-aosp

* commit '1e0f7627389a18d7a2ea74d7a5fb2c251de56a56':
Make SINGLE_TOP work with CLEAR_TOP.
aa52f9a7c63d4fdeba0fa16fe0aba3b47fef3738 26-Aug-2009 Dianne Hackborn <hackbod@google.com> Make SINGLE_TOP work with CLEAR_TOP.

Change-Id: Ie98b491dc4b1a2ae5e8fc8452c6410597bc9676b
om/android/server/am/ActivityManagerService.java
eba188e21c752d98f03215eb15822bd39c462664 27-Aug-2009 Dianne Hackborn <hackbod@google.com> am aa0a3b09: Merge change 22944 into eclair

Merge commit 'aa0a3b09e7a2947130e9a98c459a63349ef2d339' into eclair-plus-aosp

* commit 'aa0a3b09e7a2947130e9a98c459a63349ef2d339':
Various tweaks to try to improve low memory behavior.
aa0a3b09e7a2947130e9a98c459a63349ef2d339 27-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 22944 into eclair

* changes:
resolved conflicts for merge of 301b97ac to eclair
6ccd2aff3eb4450c6f1021637d18e4e5d9346bf0 27-Aug-2009 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 301b97ac to eclair

Change-Id: I0fb70cbe0a52006ad14f43a02c30b72aad457c48
569e114aa7d32c05ac64311b0bc545969c9b6893 27-Aug-2009 Mike Lockwood <lockwood@android.com> am 25b9cec8: Merge change 22692 into eclair

Merge commit '25b9cec8de75bd38c4868515e611cd69aff524ca' into eclair-plus-aosp

* commit '25b9cec8de75bd38c4868515e611cd69aff524ca':
PowerManagerService: Disallow all user activity when in proximity wake lock.
25b9cec8de75bd38c4868515e611cd69aff524ca 27-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 22692 into eclair

* changes:
PowerManagerService: Disallow all user activity when in proximity wake lock.
36fc302560fbc6dff3099860356d290d1653371c 26-Aug-2009 Mike Lockwood <lockwood@android.com> PowerManagerService: Disallow all user activity when in proximity wake lock.

Fixes b/2076756

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/PowerManagerService.java
7fdaaa5b46a8f96a3667c9acd585e4352d12fb11 27-Aug-2009 Mike Lockwood <lockwood@android.com> am 49c22570: am 7566c1de: LocationManager: Fix problem replacing GPS and network providers with a mock provider.

Merge commit '49c22570bb8717bb678dbd8bae6692bb585370fc' into eclair-plus-aosp

* commit '49c22570bb8717bb678dbd8bae6692bb585370fc':
LocationManager: Fix problem replacing GPS and network providers with a mock provider.
49c22570bb8717bb678dbd8bae6692bb585370fc 27-Aug-2009 Mike Lockwood <lockwood@android.com> am 7566c1de: LocationManager: Fix problem replacing GPS and network providers with a mock provider.

Merge commit '7566c1debebe072af76411e11d96810fd1409482' into eclair

* commit '7566c1debebe072af76411e11d96810fd1409482':
LocationManager: Fix problem replacing GPS and network providers with a mock provider.
301b97ac19caf677c481cdf86ed27b2dd80a81b3 27-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 22883 into donut

* changes:
Various tweaks to try to improve low memory behavior.
fd12af4e768fec852c4c5dfee3b9bd7403b4b347 27-Aug-2009 Dianne Hackborn <hackbod@google.com> Various tweaks to try to improve low memory behavior.

- Reduce the amount that we ask processes to GC after a significant
operation occurs, but introducing a minimum time between GCs and
using this in various ways to schedule them.

- Don't spam all of the processes with onLowMemory(). Now deliver
these using the same gc facility, so we do the processes one at a
time, and don't allow the same process to get this call more than
once a minute.

- Increase the time a service must run before we will reset its
restart delay to 30 minutes (from 10).

- Increase the restart delay multiplication factor from 2 to 4.

- Ensure that we don't restart more than one service every 10 seconds
(unless some external event causes a service's process to be started
for some other reason of course).

- Increase the amount of time that a service must run before we
decide to lower it to a background process.

And some other things:

- Catch IllegalArgumentException in ViewRoot like we do for no
resources to avoid the system process crashing.

- Fix a number of places where we were missing breaks between the
activity manager's message dispatch func(!!).

- Fix reason printed for processes in the background.

- Print the list of processing waiting to GC.
om/android/server/SystemServer.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/ProcessRecord.java
om/android/server/am/ServiceRecord.java
7566c1debebe072af76411e11d96810fd1409482 25-Aug-2009 Mike Lockwood <lockwood@android.com> LocationManager: Fix problem replacing GPS and network providers with a mock provider.

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/LocationManagerService.java
98709530d9cee07460c87ad154bf994dc7b61553 26-Aug-2009 Mike Lockwood <lockwood@android.com> am 23b1a470: Merge change 22769 into eclair

Merge commit '23b1a470081e6b3c56ada4c43863ca7ed48c3ad2' into eclair-plus-aosp

* commit '23b1a470081e6b3c56ada4c43863ca7ed48c3ad2':
MountService: Launch UsbStorageActivity with Intent.FLAG_ACTIVITY_NEW_TASK flag.
9517443904e341ee77c38648763d55687cd88760 26-Aug-2009 Mike Lockwood <lockwood@android.com> MountService: Launch UsbStorageActivity with Intent.FLAG_ACTIVITY_NEW_TASK flag.

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/MountService.java
7250f938accad16e878889c6f4d8be3b8520f510 26-Aug-2009 johnwang <johnwang@google.com> am cc907741: Merge change 22660 into eclair

Merge commit 'cc907741b9b7344820ffbc8d68992567d74d0f4b' into eclair-plus-aosp

* commit 'cc907741b9b7344820ffbc8d68992567d74d0f4b':
Simplify data icons of CDMA in status bar.
cc907741b9b7344820ffbc8d68992567d74d0f4b 26-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 22660 into eclair

* changes:
Simplify data icons of CDMA in status bar.
7b1820d9f126d967b395d99dd92c816b083d3adf 26-Aug-2009 Robert Greenwalt <robdroid@android.com> am 8d61d005: Merge change 22638 into eclair

Merge commit '8d61d005839b23a41034325d5f458f1344933b1b' into eclair-plus-aosp

* commit '8d61d005839b23a41034325d5f458f1344933b1b':
Fix the removal of dns entries.
9f87cb2f8d796f57054c1c0f0ce4b9bef9414642 26-Aug-2009 johnwang <johnwang@google.com> Simplify data icons of CDMA in status bar.

Use 3G icons when connect to EvDO, use 1x icons when connected to 1x, and remove dormant state display.
om/android/server/status/StatusBarPolicy.java
8d61d005839b23a41034325d5f458f1344933b1b 26-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 22638 into eclair

* changes:
Fix the removal of dns entries.
ab5eed16f7eeb14094d95a32791e2de133d1c0c8 26-Aug-2009 Dianne Hackborn <hackbod@google.com> am 9acc030b: Implement issue #2071750: add a pre-boot upgrade step.

Merge commit '9acc030be474db2bc2371440a12cbdc478238689' into eclair-plus-aosp

* commit '9acc030be474db2bc2371440a12cbdc478238689':
Implement issue #2071750: add a pre-boot upgrade step.
9acc030be474db2bc2371440a12cbdc478238689 25-Aug-2009 Dianne Hackborn <hackbod@google.com> Implement issue #2071750: add a pre-boot upgrade step.

Change-Id: I7133a03a6bf302dbac00c5f8b0420071d2453f89
om/android/server/am/ActivityManagerService.java
b06324a5c1af11b0fef76bdafa569a60498a93d2 25-Aug-2009 Robert Greenwalt <robdroid@android.com> Fix the removal of dns entries.

When switching default networks we should erase any excess dns server entries. The old code
used the wrong index and didn't erase all of them properly.

Found in conjunction with
bug: 2077628
om/android/server/ConnectivityService.java
c3b64a41d959428971c99185da3b629e1cbaeaf7 25-Aug-2009 johnwang <johnwang@google.com> am 4b474440: Merge change 22566 into eclair

Merge commit '4b474440cef8afa5e355a9406bb076af8e493ca7' into eclair-plus-aosp

* commit '4b474440cef8afa5e355a9406bb076af8e493ca7':
Simplify CDMA Status Bar icons
4b474440cef8afa5e355a9406bb076af8e493ca7 25-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 22566 into eclair

* changes:
Simplify CDMA Status Bar icons
347c5a22a915df5aa180573573adf6b2213a35dc 25-Aug-2009 johnwang <johnwang@google.com> Simplify CDMA Status Bar icons

Update the RSSI display policy in CDMA.
1. Use single RSSI icon instead of two icons
2. If 3G(EV) and 1x network are available than 3G should be displayed, Displayed RSSI should be from the EV side.
3. If a voice call is made then RSSI should switch to 1x.
om/android/server/status/StatusBarPolicy.java
d8a0f458981037194841457422fd38c2dadb599d 25-Aug-2009 Dianne Hackborn <hackbod@google.com> am 0d05be3f: Merge change 22544 into eclair

Merge commit '0d05be3f724740eb95ac5acd9819b4db0eccd694' into eclair-plus-aosp

* commit '0d05be3f724740eb95ac5acd9819b4db0eccd694':
Fix bug that would leave old windows around.
83360b3167f2c394125b74f655bc577070cb9cca 25-Aug-2009 Dianne Hackborn <hackbod@google.com> Fix bug that would leave old windows around.

The problem was instigated by another fix I made to keep
windows around while their tokens are animating or preparing to
animate. This then hit an issue where if the window's process
died while its token was getting ready to animate, we would
immediately hide the token, and when we then went to start
the token animation we wouldn't do anything, leaving the old
dummy animation in place and not allowing it to run.

Now we clear the animation before hiding the token, to ensure
the dummy animation is gone at this point.

Change-Id: If83fadcce6815bc545c80fbdb82fe6972bbdf5ef
om/android/server/WindowManagerService.java
2f4f63b501dfd6cc934d2d8d62850b98b57c6bfc 25-Aug-2009 Dianne Hackborn <hackbod@google.com> am cf3a0830: Merge change 22400 into eclair

Merge commit 'cf3a08307d1599eaa91d7cc4e7c601e5fa13037f' into eclair-plus-aosp

* commit 'cf3a08307d1599eaa91d7cc4e7c601e5fa13037f':
Add more control over a service's start state.
cf3a08307d1599eaa91d7cc4e7c601e5fa13037f 25-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 22400 into eclair

* changes:
Add more control over a service's start state.
f6f9f2d0256930ce0bb4913b2260b8480914edc2 22-Aug-2009 Dianne Hackborn <hackbod@google.com> Add more control over a service's start state.

One of the problems I have been noticing is background services
sitting around running and using resources. Some times this is
due to the app developer doing this when they shouldn't, but there
are also a number of issues with the current Service interaction
model that make it very difficult (or impossible) to avoid
getting services stuck in the started state. This is a
change/enhancement to the Service API to try to address this.

The main change is that Service.onStart() has been deprecated,
replaced with a new Service.onStartCommand() that allows the
service to better control how the system should manage it. The
key part here is a new result code returned by the function, telling
the system what it should do with the service afterwards:

- START_STICKY is basically the same as the previous behavior,
where we usually leave the service running. The only difference
is that it if it gets restarted because its process is killed,
onStartCommand() will be called on the new service with a null
Intent instead of not being called at all.

- START_NOT_STICKY says that, upon returning to the system, if
its process is killed with no remaining start commands to
deliver, then the service will be stopped instead of restarted.
This makes a lot more sense for services that are intended to
only run while executing commands sent to them.

- START_REDELIVER_INTENT is like START_NOT_STICKY, except if
the service's process is killed before it calls stopSelf()
for a given intent, that intent will be re-delivered to it
until it completes (unless after 4 or more tries it still
can't complete, at which point we give up).

Change-Id: I978f5ca420d70023d1b5e7f97de639d09381f8ad
om/android/server/am/ActivityManagerService.java
om/android/server/am/ServiceRecord.java
123d6f372fcd7bdc18245cac984005bab3d534af 25-Aug-2009 Robert Greenwalt <robdroid@android.com> am ec9fe467: Fix a race condition for data change notification

Merge commit 'ec9fe4672a46eb928ab710d8e3caf2ce046100d4' into eclair-plus-aosp

* commit 'ec9fe4672a46eb928ab710d8e3caf2ce046100d4':
Fix a race condition for data change notification
ec9fe4672a46eb928ab710d8e3caf2ce046100d4 21-Aug-2009 Robert Greenwalt <robdroid@android.com> Fix a race condition for data change notification

We could sometimes not be told about network state changes breaking subsequent mms access.
Turning on more logging too.

bug: 2069106
om/android/server/ConnectivityService.java
2bca061c2126ce3a0bb2072e9c53ef0411d2ca6c 24-Aug-2009 Mike Lockwood <lockwood@android.com> am ac8ebcd1: Merge change 22478 into eclair

Merge commit 'ac8ebcd1071b433c1c5093e7a5bcb67224f5f620' into eclair-plus-aosp

* commit 'ac8ebcd1071b433c1c5093e7a5bcb67224f5f620':
DockObserver: minor cleanup.
e4465e2eac9cb62a860320b3dd6493aeb13f136e 24-Aug-2009 Mike Lockwood <lockwood@android.com> DockObserver: minor cleanup.

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/DockObserver.java
f3b8994b6630d79f566d1cf8edf891fa8914adef 21-Aug-2009 Li Zhe <jqc837@motorola.com> am 6c6d822f: Merge change 22318 into eclair

Merge commit '6c6d822f7b7ec967aeff3e4d2afde0ff25732aa6' into eclair-plus-aosp

* commit '6c6d822f7b7ec967aeff3e4d2afde0ff25732aa6':
Framework changes to support HSDPA/HSUPA/HSPA
ebe66345e7099ca6fc95e8aa4d31a5b5cbbd6224 14-Aug-2009 Li Zhe <jqc837@motorola.com> Framework changes to support HSDPA/HSUPA/HSPA
HSDPA: High-Speed Downlink Packet Access
HSUPA: High-Speend Uplink Packet Access
HSPA: High-Speed Packet Access

Add support for HSDPA/HSUPA/HSPA:
1) extend TelephonyManager.NETWORK_TYPE for HSDPA/HSUPA/HSPA
2) extend ServiceState.RADIO_TECHNOLOGY for HSDPA/HSUPA/HSPA
3) set radioTechnology into ServiceState in GsmServiceStateTracker
4) change the implementation of TelephonyManager.getNetworkType to
solve the competition timing issue between the time of setting
system property and the time of receiving notification through
PhoneStateListener
4.1) add a getNetworkType interface in ITelephony.aidl
5) add icons resources for HSDPA/HSUPA/HSPA
6) make use of HSDPA/HSUPA/HSPA icons in StatusBarPolicy
om/android/server/status/StatusBarPolicy.java
1afb1cd3875afb2f53a413d9bb5a16adba01e261 21-Aug-2009 Jean-Baptiste Queru <jbq@google.com> merge from open-source master
3be63c09309b21c01b535271625d4c39045690e5 21-Aug-2009 Dianne Hackborn <hackbod@google.com> Infrastructure for supporting wallpaper previews.

Various things that will allow us to show previews of wallpapers.
Also some fixes to animations across wallpapers.
om/android/server/WallpaperManagerService.java
om/android/server/WindowManagerService.java
a64bf834ffa677405af1c87c9f53eed0cd3853ce 20-Aug-2009 Robert Greenwalt <robdroid@android.com> Fix various issues found when testing Mms.

Fix some race conditions (check isTeardownRequested).
Fix the passing of mInterfaceName to subtypes (mms, etc).
Fix the generation of CONNECTED message to already active subtypes.
Fix the enabling of Data in DataConnectionTracker.

bug: 2065037
om/android/server/ConnectivityService.java
f8fbdb6b920562473dc47046924ac8ffed0b8daf 19-Aug-2009 Dianne Hackborn <hackbod@google.com> Add wallpaper transition animations.

The window manager now detects when a transition between two
wallpaper activities is happening, and switches to a new set
of animations for that. The animations I defined here are just
an arbitrary something that can work in this case.
om/android/server/WindowManagerService.java
6647da1fa8f5126b09b9ce47ab30f03417eb5700 19-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 21919 into eclair

* changes:
Fix exception when reporting disconn cdma state.
75e1d3137cdcdb88783795d3f1fe735098330fa8 19-Aug-2009 Robert Greenwalt <robdroid@android.com> Fix exception when reporting disconn cdma state.

Array out of bounds when checking first element of a 0-length array.
om/android/server/TelephonyRegistry.java
24f1076097588b7db1269044fb55af58bc420e58 19-Aug-2009 Patrick Scott <phanna@android.com> Check for a timeout <= 0 before adding the vibration.

A timeout of 0 could cause the vibration thread to run with a null pattern and
crash the system server. Instead, we should just ignore vibrations that don't
make any sense (similar to ignoring a bad pattern vibration).
om/android/server/HardwareService.java
cbf15048240ecf460957ac3de98a7efbccbbb754 19-Aug-2009 Dianne Hackborn <hackbod@google.com> Don't call onSurfaceChanged() if nothing interesting has changed.
om/android/server/WallpaperManagerService.java
41f31b62e5f4a6c9bb3021ffa08a3677afe98d38 19-Aug-2009 Suchi Amalapurapu <asuchitra@google.com> am d50066f8: invoke sendMessage instead of dispatchMessage to avoid deadlocks in ActivityManagerService

Merge commit 'd50066f8d2ab82c2c8ff305c86cc9b39eaca3c28' into eclair

* commit 'd50066f8d2ab82c2c8ff305c86cc9b39eaca3c28':
invoke sendMessage instead of dispatchMessage to avoid deadlocks in ActivityManagerService
d50066f8d2ab82c2c8ff305c86cc9b39eaca3c28 19-Aug-2009 Suchi Amalapurapu <asuchitra@google.com> invoke sendMessage instead of dispatchMessage to avoid deadlocks in ActivityManagerService
om/android/server/am/ActivityManagerService.java
e9e9bca842473f2e9d343d4248be98f8731a79d1 19-Aug-2009 Dianne Hackborn <hackbod@google.com> More wallpaper fixes: scroll position, visibility, leaking.

This fixes a bunch of edge cases in updating the wallpaper's scroll position
and visibility when switching between wallpapers and traveling through the UI.

It also fixes some leaks of wallpaper tokens and windows.
om/android/server/WallpaperManagerService.java
om/android/server/WindowManagerService.java
d8a43f61680bacf0d4b52a03ff3c7a07307377fc 18-Aug-2009 Dianne Hackborn <hackbod@google.com> Fix issue #2047139: Remove Service.setForeground()

This API is becoming seriously abused, so now it is deprecated and has
become a no-op.

As an alternative, there is now a new API that allows you to make a service
be in the foreground but requires providing a persistent notification to
go along with this state, allowing the user to know about and control it.
om/android/server/NotificationManagerService.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/ServiceRecord.java
30c0b83490d856c1cd82441c8e2d800a88927237 18-Aug-2009 Suchi Amalapurapu <asuchitra@google.com> am d9d25760: Remove dead locks in system process when installing packages

Merge commit 'd9d2576017fadcf47589b54e8ee198f48cc19352' into eclair

* commit 'd9d2576017fadcf47589b54e8ee198f48cc19352':
Remove dead locks in system process when installing packages
b22293590cb10b1d8722dbf9c226cb58f240d7d5 18-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 21748 into eclair

* changes:
Get At command count from Bluetooth headset.
82cb029e2a4907ee55fed4a00493b76b3e11a7a1 18-Aug-2009 Amith Yamasani <yamasani@google.com> Get At command count from Bluetooth headset.

Pass in the BT headset object when available to the BatteryStats.
om/android/server/am/BatteryStatsService.java
5bfc64f8f6d62df30b24841c751e29e942c25596 18-Aug-2009 Jeff Hamilton <jham@android.com> Include the list of registered providers the package manager dumpsys output.
om/android/server/PackageManagerService.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
om/android/server/SystemServer.java
om/android/server/status/StatusBarPolicy.java
8df8b2b405c60cacf7a66c4e2ca078dd3d7ec7bd 18-Aug-2009 Dianne Hackborn <hackbod@google.com> Allow wallpapers to get touch events.
om/android/server/WindowManagerService.java
d9d2576017fadcf47589b54e8ee198f48cc19352 18-Aug-2009 Suchi Amalapurapu <asuchitra@google.com> Remove dead locks in system process when installing packages
om/android/server/am/ActivityManagerService.java
921831b4dcad1898c265889430a32367e99ef6c1 17-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 21522 into eclair

* changes:
Dock changes:Docking station intents
c9f4eaf4388087f23aa97e55349850f0902a19d3 12-Aug-2009 Dan Murphy <D.Murphy@motorola.com> Dock changes:Docking station intents

Docking station intents for dock switch driver.
Add DockObserver and updated Intent.java and systemserver.jave

Signed-off-by: Dan Murphy <D.Murphy@motorola.com>

modified: core/java/android/content/Intent.java
new file: services/java/com/android/server/DockObserver.java
modified: services/java/com/android/server/SystemServer.java

Docking station updates

Add constants for the dock

Signed-off-by: Dan Murphy <D.Murphy@motorola.com>
Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/DockObserver.java
om/android/server/SystemServer.java
1a797546d75d2c85d6fefeefdc55de051aa66018 17-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 21380 into eclair

* changes:
More work on wallpapers.
9dc2355b9bdfdaadb72936b5ad865193a2af58c8 17-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 21492 into eclair

* changes:
WifiService: Hash based on both SSID and BSSID in scan result cache.
7341d7a104b47996445d069a695e155a07184606 14-Aug-2009 Dianne Hackborn <hackbod@google.com> More work on wallpapers.

- Do better about figuring out when to stop them and other related window
management.
- Fix problem where we were not redrawing the surface when the orientation
changed. This was the cause of the device hang.
om/android/server/WallpaperManagerService.java
om/android/server/WindowManagerService.java
c6cc836f88349e871c2aa7579223c9220e95e5b0 17-Aug-2009 Mike Lockwood <lockwood@android.com> LocationManagerService: Add NullPointerException to avoid change in behavior.

After fixing a null pointer check we were no longer throwing NullPointerExceptions
which caused a CTS test to fail.

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/LocationManagerService.java
00717e2d04cc2c273da9eae4d0dfe61621c7c08d 17-Aug-2009 Mike Lockwood <lockwood@android.com> WifiService: Hash based on both SSID and BSSID in scan result cache.

Fixes problem with base stations that have multiple SSIDs.

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/WifiService.java
6ba7ae1e4c3c04f6a71380b913ad79f83b00a628 17-Aug-2009 Mike Lockwood <lockwood@android.com> LocationManagerService: Fix null pointer check in sendExtraCommand().

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/LocationManagerService.java
06952d9299c23ee15df0825e75934971cfecf2ba 13-Aug-2009 Mike Lockwood <lockwood@android.com> DO NOT MERGE - cherry-picked from master:

PowerManager: Fix problem waking screen from negative proximity sensor events.

Fixes bug b/2048591

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/PowerManagerService.java
82726f045de91b899502a54ca76d234c43a1ba4b 15-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 21298 into eclair

* changes:
ConnectivityService: Do not send broadcasts until the system is ready.
b1ac1a86dc656a3f27ab1256641b46f89ac1cb47 14-Aug-2009 Dianne Hackborn <hackbod@google.com> Turn off static live wallpaper for now.
om/android/server/WallpaperManagerService.java
0f79b54c3a0b4141b1da38fa301571a89e165632 14-Aug-2009 Mike Lockwood <lockwood@android.com> ConnectivityService: Do not send broadcasts until the system is ready.

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/ConnectivityService.java
om/android/server/SystemServer.java
0cd48879dca53a9f4d449126d406527bc4b94baf 14-Aug-2009 Dianne Hackborn <hackbod@google.com> A little more wallpaper robustness.

- Recover if a live wallpaper is crashing repeatedly.
- Don't crash when someone tries to set a static wallpaper.
- Make the static wallpaper update correctly when the image changes.
om/android/server/WallpaperManagerService.java
om/android/server/WindowManagerService.java
317a6280cc109e873646e4652be1582d870eedfd 14-Aug-2009 Mathias Agopian <mathias@google.com> Surface::GPU and Surface::HARDWARE are now deprecated; they will be set automatically if needed.

this also ripples into the window manager API by making some constant there deprecated as well.
om/android/server/WindowManagerService.java
f21adf6fc19bc9c6908c6f1aaae203389f104bfa 13-Aug-2009 Dianne Hackborn <hackbod@google.com> Always have a wallpaper service running.
om/android/server/SystemServer.java
om/android/server/WallpaperManagerService.java
om/android/server/WindowManagerService.java
0749dcd19301fe4093f9cf8677c722d17bceabfb 14-Aug-2009 Christopher Tate <ctate@android.com> Backup participants must now hold the BACKUP_DATA permission

Packages that do not use android.permission.BACKUP_DATA will neither be backed
up nor restored. That permission is currently signature-only. In the future if
access to the backup/restore infrastructure is made available to arbitrary 3rd
party applications, the permission checks (and indeed, the permission itself)
can simply be removed.
om/android/server/BackupManagerService.java
f71db95992dab3ea1c5b22baa9772761282ee287 13-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 21134

* changes:
Add a more compact representation of usage stats.
a9085a59ecdd3bf05fe997c790a5a5146f3a97f6 13-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 20853

* changes:
Add net type to mobile for mobile-required traffic
6639bb65c5ebb9493afba6d701a22223ac45ba04 13-Aug-2009 Christian Sonntag <cxs@dhcp-172-31-153-155.sfo.corp.google.com> Add a more compact representation of usage stats.

We are replaceing the package name in the activity name with a * iff the activity is in the
same package, otherwise the activity name is pritned out in full.
This small change will remove a lot of bytes (in the order of kilobytes for a real log) from the logged data on the network and downstream processing,
since the package name is repeated in almost all cases.

An exampe of the new format is here:
DUMP OF SERVICE usagestats:
D:4,20090813
P:com.android.launcher,4,155456
A:*.Launcher,4,0,0,0,0,0,0,0,0,0,2
P:com.android.browser,1,6724
A:*.BrowserActivity,1,0,0,0,0,0,0,0,0,0,0
A:*.CombinedBookmarkHistoryActivity,1,0,0,0,0,0,0,0,0,0,1
P:com.google.android.apps.maps,1,2219
A:com.google.android.maps.MapsActivity,1,0,0,0,0,0,0,0,0,0,0
P:com.android.contacts,1,0
A:*.DialtactsActivity,1,0,0,0,0,0,0,0,0,0,1
om/android/server/am/UsageStatsService.java
766cbfe44be3c5013a6a22bd6cd8ad1055a37256 13-Aug-2009 Dianne Hackborn <hackbod@google.com> Add new API to compare certs of two UIDs.
om/android/server/PackageManagerService.java
83bad3df01504e08d5a8520e46e01754bd5109b9 12-Aug-2009 Alexey Tarasov <tarasov@dodologics.com> Fixed errors javadoc tags

1. @result -> @return in ActivityManagerService
2. @linke -> link in WiFiManager
om/android/server/am/ActivityManagerService.java
2a2b34434a256cf0e035e97580b310f997f9fcd3 13-Aug-2009 Dianne Hackborn <hackbod@google.com> Fix issue #2045895: Finger IDs are not tracked properly.

This was a problem with not dealing well with how the driver was
reporting data in the old touch protocol.

Also fixed issue with not correctly rotating non-primary touches.
om/android/server/InputDevice.java
om/android/server/KeyInputQueue.java
42acef37339afe6ac608c842f1637870ee9c4f6c 13-Aug-2009 Robert Greenwalt <robdroid@android.com> Add net type to mobile for mobile-required traffic

This also refactors ConnectivityService a bit towards supporting multiple simultaneous connections by making each a seem like a seperate Network with it's own stateTracker, etc.
Also adds tracking of process death to clean orphaned startUsingNetworkFeature features.
om/android/server/ConnectivityService.java
om/android/server/TelephonyRegistry.java
72c82ab9923025a91bbabb32e56bfea27bfd083b 12-Aug-2009 Dianne Hackborn <hackbod@google.com> Report wallpaper offset to the wallpaper, use this in the image wallpaper.

Wallpapers can now be just the size of the screen, and get told when their
scroll position should change to do the updating on their own.
om/android/server/WindowManagerService.java
e7037b6c9ec41fd93eebc03bdba120a95d47dc6f 12-Aug-2009 Dianne Hackborn <hackbod@google.com> am fe6e733a: Merge change 20960 into donut

Merge commit 'fe6e733a01b1ab8a6c7b651c65bf7abeb97f9525'

* commit 'fe6e733a01b1ab8a6c7b651c65bf7abeb97f9525':
Fix issue #2049588: App widget can crash causing system to be unable to boot
90f77218a24ac66bea52faef79c30d45420ce135 12-Aug-2009 Dianne Hackborn <hackbod@google.com> am b8546001: Merge change 20878 into donut

Merge commit 'b8546001701405a76dad7e6235046e592296fac2'

* commit 'b8546001701405a76dad7e6235046e592296fac2':
Fix issue #2048263: More debugging information
fe6e733a01b1ab8a6c7b651c65bf7abeb97f9525 12-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 20960 into donut

* changes:
Fix issue #2049588: App widget can crash causing system to be unable to boot
002716d49a27d72efff810418b08c1ec8620aa8c 12-Aug-2009 Dianne Hackborn <hackbod@google.com> Fix issue #2049588: App widget can crash causing system to be unable to boot
om/android/server/AppWidgetService.java
07a500f0de2243b832e258ed477652a10cbd2d08 12-Aug-2009 Mike Lockwood <lockwood@android.com> BatteryService: Fix problems shutting down when the battery is dead:

Wait until system is booted before attempting to display the shutdown dialog.
Use ShutdownActivity rather than attempting to run ShutdownThread in the battery service.
Fix logic error (check !isPowered() instead of isPowered())

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/BatteryService.java
om/android/server/SystemServer.java
82e1ee93eece8fb0aec6acc3ef4ee7b1c86feec7 12-Aug-2009 Dianne Hackborn <hackbod@google.com> Fix issue #2048263: More debugging information

We now hopefully do better about generating the anr reports, and include
information about the malloc loaded assets in meminfo.
om/android/server/am/ActivityManagerService.java
om/android/server/am/HistoryRecord.java
df1d0ff4ba706e7c8e5eb8b6c548a4313efa266c 12-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 20858

* changes:
Don't let bmgr leave a restore session hanging on error
0e0b4ae5bc5c652c8339d71ed9667e1e37baaa03 11-Aug-2009 Christopher Tate <ctate@android.com> Don't let bmgr leave a restore session hanging on error

Specifically, don't wait for the RestoreObserver to be informed that the restore
has completed unless performRestore() ran. We were winding up in a case where
bmgr was hanging forever waiting on a nonexistent restore process instead of
calling endRestoreSession().

Also improve the documentation, explicitly calling out the need to call
endRestoreSession() even if previous operations on the session were
unsuccessful.
om/android/server/BackupManagerService.java
ac1e59d887651220f5367cc7fa4207b34eab774d 11-Aug-2009 Jean-Baptiste Queru <jbq@google.com> donut snapshot
om/android/server/PackageManagerService.java
om/android/server/WindowManagerService.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/ProcessRecord.java
c8a0a75e1c61d1ab24bd46a8243041c107e738ac 11-Aug-2009 Dianne Hackborn <hackbod@google.com> Implement support for scrolling a wallpaper.

This currently only works for a wallpaper that is larger than the
screen. Set the scroll position with the new wallpaper API. Right
now only does jump scrolls.
om/android/server/WindowManagerService.java
f2c321aeff64ac0b980c34b948755d52ddd52516 11-Aug-2009 Christopher Tate <ctate@android.com> Print restore tokens in hex
om/android/server/BackupManagerService.java
759a39e8d2a8b27ef07e102394629dce68aa186b 10-Aug-2009 Dianne Hackborn <hackbod@google.com> Live wallpapers become a little more real.

This adds a new theme for having a wallpaper, and fixes up the window manager
to do the right thing when transitioning between a windows with and without
wallpapers (between two windows with wallpapers is not yet addressed).

The wallpaper API now has callbacks to tell you when to start/stop animating.

Also fiddle the image wallpaper to be a little more interesting.
om/android/server/WindowManagerService.java
4c62fc0e1e5ea9c69a12a7d1cf8b3ec8b2d114a3 09-Aug-2009 Dianne Hackborn <hackbod@google.com> Very primitive wallpapers in a surface.

This is all of the basic pieces:

- The WallpaperService now creates a surface with the window manager for its
contents.
- There is a simple service that displays a bitmap.
- The wallpaper manager takes care of starting and stopping the service.
- The window manager knows about wallpaper windows and how to layer them with
the windows that want to be shown on top of wallpaper.

Lots and lots of issues remain, but at this point you can actually write a
wallpaper service, select it in the UI, and see it behind an activity.
om/android/server/WallpaperManagerService.java
om/android/server/WindowManagerService.java
2e6bca690197978bb23cdcf31d948383bdb14c91 08-Aug-2009 Amith Yamasani <yamasani@google.com> Temporarily rollback a change that's causing SetupWizard failures during restore. #2042337

Don't kill the process of the package that's being restored. This is causing a chain
reaction of killing a provider needed by the setup process.
om/android/server/BackupManagerService.java
509ca0792b7cb14ddcea7d2c7e83159d0621e725 07-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 20331

* changes:
KeyInputQueue: get the name of the virtual-keys file from the input-device name
4d426b94475ac5e8e2ae61b05cf67176bf606d46 07-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 20333

* changes:
Clear app data via the Activity Manager, not Package Manager
9dfdac5b088d91b905f4f24822b76f4a0883f9d6 06-Aug-2009 Christopher Tate <ctate@android.com> Clear app data via the Activity Manager, not Package Manager

This is because doing it through the Activity Manager also makes sure that the
app has been shut down first, which is quite a desirable invariant for restore
handling.
om/android/server/BackupManagerService.java
75b2aed2769f6287edf2fc6d30d5ba6eaace5efd 06-Aug-2009 Iliyan Malchev <malchev@google.com> KeyInputQueue: get the name of the virtual-keys file from the input-device name

Signed-off-by: Iliyan Malchev <malchev@google.com>
om/android/server/KeyInputQueue.java
4cba59cb1f8bd30f033fb011300e478e899be084 06-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> am 40c10bf4: Merge change 20304 into donut

Merge commit '40c10bf4dfbaf2a48b3fe6d2fcc58843cefc01bc'

* commit '40c10bf4dfbaf2a48b3fe6d2fcc58843cefc01bc':
More work on issue #2030135: Device sluggish
40c10bf4dfbaf2a48b3fe6d2fcc58843cefc01bc 06-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 20304 into donut

* changes:
More work on issue #2030135: Device sluggish
151ceb96911bfec7ec57bfc26f591baec31a497f 06-Aug-2009 Dianne Hackborn <hackbod@google.com> More work on issue #2030135: Device sluggish

Also include the page faults in the cpu info, to help determine if the system is
paging at the time of an ANR.
om/android/server/ProcessStats.java
9488437b4f55c425b0168d612d729427b19b85ad 06-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 20240

* changes:
First bit of wallpaper work.
8cc6a5026aeb5cf9cc36529426fe0cc66714f5fb 06-Aug-2009 Dianne Hackborn <hackbod@google.com> First bit of wallpaper work.

This is mostly refactoring, adding a new WallpaperManager class that takes care
of the old wallpaper APIs on Context, so we don't need to pollute Context with
various new wallpaper APIs as they are needed. Also adds the first little
definition of a wallpaper service, which is not yet used or useful.
om/android/server/SystemBackupAgent.java
om/android/server/SystemServer.java
om/android/server/WallpaperManagerService.java
om/android/server/WallpaperService.java
a65b989ce3b9e41ae4ebde3e19eb3fa24abc846e 06-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 20218

* changes:
Correct the backup manager's identity around wakelock use
7b38f73a4b2e525d52dc85f1265916a92f3e50df 06-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> am ae18ca5c: Merge change 20140 into donut

Merge commit 'ae18ca5ceb7ebe376288c8c7653d2c3875f1d18e'

* commit 'ae18ca5ceb7ebe376288c8c7653d2c3875f1d18e':
Work on issue #2030135: Device sluggish
ae18ca5ceb7ebe376288c8c7653d2c3875f1d18e 06-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 20140 into donut

* changes:
Work on issue #2030135: Device sluggish
aa93b0418fe5a13d696841074bb6d8e690456cda 06-Aug-2009 Christopher Tate <ctate@android.com> Correct the backup manager's identity around wakelock use
om/android/server/BackupManagerService.java
de42bb61ad0e4947a38bdedfba6a20b5292025c3 05-Aug-2009 Dianne Hackborn <hackbod@google.com> Work on issue #2030135: Device sluggish

This adds some new debugging code to make it easier to see why a process is at
a certain oom_adj level -- for example telling you that a certain other process
has a binding to a certain one of its services. This has helped a lot in
identifying cases where processes are holding references to other processes that
they don't need and thus not allowing the system to get memory it needs.

Also fix a few problems with leaking entries on the service restarting and
service stopping lists.
om/android/server/am/ActivityManagerService.java
om/android/server/am/ProcessRecord.java
b13f32c0a08110fba1249bd534cb12333c311bef 06-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> am 8b2cdcd1: Merge change 20037 into donut

Merge commit '8b2cdcd184acfebfb245b15a71f5f1c32e53b050'

* commit '8b2cdcd184acfebfb245b15a71f5f1c32e53b050':
fix issue with gids not being added for packages with shared user id
8b2cdcd184acfebfb245b15a71f5f1c32e53b050 06-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 20037 into donut

* changes:
fix issue with gids not being added for packages with shared user id
2ed287b6ba7a05548240033f416bf1a646602e32 05-Aug-2009 Suchi Amalapurapu <asuchitra@google.com> fix issue with gids not being added for packages with shared user id

Squashed commit of the following:

commit 2bc4c29dab22d8a541dfca0a20320b307ba64cfb
Author: Suchi Amalapurapu <asuchitra@google.com>
Date: Tue Aug 4 16:24:55 2009 -0700

fix issue with gids not being added for packages with shared user id
om/android/server/PackageManagerService.java
b1d39aae13869a9dd05efb95c48b8782a54f0871 05-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 9649

* changes:
Finish implementation of multiple pointer support for MotionEvent.
a1bd466d5ca2d776369e0502c08fadc55c313e06 05-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> am 89888b2d: Merge change 20038 into donut

Merge commit '89888b2d9dc2d1994a8236ffbce5aaefd6782bf3'

* commit '89888b2d9dc2d1994a8236ffbce5aaefd6782bf3':
Remove debug code which reads the max_events_per_sec property on every touch event
9f028e6d2b24337761b283b46a1f11eed556eff9 05-Aug-2009 Michael Chan <mchan@android.com> Remove debug code which reads the max_events_per_sec property on every touch event
om/android/server/WindowManagerService.java
8d1668da94c1369f6d68e71007c3255336cb6b92 05-Aug-2009 Zheng BaoZhong <bao-zhong@motorola.com> Wifi: Fix synchronization bug in multicast lock.

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/WifiService.java
0dd7cb4b4ef86eb7d4e837b1948501da66adeebe 04-Aug-2009 Dianne Hackborn <hackbod@google.com> Finish implementation of multiple pointer support for MotionEvent.

The major things going on here:

- The MotionEvent API is now extended to included "pointer ID" information, for
applications to keep track of individual fingers as they move up and down.
PointerLocation has been updated to take advantage of this.

- The input system now has logic to generate MotionEvents with the new ID
information, synthesizing an identifier as new points are down and trying to
keep pointer ids consistent across events by looking at the distance between
the last and next set of pointers.

- We now support the new multitouch driver protocol, and will use that instead
of the old one if it is available. We do NOT use any finger id information
coming from the driver, but always synthesize pointer ids in user space.
(This is simply because we don't yet have a driver reporting this information
from which to base an implementation on.)

- Increase maximum number of fingers to 10. This code has only been used
with a driver that reports up to 2, so no idea how more will actually work.

- Oh and the input system can now detect and report physical DPAD devices.
om/android/server/InputDevice.java
om/android/server/KeyInputQueue.java
81bea0f943c32d1553c7711392dfcfdd99708994 04-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 20005

* changes:
Use USB notification instead of battery notification for USB debugging warning.
ea8b7d568ad640d464725d1e21efa0c9fd1de953 04-Aug-2009 Mike Lockwood <lockwood@android.com> Use USB notification instead of battery notification for USB debugging warning.

Fixes a problem with false positives that occurred when connecting an AC charger slowly.

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/NotificationManagerService.java
dfec20b10bb5cc1125217168690779d11ed8ea5a 04-Aug-2009 Christopher Tate <ctate@android.com> Bootstrap the ever-backed-up bookkeeping properly
om/android/server/BackupManagerService.java
637854c9b5bf087f1e261313d245ab3b544e1cf8 03-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 9512

* changes:
Display a helpful label for PROXIMITY_SCREEN_OFF_WAKE_LOCKs in the output of "dumpsys power".
251faa625002088c2d1b2387b5dc1fcb7e5a341d 03-Aug-2009 David Brown <dab@google.com> Display a helpful label for PROXIMITY_SCREEN_OFF_WAKE_LOCKs in the output
of "dumpsys power".
om/android/server/PowerManagerService.java
69eb0bfcce7ec68a9771dbcf53434dfbca183d0c 02-Aug-2009 Mike Lockwood <lockwood@android.com> Close the "Please connect charger" alert after a charger is connected.

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/status/StatusBarPolicy.java
5c1207be90fdf296c1b83034b7c68915e1749284 01-Aug-2009 Jean-Baptiste Queru <jbq@google.com> donut snapshot
om/android/server/AccessibilityManagerService.java
om/android/server/NotificationManagerService.java
om/android/server/PackageManagerService.java
om/android/server/WifiService.java
om/android/server/WindowManagerService.java
om/android/server/am/ActivityManagerService.java
cb798bcf134bffd7afd27868958ca398e63575b7 31-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 73139aea: Merge change 9075 into donut

Merge commit '73139aead7203c22f3a4abb5e9fd8abd5ef249b1'

* commit '73139aead7203c22f3a4abb5e9fd8abd5ef249b1':
Change the resource path for fwd locked apps when scanning the fwd locked install
bad80e0dccdeaeea97991f7d092678ff0df1bc84 30-Jul-2009 Mike Lockwood <lockwood@android.com> Add Activity Intent.ACTION_REQUEST_SHUTDOWN for requesting a system shutdown.

The Intent.EXTRA_KEY_CONFIRM extra can be set to require user confirmation before shutting down.
The ACTION_REQUEST_SHUTDOWN Intent is protected by android.permission.SHUTDOWN.

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/ShutdownActivity.java
0c05edf0c5d20fff5ab4ceb19c21a7d72088c2e2 30-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 9c71716e: Merge change 9063 into donut

Merge commit '9c71716e3de9b6a7e1830cae13da35ebdeeaaa80'

* commit '9c71716e3de9b6a7e1830cae13da35ebdeeaaa80':
Fixing bug #2023024 - there is an out of bounds exception that
ba272be7253ce2002d85bb03c32848413f7bcf8d 30-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 9097

* changes:
Wifi: Add support for enabling Wifi while in airplane mode.
bd5ddf01e4d629982fa8bb667d4be7c5ec3aa79f 30-Jul-2009 Mike Lockwood <lockwood@android.com> Wifi: Add support for enabling Wifi while in airplane mode.

If the new system settings value for AIRPLANE_MODE_TOGGLEABLE_RADIOS
contains RADIO_WIFI, then the user will be allowed to enable Wifi
while in airplane mode.
Turning on airplane mode will still disable Wifi, but the user will
be free to reenable it in the Settings app.

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/WifiService.java
73139aead7203c22f3a4abb5e9fd8abd5ef249b1 30-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 9075 into donut

* changes:
Change the resource path for fwd locked apps when scanning the fwd locked install directory
96f2747dd6fabd998619524bcff4a44502a64bbd 23-Jul-2009 Yong Zhang <yzhang@motorola.com> Fix wrong Singal Strength interpretation.

The issue this change fixes is that phone status bar shows full
signal strength bar even when phone is in bad signal area. The
root cause is that the signal strenth is incorrectly interpreted.
om/android/server/status/StatusBarPolicy.java
f2c1072a3ba33828a1be6903a90c4b24c3bbdefb 30-Jul-2009 Suchi Amalapurapu <asuchitra@google.com> Change the resource path for fwd locked apps when scanning the fwd locked install
directory
om/android/server/PackageManagerService.java
85b598beda98706fafd05c7de9866d83d4a19965 30-Jul-2009 Charles Chen <clchen@google.com> Fixing bug #2023024 - there is an out of bounds exception that
can happen if services are going away as the AccessibilityManagerService
is trying to dispatch notifications to these services. Catching this
exception and bailing because having this exception means that there
are no more services around that need to get this notification.
om/android/server/AccessibilityManagerService.java
cda5ad5b70e705d4b371cd32ececfcf919b3b3a1 30-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 9b91d78a: Merge change 8911 into donut

Merge commit '9b91d78a21f6e66f571169f2c6f2f94e638511e8'

* commit '9b91d78a21f6e66f571169f2c6f2f94e638511e8':
Fix issue #1999179: search -> click result -> press home = search dialog is shown then hidden
2d9c9e3f6780b70fc98cfa0102824308e8ed28e9 30-Jul-2009 Joe Onorato <joeo@android.com> Less log spew.
om/android/server/WallpaperService.java
e712ee3fe1b9ec950dbe5d77993751c2b7b1011c 30-Jul-2009 Joe Onorato <joeo@android.com> Take ctate's suggestions from 9008.
om/android/server/WallpaperService.java
a8675f67e33bc7337d148358783b0fd138b501ff 29-Jul-2009 Jean-Baptiste Queru <jbq@google.com> donut snapshot
om/android/server/AppWidgetService.java
om/android/server/BackupManagerService.java
om/android/server/MountListener.java
om/android/server/NotificationManagerService.java
om/android/server/PackageManagerService.java
om/android/server/SystemServer.java
om/android/server/WifiService.java
om/android/server/WindowManagerService.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/BatteryStatsService.java
om/android/server/am/UsageStatsService.java
om/android/server/status/StatusBarPolicy.java
afa7d85b43c6c2058cbde61ff287ff5776d76d2a 29-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 9008

* changes:
Only restore the bits for wallpapers that aren't built in.
e4162b21292b5bd3d91d494872a1c6963556b473 29-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 9011

* changes:
Allow zero-length lists in EventLog entries. (I'm verifying that the consumers of EventLog -- logcat, checkin -- are OK with this.) Improve the error handling in RestoreSession.
0084da561e9830c17068435cb398635145fca5c0 29-Jul-2009 Dan Egnor <egnor@google.com> Allow zero-length lists in EventLog entries.
(I'm verifying that the consumers of EventLog -- logcat, checkin -- are OK with this.)
Improve the error handling in RestoreSession.
om/android/server/BackupManagerService.java
9bb8fd77c8dc177aab9ac96bed4f55972dcda70a 29-Jul-2009 Joe Onorato <joeo@android.com> Only restore the bits for wallpapers that aren't built in.
om/android/server/JournaledFile.java
om/android/server/SystemBackupAgent.java
om/android/server/WallpaperService.java
a7e4cf9b5c9dd7d733e1ee7109ecb0e58996fe06 29-Jul-2009 Joe Onorato <joeo@android.com> Fix bug 1982892 - batteryservice turns off device even while plugged in

Also, make the battery service do it, not some keyguard thing.
om/android/server/BatteryService.java
a6ddc8af22af6bce879c5bf906aad16c0b3d6b01 29-Jul-2009 Dianne Hackborn <hackbod@google.com> Fix issue #1999179: search -> click result -> press home = search dialog is shown then hidden

Re-arrange various things to ensure that the search dialog is told about system windows being
closed before it is told about the navigation back to home.
om/android/server/am/ActivityManagerService.java
bc706a03a25f0dfe2cb0ecd1f6e4f7be905592a7 27-Jul-2009 Mike Lockwood <lockwood@android.com> PowerManager: Add proximity sensor support.

Add new wakelock flag PROXIMITY_SCREEN_OFF_WAKE_LOCK.
If you create a wakelock with this flag, while the wakelock is acquired,
the screen will turn off automatically when the sensor detects an object close to the screen.
Removing the object will cause the screen to wake up again.

Added PowerManager.getSupportedWakeLockFlags(), which can be used to determine
if proximity screen off wakelocks are supported by the hardware.

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/PowerManagerService.java
b3c82efb4725e959a50dca3f7ff50d1d99a059b4 28-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 1dd6936a: Merge change 8728 into donut

Merge commit '1dd6936a862be97efca02e4b7582a9fca1fcc269'

* commit '1dd6936a862be97efca02e4b7582a9fca1fcc269':
Fix resource code and version attributes
1dd6936a862be97efca02e4b7582a9fca1fcc269 28-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 8728 into donut

* changes:
Fix resource code and version attributes Create a new package setting object for updated system apps rather than moving around the same setting. This updates the resource, code and version correctly. For updating system packages, disable the package first which removes the entry from internal structures, create a new package setting, add it to list of user id's then rest of installation steps, kill the process if needed via ActivityManager then add this setting if everything was successful. This also fixes issues with updating values prematurely.
261e66acd1963d9c404fd2d3ddc6ef99ccd745cf 28-Jul-2009 Suchi Amalapurapu <asuchitra@google.com> Fix resource code and version attributes
Create a new package setting object for updated system apps rather than moving
around the same setting. This updates the resource, code and version correctly.
For updating system packages, disable the package first which removes the entry
from internal structures, create a new package setting, add it to list of user id's
then rest of installation steps, kill the process if needed via ActivityManager
then add this setting if everything was successful. This also fixes issues with
updating values prematurely.

When a new version of system package is available via OTA, just physically remove
entries for pkg. Note that the component and other info will be eventually updated
later on when scanning the package.
Also move certificate verification slightly ahead before scanning packages.

Some null checks

New api's in ActivityManager to kill an application pkg before finishing installation
om/android/server/PackageManagerService.java
om/android/server/am/ActivityManagerService.java
88e1babcae808890f0d089d958084ddb29f6fb96 28-Jul-2009 Dianne Hackborn <hackbod@google.com> am 20583ff9: Fix issue #2015611: layering problem when moving an activity to the foreground.

Merge commit '20583ff9d49257bd4ccc60e7b6337661e34ed887'

* commit '20583ff9d49257bd4ccc60e7b6337661e34ed887':
Fix issue #2015611: layering problem when moving an activity to the foreground.
20583ff9d49257bd4ccc60e7b6337661e34ed887 28-Jul-2009 Dianne Hackborn <hackbod@google.com> Fix issue #2015611: layering problem when moving an activity to the foreground.

"surface of singleTop acitivy is not added at the top, causing the activity is resumed
behind the top activity."
om/android/server/WindowManagerService.java
bb9001c69a313b28d805fe1cfbb7e848eb6aa55f 27-Jul-2009 Dan Egnor <egnor@google.com> clean up error recovery; log events tracking backup activity
om/android/server/BackupManagerService.java
5483448216fb251ccae2a07a70483a8e91eca884 27-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 8651

* changes:
Backup manager should default to not "provisioned" so backups don't start until the setup wizard is done.
ab9a2a52c5fe9046216bffefca4a540814b4260b 27-Jul-2009 Joe Onorato <joeo@android.com> Backup manager should default to not "provisioned" so backups don't start until the setup wizard is
done.
om/android/server/BackupManagerService.java
3f41673265dcaaef058703311c5481e8a51fd8be 02-Jul-2009 Jiafa Liu <pbx376@motorola.com> frameworks/base: Add PBAP support

- Update according to comments
- Add aidl support in frameworks for Settings to retrieve current
PBAP transaction status.
- Add status bar support for PBAP
om/android/server/status/StatusBarPolicy.java
a69f05544588eee9ef7c289a27612100f90c4c4a 27-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 4ca6659f: Merge change 8565 into donut

Merge commit '4ca6659fe4c8299f886eba7f745bed509be8126b'

* commit '4ca6659fe4c8299f886eba7f745bed509be8126b':
Fixing bug 2003639 - this is a fix to prevent the AccessibilityManagerService
ddca3ee3e86fbaa05c1528bd72afd955f0fb4ee6 24-Jul-2009 Dianne Hackborn <hackbod@google.com> Add support for power keys, improve behavior of virtual keys.

The platform now knows how to deal with a platform key, which at this
point is "just like end call, but don't end a call."

Also improve the handling of virtual keys, to allow for canceling when
sliding off into the display and providing haptic feedback.

Finally fixes a bug where the raw x and y in motion event were not
always set which caused the status bar to not work.
om/android/server/InputDevice.java
om/android/server/KeyInputQueue.java
om/android/server/WindowManagerService.java
1531dc80e621b29636e24bae54cab2e0ad25f6ca 25-Jul-2009 Christopher Tate <ctate@android.com> Don't leave restore data lying around after the operation
om/android/server/BackupManagerService.java
bbc1934e0e1347b05580ae35b7a62f828f0ac5e7 25-Jul-2009 Charles Chen <clchen@google.com> Fixing bug 2003639 - this is a fix to prevent the AccessibilityManagerService
from crashing if it gets an invalid accessibility event.
om/android/server/AccessibilityManagerService.java
30b06eb8b98b6e6dc685cf65ad4faa25a85008c5 24-Jul-2009 Mitsuru Oshima <oshima@google.com> am 589cebe2: * Use the scaled size for surface view instead of native. The surface will be always scaled by surface flinger in compatiblity mode. The original approach confused the app because the surface size and the view size were different. * a few clean up. remo

Merge commit '589cebe2d58591403de4a77077941c0454bc91bc'

* commit '589cebe2d58591403de4a77077941c0454bc91bc':
* Use the scaled size for surface view instead of native. The surface will be always scaled
ba2bdce2ae7123af893b341b0ad512287d2237b3 24-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am ea9f9637: Merge change 8338 into donut

Merge commit 'ea9f9637e459c10024d09b53a803dfc91dd3eeb5'

* commit 'ea9f9637e459c10024d09b53a803dfc91dd3eeb5':
Have the notification service only have notifications diabled until setup wizard has been run.
c8f361450403e0b08a9d7dc4785bb12624435c37 24-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 8413

* changes:
Need to be able to call the backup manager from the system process.
82bc9f5392a3724ae9d4bbc84a7e9bb61004e43b 24-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 8412

* changes:
Revert "Have the notification service only have notifications diabled"
5933a497227c6ecb99ae89bc35482ffc49bca2b3 24-Jul-2009 Joe Onorato <joeo@android.com> Need to be able to call the backup manager from the system process.
om/android/server/BackupManagerService.java
093d1a5a9754f680844b7a0f09476b15afcaf11f 24-Jul-2009 Joe Onorato <joeo@android.com> Revert "Have the notification service only have notifications diabled"

This reverts commit eb176588e2d8e8d57f0250d3e90e8166dc7c00a7.
om/android/server/NotificationManagerService.java
155cedb5cb62929d60e2b8c5b86caff2a036f0ed 24-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 8410

* changes:
Have the notification service only have notifications diabled until setup wizard has been run.
589cebe2d58591403de4a77077941c0454bc91bc 23-Jul-2009 Mitsuru Oshima <oshima@google.com> * Use the scaled size for surface view instead of native. The surface will be always scaled
by surface flinger in compatiblity mode. The original approach confused the app because
the surface size and the view size were different.
* a few clean up. removed unsed arguments, obsolete conditions from getTranslator()
(expandable check was a bug)
om/android/server/WindowManagerService.java
35d7a94c334076dc66daff9d567139c595011c89 23-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am de08cdc0: Merge change 8262 into donut

Merge commit 'de08cdc0a56ab8d48a226dadef02740520c274b7'

* commit 'de08cdc0a56ab8d48a226dadef02740520c274b7':
Implement the device ConfigurationInfo.reqGlEsVersion field.
39f5b6a081c66058d2ab231a80c2fb4a8e624cf9 23-Jul-2009 Joe Onorato <joeo@android.com> Have the notification service only have notifications diabled until setup wizard has been run.
om/android/server/NotificationManagerService.java
eb176588e2d8e8d57f0250d3e90e8166dc7c00a7 23-Jul-2009 Joe Onorato <joeo@android.com> Have the notification service only have notifications diabled
until setup wizard has been run.
om/android/server/NotificationManagerService.java
a553c25b33c99b345cf1c8688f8df0ed8df14e5a 17-Jul-2009 Eric Laurent <elaurent@google.com> Fix issue 1795088 Improve audio routing code

Initial commit for review.
Integrated comments after patch set 1 review.
Fixed lockup in AudioFlinger::ThreadBase::exit()
Fixed lockup when playing tone with AudioPlocyService startTone()
om/android/server/HeadsetObserver.java
b90d28cf9563701aff813b81cdd75d5e288ccc87 23-Jul-2009 Jack Palevich <jackpal@google.com> Implement the device ConfigurationInfo.reqGlEsVersion field.

This was previously hard-coded to 0. Now set to the value of the
"ro.opengles.version" system property. The default value is
ConfigurationInfo.GL_ES_VERSION_UNDEFINED.
om/android/server/am/ActivityManagerService.java
c00c04d7d8758a5ade185d465624e47dcf1bd7c0 22-Jul-2009 Dianne Hackborn <hackbod@google.com> am 11b822d2: Simplify density compatibility to a boolean.

Merge commit '11b822d2a91ea17c34c0cb1c11e80a9a30d72864'

* commit '11b822d2a91ea17c34c0cb1c11e80a9a30d72864':
Simplify density compatibility to a boolean.
11b822d2a91ea17c34c0cb1c11e80a9a30d72864 22-Jul-2009 Dianne Hackborn <hackbod@google.com> Simplify density compatibility to a boolean.

Instead of a list, we now just have a single boolean indicating whether an
application is density aware, and this set set to true by default as of
Donut.
om/android/server/PackageManagerService.java
om/android/server/am/ActivityManagerService.java
d72aa3b92c206092d3b3ce563e0ebf25e1a0be07 22-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 356d4a14: Merge change 8172 into donut

Merge commit '356d4a14aa96cf52c16f7a4d381044ce28b01af3'

* commit '356d4a14aa96cf52c16f7a4d381044ce28b01af3':
Add the phase2 field for EAP WiFi configuration.
b96ea206d93b6cd7fe2106a8427d41a8e90d8322 22-Jul-2009 Chung-yih Wang <cywang@google.com> Add the phase2 field for EAP WiFi configuration.
om/android/server/WifiService.java
a8339dfec9d1b2c6d6fd2f8268f8075d184f64c0 22-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 9fc20b0e: Merge change 8126 into donut

Merge commit '9fc20b0e381b5fe00b7049ef357c839cd05a33bf'

* commit '9fc20b0e381b5fe00b7049ef357c839cd05a33bf':
First pass at reworking screen density/size APIs.
9822d2b27330793ea4ba9c3316ef35f402f35fb4 21-Jul-2009 Dianne Hackborn <hackbod@google.com> First stab at poly-finger support.

The MotionEvent API should be fairly solid, but there is still a lot of
work to do in the input device code. In particular, right now we are
really stupid about watching how fingers change -- we just take whatever
the driver reports as down and dump that directly into the motion event.

The big remaning work is to assign pointer IDs so that applications have
help in determine which fingers go up and down, and adding support for
the official multi-touch driver protocol.
om/android/server/InputDevice.java
om/android/server/KeyInputQueue.java
c4db95c077f826585d20be2f3db4043c53d30cf5 22-Jul-2009 Dianne Hackborn <hackbod@google.com> First pass at reworking screen density/size APIs.

This changes the names of the directories in aapt, to what you see
in the list of DpiTest resources. Also adds a new "long" configuration
for wide screens, which the platform sets appropriate, and introduces
a new kind of resizeability for not large but significantly larger
than normal screens which may have compatibility issues.
om/android/server/PackageManagerService.java
om/android/server/WindowManagerService.java
fe923cf2d6b5dec2b49370d70689152e0966c40d 21-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 2c25fac2: Merge change 8036 into donut

Merge commit '2c25fac23e5daafd62238f4c3dd031e3f4cd76f1'

* commit '2c25fac23e5daafd62238f4c3dd031e3f4cd76f1':
* Disable compatibility mode for all cases.
71effba5ac09a02704b564a7e89b797768a47103 21-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 6fb608ee: Merge change 7854 into donut

Merge commit '6fb608ee67c3ad82baf2253b87b63fff8907992a'

* commit '6fb608ee67c3ad82baf2253b87b63fff8907992a':
Issue #1884058 (Need to only record frequency and duration for selected Google apps)
2c25fac23e5daafd62238f4c3dd031e3f4cd76f1 21-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 8036 into donut

* changes:
* Disable compatibility mode for all cases.
69fff4a72d4dfc9208db79d773ef3ca23350287e 21-Jul-2009 Mitsuru Oshima <oshima@google.com> * Disable compatibility mode for all cases.
om/android/server/PackageManagerService.java
cf4550c3198d6b3d92cdc52707fe70d7cc0caa9f 21-Jul-2009 Jean-Baptiste Queru <jbq@google.com> donut snapshot
om/android/server/AccessibilityManagerService.java
om/android/server/AppWidgetService.java
om/android/server/AttributeCache.java
om/android/server/BackupManagerService.java
om/android/server/EntropyService.java
om/android/server/HeadsetObserver.java
om/android/server/IntentResolver.java
om/android/server/LocationManagerService.java
om/android/server/NotificationManagerService.java
om/android/server/PackageManagerBackupAgent.java
om/android/server/PackageManagerService.java
om/android/server/PowerManagerService.java
om/android/server/ProcessStats.java
om/android/server/RandomBlock.java
om/android/server/SensorService.java
om/android/server/SystemServer.java
om/android/server/TelephonyRegistry.java
om/android/server/WallpaperService.java
om/android/server/Watchdog.java
om/android/server/WifiService.java
om/android/server/WindowManagerService.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/AppErrorDialog.java
om/android/server/am/AppNotRespondingDialog.java
om/android/server/am/BackupRecord.java
om/android/server/am/BatteryStatsService.java
om/android/server/am/BroadcastRecord.java
om/android/server/am/HistoryRecord.java
om/android/server/am/PendingIntentRecord.java
om/android/server/am/ProcessRecord.java
om/android/server/am/ReceiverList.java
om/android/server/am/UsageStatsService.java
om/android/server/status/StatusBarPolicy.java
om/android/server/status/StatusBarService.java
6fb608ee67c3ad82baf2253b87b63fff8907992a 21-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 7854 into donut

* changes:
Issue #1884058 (Need to only record frequency and duration for selected Google apps)
a695d185f11b2b03ecf0e0f796621fb00bfe7855 21-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am ef1a92ab: Merge change 7961 into donut

Merge commit 'ef1a92abe1bebe4feba4ba33cd0c7e25ee83fcc0'

* commit 'ef1a92abe1bebe4feba4ba33cd0c7e25ee83fcc0':
Bluetooth at command tracking.
fce2972c7799784b572560a410cd7d0f9cc0d8c0 21-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 3b5449e9: Merge change 7862 into donut

Merge commit '3b5449e90247e77c173d7bbdd4d5e49ad856afe1'

* commit '3b5449e90247e77c173d7bbdd4d5e49ad856afe1':
* Don't clip the display if LAYOUT_NO_LIMITS is specified (as with PhoneWindowmanager does)
ef1a92abe1bebe4feba4ba33cd0c7e25ee83fcc0 21-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 7961 into donut

* changes:
Bluetooth at command tracking.
73c6afc91a90159e0d94ebeb28d67eda9c93223f 20-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 7945

* changes:
Clean up when an attempted restore throws
967330496438a7f28273b0220a444a30dbdc9fb9 20-Jul-2009 Christopher Tate <ctate@android.com> Clean up when an attempted restore throws

When a restore agent throws an exception back into the framework, assume that it
may have left the app's data in an inconsistent state and clear the data for
that app (again -- it was cleared just prior to the attempted restore, too).
om/android/server/BackupManagerService.java
d2967e261650651414faa2a0def9ac2bffd63bec 20-Jul-2009 Mitsuru Oshima <oshima@google.com> * Don't clip the display if LAYOUT_NO_LIMITS is specified (as with PhoneWindowmanager does)
* FullScreen mode was not hiding status bar for app in compatibility mode
* fixed fillsScreenLw to take compatibility window into account
* Fixed the logic in needsBackgroundFiller to be consistent with other places.
* Fix NPE in WindowManagerService#applyAnimationLocked LayoutParam can be null.
om/android/server/WindowManagerService.java
3f7e35c2c7d3d7f08f50c1d93cd16b1f49354ccc 14-Jul-2009 Amith Yamasani <yamasani@google.com> Bluetooth at command tracking.
om/android/server/am/BatteryStatsService.java
a065b01904d5017232c9b51ccb174412ff57e138 20-Jul-2009 Mitsuru Oshima <oshima@google.com> am 841f13c8: * Reverted the change in PackageParser that I checked by accident * More surface view fix. - correct event translation on surface view. - use compatible window * removed FLAG_NO_COMPATIBILITY_SCALE. It was my misunderstanding of how SurfaceView works,

Merge commit '841f13c8e9ff3f7695b6c18a8abcec3c947983ff'

* commit '841f13c8e9ff3f7695b6c18a8abcec3c947983ff':
* Reverted the change in PackageParser that I checked by accident
841f13c8e9ff3f7695b6c18a8abcec3c947983ff 18-Jul-2009 Mitsuru Oshima <oshima@google.com> * Reverted the change in PackageParser that I checked by accident
* More surface view fix.
- correct event translation on surface view.
- use compatible window
* removed FLAG_NO_COMPATIBILITY_SCALE. It was my misunderstanding of how SurfaceView works, and this was not necessary.
* Added compatibility related info to package dumpsys
om/android/server/PackageManagerService.java
9fdbf6ae465f90b50ca5feb320215b98018c9937 19-Jul-2009 Dianne Hackborn <hackbod@google.com> Issue #1884058 (Need to only record frequency and duration for selected Google apps)

Quick and dirty solution: a new --packages argument allows you to specify an explicit
set of packages to include in the dump. There is also now a new GServices setting
that can provide a value for it.
om/android/server/am/UsageStatsService.java
0fde7de9d660e4acdb8404f954f75d8c331b5d45 17-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 54f09101: Merge change 7613 into donut

Merge commit '54f09101381fa63dca35ae4ea0ba3802ee863236'

* commit '54f09101381fa63dca35ae4ea0ba3802ee863236':
* Use Fede In/Out animation if one of opening/closing apps is in compatibility mode.
54f09101381fa63dca35ae4ea0ba3802ee863236 17-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 7613 into donut

* changes:
* Use Fede In/Out animation if one of opening/closing apps is in compatibility mode. * preserve compatibility window flag when the app updates window's layout params. * Added assertion in DEFAULT_COMPATIBILITY_INFO object to prevent unintentional modification. * A few minor updates * log/dump message improvement * Removed unnecessary method in FadeInOutAnimator * Fixed 100 char issue in WindwoManagerServer.java
5a2b91dc14e4c92e91c6abcc795f54ac98ee5866 17-Jul-2009 Mitsuru Oshima <oshima@google.com> * Use Fede In/Out animation if one of opening/closing apps is in compatibility mode.
* preserve compatibility window flag when the app updates window's layout params.
* Added assertion in DEFAULT_COMPATIBILITY_INFO object to prevent unintentional modification.
* A few minor updates
* log/dump message improvement
* Removed unnecessary method in FadeInOutAnimator
* Fixed 100 char issue in WindwoManagerServer.java
om/android/server/WindowManagerService.java
9bacd43d4dfd56a68533b0db1e0b38d04eb43aec 17-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 7625

* changes:
Whitespace cleanup prior to real work.
c185e7b9d8c8a84962dc80cb18478eaf263fc667 17-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 3735df20: Merge change 7545 into donut

Merge commit '3735df20ae9994a759aa9464534d57eab4af4011'

* commit '3735df20ae9994a759aa9464534d57eab4af4011':
MountListener: When we connect to vold, explicitly mount external storage.
3735df20ae9994a759aa9464534d57eab4af4011 17-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 7545 into donut

* changes:
MountListener: When we connect to vold, explicitly mount external storage. Vold no longer mounts storage automatically so it doesnt interfere with the framework booting.
265c9d2a147fba80629dda9d28ec9c68de24278e 17-Jul-2009 Dianne Hackborn <hackbod@google.com> am fae76f5b: Fix issue #1985502: Sapphire (and any other device) reports that it has a hard keyboard

Merge commit 'fae76f5bdeed68efd85805db143b0426de92f7e0'

* commit 'fae76f5bdeed68efd85805db143b0426de92f7e0':
Fix issue #1985502: Sapphire (and any other device) reports that it has a hard keyboard
019de98b84b2be6fec2ede91017061784327ed7f 17-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am eb09c6a0: Merge change 7568 into donut

Merge commit 'eb09c6a07abf58b4da2c4baf3800a1f96e3b0731'

* commit 'eb09c6a07abf58b4da2c4baf3800a1f96e3b0731':
Issue #1969025: need api for launching intent as if it were coming from another component
86e9e55c54a3e07f6c9476d107db99131cefc5d7 17-Jul-2009 Robert Greenwalt <robdroid@android.com> Whitespace cleanup prior to real work.
om/android/server/ConnectivityService.java
0a6a05cdb57561e2d932a62a018c83ca5667f4da 17-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 7598 into donut

* changes:
DO NOT MERGE - Disable settings backup in Donut
10c59a365a095d322f29aa969a3d0f6bb3314972 17-Jul-2009 Christopher Tate <ctate@google.com> DO NOT MERGE - Disable settings backup in Donut
om/android/server/SystemServer.java
43463bfb69fc8fab33afbd5b5f7fe4b7b823a7a2 17-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 7572 into donut

* changes:
Fix issue #1985606 (Boot crash when battery level of < 15% is reported) in Donut
fae76f5bdeed68efd85805db143b0426de92f7e0 16-Jul-2009 Dianne Hackborn <hackbod@google.com> Fix issue #1985502: Sapphire (and any other device) reports that it has a hard keyboard
om/android/server/am/ActivityManagerService.java
0816e0ee6e9bfde8a8eeb9cef9252a2c7ddee384 16-Jul-2009 Dianne Hackborn <hackbod@google.com> Fix issue #1985606 (Boot crash when battery level of < 15% is reported) in Donut

Actually I don't think it is really an issue here, because the status bar doesn't
start itself up like this until after we have booted, but let's be safe.

And DO NOT MERGE since this code has changed in master.
om/android/server/status/StatusBarPolicy.java
2d91af06082d10759793a79d17afdfbdc65a37ed 16-Jul-2009 Dianne Hackborn <hackbod@google.com> Issue #1969025: need api for launching intent as if it were coming from another component

And now there is.
om/android/server/am/ActivityManagerService.java
93dc9fe96192dbe6f974ca5d1c7c1102eb4b325a 16-Jul-2009 Christopher Tate <ctate@android.com> Send all battery broadcasts with REGISTERED_ONLY_BEFORE_BOOT

The "low" and "okay" broadcasts were not being sent with this flag, so that if
the device had booted in a low battery state, the battery service would crash
due to an illegal-state exception.

This fixes bug b/1985606
om/android/server/BatteryService.java
d7c499513e0d7ad67b99de9032eedd6e0ad9e69c 16-Jul-2009 San Mehat <san@google.com> MountListener: When we connect to vold, explicitly mount external storage.
Vold no longer mounts storage automatically so it doesnt interfere with
the framework booting.

Signed-off-by: San Mehat <san@google.com>
om/android/server/MountListener.java
1d9dfc5dcf459e85cffcb762ffdb9b9a4abbfd67 16-Jul-2009 Mike Lockwood <lockwood@android.com> EventHub: Add support for excluding devices from being opened by as a keyboard.

This will be used to avoid unnecessarily listening to data from sensors
that function as event devices.

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/KeyInputQueue.java
545f979bdb77b3763ed63b6b2408deb8e710c941 16-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am b9bae58e: Merge change 7402 into donut

Merge commit 'b9bae58ecba8a25cc54dfd119a9edbeed6f230de'

* commit 'b9bae58ecba8a25cc54dfd119a9edbeed6f230de':
Added fade-in out animation for compatible apps
e97e807a468bf64ad614fca77d350b016f3ce4a9 16-Jul-2009 Christopher Tate <ctate@android.com> The rest of ever-backed-up tracking

When a package is uninstalled we now remove our notion of its having been backed
up, thereby forcing a backup pass if it is reinstalled at some point in the
future. Removal from the log means rewriting it and doing an atomic rename to
the canonical version. The temporary existence used during the rewrite is *not*
written synchronously; there's no need and it keeps the load on the flash part
much lower.

Because we might crash & reboot in the middle of the rewrite operation, there's
now code during init that sanity-checks the contents of the ever-backed-up log
and ensures that it's in a coherent state.
om/android/server/BackupManagerService.java
73e025296fd8712c775fe75c5f5d6981155b0867 15-Jul-2009 Christopher Tate <ctate@android.com> Ensure that everything gets backed up at least once

We now schedule a backup pass for any new application we see (at boot or
package-install time) for which we have never performed a backup. The
bookkeeping is a log file with the names of all the packages we've successfully
completed a backup pass on, maintained with synchronous journal-type behavior.

Also, make a bunch of private fields package-scoped to permit cheaper access
from the various worker / binder threads that run under the Backup Manager's
aegis.
om/android/server/BackupManagerService.java
b9bae58ecba8a25cc54dfd119a9edbeed6f230de 15-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 7402 into donut

* changes:
Added fade-in out animation for compatible apps (This CL only add this when the app on the top is in compatibility mode for now. I need some help to do the same when the closing app is in compatibility mode) Refactored DimAnimator
be96b3a2aa7ec6d57ac038d4a5326fc168585ad6 15-Jul-2009 Joe Onorato <joeo@android.com> Clamp app widget updates from updatePeriodMillis to a minimum of 30 minutes.
om/android/server/AppWidgetService.java
0a5d2c469108ee8d45d55c10ad5ce5f746afaa1f 14-Jul-2009 Mitsuru Oshima <oshima@google.com> Added fade-in out animation for compatible apps
(This CL only add this when the app on the top is in compatibility mode for now. I need some help to do the same
when the closing app is in compatibility mode)
Refactored DimAnimator
om/android/server/WindowManagerService.java
851da848e97d9a1ec23a89ff0e200c301f32d690 15-Jul-2009 Joe Onorato <joeo@android.com> Clamp app widget updates from updatePeriodMillis to a minimum of 30 minutes.
om/android/server/AppWidgetService.java
85d1f158267d64b5660e86fab0baf0432c1dcfbd 15-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 7353

* changes:
Implement virtual button support.
e3dd884815b2aaeec4241859722ab603e0b1466b 14-Jul-2009 Dianne Hackborn <hackbod@google.com> Implement virtual button support.

The kernel can now publish a property describing the layout of virtual
hardware buttons on the touchscreen. These outside of the display
area (outside of the absolute x and y controller range the driver
reports), and when the user presses on them a key event will be
generated rather than a touch event.

This also includes a number of tweaks to the absolute controller
processing to make things work better on the new screens. For
example, we now reject down events outside of the display area.

Still left to be done is the ability to cancel a key down event,
so the user can slide up from the virtual keys to the touch screen
without causing a virtual key to execute.
om/android/server/InputDevice.java
om/android/server/KeyInputQueue.java
e2a5385c70b48b57476a0c8c52bad4ea40398641 15-Jul-2009 Mike Lockwood <lockwood@android.com> resolved conflicts for merge of f7703519 to master
de83ab9fce4d02ddfde785e193bc787497d45138 15-Jul-2009 Christopher Tate <ctate@android.com> Grant adb the BACKUP permission

This also means we should no longer do explicit calling-identity fiddling in
dump(), relying instead on the usual permission enforcement mechanism to handle
things.
om/android/server/BackupManagerService.java
f32be166d56302b59c242a1296a6b03862f3c061 14-Jul-2009 Mike Lockwood <lockwood@android.com> wifi: Disable RSSI polling when the screen is off.

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/WifiService.java
dace230043314d6fab1c5ced4b031eaccd814c25 14-Jul-2009 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of b06ea706 to master
b06ea706530e6d19eb2a1a9a7ae6c5dd77d80af0 13-Jul-2009 Dianne Hackborn <hackbod@google.com> Add reporting of activity movement for search manager.

This adds a new API with the activity manager to find out about movement between
activities. For my sanity, the old IActivityWatcher is now renamed to
IActivityController, and the new activity movement interface is named
IActivityWatcher.

This changes the search manager itself to use the new API to manage its state.
Note that there are still problems when going back to the search dialog after
it was hidden -- the suggestions window no longer appears until you explicitly
dismiss and re-show it.
om/android/server/am/ActivityManagerService.java
433830452dac5dc353f1db7a80023e889d522a82 14-Jul-2009 Christopher Tate <ctate@android.com> Don't NPE if a restore session is requested for an invalid transport
om/android/server/BackupManagerService.java
9ba6998b0bd2472d997787938b598d8f72853b01 13-Jul-2009 Suchi Amalapurapu <asuchitra@google.com> am ea5c0444: When apps switch between system and data partition the code and resource paths should also be updated based on which version is being picked up. update the code and resource paths when a path change is detected

Merge commit 'ea5c044412f6853d686e93b8bef07f4729b6ad26'

* commit 'ea5c044412f6853d686e93b8bef07f4729b6ad26':
When apps switch between system and data partition the code and
ea5c044412f6853d686e93b8bef07f4729b6ad26 13-Jul-2009 Suchi Amalapurapu <asuchitra@google.com> When apps switch between system and data partition the code and
resource paths should also be updated based on which version
is being picked up. update the code and resource paths when a path change
is detected
om/android/server/PackageManagerService.java
48e61cf545c59dd269a4831e52803d132c0ca09a 11-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 6841

* changes:
resolved conflicts for merge of 889c2d37 to master
54a26bc85f4fe972e929e42b986c65a710a229b3 11-Jul-2009 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 889c2d37 to master
0900f3657664d9046e6723825fd32b244eef2b6c 10-Jul-2009 Mike Lockwood <lockwood@android.com> wifi: Keep the WLAN network interface up whenever wifi is enabled.

We now only bring it down briefly and bring it back up again when
we want to reset the interface.

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/WifiService.java
889c2d37f784301ea968e8a44d450ae1d8717a18 10-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 6718 into donut

* changes:
Fix bug #1873249i: Apps can DoS/brick device
622f82a0c78aa69d9b3b29ea0617cb8002b57c16 10-Jul-2009 Mike Lockwood <lockwood@android.com> WifiService: Remove hidden AP counting logic for active/passive scanning mode.

Apparently this code was not 100% correct, and now the Wifi driver is responsible
for setting the scan mode to active for hidden networks, so this is no longer needed.

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/WifiService.java
854060af30f928c0a65591e9c8314ae17056e6b8 10-Jul-2009 Dianne Hackborn <hackbod@google.com> Fix bug #1873249i: Apps can DoS/brick device

This is the problem where various things are listening for broadcasts
(such as battery status, PIN/PUK/Network) that an application can send
to cause harm to the system.

Solving this is tricky because many of these broadcasts are sticky,
and I have never figured out how to do permissions with sticky
broadcasts in a sane way. So instead, I am going to punt on the
general problem and just brute force it:

There is new a way for system components to declare specific
broadcast actions to be protected, which means that only the system
and the phone can send them. This is good enough for now. None
of it is exposed in the public API so we can make something a little
less stupid in the future if we ever need to.
om/android/server/PackageManagerService.java
om/android/server/am/ActivityManagerService.java
6811355d9683412cb3651e75c59c3256ceaddcec 09-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 463aacfb: Merge change 6661 into donut

Merge commit '463aacfbd220c9ef2f6ed915d54092289fdac05b'

* commit '463aacfbd220c9ef2f6ed915d54092289fdac05b':
wifi: WifiManager.startScan() will now do passive scans by default.
a5ec95cdb1a7d2024249277dff1f99d0046c9b56 08-Jul-2009 Mike Lockwood <lockwood@android.com> wifi: WifiManager.startScan() will now do passive scans by default.

Active scans will only happen if a hidden AP is in use, or if the new method
WifiManager.startScanActive() is called.
This fixes some audio playback problems with bluetooth A2DP.

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/WifiService.java
c2efaa4ab0ba9e7fa743862aef10eaf63b306cdb 09-Jul-2009 Mike Lockwood <lockwood@android.com> am ed760377: Add a persistent system property to disable the adb notification.

Merge commit 'ed7603779282d416356ce3c9739056d632307275'

* commit 'ed7603779282d416356ce3c9739056d632307275':
Add a persistent system property to disable the adb notification.
e3f054411b9f025848f68389c4e2c325e76b3826 09-Jul-2009 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 2af632f8 to master
ed7603779282d416356ce3c9739056d632307275 09-Jul-2009 Mike Lockwood <lockwood@android.com> Add a persistent system property to disable the adb notification.

Setting to persist.adb.notify to 0 will disable the ad notification.
You need to be root to set this, so this allows disabling the notification
only on eng and userdebug builds.

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/NotificationManagerService.java
2af632f87d487deaa5b2eb71341cfc4f0c0d1173 08-Jul-2009 Dianne Hackborn <hackbod@google.com> Add new <path-permission tag for use by global search.

This adds a new <path-permission> tag you can use inside of a <provide>
to define additional path-based permissions that broaden the global
read and write permissions. The initial use for this will be global
search, so that a content provider that is protected by permissions
can make a part of itself available to global search under another
permission. This addresses the issue with global search not being able
to request permissions it would need of providers it doesn't know
about at build time.
om/android/server/am/ActivityManagerService.java
afefa49abce3a1f8dd64644009f73aaeea86d7e0 09-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 4af0a709: Merge change 6555 into donut

Merge commit '4af0a709ee08e8ae43f49d8fc5c9cae142aaf2c4'

* commit '4af0a709ee08e8ae43f49d8fc5c9cae142aaf2c4':
Make it so the notification manager doesn't mysteriously
4af0a709ee08e8ae43f49d8fc5c9cae142aaf2c4 09-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 6555 into donut

* changes:
Make it so the notification manager doesn't mysteriously beep during boot.
302754801cacf19a99c7fa1b88a195bb8f2b0915 09-Jul-2009 Joe Onorato <joeo@android.com> Make it so the notification manager doesn't mysteriously
beep during boot.
om/android/server/NotificationManagerService.java
om/android/server/SystemServer.java
c3f60ddaeadb69c1e85198e609e575f55ecc28ac 09-Jul-2009 Mitsuru Oshima <oshima@google.com> am 1ecf5d28: Re-implementation of large screen support using window manager. * added background filler surface to fill the outer rim. Using the same layer as dim surface because they never co-exists (in the same window) * clean up the obsolete code in Compatibilt

Merge commit '1ecf5d28817f0a051e77488380dcd5bc622ea169'

* commit '1ecf5d28817f0a051e77488380dcd5bc622ea169':
Re-implementation of large screen support using window manager.
1ecf5d28817f0a051e77488380dcd5bc622ea169 07-Jul-2009 Mitsuru Oshima <oshima@google.com> Re-implementation of large screen support using window manager.
* added background filler surface to fill the outer rim. Using the same layer as dim surface because
they never co-exists (in the same window)
* clean up the obsolete code in CompatibiltyMode/ViewRoot for support large screen support.
om/android/server/WindowManagerService.java
61e1d0021a98325c2f724ffe02f0171870d7c66d 08-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 1bd3e0fb: Merge change 6504 into donut

Merge commit '1bd3e0fb7e87f1daa983d06bc396393a788181b0'

* commit '1bd3e0fb7e87f1daa983d06bc396393a788181b0':
Don't invoke the transport if doBackup supplied no data
b407f22c9d960b48ed49ed2a1cee0042d9f2a92e 08-Jul-2009 Christopher Tate <ctate@google.com> Don't invoke the transport if doBackup supplied no data

If there's no data to be backed up, we no longer invoke the transport. We *DO*
still require that the agent have emitted a valid new state file, however.

This change also finally uncomments the code that removes the backup data file
after it has been sent to the transport, so there will be no more
packagename.data files lying around in the staging area.
om/android/server/BackupManagerService.java
9046fff2017fab6a85fb24a76d82a67b181300be 08-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 7b68a408: Merge change 6426 into donut

Merge commit '7b68a408e9261a170c5ab9ae7ef999cc1d92ae0e'

* commit '7b68a408e9261a170c5ab9ae7ef999cc1d92ae0e':
Remove a lot of debug-log verbosity
22b60d8fd055171d7abe6be60a24ea8ac1af25b0 08-Jul-2009 Christopher Tate <ctate@google.com> Remove a lot of debug-log verbosity

We now log in dataChanged() only when an app is added to the backup set (and
*not* if it redundantly asks to be added after it's already there) and on error.
om/android/server/BackupManagerService.java
ea9f8a4d8842160e9126b37dce8b32e8ffa1f926 07-Jul-2009 Christopher Tate <ctate@google.com> am a7de3845: Only write to the pending-backup journal when necessary

Merge commit 'a7de3845507b7bf57a2c7b26fb08f05b193697d6'

* commit 'a7de3845507b7bf57a2c7b26fb08f05b193697d6':
Only write to the pending-backup journal when necessary
a7de3845507b7bf57a2c7b26fb08f05b193697d6 07-Jul-2009 Christopher Tate <ctate@google.com> Only write to the pending-backup journal when necessary

We now only commit to the pending-backup journal on disk the first time that a
given package is added to the backup set. This avoids a lot of write thrashing
of the disk, particularly since Settings tends to call dataChanged() a great
many times during boot, while the Settings UI is in use, etc.
om/android/server/BackupManagerService.java
c5ae493b846114adf3a06844a11bbda985f37583 07-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am c4cf22e8: Merge change 6403 into donut

Merge commit 'c4cf22e82ba8ec4eec7051ae3a8eb397ded578d1'

* commit 'c4cf22e82ba8ec4eec7051ae3a8eb397ded578d1':
Fix the metadata-available test during restore
3d7cd13e772bde1c4a72fa4e740baa03cb042e6c 07-Jul-2009 Christopher Tate <ctate@google.com> Fix the metadata-available test during restore
om/android/server/BackupManagerService.java
om/android/server/PackageManagerBackupAgent.java
f93a7c88e52a990f5cc408f54093deb6efa183da 07-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am c1c44a56: Merge change 6363 into donut

Merge commit 'c1c44a5614c4ab7aaf5315f92dc1c8f6420c8f1c'

* commit 'c1c44a5614c4ab7aaf5315f92dc1c8f6420c8f1c':
LocationManagerService: Use Context.checkCallingOrSelfPermission for permission checks
c1c44a5614c4ab7aaf5315f92dc1c8f6420c8f1c 07-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 6363 into donut

* changes:
LocationManagerService: Use Context.checkCallingOrSelfPermission for permission checks
856d080ae52edc6ceaebf2047f8fe08fb159f9c2 07-Jul-2009 San Mehat <san@google.com> am 0310f9aa: WifiService: Fix build (missing import)

Merge commit '0310f9aa21ed8714acbe56afea061596fb8f1ac4'

* commit '0310f9aa21ed8714acbe56afea061596fb8f1ac4':
WifiService: Fix build (missing import)
0310f9aa21ed8714acbe56afea061596fb8f1ac4 07-Jul-2009 San Mehat <san@google.com> WifiService: Fix build (missing import)

Signed-off-by: San Mehat <san@google.com>
om/android/server/WifiService.java
a15dd950e5d08fb015d4e57492fa68aa213eead7 07-Jul-2009 San Mehat <san@google.com> am fa6c7111: WifiService: use wifi association state to determine if we should suspend wifi instead of the existance of an IP address.

Merge commit 'fa6c7111fe58e09a92741c7655221c3629d3220e'

* commit 'fa6c7111fe58e09a92741c7655221c3629d3220e':
WifiService: use wifi association state to determine if we should suspend wifi instead of
b7e9922722f50dbf1911eb12e3ee8023c1450086 07-Jul-2009 Mike Lockwood <lockwood@android.com> LocationManagerService: Use Context.checkCallingOrSelfPermission for permission checks

so other services running in the system process can use the location manager.

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/LocationManagerService.java
fa6c7111fe58e09a92741c7655221c3629d3220e 07-Jul-2009 San Mehat <san@google.com> WifiService: use wifi association state to determine if we should suspend wifi instead of
the existance of an IP address.

Signed-off-by: San Mehat <san@google.com>
om/android/server/WifiService.java
48f7d85d7b6be25f17f269adc7794e53121bbe2c 07-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am dbee95ca: Merge change 6317 into donut

Merge commit 'dbee95cacff9d2faf30638e64abe26fbeb128787'

* commit 'dbee95cacff9d2faf30638e64abe26fbeb128787':
Make enable/provisioning of the backup service a two-step process
8031a3df2fd0c38d85eeae39c1ea2c83e813f4ff 07-Jul-2009 Christopher Tate <ctate@google.com> Make enable/provisioning of the backup service a two-step process

This CL adds the concept of 'provisioned' to the backup manager. No backups
will be scheduled until the user has indicated that backups are to be enabled
*and* has clicked all the way through the setup wizard.

When the user first turns on the backup system, the delay before the initial
backup pass is different from the periodic backup interval. Currently that
initial delay is 12 hours. The intent here is to guess at a less-active time
for performing that first backup pass.

NOTE: currently the backup service defaults to 'provisioned'. Once the real
code goes live in Setup Wizard, this will be changed to default to
not-provisioned until the user has confirmed all the relevant UI.
om/android/server/BackupManagerService.java
a370b8488303b84412c5552a89fea84aaf0a15d2 07-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 8d07c068: Merge change 6305 into donut

Merge commit '8d07c0684619b6c30f525d25d92835254a7220a9'

* commit '8d07c0684619b6c30f525d25d92835254a7220a9':
Fix up permissions for 'dumpsys backup'
34ebd0e1bbd54def9fea020f4a9083382160fd3d 07-Jul-2009 Christopher Tate <ctate@google.com> Fix up permissions for 'dumpsys backup'
om/android/server/BackupManagerService.java
47873e55268eb636b2f9ada0266a0b60f52ca365 02-Jul-2009 Amith Yamasani <yamasani@google.com> Backup Wifi supplicant data.

WifiService requests a backup when it writes wifi configuration to disk.
Backup the wifi supplicant file when settings provider runs backup.
om/android/server/WifiService.java
48c3064718cea308a32274773f46563932111078 06-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 0d725f7d: Merge change 6162 into donut

Merge commit '0d725f7d5a7efd9dc63f6ddb67a619d659bb4428'

* commit '0d725f7d5a7efd9dc63f6ddb67a619d659bb4428':
Hold a wakelock during backup/restore/clear operations
0d725f7d5a7efd9dc63f6ddb67a619d659bb4428 06-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 6162 into donut

* changes:
Hold a wakelock during backup/restore/clear operations
b6787f2ee535338bb96df0ab8ad70a9f82760a25 03-Jul-2009 Christopher Tate <ctate@google.com> Hold a wakelock during backup/restore/clear operations

We need to make sure we stay alive for the duration of a backup or (especially)
restore operation. The existing Handler-based timing system was simply not
properly functional, so it's been retooled to use a repeating alarm delivering a
broastcast PendingIntent to our registered receiver.

We acquire a partial wake lock in the broadcast receiver [i.e. while the Alarm
Manager is holding one for the duration of broadcast delivery] and pass the
wakelock object to the backup thread, which eventually releases it when it's
finsihed operations. A similar pattern is used for the threads handling restore
and clear.
om/android/server/BackupManagerService.java
58c714c41ac3799b0b408affd9804056070d358c 06-Jul-2009 Chung-yih Wang <cywang@google.com> am 699ca3f2: Add password field for WiFi configuration.

Merge commit '699ca3f2518360ea3250ff5a0e5d39e122c64a91'

* commit '699ca3f2518360ea3250ff5a0e5d39e122c64a91':
Add password field for WiFi configuration.
4753ff4466c0d90fb6adb89296da87e756272db9 06-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 7e8cbfc2: Merge change 6143 into donut

Merge commit '7e8cbfc2bc3ea2334c38db7fd2b6a1e17eefcac6'

* commit '7e8cbfc2bc3ea2334c38db7fd2b6a1e17eefcac6':
Fix the simulator.
3d204326490e76b2a9a92225ed5cb1a3fd2ffc63 06-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am e15df401: Merge change 6132 into donut

Merge commit 'e15df4017c3625de700e9f9953073f38898bbc89'

* commit 'e15df4017c3625de700e9f9953073f38898bbc89':
If we can't get the restore set's metadata, don't continue
3042bb623870b877e18dabb07c31b5b8f45afa1d 06-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 9701b3d5: Merge change 5979 into donut

Merge commit '9701b3d594868bd6750d5887af560c6295ea091b'

* commit '9701b3d594868bd6750d5887af560c6295ea091b':
Remove the constraint to assign new uid when code path changes for system packages
f77b4112ea4bf95b902d8ddb53bb7b1ad352bcec 06-Jul-2009 Christopher Tate <ctate@google.com> am 4e3e50cf: Clean up the last two literal permission string usages

Merge commit '4e3e50cfa7cf02270ed0dd454d5c51bf7065bd14'

* commit '4e3e50cfa7cf02270ed0dd454d5c51bf7065bd14':
Clean up the last two literal permission string usages
0a04ca7c97a82ad7afa8fa9d6c3a93964a588c07 06-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 7c5ae202: Merge change 6104 into donut

Merge commit '7c5ae202c53be1ab4881a6811aa5bd091c3aef10'

* commit '7c5ae202c53be1ab4881a6811aa5bd091c3aef10':
Add a "clear backed-up data" method to the backup mechanism
18dd5f0d25f1004e123dc265dc498a8bf8897af9 02-Jul-2009 Patrick Scott <phanna@android.com> Improve the Vibrator service by keeping track of multiple vibration requests.

There are 2 types of vibrations: simple and repeated. Simple vibrations run for
a given length of time while repeated patterns run until canceled or the calling
process dies.

If a vibration is currently running and another request is issued, the newer
request always takes precedence unless the current vibration is a simple one and
the time left is longer than the new request.

If a repeating vibration is running and a new request overrides that vibration,
the current vibration is pushed onto a stack. Once the new vibration completes,
the previous vibration resumes. IBinder tokens are used to identify Vibration
requests which means that multiple calls to Vibrator.vibrate with the same
Vibrator object will override previous vibrations on that object.
om/android/server/HardwareService.java
699ca3f2518360ea3250ff5a0e5d39e122c64a91 04-Jul-2009 Chung-yih Wang <cywang@google.com> Add password field for WiFi configuration.

1. the certtool.h is modified for avoiding the side effect,
for saving the configuration with wpa_supplicant.
2. put the loadLibrary back in CertTool.java
3. Fix incorrect JNI declarations.
om/android/server/WifiService.java
5d16cd046298ec9e009cfdd2056c64c1a9ac5ba3 03-Jul-2009 Dianne Hackborn <hackbod@google.com> am d7cd29da: Add facility to run setup wizard after an update.

Merge commit 'd7cd29da91ccc0aba1f1097e19366f9ca36c7ce1'

* commit 'd7cd29da91ccc0aba1f1097e19366f9ca36c7ce1':
Add facility to run setup wizard after an update.
575d1af980f4b4866325bfc487455f54606cf49e 03-Jul-2009 The Android Open Source Project <initial-contribution@android.com> resolved conflicts for merge of cf098294 to master
7a91dc11ac3edd101fc06ebbc89cca76314fc538 03-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 2bbb80e1: Merge change 5994 into donut

Merge commit '2bbb80e183c6492689f8b10b2d0f5dfe9872a6ac'

* commit '2bbb80e183c6492689f8b10b2d0f5dfe9872a6ac':
Less logging in some places. More in others.
28dda652a2c776100f3ec94a3352564ac49149de 03-Jul-2009 Romain Guy <romainguy@android.com> am a5475596: Cleanup a bunch of warnings in app widgets code.

Merge commit 'a54755962ca7725d1e2b6cacbbaece6f1cbf5af4'

* commit 'a54755962ca7725d1e2b6cacbbaece6f1cbf5af4':
Cleanup a bunch of warnings in app widgets code.
7e8cbfc2bc3ea2334c38db7fd2b6a1e17eefcac6 03-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 6143 into donut

* changes:
Fix the simulator.
fc2459b80aa4c9c5be81e33366fdfec94c5eedbf 03-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am d18dc8c6: Merge change 5906 into donut

Merge commit 'd18dc8c641cb4c89ffb205fb510e59a40ddf43fe'

* commit 'd18dc8c641cb4c89ffb205fb510e59a40ddf43fe':
resolve complex value in application context instead of system context.
0d0012ef1617170701b9cd7492ef04ac47bfb5ca 03-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 54af78a3: Merge change 5950 into donut

Merge commit '54af78a3f7064e04d7ebd64c985d4149f9f7b05c'

* commit '54af78a3f7064e04d7ebd64c985d4149f9f7b05c':
Fix memory leaks in system_server
1c502a4624859289c1000af6be8bea1aacee41bd 03-Jul-2009 Christopher Tate <ctate@google.com> am 49401ddb: Revamp backup scheduling policy

Merge commit '49401ddb9ac11ad5caead4e4cefcaa81d2418ed2'

* commit '49401ddb9ac11ad5caead4e4cefcaa81d2418ed2':
Revamp backup scheduling policy
b0b659a8aa8d7a973641e4866c8f29078d857731 03-Jul-2009 Christopher Tate <ctate@google.com> am ce0bf069: Use secure settings for backup enable / transport selection

Merge commit 'ce0bf069fe8c5c93f91cb70b0cd9365245d144c1'

* commit 'ce0bf069fe8c5c93f91cb70b0cd9365245d144c1':
Use secure settings for backup enable / transport selection
d595c79cdd16ab90fabbe2d4b352236f901c598b 03-Jul-2009 Marco Nelissen <marcone@google.com> Fix the simulator.
om/android/server/PackageManagerService.java
e15df4017c3625de700e9f9953073f38898bbc89 02-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 6132 into donut

* changes:
If we can't get the restore set's metadata, don't continue
8c0324752a7f47afd9e84f0a3088954b5d05a94b 02-Jul-2009 Christopher Tate <ctate@google.com> If we can't get the restore set's metadata, don't continue

Without the metadata we can't verify the version number or the signatures of the
apps whose data we'd be trying to restore against the apps present on device.
This is not acceptable; we need to refuse to give data to an unauthenticated
app.
om/android/server/BackupManagerService.java
0d81f6368708b1faa42a3bb6413210e01fea9222 02-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 6102 into donut

* changes:
Backup Wifi supplicant data.
9701b3d594868bd6750d5887af560c6295ea091b 02-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 5979 into donut

* changes:
Remove the constraint to assign new uid when code path changes for system packages
4e3e50cfa7cf02270ed0dd454d5c51bf7065bd14 02-Jul-2009 Christopher Tate <ctate@google.com> Clean up the last two literal permission string usages
om/android/server/BackupManagerService.java
16d79e56ca3fe7606c48882d9b1aef6267d69124 02-Jul-2009 Amith Yamasani <yamasani@google.com> Backup Wifi supplicant data.

WifiService requests a backup when it writes wifi configuration to disk.
Backup the wifi supplicant file when settings provider runs backup.
om/android/server/WifiService.java
ee0e78af5af3bf23dd928fe5e0ebeb39157eaf66 02-Jul-2009 Christopher Tate <ctate@google.com> Add a "clear backed-up data" method to the backup mechanism

It's now possible to ask that the backup manager wipe the saved data for a given
application from the backing store. LocalTransport implements this now but the
Google backend does not yet. When the data is wiped, the on-device backup state
is also wiped to ensure that the next backup pushes all necessary data.

Bmgr has not yet been modified to actually call into this method, but it will
be soon.
om/android/server/BackupManagerService.java
f73a65c2d7c06e5c1b30b84e3931d2a53145417b 02-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 65363830: Merge change 5854 into donut

Merge commit '65363830c1e5ca8c59b6e12b4b43a3f03688ca2e'

* commit '65363830c1e5ca8c59b6e12b4b43a3f03688ca2e':
Run backups at background priority
d96e0b0cf14f159d96502a4caf8aa2a33c334a99 02-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 6e1647a2: Merge change 5829 into donut

Merge commit '6e1647a212317f4ee8bcc23948b6621a59172954'

* commit '6e1647a212317f4ee8bcc23948b6621a59172954':
Fix issue #1673793: Theme styles don't apply.
8ec5b83fc8f8aa68805c4d5987f8f75bb28250ca 02-Jul-2009 Dianne Hackborn <hackbod@google.com> Merge commit '1dac277f' into manualmerge

Required rewriting the okay battery broadcast stuff.

Conflicts:
services/java/com/android/server/status/StatusBarPolicy.java
d7cd29da91ccc0aba1f1097e19366f9ca36c7ce1 01-Jul-2009 Dianne Hackborn <hackbod@google.com> Add facility to run setup wizard after an update.

The system now keeps a tag of the last version (just an arbitrary string)
that the setup wizard was run for. If this is different than the current
one in the setup wizard, then setup is launched at boot.

This introduces a new intent action for the part of the setup wizard that
gets run for an ungrade, which the system uses to find its current version
tag for comparing against what was last stored. It is up to the launched
setup activity update the stored setting to reflect its current value,
once it is happy.
om/android/server/WindowManagerService.java
om/android/server/am/ActivityManagerService.java
cf098294da7a820d5c30d8ed2006ed5446ee1da9 02-Jul-2009 Dianne Hackborn <hackbod@google.com> Move backup state to settings, change permission checks to use symbol.

This changes the backup service to use the settings provider instead
of system properties, correspondingly making it off by default and
allowing specific devices to define the transport. Also tweaks
the permission checks to use the permission symbol instead of raw
strings.

This requires some corresponding changes in the vendor projects.
om/android/server/BackupManagerService.java
2bbb80e183c6492689f8b10b2d0f5dfe9872a6ac 02-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 5994 into donut

* changes:
Less logging in some places. More in others.
9a5e3e115fc69181e143bdb9ec455e0f94fbc11f 02-Jul-2009 Joe Onorato <joeo@android.com> Less logging in some places. More in others.
om/android/server/BackupManagerService.java
om/android/server/HeadsetObserver.java
a54755962ca7725d1e2b6cacbbaece6f1cbf5af4 02-Jul-2009 Romain Guy <romainguy@android.com> Cleanup a bunch of warnings in app widgets code.
om/android/server/AppWidgetService.java
b24a96701a2724bf69c5a34bd70a1bc7177ef0f2 01-Jul-2009 Suchi Amalapurapu <asuchitra@google.com> Remove the constraint to assign new uid when code path changes for system packages
om/android/server/PackageManagerService.java
3b0b1a11d6491385bea6cfe9b3adfe8da1aca88c 02-Jul-2009 Christopher Tate <ctate@google.com> am 72d19aa5: Tighten up the metadata backup logic

Merge commit '72d19aa51e90d45c7895629db78e548da2f6d469'

* commit '72d19aa51e90d45c7895629db78e548da2f6d469':
Tighten up the metadata backup logic
d18dc8c641cb4c89ffb205fb510e59a40ddf43fe 01-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 5906 into donut

* changes:
resolve complex value in application context instead of system context.
54af78a3f7064e04d7ebd64c985d4149f9f7b05c 01-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 5950 into donut

* changes:
Fix memory leaks in system_server unlink DeathRecipients in a whole bunch of places to avoid memory leaks
fff2fda0199dedbf1079454dca98a81190dce765 01-Jul-2009 Suchi Amalapurapu <asuchitra@google.com> Fix memory leaks in system_server
unlink DeathRecipients in a whole bunch of places to avoid memory leaks
om/android/server/LocationManagerService.java
om/android/server/PowerManagerService.java
om/android/server/WifiService.java
om/android/server/WindowManagerService.java
om/android/server/status/StatusBarService.java
49401ddb9ac11ad5caead4e4cefcaa81d2418ed2 01-Jul-2009 Christopher Tate <ctate@google.com> Revamp backup scheduling policy

We now schedule a periodic check of pending backups; if any apps have requested
a backup since the last check, we perform all of the pending backups. The
periodic backup scheduling matches the enable/disable state of the backup
manager; while backups are disabled entirely there are no periodic wakeups.

The period is set here to one hour. If an external caller (transport, the
'bmgr' command line tool, etc) requests an immediate backup pass, that is
performed and then the periodic backup check is rescheduled using that pass as
the starting point of a new interval.
om/android/server/BackupManagerService.java
ce0bf069fe8c5c93f91cb70b0cd9365245d144c1 01-Jul-2009 Christopher Tate <ctate@google.com> Use secure settings for backup enable / transport selection
om/android/server/BackupManagerService.java
a2b2223817a536c22ff314886c90ed85eaef07ed 01-Jul-2009 Christopher Tate <ctate@google.com> am 6f317426: Don\'t issue a deletion for the global metadata backup

Merge commit '6f317426e49e73ef3e50d8839877504039cd2fca'

* commit '6f317426e49e73ef3e50d8839877504039cd2fca':
Don't issue a deletion for the global metadata backup
8f25c426b118c35f558cbf27bd413e1eb6d59823 01-Jul-2009 Mitsuru Oshima <oshima@google.com> resolve complex value in application context instead of system context.
om/android/server/AppWidgetService.java
01ecd7bcd1f0d2a64e2c354ff0dc5a0fb2b8c907 01-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am ab4748c6: Merge change 5694 into donut

Merge commit 'ab4748c62d106d9cbc27c88ccd3d2bbda8e451bd'

* commit 'ab4748c62d106d9cbc27c88ccd3d2bbda8e451bd':
Implement persistent enable/disable of the backup manager
6463ff24684a2b74cd25533ae6e028f4cd9933fe 01-Jul-2009 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 66c2942a to master
7958834e0e8adb42ca5183541c4bbcd8aaa7d3aa 01-Jul-2009 Christopher Tate <ctate@google.com> Run backups at background priority
om/android/server/BackupManagerService.java
6e1647a212317f4ee8bcc23948b6621a59172954 30-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 5829 into donut

* changes:
Fix issue #1673793: Theme styles don't apply.
1dac277f93a80c53a870b8924508dd2af81293de 27-Jun-2009 Dianne Hackborn <hackbod@google.com> Implement issue #1943927 (need notification in status bar when adb is active)

This is a little hacky -- we just assume that if adb is enabled and power
is connected through usb, then it is active.

The icons and text are temporary until final design is provided.
om/android/server/NotificationManagerService.java
om/android/server/status/StatusBarPolicy.java
de7faf658cd40d34c08a98b39477055da8e19172 30-Jun-2009 Dianne Hackborn <hackbod@google.com> Fix issue #1673793: Theme styles don't apply.

It turns out this was not a problem in the resource code at all. Rather,
the system process has a cache of pre-loaded attributes it uses to avoid
continually reloading things as it needs them. Well it turns out this
cache wasn't flushed after a package was uninstalled or a configuration
changed, so you could re-install an app where you change its style resources
so its theme now points to one that is inconsistent in the cache.

This is mostly a problem for developers, where they continually install
new versions of an app where resources have changed. This could possibly
show up when updating an app on a normal phone, although the problem would
eventually correct itself since this cache uses weak references.

Anyway, the cache is now reworked to be flushed appropriately.

This change also includes an update to aapt to be able to dump the
contents of bags in resources.
om/android/server/AttributeCache.java
om/android/server/PackageManagerService.java
om/android/server/am/ActivityManagerService.java
72d19aa51e90d45c7895629db78e548da2f6d469 30-Jun-2009 Christopher Tate <ctate@google.com> Tighten up the metadata backup logic

We now store the app version codes and and global OS incremental version name in
the PM backup state and the actual backup record. We then use that information
to trigger a re-backup of the metadata if the OS revision changes in any way, or
to back up single apps' metadata if we notice that they've been upgraded.
om/android/server/PackageManagerBackupAgent.java
5e79e323570cc0e110bfe4fe50f9e9a1d884004b 30-Jun-2009 Christopher Tate <ctate@google.com> am 91717497: Use system properties to track the current transport

Merge commit '9171749700853305f3e6abbcdbd9e02f3a71d459'

* commit '9171749700853305f3e6abbcdbd9e02f3a71d459':
Use system properties to track the current transport
f9435d7521a7085e487974faefbc7934bf90753c 30-Jun-2009 Christopher Tate <ctate@google.com> am f7c886b4: Respect android:allowClearUserData=false during restore

Merge commit 'f7c886b4fe27cd9ab4a9991958ff931054556a24'

* commit 'f7c886b4fe27cd9ab4a9991958ff931054556a24':
Respect android:allowClearUserData=false during restore
ff35c1d787e0f466065b4d148071a47aa972b3a7 30-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am bd1e8aa5: Merge change 5569 into donut

Merge commit 'bd1e8aa502a6d9231e2a1399cee18debcf70b3d6'

* commit 'bd1e8aa502a6d9231e2a1399cee18debcf70b3d6':
Trim some superfluous imports.
6f317426e49e73ef3e50d8839877504039cd2fca 30-Jun-2009 Christopher Tate <ctate@google.com> Don't issue a deletion for the global metadata backup

We were accidentally submitting a deletion for the global metadata key in the
PM backup handling (it was falling into the usual "here's a package that we said
we'd backed up last time, but now it's no longer on device" code). Don't do
that any more, i.e. actually keep the global metadata key in the backup set.
Oops.
om/android/server/PackageManagerBackupAgent.java
f6ff591decdea6299aab1a5b6f95917800571de4 30-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 72eb0aca: Merge change 5483 into donut

Merge commit '72eb0acad5cffc57ce5006f6deab29ee259e461e'

* commit '72eb0acad5cffc57ce5006f6deab29ee259e461e':
Expand support for different screen sizes.
8c3fc63576c81139a8d16b608550568ad52237c6 30-Jun-2009 Dan Egnor <egnor@google.com> am 156411df: Use a long for restore token

Merge commit '156411df4627336b246db78cddca8248ed615b67'

* commit '156411df4627336b246db78cddca8248ed615b67':
Use a long for restore token
f35b2f382c1ebb9c79d2216e151a61f1a27ce80f 30-Jun-2009 Christopher Tate <ctate@google.com> am 8a27f923: Don\'t crash in various ways when using backup services too early

Merge commit '8a27f923eb9dbbe3c2d0184e82d9f1a98f1e4cdc'

* commit '8a27f923eb9dbbe3c2d0184e82d9f1a98f1e4cdc':
Don't crash in various ways when using backup services too early
6ef58a1509b9d3348a33ca5686917796c2759aa5 29-Jun-2009 Christopher Tate <ctate@google.com> Implement persistent enable/disable of the backup manager

Backup & restore is still enabled by default, but with the expectation that it
will be enabled during the course of the Setup Wizard or some other privileged
entity that has notified the user about the ramifications. While disabled,
data-changed notices will still be collected, but no backup pass will be
scheduled. When the backup manager is later enabled, any pending data-changed
notices will then be processed and the apps invoked for backup.
om/android/server/BackupManagerService.java
66c2942a112b65eec93c25263684a8c79cb21318 29-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 5605 into donut

* changes:
Fix issue #1943706 (Applying the monkey to GoogleVoice causes SecurityException)
9171749700853305f3e6abbcdbd9e02f3a71d459 27-Jun-2009 Christopher Tate <ctate@google.com> Use system properties to track the current transport

This change retools the transport selection mechanism a fair bit. Transports
are now specified by name rather than by numeric ID, and the name of the
currently selected transport is stored in a persistent system property under the
name "persist.service.bkup.trans".

The name -> IBackupTransport translation is now handled by maintaining a map
from the names to the live IBackupTransport objects that correspond. The Google
transport service observer now registers and unregisters the transport as the
service goes up and down.

The bmgr command has been expanded to include real transport interrogation and
selection by name, and some documentation has been written for it.
om/android/server/BackupManagerService.java
2bd33d74aed2abc6eb1ef7a9783cd87045598235 27-Jun-2009 Dianne Hackborn <hackbod@google.com> Fix issue #1943706 (Applying the monkey to GoogleVoice causes SecurityException)

Fiddle around with event dispatching to remove calling permissions when we
enter event injection, and prevent callers from going to the PhoneWindowManager's
event processing code unless they are allowed at that point.
om/android/server/WindowManagerService.java
f7c886b4fe27cd9ab4a9991958ff931054556a24 27-Jun-2009 Christopher Tate <ctate@google.com> Respect android:allowClearUserData=false during restore

Ordinarily we wipe the data of apps we are restoring. This is problematic for
packages that expect that their data can never be wiped back to nothing,
especially system packages, so we now respect the android:allowClearUserData
manifest attribute.
om/android/server/BackupManagerService.java
466ef345d17104076e03674cc49c368e6bd46df2 26-Jun-2009 Christopher Tate <ctate@google.com> Trim some superfluous imports.
om/android/server/BackupManagerService.java
72eb0acad5cffc57ce5006f6deab29ee259e461e 26-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 5483 into donut

* changes:
Expand support for different screen sizes.
723738cfaec3dd7b0fe152c872c41bebf94074c4 26-Jun-2009 Dianne Hackborn <hackbod@google.com> Expand support for different screen sizes.

Applications can now declare that they support small, normal, or
large screens. Resource selection can also be done based on these
sizes. By default, pre-Donut apps are false for small and large,
and Donut or later apps are assumed to support all sizes. In either
case they can use <supports-screens> in their manifest to declare
what they actually support.
om/android/server/Watchdog.java
om/android/server/WindowManagerService.java
156411df4627336b246db78cddca8248ed615b67 26-Jun-2009 Dan Egnor <egnor@google.com> Use a long for restore token
om/android/server/BackupManagerService.java
8a27f923eb9dbbe3c2d0184e82d9f1a98f1e4cdc 26-Jun-2009 Christopher Tate <ctate@google.com> Don't crash in various ways when using backup services too early

BackupManager now no longer tries to use a null service binder if it's used
early during the boot process. ActivityManagerService no longer tries to
dereference null pointers if bind/unbind semantics get out of step due to things
being run too early.
om/android/server/am/ActivityManagerService.java
0d8dc1425681d99c5e757354956f41e2e9a1374e 26-Jun-2009 Christopher Tate <ctate@google.com> am 7d562ec3: Add a new IRestoreObserver callback class to the restore process

Merge commit '7d562ec393d54dd9ef387c49d1283243bfdbd2b1'

* commit '7d562ec393d54dd9ef387c49d1283243bfdbd2b1':
Add a new IRestoreObserver callback class to the restore process
7d562ec393d54dd9ef387c49d1283243bfdbd2b1 26-Jun-2009 Christopher Tate <ctate@google.com> Add a new IRestoreObserver callback class to the restore process

The observer is told when restore begins how many packages are being restored.
It then gets an onUpdate() call telling it that the Nth package is now
undergoing restore. Ultimately, its restoreFinished() callback is invoked,
passing a simple success/fail error code, to let it know that the restore
operation has concluded.
om/android/server/BackupManagerService.java
7f94b60c6d22a0dad41cdbc4fadfc0bc70a8ebac 26-Jun-2009 Christopher Tate <ctate@google.com> am 5cb400bd: Keep track of backup state independently for each transport

Merge commit '5cb400bd72726c22f641f334951b35ce2ddcfeef'

* commit '5cb400bd72726c22f641f334951b35ce2ddcfeef':
Keep track of backup state independently for each transport
5cb400bd72726c22f641f334951b35ce2ddcfeef 26-Jun-2009 Christopher Tate <ctate@google.com> Keep track of backup state independently for each transport

Backup transports now provide the Backup Manager with a suggested name with
which it can disambiguate any transport-specific bookkeeping that it needs to
maintain. The Manager keeps separate application backup 'state blobs' for each
transport now, preventing things from getting out of step if the device is
switched among multiple transports.

Also, the metadata backup agent is always invoked now on each backup pass. This
is cheap when there is nothing to do, but also strongly ensures that we never
wind up in a situation where a given transport destination has not been given
all of the metadata necessary for the backup set.
om/android/server/BackupManagerService.java
1af846b97928d8355029f675f781635600f143a8 25-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 5376

* changes:
WifiService: Update all scan result values in our scan result cache.
e0ef37b8e558f26fd4df7dff7ca87f95120526c2 25-Jun-2009 Dan Egnor <egnor@google.com> am 6f21128d: Switch the default transport to GOOGLE.

Merge commit '6f21128d1fc949828b1a4c2a0023f07bfd280e2e'

* commit '6f21128d1fc949828b1a4c2a0023f07bfd280e2e':
Switch the default transport to GOOGLE.
6f21128d1fc949828b1a4c2a0023f07bfd280e2e 25-Jun-2009 Dan Egnor <egnor@google.com> Switch the default transport to GOOGLE.
om/android/server/BackupManagerService.java
1a645058a85182371b581916deba501feaa7bb86 25-Jun-2009 Mike Lockwood <lockwood@android.com> WifiService: Update all scan result values in our scan result cache.

Previously only the level was being updated, resulting in out of date values
being left in the cache.
Patch was provided by Motorola.

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/WifiService.java
2383415ab982ff156a85929f58029c0b863750c5 25-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am f881762f: Merge change 5351 into donut

Merge commit 'f881762f97c74253bbc7f629380bb65739457041'

* commit 'f881762f97c74253bbc7f629380bb65739457041':
Add a method to Process to get uid for a pid.
819f928f6a9dc3fdf408236f33e17f03a7dfed2c 25-Jun-2009 Amith Yamasani <yamasani@google.com> Add a method to Process to get uid for a pid.

Use the uids to track native processes. Cache the uids to avoid
checking /proc every time.
om/android/server/am/ActivityManagerService.java
cc79800a741e4ee55ecfa7ec236b0087d83e41e4 25-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 5416d7c9: Merge change 5317 into donut

Merge commit '5416d7c905e723a978ac29ccaf22a91b76e9d5c2'

* commit '5416d7c905e723a978ac29ccaf22a91b76e9d5c2':
Start backing up wallpaper
5416d7c905e723a978ac29ccaf22a91b76e9d5c2 25-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 5317 into donut

* changes:
Start backing up wallpaper
111bd4acdb378266221b430a284f88a3990a3958 25-Jun-2009 Christopher Tate <ctate@google.com> Start backing up wallpaper

This CL does the following:
+ adds an AbsoluteFileBackupHelper class for managing backup of files
known by absolute path, not based off of the app's getFilesDir() root
+ bumps up the collection interval from its testing-only default of 1 second
to 3 minutes
+ adds a SystemBackupAgent class to the main system package and names it as
the android:backupAgent for the main OS package. Right now this agent
only backs up & restores the wallpaper file.
+ amend the Wallpaper Service to inform the Backup Manager when the wallpaper
changes.

On the subject of the 3-minute collection interval before the backup actually
occurs: this can be short-circuited from an adb shell. Running the command
'bmgr run' will cause the Backup Manager to kick off any pending backup
operations immediately.
om/android/server/BackupManagerService.java
om/android/server/WallpaperService.java
ecf2b68d834d334de218dc427615b4ca05c0293a 25-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 7941e903: Merge change 5091 into donut

Merge commit '7941e903c973af66075bbd4fa4bcadf021a61ccc'

* commit '7941e903c973af66075bbd4fa4bcadf021a61ccc':
* new screen resolution support impl.
7941e903c973af66075bbd4fa4bcadf021a61ccc 25-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 5091 into donut

* changes:
* new screen resolution support impl. * use full window for activities, and shift & clip the content * refactored the compatibility code, and introdcued Translator class to handle cooridnate translations. * removed a workaround to handle an activity with configChagne=rotation in old implementation. * I'll fix background issue on rotation in next CL.
e23ad63adf02e0079c75cba1cac912c08cae5c49 25-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 67669c9c: Merge change 5196 into donut

Merge commit '67669c9c1753b062fe2a71f89b589d01b32ba0f7'

* commit '67669c9c1753b062fe2a71f89b589d01b32ba0f7':
Modify the IBackupTransport API to support bulk restore operations.
67669c9c1753b062fe2a71f89b589d01b32ba0f7 25-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 5196 into donut

* changes:
Modify the IBackupTransport API to support bulk restore operations. Change the BackupManagerService and LocalTransport to support the new API.
efe52647f6b41993be43a5f47d1178bb0468cec8 24-Jun-2009 Dan Egnor <egnor@google.com> Modify the IBackupTransport API to support bulk restore operations.
Change the BackupManagerService and LocalTransport to support the new API.
om/android/server/BackupManagerService.java
om/android/server/PackageManagerBackupAgent.java
afed82bca9e173cabe2c2f25314b202e5c1ccbca 25-Jun-2009 Dianne Hackborn <hackbod@google.com> am 9c8dd55a: Fix bug 1829561 ("am profile" with bad filename kills process).

Merge commit '9c8dd55a9d829c29a3feee9469d8c2f27a9f5516'

* commit '9c8dd55a9d829c29a3feee9469d8c2f27a9f5516':
Fix bug 1829561 ("am profile" with bad filename kills process).
9c8dd55a9d829c29a3feee9469d8c2f27a9f5516 24-Jun-2009 Dianne Hackborn <hackbod@google.com> Fix bug 1829561 ("am profile" with bad filename kills process).

The am command is now the one that takes care of opening the target file,
handling the opened file descriptor to the process that will be profiled.
This allows you to send profile data to anywhere the shell can access, and
avoids any problems coming up from the target process trying to open the
file.
om/android/server/am/ActivityManagerService.java
4c74637833c6dc41f5c51897cd78a037e0cc18ee 25-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 3e376a74: Merge change 5171 into donut

Merge commit '3e376a74b3edd8c311e8d69ca5baf986c9da4a06'

* commit '3e376a74b3edd8c311e8d69ca5baf986c9da4a06':
Track native processes and airplane mode.
32dbefda71c50bf848da21fb5d1255273439f90d 19-Jun-2009 Amith Yamasani <yamasani@google.com> Track native processes and airplane mode.

Turn signal strengths on/off when toggling airplane mode.
om/android/server/TelephonyRegistry.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/BatteryStatsService.java
5a12373277f6ce14101f08580bc4f08f9a3d7c50 23-Jun-2009 Jacek Surazski <jaceks@google.com> Add exception line number to ApplicationErrorReport
om/android/server/am/ActivityManagerService.java
64f59342d41849bd365cb43fad7505d5e3daa417 21-Jun-2009 Mitsuru Oshima <oshima@google.com> * new screen resolution support impl.
* use full window for activities, and shift & clip the content
* refactored the compatibility code, and introdcued Translator class to handle cooridnate translations.
* removed a workaround to handle an activity with configChagne=rotation in old implementation.
* I'll fix background issue on rotation in next CL.

* removed unnecessary scaling code in SurfaceView, which I forgot to remove when I changed SurfaceView
not to scale the content.
om/android/server/PackageManagerService.java
4c279770347b387890bb9eb90d9c96ad07e6f9e9 23-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 722baf5e: Merge change 5014 into donut

Merge commit '722baf5ec47b57020ac39ec3e2b6cd1a02c3c4db'

* commit '722baf5ec47b57020ac39ec3e2b6cd1a02c3c4db':
Fix issue #1933587. Perform dexopt of instrumentation .apks.
3edc89fc5777e1c34f9a7fa072a562af6968ef88 23-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 54f156c7: Merge change 5006 into donut

Merge commit '54f156c7c47bd5b5f2c9675f56bddaaa43ad162e'

* commit '54f156c7c47bd5b5f2c9675f56bddaaa43ad162e':
Pass the originating app's versionCode along with a restore set
722baf5ec47b57020ac39ec3e2b6cd1a02c3c4db 23-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 5014 into donut

* changes:
Fix issue #1933587. Perform dexopt of instrumentation .apks.
d7f6daa5d182f21b41782057e8a9b72f7a1eb54a 23-Jun-2009 Dianne Hackborn <hackbod@google.com> Fix issue #1933587. Perform dexopt of instrumentation .apks.
om/android/server/am/ActivityManagerService.java
5cbbf5652a78902ac3382dc4a3583bc5b0351027 23-Jun-2009 Christopher Tate <ctate@google.com> Pass the originating app's versionCode along with a restore set

This change amends the doRestore() / onRestore() interface to backup agents to
provide the integer android:versionCode of the app that stored the backup set.
This should help agents figure out how to handle whatever historical data set
they're handed at restore time.
om/android/server/BackupManagerService.java
om/android/server/PackageManagerBackupAgent.java
5196d12a12dfcfb8b7deb74d74d69496f8e12b02 23-Jun-2009 Christopher Tate <ctate@google.com> am 3a31a93b: Add some global metadata to the restore set

Merge commit '3a31a93b8a195ae2d0180e6dfbf292da2e581f50'

* commit '3a31a93b8a195ae2d0180e6dfbf292da2e581f50':
Add some global metadata to the restore set
3a31a93b8a195ae2d0180e6dfbf292da2e581f50 23-Jun-2009 Christopher Tate <ctate@google.com> Add some global metadata to the restore set

In addition to the signatures of each participating application, we now also
store the versionCode of each backed-up package, plus the OS version running on
the device that contributed the backup set. We also refuse to process a backup
from a later OS revision to an earlier one, or from a later app version to an
earlier.

LocalTransport has been modified as well to be more resilient to changes in the
system's use of metadata pseudopackages.
om/android/server/BackupManagerService.java
om/android/server/PackageManagerBackupAgent.java
4527acb0c39258792ae55604cb4d71006bf8d938 22-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 856dd8a6: Merge change 4952 into donut

Merge commit '856dd8a60a70a5b7dca2bf2114872ce063e2ad60'

* commit '856dd8a60a70a5b7dca2bf2114872ce063e2ad60':
Helper API cleanup. Allows multiple helpers to function,
856dd8a60a70a5b7dca2bf2114872ce063e2ad60 22-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 4952 into donut

* changes:
Helper API cleanup. Allows multiple helpers to function, because they'll always go in the same order, and this lets us not have to write headers to keep them paired.
06290a4bb9b280fa14a2bbeb2d3ceb09396a78c3 19-Jun-2009 Joe Onorato <joeo@android.com> Helper API cleanup. Allows multiple helpers to function,
because they'll always go in the same order, and this lets
us not have to write headers to keep them paired.
om/android/server/BackupManagerService.java
92eef877ca93b40b43efedb03324e230cbe2ab4c 22-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 07a5f126: Merge change 4754 into donut

Merge commit '07a5f126df2cf0dbeb7096535ae634ea8eaeb306'

* commit '07a5f126df2cf0dbeb7096535ae634ea8eaeb306':
At boot time, add additional per-device information to the
07a5f126df2cf0dbeb7096535ae634ea8eaeb306 22-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 4754 into donut

* changes:
At boot time, add additional per-device information to the kernel randomness pool. This helps increase the quality / uniqueness of the random numbers, and is especially important during the device's first boot, when insufficient randomness is available.
72875cc599815387b9e0e774333129d0ee73f0a0 22-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 6bf1208c: Merge change 4827 into donut

Merge commit '6bf1208c58ab2c39f95c733a22df882c7a59f4fc'

* commit '6bf1208c58ab2c39f95c733a22df882c7a59f4fc':
Fix issue with shared user permissions.
6bf1208c58ab2c39f95c733a22df882c7a59f4fc 22-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 4827 into donut

* changes:
Fix issue with shared user permissions. just look in the requested permissions of packages within shared user setting rather than the granted permissions
b8cba95ffd4d9be0edace7a9eb42286e668ef3e3 19-Jun-2009 Nick Kralevich <nnk@google.com> At boot time, add additional per-device information to the
kernel randomness pool. This helps increase the
quality / uniqueness of the random numbers, and is especially
important during the device's first boot, when insufficient
randomness is available.
om/android/server/EntropyService.java
8afc1e97e0cb8e5aae42f12f6decd895bf3aba7a 20-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am b92c45a4: Merge change 4831 into donut

Merge commit 'b92c45a4bc4331378a31bb4bc84de02fa631a247'

* commit 'b92c45a4bc4331378a31bb4bc84de02fa631a247':
Add app version to the backup metadata
b97b8f88063e64449da6d27a48b711ac60ccc6c8 20-Jun-2009 Suchi Amalapurapu <asuchitra@google.com> Fix issue with shared user permissions.
just look in the requested permissions of packages within shared user setting rather than the granted permissions
om/android/server/PackageManagerService.java
6aa41f4c575479672661f7eb4c704ef59d26a629 19-Jun-2009 Christopher Tate <ctate@google.com> Add app version to the backup metadata

We now record the version number of the app (drawn from its manifest versionCode
attribute) along with its signatures. At restore time, we compare the version
associated with the restore set with the version present on the device. If the
restore set is from a newer version of the app than is present on device, we do
not perform the restore operation.

Also fix the pending-backup iteration in 'dumpsys backup'.
om/android/server/BackupManagerService.java
om/android/server/PackageManagerBackupAgent.java
cd83fd74ad77f494893d01b308c227e46ec59596 19-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 4815

* changes:
GoogleFeedback handles errors in core apps.
82a73dfb27e9766ffffa4ece032a06471c646575 17-Jun-2009 Jacek Surazski <jaceks@google.com> GoogleFeedback handles errors in core apps.

Adds support for system properties:
ro.error.receiver.system.apps - default error report receiver for system apps
ro.error.receiver.default - fallback error report receiver
om/android/server/am/ActivityManagerService.java
c13713519dd92f0008415bef8499d85bd7e3edb4 19-Jun-2009 Dianne Hackborn <hackbod@google.com> am 3d74bb4a: Add "why?" button to low battery dialog.

Merge commit '3d74bb4ab27ae9601f5c9c3706fad287845fb672'

* commit '3d74bb4ab27ae9601f5c9c3706fad287845fb672':
Add "why?" button to low battery dialog.
3d74bb4ab27ae9601f5c9c3706fad287845fb672 19-Jun-2009 Dianne Hackborn <hackbod@google.com> Add "why?" button to low battery dialog.

This takes the user to the power usage activity.
om/android/server/status/StatusBarPolicy.java
c73e9ad55a28f6bec3260e919573e0597fdd23ab 19-Jun-2009 Suchi Amalapurapu <asuchitra@google.com> am bc806f65: Remove deprecated api. Aptly rename freeStorageWithIntent to freeStorage.

Merge commit 'bc806f65edc33f6eda0f475ac84e5e037a013a90'

* commit 'bc806f65edc33f6eda0f475ac84e5e037a013a90':
Remove deprecated api. Aptly rename freeStorageWithIntent to freeStorage.
bc806f65edc33f6eda0f475ac84e5e037a013a90 18-Jun-2009 Suchi Amalapurapu <asuchitra@google.com> Remove deprecated api. Aptly rename freeStorageWithIntent to freeStorage.
om/android/server/PackageManagerService.java
061c3b505814053513741eb2c13e75a322ce9b20 19-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am fd5f0875: Merge change 4721 into donut

Merge commit 'fd5f087536dcb04ac9c46f2b19f87a37455390b0'

* commit 'fd5f087536dcb04ac9c46f2b19f87a37455390b0':
Make signature checks on restore work with unsigned apps
20efdf6b56e54b0520d8629cd706045dc8d280d3 19-Jun-2009 Christopher Tate <ctate@google.com> Make signature checks on restore work with unsigned apps
om/android/server/BackupManagerService.java
8dbbe3b52f815c49be986814743a521f802b4785 19-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 63e7155c: Merge change 4696 into donut

Merge commit '63e7155c7d1d0c3f0027400aa09e9a45f648a80d'

* commit '63e7155c7d1d0c3f0027400aa09e9a45f648a80d':
Fix targetSdkVersion, make resize mode a flag, delayed dexopt, easy ApplicationInfo.
63e7155c7d1d0c3f0027400aa09e9a45f648a80d 19-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 4696 into donut

* changes:
Fix targetSdkVersion, make resize mode a flag, delayed dexopt, easy ApplicationInfo.
f923ed6ff76a0fd022bcc83e748e82266ba4ed1b 19-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 5502f04c: Merge change 4709 into donut

Merge commit '5502f04c1dcf2b1918858bacb99fb0480a711707'

* commit '5502f04c1dcf2b1918858bacb99fb0480a711707':
backup stuff
610a0af4e34c3476863200ae1db70a9c5d8b582f 19-Jun-2009 Christopher Tate <ctate@google.com> am abce4e87: Use signatures on restore

Merge commit 'abce4e8714bed26a2b37b20ad3f02cf619d71c9a'

* commit 'abce4e8714bed26a2b37b20ad3f02cf619d71c9a':
Use signatures on restore
5d605dc56b036232e885f6ec36b888b729673060 19-Jun-2009 Joe Onorato <joeo@android.com> backup stuff
om/android/server/BackupManagerService.java
abce4e8714bed26a2b37b20ad3f02cf619d71c9a 19-Jun-2009 Christopher Tate <ctate@google.com> Use signatures on restore

On restore now, the backup manager gets the signature blocks corresponding to
the restore set from the transport. It then validates those signatures against
the on-device app signatures, and refuses to restore data to an app whose
on-device sig block does not match the backup image's.

Also actually implement 'bmgr transport N' so that we can select the local
transport easily during runtime.
om/android/server/BackupManagerService.java
5c1e00b14d2ef10ec76abf3e951fa8003a67f558 19-Jun-2009 Dianne Hackborn <hackbod@google.com> Fix targetSdkVersion, make resize mode a flag, delayed dexopt, easy ApplicationInfo.

- Fix a bug where targetSdkVersion could not be set if minSdkVersion. Stupid, stupid.
Also make sure to fail if minSdkVersion is for a code name. Really stupid.

- Change the API for resize compatibility mode to be a bit in the flags field, instead
of a separate boolean.

- Implement delayed dexopting, to avoid the looong full dexopt during boot. This is
only enabled for "eng" builds. When in this mode, the activity manager will make
sure that a dexopt has been done before loading an .apk into a process, and will
try to avoid displaying ANRs if they are due to the dexopt causing some operation
to take longer than it normally would (though I make no guarantees about this
totally working).

- Add API to Context to get the ApplicationInfo for its package, for easy access to
things like targetSdkVersion.
om/android/server/PackageManagerService.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/HistoryRecord.java
5c2f39af8dcb10b7505bda8972fff7931252eff8 19-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 167dbe0b: Merge change 4670 into donut

Merge commit '167dbe0bf1f8d807d1ced400f146b7780eb6c721'

* commit '167dbe0bf1f8d807d1ced400f146b7780eb6c721':
Update RandomBlock to use RandomAccessFile. This helps
167dbe0bf1f8d807d1ced400f146b7780eb6c721 19-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 4670 into donut

* changes:
Update RandomBlock to use RandomAccessFile. This helps prevent certain unusual conditions from corrupting the entropy file. (for example, if Android should happen to crash while a write is in progress)
e4839c4325e61ee23adf3fef1bf651f4754bbfec 19-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 07eac016: Merge change 4682 into donut

Merge commit '07eac016446c63711bebe6e553e98c02d1fe55a5'

* commit '07eac016446c63711bebe6e553e98c02d1fe55a5':
Store the app signatures as part of the backup set
07eac016446c63711bebe6e553e98c02d1fe55a5 19-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 4682 into donut

* changes:
Store the app signatures as part of the backup set
6785dd842075889e5230d93ed9c0ab9c204ab432 19-Jun-2009 Christopher Tate <ctate@google.com> Store the app signatures as part of the backup set

Under a pseudo-app for the Package Manager, we store the app signatures for all
participating applications installed on the device. At restore time we will
restore this first, then ensure that the current on-device signature chain is
compatible with the one in the backup set. If there's a mismatch, this may be a
spoof attempt and we will refuse to restore that app's data.

The restore side of this is not implemented, but the Package Manager agent is
here as well as the backup side theoretically pushing the data now.
om/android/server/BackupManagerService.java
om/android/server/PackageManagerBackupAgent.java
2854254c2f59544d682d41ffee4fc1e1f2a604a3 19-Jun-2009 Nick Kralevich <nnk@google.com> Update RandomBlock to use RandomAccessFile. This helps
prevent certain unusual conditions from corrupting the
entropy file. (for example, if Android should happen to
crash while a write is in progress)
om/android/server/RandomBlock.java
a791bc070f1ea0008781ef67b22945282285d5f6 18-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 5ad76ef5: Merge change 4521 into donut

Merge commit '5ad76ef5ee1b437b4c07ed0be78ec7cc16c81dfe'

* commit '5ad76ef5ee1b437b4c07ed0be78ec7cc16c81dfe':
load entropy data at boot. Periodically write entropy data to disk.
5ad76ef5ee1b437b4c07ed0be78ec7cc16c81dfe 18-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 4521 into donut

* changes:
load entropy data at boot. Periodically write entropy data to disk.
4fb256117ca271e3e37284a19b663d116f6ec20c 18-Jun-2009 Nick Kralevich <nnk@google.com> load entropy data at boot. Periodically write entropy data to disk.
om/android/server/EntropyService.java
om/android/server/RandomBlock.java
om/android/server/SystemServer.java
abb01dba70fa52b3576fa9f6a175f3840b959fde 18-Jun-2009 Dianne Hackborn <hackbod@google.com> am c14b9ccd: Extend Intent/Uri conversion for use by Browser

Merge commit 'c14b9ccdf13163cae5ce5d21bcf377010b37594b'

* commit 'c14b9ccdf13163cae5ce5d21bcf377010b37594b':
Extend Intent/Uri conversion for use by Browser
cc4b106f736ceab3680b19a4cd7e14be2be8f341 18-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am e64bb1dd: Merge change 4579 into donut

Merge commit 'e64bb1dd9ed68281af9968cf2cd23b4e49ead76c'

* commit 'e64bb1dd9ed68281af9968cf2cd23b4e49ead76c':
Fix issue #1924851
c0f088b06b1b09157f5727246dcf3ebb6ac7b17b 18-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 3c2f8e66: Merge change 4456 into donut

Merge commit '3c2f8e6651178742bc685e7bd62fa8a6ca409a74'

* commit '3c2f8e6651178742bc685e7bd62fa8a6ca409a74':
Replace the stub GoogleTransport with callout to the
c14b9ccdf13163cae5ce5d21bcf377010b37594b 18-Jun-2009 Dianne Hackborn <hackbod@google.com> Extend Intent/Uri conversion for use by Browser

This introduces a new Uri form of Intent with an "intent:" scheme, and a
corresponding update to the parser to handle these, so that the browser
can use this generic facility for starting activities based on the links
that are clicked and allow for web pages to link to arbitrary intents.

There is also a new "package" field on Intent which allows you to limit
the components it finds to a given package. This replaces the new method
that was added to PackageManger for doing this when resolving activities,
and implements it for all Intent queries against the package manager.
om/android/server/PackageManagerService.java
om/android/server/am/ActivityManagerService.java
e64bb1dd9ed68281af9968cf2cd23b4e49ead76c 18-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 4579 into donut

* changes:
Fix issue #1924851
760ec4a095567457707abe764cf4dfda0ed84032 18-Jun-2009 Dianne Hackborn <hackbod@google.com> Fix issue #1924851

We now only increment the launch count when we are launching from one package
to another. Also the individual components in a package now have a count
of the number of times they have been entered, which likewise is only updated
when going to one component from another.

This requires a new data format (all old data is wiped) and new checkin
dump format (tools must be updated to read it).
om/android/server/am/UsageStatsService.java
2420186c891bf8aa33ed5e710bfea9e1cd963c84 18-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 5553f152: Merge change 3936 into donut

Merge commit '5553f1528e94377ae5adf423e91331f5eb57dd44'

* commit '5553f1528e94377ae5adf423e91331f5eb57dd44':
add exception message to ApplicationErrorReport
e1fae30e20b1515eeb036a7c103e1e70de130bdd 18-Jun-2009 Suchi Amalapurapu <asuchitra@google.com> Merge commit '0781df94' into manualmerge

Conflicts:
Android.mk
api/current.xml
87a02bcf68dd4cc1f6d9fdcee3d1ebc9b04cf1f8 17-Jun-2009 Dan Egnor <egnor@google.com> Replace the stub GoogleTransport with callout to the
GoogleTransportService (which lives in vendor/google).
Use the Google transport by default.
Also, fix a bug: Thread.run() != Thread.start()
om/android/server/BackupManagerService.java
5cc37854d45f3cc887c2dd306a6bcc4cb8a77726 18-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 07ca8c71: Merge change 4438 into donut

Merge commit '07ca8c71f47ac8c61b3aef0210e44d2c48e62e48'

* commit '07ca8c71f47ac8c61b3aef0210e44d2c48e62e48':
Fix many of the ANRs introduced by scheduling classes.
1bd88ca88f8b89dbf09697b8eddc4703e266a654 18-Jun-2009 Christopher Tate <ctate@google.com> am aa088447: Hold the current transport instantiated all the time.

Merge commit 'aa088447baadd2e0bbcfd18cc529645610c13ddc'

* commit 'aa088447baadd2e0bbcfd18cc529645610c13ddc':
Hold the current transport instantiated all the time.
f829a78f6c78141d2cf8074f00fcded37fbf9007 11-Jun-2009 Jacek Surazski <jaceks@google.com> add exception message to ApplicationErrorReport

useful signal for clustering
om/android/server/am/ActivityManagerService.java
1ccac75e1f1b97eccb916a8de04fc1012b30f6e5 12-Jun-2009 Suchi Amalapurapu <asuchitra@google.com> Remove circular dependency in PackageManager. api freeStorage uses PendingIntent from android.app
Create a new public IntentSender class that can be used by PackageManager instead.
This new class uses IIntentSender internally and can only be created by PendingIntent for now.
Provide a new getIntentSender api in PendingIntent to create an instance of this class.
Move IIntentSender and IIntentReceiver from android.app to android.content
Change imports of IIntentSender and IIntentReceiver to reflect the new package name
The PackageManager api has been named as freeStorageWithIntent and will be renamed as freeStorage
once the older api(which has been deprecated) will be removed shortly.
om/android/server/PackageManagerService.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/BroadcastRecord.java
om/android/server/am/PendingIntentRecord.java
om/android/server/am/ReceiverList.java
ff4a203c78e9a890e3ab73ee35691f895c996b2a 17-Jun-2009 Christopher Tate <ctate@google.com> am 63d27000: Allow privileged callers to schedule a backup pass for any app.

Merge commit '63d2700036d0f73cbde27f0fa724d30045b4bb07'

* commit '63d2700036d0f73cbde27f0fa724d30045b4bb07':
Allow privileged callers to schedule a backup pass for any app.
07ca8c71f47ac8c61b3aef0210e44d2c48e62e48 17-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 4438 into donut

* changes:
Fix many of the ANRs introduced by scheduling classes.
82f3f0008eca314b69a86900deb93932b9912759 17-Jun-2009 Dianne Hackborn <hackbod@google.com> Fix many of the ANRs introduced by scheduling classes.

We weren't bumping the oom_adj of processes receiving a registered broadcast. Previously
this wasn't a problem, because those processes are allowed to have their oom_adj
managed by whatever else is in them and if the registered receiver goes away no problem.
But now this is also controlling the scheduling class, so we need to bump them up.

This is probably good anyway, since the developer has the same assurance of their process
not being killing in the middle of registered receivers like it had always been for
manifest receivers.

Also fixed a small issue where we were not recomputing the oom_adh after finished with
a broadcast.
om/android/server/am/ActivityManagerService.java
aa088447baadd2e0bbcfd18cc529645610c13ddc 17-Jun-2009 Christopher Tate <ctate@google.com> Hold the current transport instantiated all the time.

We no longer instantiate the transport just for the duration of handling a
backup or restore operation. Instead, we hold the object forever (replacing it
if instructed to do so). This makes it easier for transports to watch system
state and help set backup timing policy.

Also fixes up the IBackupTransport documentation a bit.
om/android/server/BackupManagerService.java
63d2700036d0f73cbde27f0fa724d30045b4bb07 17-Jun-2009 Christopher Tate <ctate@google.com> Allow privileged callers to schedule a backup pass for any app.
om/android/server/BackupManagerService.java
714000456b74dfc08c5100ce38bfe8cdd54e6571 17-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am febde5fc: Merge change 4389 into donut

Merge commit 'febde5fc290eb422f78b47f393dc451394751d59'

* commit 'febde5fc290eb422f78b47f393dc451394751d59':
More bmgr work; fix clear-data signalling
f68eb500f99361541049e09eb7f9ddd6f4ef4efa 16-Jun-2009 Christopher Tate <ctate@google.com> More bmgr work; fix clear-data signalling

The 'list sets' and 'restore token#' commands from bmgr now do what they are
supposed to. At this point we see the restore target's data being cleared
properly and its agent being launched and invoked for restore.
om/android/server/BackupManagerService.java
22a9f7a52e68aecc096130c29675a1330e83f409 16-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 6297cb2e: Merge change 4287 into donut

Merge commit '6297cb2eb57c183e202744516a96b2dbbf204a09'

* commit '6297cb2eb57c183e202744516a96b2dbbf204a09':
Sketch out a 'bmgr' command line tool
6297cb2eb57c183e202744516a96b2dbbf204a09 16-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 4287 into donut

* changes:
Sketch out a 'bmgr' command line tool
ace7f094bf07bbd90cb998b9462e4f2d101a498c 16-Jun-2009 Christopher Tate <ctate@google.com> Sketch out a 'bmgr' command line tool

Not finished, but eventually will allow adb shell access to the Backup Manager
for testing purposes etc.
om/android/server/BackupManagerService.java
a2aaa9e38f1f491dd2809e36c4f670dd114bc232 16-Jun-2009 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 6edb3487 to master
cfaef699e1dfb3a75d5b51f3b15816f13670fd51 15-Jun-2009 Dianne Hackborn <hackbod@google.com> Implement permission test for activity, window, service manager.

This also includes some changes to the window manager permission checks. Almost all of these
are to make it most testable (through an exception on a permission failure), though there is
one permission check that needed to be added: updateOrientationFromAppTokens().
om/android/server/WindowManagerService.java
daf701fa6250ae89ad93e2e41127e0f676a322a5 15-Jun-2009 Christopher Tate <ctate@google.com> am 2fdd428e: Fix some backup reader/writer issues; make local transport do backup

Merge commit '2fdd428e0f18384160f7c38ce3a2cd9ba7e7b2c2'

* commit '2fdd428e0f18384160f7c38ce3a2cd9ba7e7b2c2':
Fix some backup reader/writer issues; make local transport do backup
Fix the jni initializer.
Add RestoreFileHelper, BackupDataInput, and add java wrappers for the methods on BackupDataOutput.
Fix bug #1812041: activity manager crash with bad args.
Journal backup requests so that they won't be lost in a crash
Fix data connection issues.
be3615bded04c7414db4da3721f512b6f76e09e2 13-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 4112 into donut

* changes:
Fix bug #1812041: activity manager crash with bad args.
75b038545edd799836b712e6c32bd4d143f8df28 13-Jun-2009 Dianne Hackborn <hackbod@google.com> Fix bug #1812041: activity manager crash with bad args.

There was old code that would kill the system process in some cases when there
was a bad activity token. This is really no longer used, except in a few
places where it allows apps to kill the system. So just get rid of it and
make the world a better place.
om/android/server/am/ActivityManagerService.java
cde87f45e0fa052d070b88ae33fb03c89870536a 12-Jun-2009 Christopher Tate <ctate@google.com> Journal backup requests so that they won't be lost in a crash

When an application requests a backup via dataChanged(), we now journal that
fact on disk. The journal persists and is only removed following a successful
backup pass. When the backup manager is started at boot time, it looks for any
existing journal files and schedules a backup for the apps listed in them, on
the expectation that the device shut down or crashed before a backup could be
performed.
om/android/server/BackupManagerService.java
0c32f14ef117e37e22dae4a7b7f8de804a1b855d 11-Jun-2009 Christopher Tate <ctate@google.com> am 9bbc21a7: Flesh out restore interface on manager; work up most of LocalTransport

Merge commit '9bbc21a773cbdfbef2876a75c32bda5839647751'

* commit '9bbc21a773cbdfbef2876a75c32bda5839647751':
Flesh out restore interface on manager; work up most of LocalTransport
74c2acee04ac046de9d9dd303af3fc7388362ca5 11-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 238bf47a: Merge change 3826 into donut

Merge commit '238bf47a850532233ed51362dca95facf8680770'

* commit '238bf47a850532233ed51362dca95facf8680770':
LocationManagerService: Fix logic error removing multiple dead receivers.
9bbc21a773cbdfbef2876a75c32bda5839647751 11-Jun-2009 Christopher Tate <ctate@google.com> Flesh out restore interface on manager; work up most of LocalTransport
om/android/server/BackupManagerService.java
de115412d5410355122b3665a12bb5063cd585fe 11-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 3841

* changes:
Fix botched merge from commit b61498d1ac8e25f0024dcde46b41bcf0d8336d89
f40e1a5fa6aa64ca764acb926b5228f30e40718a 11-Jun-2009 Eric Fischer <enf@google.com> Fix botched merge from commit b61498d1ac8e25f0024dcde46b41bcf0d8336d89
om/android/server/WindowManagerService.java
238bf47a850532233ed51362dca95facf8680770 11-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 3826 into donut

* changes:
LocationManagerService: Fix logic error removing multiple dead receivers.
4686657cee6411eb00235d49b4a8663a96361a00 10-Jun-2009 Simon Schoar <schoar@googlemail.com> LocationManagerService: Fix logic error removing multiple dead receivers.

If multiple receivers are dead, only the first one will be added.
found in http://code.google.com/p/android/issues/detail?id=2651

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/LocationManagerService.java
bb8d0dfed9c3f9f3dd9b806acadd9b9d1fe2cbc9 11-Jun-2009 Christopher Tate <ctate@google.com> am c7b31e3c: The rest of the basic flow for restore

Merge commit 'c7b31e3c3cd71129557d4bf9e3fbcebb9235aba5'

* commit 'c7b31e3c3cd71129557d4bf9e3fbcebb9235aba5':
The rest of the basic flow for restore
c7b31e3c3cd71129557d4bf9e3fbcebb9235aba5 11-Jun-2009 Christopher Tate <ctate@google.com> The rest of the basic flow for restore

Also moved the processOneBackup() implementation into the Thread class that runs
the backup sequence.
om/android/server/BackupManagerService.java
om/android/server/am/ActivityManagerService.java
bd6b11dd582d7c7dde64e355f967f5ed77a9870d 11-Jun-2009 Mitsuru Oshima <oshima@google.com> am e5fb3288: resolution support fix/improvement * adding compatibility menu * backup gravity * set expanable=true if the screen size is hvga * density. * added "supports any density" mode. I\'ll add sdk check later. * disallow to catch orientation c

Merge commit 'e5fb328825995aa33b5b7ecf8b5bee2b17f81715'

* commit 'e5fb328825995aa33b5b7ecf8b5bee2b17f81715':
resolution support fix/improvement
b61498d1ac8e25f0024dcde46b41bcf0d8336d89 11-Jun-2009 Romain Guy <romainguy@android.com> resolved conflicts for merge of f31cbb to master
e5fb328825995aa33b5b7ecf8b5bee2b17f81715 10-Jun-2009 Mitsuru Oshima <oshima@google.com> resolution support fix/improvement
* adding compatibility menu
* backup gravity
* set expanable=true if the screen size is hvga * density.
* added "supports any density" mode. I'll add sdk check later.
* disallow to catch orientation change event if the app is not expandable. This
was causing layout problem under non-expandable mode. I discussed this with Mike C
and we agreed to do this approach for now. We'll revisit if this causes problem to
a lot of applications.
om/android/server/PackageManagerService.java
06882f8effe0f69fb689c46b4fe876329ce60ada 10-Jun-2009 Romain Guy <romainguy@android.com> Enable HierarchyViewer on debuggable builds, even if they're secure.

That will let us (finally) use the tool on userdebug builds.
om/android/server/WindowManagerService.java
49dd37173001fbb4cbe06a35879303f9172bd9fa 10-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am b81645c8: Merge change 3726 into donut

Merge commit 'b81645c868b3d596b5ac56822959feb629a8651e'

* commit 'b81645c868b3d596b5ac56822959feb629a8651e':
ActivityManager: Ensure that we clear the calling process identity around calls to Process.setProcessGroup().
b81645c868b3d596b5ac56822959feb629a8651e 10-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 3726 into donut

* changes:
ActivityManager: Ensure that we clear the calling process identity around calls to Process.setProcessGroup().
21444c54273a98051523e66f86d32c5b15acfa08 10-Jun-2009 Christopher Tate <ctate@google.com> am df01deaa: More restore plumbing, plus add suggested-backoff to transport API

Merge commit 'df01deaacff82b918b4f0ba774d5ad3087543629'

* commit 'df01deaacff82b918b4f0ba774d5ad3087543629':
More restore plumbing, plus add suggested-backoff to transport API
df01deaacff82b918b4f0ba774d5ad3087543629 10-Jun-2009 Christopher Tate <ctate@google.com> More restore plumbing, plus add suggested-backoff to transport API

Adds most of the code for a background-thread restore process, structured much
like the backup thread. Broke some common functionality out into a helper
function for doing a synchronous wait for a requested agent to attach.

Added a method to IBackupTransport whereby the transport will be asked for
an opinion on whether this is a good time for a backup to happen. It will
reply with the results of its policymaking around backoff intervals, time-of-day
selection, etc.
om/android/server/BackupManagerService.java
9438de2001af5287d653a81c1360d1e5106c7df4 10-Jun-2009 San Mehat <san@google.com> ActivityManager: Ensure that we clear the calling process identity around calls to Process.setProcessGroup().

Signed-off-by: San Mehat <san@google.com>
om/android/server/am/ActivityManagerService.java
d5ac1ae36b4e096eb97984334f86d0c68abea2f7 06-May-2009 Jaikumar Ganesh <jaikumar@google.com> Framework changes for bluez4.

Changes in the Bluetooth JNI calls and framework functions
for Bluez4.
om/android/server/SystemServer.java
a92f6964077e5a5bdb9e51b8abfdd08e69ab733c 09-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am d2d058b7: Merge change 3506 into donut

Merge commit 'd2d058b7d657e73255c3665c8b2f63845a8d25d0'

* commit 'd2d058b7d657e73255c3665c8b2f63845a8d25d0':
Revamp IRestoreSession a bit
9b3905c4a25f2d785ce7535d1f2e1540b46bb561 09-Jun-2009 Christopher Tate <ctate@google.com> Revamp IRestoreSession a bit

We now supply an array of RestoreSet objects instead of wacky Bundle
shenanigans. Also, pushed beginRestoreSession() out to the BackupManager
concrete interface class so that SetupWizard can use it.

(beginRestoreSession() is @hide, non-privileged apps cannot use it. It's
also guarded by android.permission.BACKUP enforcement.)
om/android/server/BackupManagerService.java
40dabea7d8d0653d7deea288e3bae8247f34c21a 08-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 9d9953d9: Merge change 3420 into donut

Merge commit '9d9953d94de4d17722ba2c768b92bd4ebeec908c'

* commit '9d9953d94de4d17722ba2c768b92bd4ebeec908c':
LocationManagerService: Remove some unneeded imports.
bd235f10a9873c1f94cd44519c1e0cd118c5a8ab 08-Jun-2009 Christopher Tate <ctate@google.com> am 8c850b79: Add IRestoreSession interface for the restore flow

Merge commit '8c850b792f2d371fd8a4aff146d9d757ee982539'

* commit '8c850b792f2d371fd8a4aff146d9d757ee982539':
Add IRestoreSession interface for the restore flow
9d9953d94de4d17722ba2c768b92bd4ebeec908c 08-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 3420 into donut

* changes:
LocationManagerService: Remove some unneeded imports.
6ba283f726aaedd9a7c963d6b0514d4443c4a572 08-Jun-2009 Mike Lockwood <lockwood@android.com> LocationManagerService: Remove some unneeded imports.

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/LocationManagerService.java
8c850b792f2d371fd8a4aff146d9d757ee982539 08-Jun-2009 Christopher Tate <ctate@google.com> Add IRestoreSession interface for the restore flow

Restore is a fairly complicated, somewhat stateful process, so we introduce
a new interface to encapsulate the various bits and pieces into a nicely
separable component. In particular, this will make it much cleaner to
open and interrogate an expensive-to-construct transport and then reuse it
for the actual restore process itself.
om/android/server/BackupManagerService.java
4dde34b2f0e69a5a3e53e06614da89b9e4afc3e8 07-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am da55569b: Merge change 3417 into donut

Merge commit 'da55569b0aaf98ff4d472d85ae1b038e76e1e9c3'

* commit 'da55569b0aaf98ff4d472d85ae1b038e76e1e9c3':
Adjust IBackupTransport interface
7b88128e08ba45b071cd714dad9681ce66920d32 07-Jun-2009 Christopher Tate <ctate@google.com> Adjust IBackupTransport interface

Instead of just passing a package name to performBackup, pass the whole
PackageInfo struct, explicitly including the list of signatures for the package.
No need to make each transport look this up individually when it's a necessary
part of the backup payload for each app.
om/android/server/BackupManagerService.java
36d3ebb880e922859d4fd83792e13069072c19b2 06-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 19cd309f: Merge change 3017 into donut

Merge commit '19cd309f9eccdf8454dc6e5076013588b7a170a3'

* commit '19cd309f9eccdf8454dc6e5076013588b7a170a3':
Add the EAP related fields for WiFi configuration.
a31fb7d1d2225bc9965eb431ac6a2bb94af35e1f 06-Jun-2009 Christopher Tate <ctate@google.com> am 6fa95976: Apply OOM adjustment while an app is undergoing backup

Merge commit '6fa959769051f08655292ec47aa8480b248b67fd'

* commit '6fa959769051f08655292ec47aa8480b248b67fd':
Apply OOM adjustment while an app is undergoing backup
77a8658a9140a8ea6d54908f0914033fe3100872 06-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 5d16ac5e: Merge change 3374 into donut

Merge commit '5d16ac5eb6c4a468cabc39bdd00eac1759993db5'

* commit '5d16ac5eb6c4a468cabc39bdd00eac1759993db5':
Fix tracking of backup participants across package remove/update
19cd309f9eccdf8454dc6e5076013588b7a170a3 06-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 3017 into donut

* changes:
Add the EAP related fields for WiFi configuration.
6fa959769051f08655292ec47aa8480b248b67fd 06-Jun-2009 Christopher Tate <ctate@google.com> Apply OOM adjustment while an app is undergoing backup
om/android/server/am/ActivityManagerService.java
cd4ff2e72d42d66ea2d6a27f1c87cfffd16b1791 05-Jun-2009 Christopher Tate <ctate@google.com> Fix tracking of backup participants across package remove/update
om/android/server/BackupManagerService.java
9c4125e268d10eb2c4f26ce5c1ac32bf90181c51 05-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 54de9063: Merge change 3243 into donut

Merge commit '54de90635e1d0628c396d65e6c948bf4a1529229'

* commit '54de90635e1d0628c396d65e6c948bf4a1529229':
Fix backup agent unbind
1885b37913181230c36d6485bdd389f89fa90f43 05-Jun-2009 Christopher Tate <ctate@google.com> Fix backup agent unbind

The handwritten binder transaction passing wasn't propagating the agent-destroy
transaction to the client side. Oops.

Also, remove obsolete run-one-agent code from the backup manager service.
om/android/server/BackupManagerService.java
5069cc78497209c035a7019b2f407bd1ed57f64a 03-Jun-2009 Chung-yih Wang <cywang@google.com> Add the EAP related fields for WiFi configuration.

-- added the EAP/802.1X related fields in WifiConfiguration for
supporting EAP/802.1X authentication.
-- hid the related fields for now.
om/android/server/WifiService.java
ce74edc7eab6b1270577ac7a369243a9cac333e6 03-Jun-2009 Christopher Tate <ctate@google.com> More backup work

* Put in some permission enforcement around agent connection notification
and full-backup scheduling.
* Full backup now applies to any package, not just backup participants who
have declared their own android:backupAgent
* The process of running the backup operation on the set of apps who have
been queued for it is now done in a separate thread, with a notification
mechanism from the main Backup Manager service to pass along new-agent
binding knowledge. There's no longer one do-backup message on the primary
Handler per target application.
* The new backup thread sets up the desired transport now and passes
along the newly backed-up data to it for each backup target. Two
transports have been defined so far, GoogleTransport and AdbTransport;
both are stubs at present.

Note that at present the backup data output file seems to be properly
created, but after doBackup() is called on the test app's agent it's
still zero size.
om/android/server/BackupManagerService.java
om/android/server/am/ActivityManagerService.java
043dadc7516d20c3b3ccbcb20c53aaeef076a237 03-Jun-2009 Christopher Tate <ctate@google.com> More backup work

* Put in some permission enforcement around agent connection notification
and full-backup scheduling.
* Full backup now applies to any package, not just backup participants who
have declared their own android:backupAgent
* The process of running the backup operation on the set of apps who have
been queued for it is now done in a separate thread, with a notification
mechanism from the main Backup Manager service to pass along new-agent
binding knowledge. There's no longer one do-backup message on the primary
Handler per target application.
* The new backup thread sets up the desired transport now and passes
along the newly backed-up data to it for each backup target. Two
transports have been defined so far, GoogleTransport and AdbTransport;
both are stubs at present.

Note that at present the backup data output file seems to be properly
created, but after doBackup() is called on the test app's agent it's
still zero size.
om/android/server/BackupManagerService.java
om/android/server/am/ActivityManagerService.java
a2fe677487e65c3710ec38c530b92eb108cb372c 04-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 9654cba8: Merge change 3094 into donut

Merge commit '9654cba89ebf02b68bd7109df2d9f758a30fb8bf'

* commit '9654cba89ebf02b68bd7109df2d9f758a30fb8bf':
Grant permissions to older package when deleting an updated system application.
342d59d3197caa1cd1de7a600c6e0ba4a59883f4 04-Jun-2009 Mitsuru Oshima <oshima@google.com> am 9189cabb: * Moved supports-density tag under manifest * Refactored Compatibility code * Added CompatibilityInfo class * Removed getApplicationScale from Context * Added Resources#getCompatibilityInfo so that RootView can get the compatibility info w/o going through Context * Expandable support * Added expandable tag under manifest * Old application w/o expandable is given the default screen size ([320, 480] x density). * The non-expandable window is centered.

Merge commit '9189cabb0b6c6c28232fe6f412b7ba7a37352a6a'

* commit '9189cabb0b6c6c28232fe6f412b7ba7a37352a6a':
* Moved supports-density tag under manifest
9654cba89ebf02b68bd7109df2d9f758a30fb8bf 04-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 3094 into donut

* changes:
Grant permissions to older package when deleting an updated system application. When a system app gets updated, the permissions are granted to the new pkg. Similary when this updated pkg(from data partition) gets removed, the older pkg from system partition is restored. but the permissions are'nt being granted explicitly and so the restore fails. This fix addresses specific bugs related to uninstall of updated system apps. These code paths will be revisited later but this fix is needed for OTA's that might fall back to older versions of system apps.
9189cabb0b6c6c28232fe6f412b7ba7a37352a6a 03-Jun-2009 Mitsuru Oshima <oshima@google.com> * Moved supports-density tag under manifest
* Refactored Compatibility code
* Added CompatibilityInfo class
* Removed getApplicationScale from Context
* Added Resources#getCompatibilityInfo so that RootView can get the compatibility info w/o going through Context
* Expandable support
* Added expandable tag under manifest
* Old application w/o expandable is given the default screen size ([320, 480] x density).
* The non-expandable window is centered.
om/android/server/am/ActivityManagerService.java
138197f961b671ff5b48785b0fe61477ebfc7627 04-Jun-2009 Amith Yamasani <yamasani@google.com> am eaeb663b: Track activity foreground CPU usage for battery stats.

Merge commit 'eaeb663bcd7a82b654954b42663232cbd7bef7e7'

* commit 'eaeb663bcd7a82b654954b42663232cbd7bef7e7':
Track activity foreground CPU usage for battery stats.
701f5164c1230cc1416b1a1f3b0091ca68f6caec 04-Jun-2009 Suchi Amalapurapu <asuchitra@google.com> Grant permissions to older package when deleting an updated system application.
When a system app gets updated, the permissions are granted to the new pkg. Similary when this updated pkg(from data partition)
gets removed, the older pkg from system partition is restored. but the permissions are'nt being granted explicitly and so the restore fails.
This fix addresses specific bugs related to uninstall of updated system apps. These code paths will be revisited later but this fix is needed for OTA's that might
fall back to older versions of system apps.
om/android/server/PackageManagerService.java
eaeb663bcd7a82b654954b42663232cbd7bef7e7 04-Jun-2009 Amith Yamasani <yamasani@google.com> Track activity foreground CPU usage for battery stats.

Track the foreground CPU time of an activity so that we can tell if apps are
spending more time in the background compared to foreground.
Update power profile values for screen backlight and GPS.
Fix some javadoc bugs (milliseconds vs. microseconds).
om/android/server/ProcessStats.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/HistoryRecord.java
ae8c5b868fa518306b50e08da9e5258ad075fa61 03-Jun-2009 Satish Sampath <satish@android.com> am 8dbe612d: Adding internal method replacePreferredActivity.

Merge commit '8dbe612dc60526d635e57257b58627b33a099678'

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

This was required because we need a way to set the preferred activity for a
particular intent filter based on user selection (in our case the
ACTION_WEB_SEARCH intent filter for selecting the preferred search engine from
the list of available search engines providers). The current
addPreferredActivity call was not sufficient since it leaves the existing
preferred activities in the list and does not remove them, which this call
does.
om/android/server/PackageManagerService.java
8d3002e04755c0e7d0d1ed6c8f872c4bb2201f8e 02-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 35feec46: Merge change 2761 into donut

Merge commit '35feec46d90d434a2439765d127a9e8f68a52340'

* commit '35feec46d90d434a2439765d127a9e8f68a52340':
TODO's from Teleca with modifications from wink.
f315238a2b07c7e84f6ade800e504f520d262e66 01-Jun-2009 Wink Saville <wink@google.com> TODO's from Teleca with modifications from wink.
om/android/server/status/StatusBarPolicy.java
7c49790cde0acb494b6e8980662842c95dd8859a 01-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 162c9d0e: Merge change 2805 into donut

Merge commit '162c9d0e90eaa71adc8c7d1456d1a9a95e638c47'

* commit '162c9d0e90eaa71adc8c7d1456d1a9a95e638c47':
base: Rename WRITE_SDCARD -> WRITE_EXTERNAL_STORAGE
5a3a77dabd744d5be79d7745c2a977c108a9ad98 01-Jun-2009 San Mehat <san@google.com> base: Rename WRITE_SDCARD -> WRITE_EXTERNAL_STORAGE

Signed-off-by: San Mehat <san@google.com>
om/android/server/PackageManagerService.java
ad6042aa2342d0a869f84772774b47ae87346ccf 01-Jun-2009 Christopher Tate <ctate@google.com> am 181fafaf: Retool the backup process to use a new \'BackupAgent\' class

Merge commit '181fafaf48208978b8ba2022683ffa78aaeddde1'

* commit '181fafaf48208978b8ba2022683ffa78aaeddde1':
Retool the backup process to use a new 'BackupAgent' class
181fafaf48208978b8ba2022683ffa78aaeddde1 14-May-2009 Christopher Tate <ctate@google.com> Retool the backup process to use a new 'BackupAgent' class

Backups will be handled by launching the application in a special
mode under which no activities or services will be started, only
the BackupAgent subclass named in the app's android:backupAgent
manifest property. This takes the place of the BackupService class
used earlier during development.

In the cases of *full* backup or restore, an application that does
not supply its own BackupAgent will be launched in a restricted
manner; in particular, it will be using the default Application
class rather than any manifest-declared one. This ensures that the
app is not running any code that may try to manipulate its data
while the backup system reads/writes its data set.
om/android/server/BackupManagerService.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/BackupRecord.java
8e19b7c0e4c578703a1df0f8346b22b9e7c8a0f7 29-May-2009 Android (Google) Code Review <android-gerrit@google.com> am a3d28bd5: Merge change 520 into donut

Merge commit 'a3d28bd5c278f750c70f2b87fce23df221cd4a01'

* commit 'a3d28bd5c278f750c70f2b87fce23df221cd4a01':
Enforce permissions for PhoneStateListener events.
45515659438964ec47f4feac247f0e9dce587c86 24-Apr-2009 Jaikumar Ganesh <jaikumar@google.com> Enforce permissions for PhoneStateListener events.

PhoneStateListener events like LISTEN_CALL_STATE_CHANGED,
have privacy information like phone numbers and hence,
need to be protected with a permission. The permission
READ_PHONE_STATE is used for this purpose. Use the permission
trick to ensure backward compatability.
om/android/server/TelephonyRegistry.java
96cdc61c69aa735e65295a50e3e2922425b3c877 28-May-2009 Android (Google) Code Review <android-gerrit@google.com> am 1e2e44e9: Merge change 2365 into donut

Merge commit '1e2e44e900cb9a25d548e27a20d65292a7f321bc'

* commit '1e2e44e900cb9a25d548e27a20d65292a7f321bc':
Fix wifi multicast API for public use.
Revert "Bug fixes and performance improvements"
fc1b15cfbfc5f69235ec1f367abd7a909381cd05 23-May-2009 Robert Greenwalt <robdroid@android.com> Fix wifi multicast API for public use.

Applying API review comments and taking it public.
om/android/server/WifiService.java
ecd53112c5f03ed067f1c82a25bdae844f1d8caf 27-May-2009 Android (Google) Code Review <android-gerrit@google.com> am 2a4daf06: Merge change 2508 into donut

Merge commit '2a4daf06fb36ff932f9d52962284ba369cee1ce0'

* commit '2a4daf06fb36ff932f9d52962284ba369cee1ce0':
Activity Manager changes the scheduling group of processes.
06de2ea752171f52a4e6e6872cb3a0689e591dcb 21-May-2009 Dianne Hackborn <hackbod@google.com> Activity Manager changes the scheduling group of processes.

The algorithm for this is currently very simple: all persistent processes are
always in the normal scheduling group, all other processes are normal if their
oom_adj is as good or better than VISIBLE, otherwise they are in the background
group.

Note that this currently results in a fair number of log messages about not
being able to change the group, since the system process does not have
permission to do so. Once a kernel fix is in, these will go away and the code
will start working.
om/android/server/am/ActivityManagerService.java
om/android/server/am/ProcessRecord.java
b57d6c9939190f440d3e13adb5fafba6a0cf653d 23-May-2009 Mike Lockwood <lockwood@android.com> am 270e87f7: Sensors: Use a native_handle for the data channel instead of a single file descriptor.

Merge commit '270e87f71abc2edf446dbec20c725c823e8c7f37'

* commit '270e87f71abc2edf446dbec20c725c823e8c7f37':
Sensors: Use a native_handle for the data channel instead of a single file descriptor.
270e87f71abc2edf446dbec20c725c823e8c7f37 22-May-2009 Mike Lockwood <lockwood@android.com> Sensors: Use a native_handle for the data channel instead of a single file descriptor.

This eliminates the requirement that all sensors share a single file descriptor.
This, along with concurrent changes in other projects, fixes bugs b/1614524 and b/1614481

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/SensorService.java
a742dc421bd17117ec802b944190a1c731e05a91 23-May-2009 Android (Google) Code Review <android-gerrit@google.com> am fea1a459: Merge change 2364 into donut

Merge commit 'fea1a459aaebc5fd66b12520312ddbe09547f094'

* commit 'fea1a459aaebc5fd66b12520312ddbe09547f094':
Initial checkin for App Fuel Gauge infrastructure.
fea1a459aaebc5fd66b12520312ddbe09547f094 23-May-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 2364 into donut

* changes:
Initial checkin for App Fuel Gauge infrastructure.
385bb79ebb436e5672915eac2fc1a4fcdedf88b6 23-May-2009 Dianne Hackborn <hackbod@google.com> am b181118b: Define TARGET_CPU_ABI for finding native code in .apks

Merge commit 'b181118b6e58c0014da4e9d52bf38548adc73a8a'

* commit 'b181118b6e58c0014da4e9d52bf38548adc73a8a':
Define TARGET_CPU_ABI for finding native code in .apks
b181118b6e58c0014da4e9d52bf38548adc73a8a 22-May-2009 Dianne Hackborn <hackbod@google.com> Define TARGET_CPU_ABI for finding native code in .apks
om/android/server/PackageManagerService.java
244fa5c05b2cc8c4c0754aeed4ee42c588ea89d1 22-May-2009 Amith Yamasani <yamasani@google.com> Initial checkin for App Fuel Gauge infrastructure.

This adds the PowerProfile class and data file that provides power consumption numbers
for different subsystems. Also added Audio/Video subsystems to track on a per UID basis.
om/android/server/am/BatteryStatsService.java
4cf03d381b2dff908857fceff0bec445f8d44f36 22-May-2009 Jean-Baptiste Queru <jbq@google.com> Reconcile cupcake history into donut

Merge commit '5d6d773fab559fdc12e553d60d789f3991ac552c' into HEAD
b5010cc3c33c74cc406a70f34f93d330a3f0db6a 22-May-2009 Robert Greenwalt <robdroid@android.com> Add carrier/mcc factors to wifi-channel decision.

Uses ro.carrier and MCC when available to try to set
(non-persistingly) the number of allowed wifi channels.
Part of the fix for 1625953.
om/android/server/WifiService.java
9b1e1400df4c6c4b69985f164097f0c842dd796f 21-May-2009 Android (Google) Code Review <android-gerrit@google.com> am 8c690ea9: Merge change 2182 into donut

Merge commit '8c690ea9976d644db3c96eddbbbd2d50eac56913'

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

This change replaces ILocationCollector with a more general mechanism that
passes locations received from a provider to all other providers.
The network location provider now uses this to implement the location collector.
In the future, this could be used to inject network locations to the GPS
as aiding data.

This change also removes the now obsolete permission INSTALL_LOCATION_COLLECTOR.

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/LocationManagerService.java
bad962bf407bbb7a7ce296fb75f1883375afa832 20-May-2009 Android (Google) Code Review <android-gerrit@google.com> am e2914615: Merge change 2099 into donut

Merge commit 'e29146158b6048936671decc060d398a68333fc0'

* commit 'e29146158b6048936671decc060d398a68333fc0':
Hook up the backup data writer, and add a utility to read the backup data files.
681b1de3c7188b33cd02f189d50cb2cadd6af73a 20-May-2009 Android (Google) Code Review <android-gerrit@google.com> am a5ca3425: Merge change 2017 into donut

Merge commit 'a5ca3425f9cbb930dc62559893590432ed29c961'

* commit 'a5ca3425f9cbb930dc62559893590432ed29c961':
Increment BatteryStatsImpl's VERSION.
843ef36f7b96cc19ea7d2996b7c8661b41ec3452 20-May-2009 Jean-Baptiste Queru <jbq@google.com> donut snapshot
om/android/server/AlarmManagerService.java
om/android/server/AppWidgetService.java
om/android/server/BackupManagerService.java
om/android/server/BatteryService.java
om/android/server/ConnectivityService.java
om/android/server/DeviceStorageMonitorService.java
om/android/server/HeadsetObserver.java
om/android/server/IntentResolver.java
om/android/server/LocationManagerService.java
om/android/server/PackageManagerService.java
om/android/server/PowerManagerService.java
om/android/server/SystemServer.java
om/android/server/WifiService.java
om/android/server/WifiWatchdogService.java
om/android/server/WindowManagerService.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/AppBindRecord.java
om/android/server/am/BatteryStatsService.java
om/android/server/am/BroadcastFilter.java
om/android/server/am/ConnectionRecord.java
om/android/server/am/ContentProviderRecord.java
om/android/server/am/HistoryRecord.java
om/android/server/am/IntentBindRecord.java
om/android/server/am/PendingIntentRecord.java
om/android/server/am/ProcessRecord.java
om/android/server/am/ReceiverList.java
om/android/server/am/ServiceRecord.java
om/android/server/am/TaskRecord.java
om/android/server/am/UriPermission.java
om/android/server/am/UsageStatsService.java
om/android/server/status/IconMerger.java
om/android/server/status/StatusBarPolicy.java
d2110dbce071a236b6176de344ca797b737542eb 19-May-2009 Joe Onorato <joeo@android.com> Hook up the backup data writer, and add a utility to read the backup data files.
om/android/server/BackupManagerService.java
a5ca3425f9cbb930dc62559893590432ed29c961 20-May-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 2017 into donut

* changes:
Increment BatteryStatsImpl's VERSION. That'll make it stop trying to interpret older records with the new format. Also applied other comments involving name changes to remove un-needed 'Wifi' labels in WifiManager API, etc.
cad616ff92ff67bcfbbaefd6407c0f7f5e7549e7 20-May-2009 Android (Google) Code Review <android-gerrit@google.com> am 97dd7ac8: Merge change 1860 into donut

Merge commit '97dd7ac8ede4eec057977dd579f236519782be7c'

* commit '97dd7ac8ede4eec057977dd579f236519782be7c':
ActivityManagerService sends bug reports on crashes and ANRs
0bcad89a58ad49a0a836902ad41584777ca1f3f3 20-May-2009 Dianne Hackborn <hackbod@google.com> am 95fc68f2: Fix issue where apps could prevent the user from going home.

Merge commit '95fc68f24a2a93e5664e2234abcfe479d385cc05'

* commit '95fc68f24a2a93e5664e2234abcfe479d385cc05':
Fix issue where apps could prevent the user from going home.
f5b9c72022f574417862e064cc0fdd8ea2d846dc 18-May-2009 Jacek Surazski <jaceks@google.com> ActivityManagerService sends bug reports on crashes and ANRs

If an installerPackageName was specified when the app was installed,
looks for a receiver of ACTION_APP_ERROR in that package. If found,
this is the bug report receiver and the crash/ANR dialog will get a
"Report" button. If pressed, a bug report will be delivered.
om/android/server/am/ActivityManagerService.java
om/android/server/am/AppErrorDialog.java
om/android/server/am/AppNotRespondingDialog.java
om/android/server/am/ProcessRecord.java
95fc68f24a2a93e5664e2234abcfe479d385cc05 20-May-2009 Dianne Hackborn <hackbod@google.com> Fix issue where apps could prevent the user from going home.

Now we have a 5-second time after home is pressed, during which
only the home app (and the status bar) can switch to another app.
After that time, any start activity requests that occurred will
be executed, to allow things like alarms to be displayed. Also
if during that time the user launches another app, the pending
starts will be executed without resuming their activities and
the one they started placed at the top and executed.
om/android/server/am/ActivityManagerService.java
om/android/server/am/HistoryRecord.java
om/android/server/status/StatusBarService.java
58ff0217a617d5b03d18f0ef532f254f8ba6de2b 20-May-2009 Robert Greenwalt <robdroid@android.com> Increment BatteryStatsImpl's VERSION.
That'll make it stop trying to interpret older records with the new format.
Also applied other comments involving name changes to remove un-needed 'Wifi' labels in WifiManager API, etc.
om/android/server/WifiService.java
02436e51820bbae283830046caf3ed4cde95b5d8 19-May-2009 Mike Lockwood <lockwood@android.com> am ac61f6bc: Telephony: Allow getCellLocation() if client has permission ACCESS_FINE_LOCATION

Merge commit 'ac61f6bc2b24f7ab03cdb0089c67c4034ea8549c'

* commit 'ac61f6bc2b24f7ab03cdb0089c67c4034ea8549c':
Telephony: Allow getCellLocation() if client has permission ACCESS_FINE_LOCATION
ac61f6bc2b24f7ab03cdb0089c67c4034ea8549c 19-May-2009 Mike Lockwood <lockwood@android.com> Telephony: Allow getCellLocation() if client has permission ACCESS_FINE_LOCATION

ACCESS_FINE_LOCATION should imply ACCESS_COARSE_LOCATION, so either of these
permissions should be sufficient to allow TelephonyManager.getCellLocation().

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/TelephonyRegistry.java
e10de97205449ddeaaeb8f2922909c1f4cc62b86 18-May-2009 Michael Chan <mchan@android.com> Throttle one last user activity call to 1/sec that was missed last time

modified: services/java/com/android/server/WindowManagerService.java
om/android/server/WindowManagerService.java
e249059a666acd595c142d64eaa131b632546557 19-May-2009 Mihai Preda <preda@google.com> am c3320dbe: Minor performance improvement when filtering intents by package.

Merge commit 'c3320dbe1c7acf040a3ec895129d8aae09c570ea'

* commit 'c3320dbe1c7acf040a3ec895129d8aae09c570ea':
Minor performance improvement when filtering intents by package.
c3320dbe1c7acf040a3ec895129d8aae09c570ea 18-May-2009 Mihai Preda <preda@google.com> Minor performance improvement when filtering intents by package.

Don't consider the activities that have no intent filters.
om/android/server/PackageManagerService.java
ad8195bb0ea9ed087519d899402571c8608c0b48 19-May-2009 Android (Google) Code Review <android-gerrit@google.com> am 2f11599e: Merge change 1579 into donut

Merge commit '2f11599eb317887a8cca14d8e66bfc485e5169e7'

* commit '2f11599eb317887a8cca14d8e66bfc485e5169e7':
Teleca 2b changes
2f11599eb317887a8cca14d8e66bfc485e5169e7 19-May-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 1579 into donut

* changes:
Teleca 2b changes
e9b06d754af03faf27012fbed1e7559ec1ba7c79 19-May-2009 Wink Saville <wink@google.com> Teleca 2b changes
om/android/server/TelephonyRegistry.java
om/android/server/am/BatteryStatsService.java
om/android/server/status/StatusBarPolicy.java
d6fe98e8883242775d9c295c02ec6c9ffcab76d6 18-May-2009 Android (Google) Code Review <android-gerrit@google.com> am 7e4c3432: Merge change 1881 into donut

Merge commit '7e4c34329c98fc4279d658387b65ef4d041872a8'

* commit '7e4c34329c98fc4279d658387b65ef4d041872a8':
WifiService: Wifi power management change
ccee782cdaadaf28fbbddd3885f1a9ca2427bd2d 18-May-2009 Suchi Amalapurapu <asuchitra@google.com> am d1a93373: Add a new window flag to display a window when keyguard is shown.

Merge commit 'd1a9337380cf9f40f1aa095457b11242d483295d'

* commit 'd1a9337380cf9f40f1aa095457b11242d483295d':
Add a new window flag to display a window when keyguard is shown.
7e4c34329c98fc4279d658387b65ef4d041872a8 18-May-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 1881 into donut

* changes:
WifiService: Wifi power management change
d9c32bc838cb618dcbc1e48df02a34b6596b8930 18-May-2009 Mike Lockwood <lockwood@android.com> WifiService: Wifi power management change

Put Wifi into an idle state immediately if the screen is turned off and the Wifi interface has no IP address.
We will continue to keep Wifi up for 15 minutes in the case where the screen is turned off when Wifi is fully connected.
This will allow us to go into a low power mode faster when Wifi is not actively being used.
It also avoids bringing up Wifi if the user just turns on the screen for a few seconds to check the clock, etc.

Fixes bug b/1736920

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/WifiService.java
d1a9337380cf9f40f1aa095457b11242d483295d 15-May-2009 Suchi Amalapurapu <asuchitra@google.com> Add a new window flag to display a window when keyguard is shown.
om/android/server/WindowManagerService.java
e9e95e6f8ebc23a1c0350a8f06f10eb75869e8cc 18-May-2009 Android (Google) Code Review <android-gerrit@google.com> am 3a00d763: Merge change 1866 into donut

Merge commit '3a00d763dfb22982987e08f4c8751fe68451ed0d'

* commit '3a00d763dfb22982987e08f4c8751fe68451ed0d':
remove unused ContentResolver parameter from IntentResolver.queryIntent.
074edef7c4fce50fc780e864068305f01965e3ac 18-May-2009 Mihai Preda <preda@google.com> remove unused ContentResolver parameter from IntentResolver.queryIntent.
om/android/server/IntentResolver.java
om/android/server/PackageManagerService.java
om/android/server/am/ActivityManagerService.java
62da8461ed5317fe78ae5e3793662694e7fc99a3 14-May-2009 Dianne Hackborn <hackbod@google.com> Implement compatibility support for WRITE_SDCARD permission.

Now old applications will automatically be granted it. Also renamed it from
SDCARD_WRITE to WRITE_SDCARD to be consistent with our other permissions,
and re-arranged how we do targetSdkVersion to actually be usuable for this
kind of stuff.

Note that right now this results in basically all apps being given the
WRITE_SDCARD permission, because their targetSdkVersion is not set. I will
be dealing with that in a future change.
om/android/server/PackageManagerService.java
53071d6d159f6dfd6fe0328a39bcf967ef308a64 14-May-2009 Michael Chan <mchan@android.com> Added LatencyTimer to ease latency measurements

new file: core/java/android/os/LatencyTimer.java
modified: core/java/android/view/MotionEvent.java
modified: core/java/android/view/ViewRoot.java
modified: services/java/com/android/server/InputDevice.java
modified: services/java/com/android/server/KeyInputQueue.java
modified: services/java/com/android/server/WindowManagerService.java
om/android/server/InputDevice.java
om/android/server/KeyInputQueue.java
om/android/server/WindowManagerService.java
a96cbb435d7b2197ab2b61fd98d14cbd6e0c5c3d 14-May-2009 Dianne Hackborn <hackbod@google.com> Implement compatibility support for WRITE_SDCARD permission.

Now old applications will automatically be granted it. Also renamed it from
SDCARD_WRITE to WRITE_SDCARD to be consistent with our other permissions,
and re-arranged how we do targetSdkVersion to actually be usuable for this
kind of stuff.

Note that right now this results in basically all apps being given the
WRITE_SDCARD permission, because their targetSdkVersion is not set. I will
be dealing with that in a future change.
om/android/server/PackageManagerService.java
47ee3bc78e6e44230f36ea1e850c3d55d4a07b57 15-May-2009 Rebecca Schultz Zavin <rebecca@android.com> If battery status is unknown don't send BATTERY_LOW intent

Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
om/android/server/BatteryService.java
dd6face5a66ed6c9ac24b2754ec046b82881182c 15-May-2009 Mihai Preda <preda@google.com> am eae850ce: Allow intent resolution to be constrained by package name.

Merge commit 'eae850cefe7e149f396c9e8ca1f34ec02b20a3f0'

* commit 'eae850cefe7e149f396c9e8ca1f34ec02b20a3f0':
Allow intent resolution to be constrained by package name.
eae850cefe7e149f396c9e8ca1f34ec02b20a3f0 13-May-2009 Mihai Preda <preda@google.com> Allow intent resolution to be constrained by package name.
om/android/server/IntentResolver.java
om/android/server/PackageManagerService.java
76879bc2343779d4d2a870b7bd46b0544c0cc46c 15-May-2009 svetoslavganov <svetoslavganov@google.com> resolved conflicts w/ 75986cf9bc57ef11ad70f36fb77fbbf5d63af6ec merge....
75986cf9bc57ef11ad70f36fb77fbbf5d63af6ec 15-May-2009 svetoslavganov <svetoslavganov@google.com> Accessibility feature - framework changes (replacing 698, 699, 700, 701 and merging with the latest Donut)
om/android/server/AccessibilityManagerService.java
om/android/server/NotificationManagerService.java
om/android/server/SystemServer.java
aa2b7237d1e8c0c833fc19cd9d25a8d3700244a4 14-May-2009 Android (Google) Code Review <android-gerrit@google.com> am 2a5cfe51: Merge change 1590 into donut

Merge commit '2a5cfe519298702ef71ff8755b14f8daf6a92b2a'

* commit '2a5cfe519298702ef71ff8755b14f8daf6a92b2a':
Add wifi multicast filter api (enable/disable).
a64b860749ad7e5f9e887013d87b56b928c5d405 14-May-2009 Android (Google) Code Review <android-gerrit@google.com> am aa642c0c: Merge changes 1591,1596 into donut

Merge commit 'aa642c0cc20293137376d44f8221876c121e5be9'

* commit 'aa642c0cc20293137376d44f8221876c121e5be9':
Get the backup calling through to the file backup helper.
Fix typos.
Add a new feature to android.os.Debug to add the ability to inject only specific fields when calling setFieldsOn().
Fixes #1836075. Adds consistency checks for the View hierarchy. To enable them, you need a debug build and ViewDebug.sConsistencyCheckEnabled set to true in debug.prop. This change also lets you easily enable drawing and layout profiling in ViewRoot by setting ViewRoot.sProfileDrawing, ViewRoot.sProfileLayout and ViewRoot.sShowFps in debug.prop with a debug build.
Add Intent.ACTION_APP_ERROR
2a5cfe519298702ef71ff8755b14f8daf6a92b2a 14-May-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 1590 into donut

* changes:
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.
aa642c0cc20293137376d44f8221876c121e5be9 14-May-2009 Android (Google) Code Review <android-gerrit@google.com> Merge changes 1591,1596 into donut

* changes:
Add a new feature to android.os.Debug to add the ability to inject only specific fields when calling setFieldsOn().
Fixes #1836075. Adds consistency checks for the View hierarchy. To enable them, you need a debug build and ViewDebug.sConsistencyCheckEnabled set to true in debug.prop. This change also lets you easily enable drawing and layout profiling in ViewRoot by setting ViewRoot.sProfileDrawing, ViewRoot.sProfileLayout and ViewRoot.sShowFps in debug.prop with a debug build.
290bb011c5c1a9ba1f2116810b06cf52a9c36b3e 14-May-2009 Joe Onorato <joeo@android.com> Get the backup calling through to the file backup helper.

This includes some cleanup to make the parameters match
between BackupService.onBackup and FileBackupHelper.performBackup.
om/android/server/BackupManagerService.java
f0885c77948b16a93900bdaa312a7f362db8223d 14-May-2009 Dianne Hackborn <nobody@android.com> am b910811: am 5d6d773: AI 148824: Fix issue #1851541 (sharedUserId requ

Merge commit 'b91081113692acc87ae67f235956ae1cecab68cc'

* commit 'b91081113692acc87ae67f235956ae1cecab68cc':
AI 148824: Fix issue #1851541 (sharedUserId requests not being checked for matching signatures on .apk).
b91081113692acc87ae67f235956ae1cecab68cc 14-May-2009 Dianne Hackborn <nobody@android.com> am 5d6d773: AI 148824: Fix issue #1851541 (sharedUserId requests not bei

Merge commit '5d6d773fab559fdc12e553d60d789f3991ac552c' into donut

* commit '5d6d773fab559fdc12e553d60d789f3991ac552c':
AI 148824: Fix issue #1851541 (sharedUserId requests not being checked for matching signatures on .apk).
5d6d773fab559fdc12e553d60d789f3991ac552c 14-May-2009 Dianne Hackborn <nobody@android.com> AI 148824: Fix issue #1851541 (sharedUserId requests not being checked for matching signatures on .apk).
To address issues where we could leave half-installed applications around if there was a failure during the install, we split getPackageLP() into two phases: the first would create the record, and only after doing all verification checks would we call insertPackageSettingLP() to do the remaining part of the original implementation and actually insert the record into the data structures.
Unfortunately it was only in insertPackageSettingLP() that we would set the sharedUser field of the PackageSetting structure, so when before that we went to verify certificates, we didn't think it had requested a shared user ID, and let it through without checking.
This fix simply sets the sharedUser field when the PackageSetting structure is first created, so we will actually check against its certs. We still also set this again in insertPackageSettingLP(), but there is no harm in this because the only time we call this function is in that big install func, which just passes in the same shared user that it had when first getting the package.
BUG=1851541

Automated import of CL 148824
om/android/server/PackageManagerService.java
13922e03037d71a538f24ddf61c0b61bb4eb5af0 13-May-2009 Romain Guy <romainguy@android.com> Fixes #1836075. Adds consistency checks for the View hierarchy. To enable them, you need a debug build and ViewDebug.sConsistencyCheckEnabled set to true in debug.prop. This change also lets you easily enable drawing and layout profiling in ViewRoot by setting ViewRoot.sProfileDrawing, ViewRoot.sProfileLayout and ViewRoot.sShowFps in debug.prop with a debug build.
om/android/server/status/IconMerger.java
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.
om/android/server/WifiService.java
om/android/server/am/BatteryStatsService.java
97ecc9cbe7eccafc0923d7655daf07f4c2ea9791 12-May-2009 Wei Huang <weih@google.com> define Intent.ACTION_REMOTE_INTENT, which replaces the old GTalk data messaging intent "android.intent.action.GTALK_DATA_MESSAGE_RECEIVED".

The remote intent concept shouldn't be limited to Google or GTalkService. It should be owned by the Android platform.
om/android/server/MasterClearReceiver.java
09b87a7d18752923b9a9c7034929c0b97bb69034 13-May-2009 Joe Onorato <joeo@android.com> am 8ad0281: With this, the BackupService onBackup method is called.

Merge commit '8ad028117d4b99883bbc52b29f097b2fb1d9b0c2'

* commit '8ad028117d4b99883bbc52b29f097b2fb1d9b0c2':
With this, the BackupService onBackup method is called.
8ad028117d4b99883bbc52b29f097b2fb1d9b0c2 13-May-2009 Joe Onorato <joeo@android.com> With this, the BackupService onBackup method is called.

It took a bunch of refactoring inside BackupManagerService,
which is unfortunately all temporary anyway, but it unblocks
a bunch of stuff.
om/android/server/BackupManagerService.java
d2b4929ba00939c1aa5037927f27427637cc2f68 13-May-2009 Dianne Hackborn <hackbod@google.com> am ade3eca: Implement issue #1783881 (manifest option for adb-install-on

Merge commit 'ade3ecad94d1f4431576f53bae26c35efbf7a2c9'

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

You can now use android:testOnly="true" to not allow your .apk to be installed
as a normal app. The only way to do so is with the pm command and giving the
-t option, which sets a new INSTALL_ALLOW_TEST flag when installing.

I also used this to clean up the install API... actually, mostly to hide
it, since it is not accessible to apps so shouldn't be in the SDK. We
will be doing some more work on it, so this will prevent adding yet
another backwards-compatibility-for-no-reason version.
om/android/server/PackageManagerService.java
c64322c35212e919906ffd66118c7d5d3ad36636 28-Apr-2009 Jacek Surazski <jaceks@google.com> PackageManager keeps track of who installed what.

Stores the package name of the installer app in packages.xml
om/android/server/PackageManagerService.java
9e5d5d6fac951d4d97c4d1df250f6a0f67a95c77 12-May-2009 Mike Lockwood <lockwood@android.com> am 3681f26: LocationManager: Recover if process containing NetworkLocat

Merge commit '3681f2614fa8c10560c790f6b4287f65d6fd2663'

* commit '3681f2614fa8c10560c790f6b4287f65d6fd2663':
LocationManager: Recover if process containing NetworkLocation provider crashes
3681f2614fa8c10560c790f6b4287f65d6fd2663 12-May-2009 Mike Lockwood <lockwood@android.com> LocationManager: Recover if process containing NetworkLocation provider crashes

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/LocationManagerService.java
65e13171e12cb9e9fc2f608d0c8a92cd3c098648 28-Apr-2009 Jacek Surazski <jaceks@google.com> PackageManager keeps track of who installed what.

Stores the package name of the installer app in packages.xml
om/android/server/PackageManagerService.java
d01547761a8ec4bd1bcc4799a537b6fdcd9d24bc 11-May-2009 Dianne Hackborn <hackbod@google.com> am 1655be4: Fix issue #1837610 and #1753079

Merge commit '1655be46d2b7d45f071a6a1411ac8bd41c749c21'

* commit '1655be46d2b7d45f071a6a1411ac8bd41c749c21':
Fix issue #1837610 and #1753079
1655be46d2b7d45f071a6a1411ac8bd41c749c21 08-May-2009 Dianne Hackborn <hackbod@google.com> Fix issue #1837610 and #1753079

Issue 1837610 Adding a Widget before Running the Associated App Causes a Force Close

We were not retrieving the shared libraries of an application when deliving a
broadcast to an explicit component.

Issue 1753079 loading class path of instrumented app into instrumentation may load wrong path when instrumented app shares process with other apps:

We were using the ApplicationInfo that was used to originally create the process, not the one that the
instrumentation is against.
om/android/server/am/ActivityManagerService.java
om/android/server/am/ProcessRecord.java
710957c1417005418d0516a3ccb553e262f2c010 11-May-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 720

* changes:
Move ACTION_BATTERY_LOW logic to BatteryService (bug 1630733).
849e89c94d206d9723fd5635ed6e7a69814849e3 09-May-2009 Dianne Hackborn <hackbod@google.com> am 851a541: Implement targetSdkVersion and maxSdkVersion, plus version c

Merge commit '851a54143c15a1c33361efae2db3f7f45059b472'

* commit '851a54143c15a1c33361efae2db3f7f45059b472':
Implement targetSdkVersion and maxSdkVersion, plus version code names.
1246e3d56c12b6c19300eee60aca4128abc90016 09-May-2009 Android (Google) Code Review <android-gerrit@google.com> am c39aae0: Merge change 1278 into donut

Merge commit 'c39aae0ee060b4ff54ba0ab37fd1925ce191f013'

* commit 'c39aae0ee060b4ff54ba0ab37fd1925ce191f013':
Squashed commit of the following:
049315a0f6c1868498b57a5d2a86e4fd36a12a38 09-May-2009 Android (Google) Code Review <android-gerrit@google.com> am 7b59fe3: Merge change 1275 into donut

Merge commit '7b59fe316e23e05ef33648a855c2280dd8fad981'

* commit '7b59fe316e23e05ef33648a855c2280dd8fad981':
Make the internal storage monitor work correctly when internal storage is very large.
851a54143c15a1c33361efae2db3f7f45059b472 08-May-2009 Dianne Hackborn <hackbod@google.com> Implement targetSdkVersion and maxSdkVersion, plus version code names.

This adds new attributes for specifying a targetSdkVersion and maxSdkVersion.
There is a new ApplicationInfo flag that is set if the application has set
its targetSdkVersion to the current platform or later. Also you can now
use a string for minSdkVersion and targetSdkVerion, to indicate you are
building against a development tree instead of an official platform.
om/android/server/PackageManagerService.java
c39aae0ee060b4ff54ba0ab37fd1925ce191f013 08-May-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 1278 into donut

* changes:
Squashed commit of the following:
7b59fe316e23e05ef33648a855c2280dd8fad981 08-May-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 1275 into donut

* changes:
Make the internal storage monitor work correctly when internal storage is very large.
c2af31f89bf3688db066c6eaee44d3b6bdc1d6ef 08-May-2009 Suchi Amalapurapu <asuchitra@google.com> Squashed commit of the following:

commit 85585eb0860e52a3dc3b8efe57ef8b30ee35c98d
Author: Suchi Amalapurapu <asuchitra@google.com>
Date: Thu May 7 11:59:24 2009 -0700

Remove new error code in PackageManager.
Remove version check in installation code path. Let the install continue irrespective of version number.
Check if data needs to be wiped(for downgrades only) in uninstallation code path.
Also remove only code and resources when checking for updated system packages(via ota)
Add version attribute when persisting package settings

commit f90797348c5170e6263d249e4fc77f1c0328eb27
Author: Suchi Amalapurapu <asuchitra@google.com>
Date: Thu May 7 10:54:07 2009 -0700

remove trailing white spaces
hide new install code in PackageManager

commit 397eb81265160f73caf9827d381ed6622041d54e
Author: Suchi Amalapurapu <asuchitra@google.com>
Date: Thu May 7 10:33:23 2009 -0700

Add version check in install and uninstall code paths.
New error code for invalid upgrades in PackageManager
om/android/server/PackageManagerService.java
0bfbae2c3241112f14abca6c9792e759e85e1c5e 08-May-2009 Marco Nelissen <marcone@google.com> Make the internal storage monitor work correctly when internal storage is very large.
om/android/server/DeviceStorageMonitorService.java
3531fdb1d9a0ca536bd7a7a27d35b3e62c318ad9 08-May-2009 The Android Open Source Project <initial-contribution@android.com> merge 55280a9

Merge commit '55280a9'
55280a91884b9256e8db6af6a09f28b3feeaa9d8 08-May-2009 Dianne Hackborn <hackbod@google.com> Improve shutdown process to send broadcast for applications.

This introduces a new class in the base platform for performing a clean
shutdown (which was copied from the classes in the policies). It
includes new features to send a shutdown broadcast for applications
to do cleanup, and ot have the activity manager pause the current
activity before proceeding with the shutdown. These facilities are
also use to write at the most recent stat files for sync, battery
and user activity.
om/android/server/am/ActivityManagerService.java
om/android/server/am/BatteryStatsService.java
om/android/server/am/UsageStatsService.java
1a36071092c209ac763fdb48dcfe87043a2b2cf6 08-May-2009 The Android Open Source Project <initial-contribution@android.com> manual merge of 7ec32cc

Merge commit '7ec32cc'
b1a7ffef3a0007b6991b8338460f6aac8cbb11e8 07-May-2009 Joe Onorato <joeo@android.com> More backup tests
om/android/server/BackupManagerService.java
04f7e416b8259f3d61fe34fa637d3608c086e00f 07-May-2009 Android (Google) Code Review <android-gerrit@google.com> am 39bfa72: Merge change 1158 into donut

Merge commit '39bfa72172560b479fc100bf165883b86f5b2f5d'

* commit '39bfa72172560b479fc100bf165883b86f5b2f5d':
location: Fix mock provider support
95427cdbd802f7cb529d62bb79953c45b36a8fcf 07-May-2009 Mike Lockwood <lockwood@android.com> location: Fix mock provider support

Allow mock providers to be used for proximity alerts.
Clear calling identity so mock provider support does not fail due to
lack of INSTALL_LOCATION_PROVIDER permission.

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/LocationManagerService.java
a15f0fc6f70a5a67e3546e2816f63e6c5174cc6d 07-May-2009 Android (Google) Code Review <android-gerrit@google.com> am 5039606: Merge change 1152 into donut

Merge commit '50396063c2fbb1f427cf31e0b8a56567fb5a069c'

* commit '50396063c2fbb1f427cf31e0b8a56567fb5a069c':
location: Remove two unnecessary variables.
8dfe5d8c6ba9cb165994f09843abaa6302d63c1d 07-May-2009 Mike Lockwood <lockwood@android.com> location: Remove two unnecessary variables.

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/LocationManagerService.java
158b2129cfd50105305ca0c170163d59e9804106 07-May-2009 Android (Google) Code Review <android-gerrit@google.com> am f792fc5: Merge change 1150 into donut

Merge commit 'f792fc59c18aa470eb44cc596d5774115e2d9d02'

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

Location Providers are now responsible for their own wakelocks and scheduling.

Also fixed a deadlock in LocationManagerService in the code for releasing
wakelocks after client notifications have been received.
The fix is to use the Receiver object and mWakeLock for synchronization
instead of the global mLock lock.

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/LocationManagerService.java
a82842f98d64897e92e1012404863f940bd03d26 29-Apr-2009 Mihai Preda <preda@google.com> Move ACTION_BATTERY_LOW logic to BatteryService (bug 1630733).
om/android/server/BatteryService.java
om/android/server/status/StatusBarPolicy.java
eec4c7737b101355ee3378b2cdc46a0fbf3d15c1 07-May-2009 Michael Chan <nobody@android.com> am 05d24af: Merge branch \'readonly-p4-donut\' into donut

Merge commit '05d24afb61e2fbd137468a065fd58685e1a62d78'

* commit '05d24afb61e2fbd137468a065fd58685e1a62d78':
AI 148368: Decrease CPU usage by throttling touch events
05d24afb61e2fbd137468a065fd58685e1a62d78 07-May-2009 Michael Chan <nobody@android.com> Merge branch 'readonly-p4-donut' into donut
77066048f48fc99b76c0f828033b1f0c52e8c18e 07-May-2009 Android (Google) Code Review <android-gerrit@google.com> am 413cf5f: Merge change 1110 into donut

Merge commit '413cf5f4536b9c029d07f99b1c769c026313cd12'

* commit '413cf5f4536b9c029d07f99b1c769c026313cd12':
Track install/removal/update of packages that provide backup services
3799bc241b5cfc876cf082fbf39acc67c90a25b7 07-May-2009 Christopher Tate <ctate@google.com> Track install/removal/update of packages that provide backup services
om/android/server/BackupManagerService.java
959a4bcc4693b0ea69e1db15a8331c0993cfcc26 07-May-2009 Christopher Tate <ctate@google.com> am b1d790b: Pass null as savedState to indicate a full backup is require

Merge commit 'b1d790b63e2115be558d451efbc914d1f8dfa846'

* commit 'b1d790b63e2115be558d451efbc914d1f8dfa846':
Pass null as savedState to indicate a full backup is required
37dbf099170ec96df8f3f405345e5255ac8dfc21 07-May-2009 Android (Google) Code Review <android-gerrit@google.com> am 9a6f250: Merge change 1089 into donut

Merge commit '9a6f25033c51390cbcc4eec38f27e0ac35e97f1c'

* commit '9a6f25033c51390cbcc4eec38f27e0ac35e97f1c':
Add a Backup Manager interface to request a full backup
b1d790b63e2115be558d451efbc914d1f8dfa846 06-May-2009 Christopher Tate <ctate@google.com> Pass null as savedState to indicate a full backup is required
om/android/server/BackupManagerService.java
46758123868d91e7b186aebb27c4c4988dede43e 06-May-2009 Christopher Tate <ctate@google.com> Add a Backup Manager interface to request a full backup

Given a package name, the Backup Manager schedules a *full* (i.e. non-
incremental) backup pass for that package. Also added the state-file
handling for distinguishing to the target between the full and incremental
backup requests.
om/android/server/BackupManagerService.java
e96440fa15b9158690996dd1e5ef2096099d5388 06-May-2009 Michael Chan <nobody@android.com> AI 148368: Decrease CPU usage by throttling touch events
We are decreasing CPU usage at the cost of event latency. Events are queued up
and released to the app at the specified rate. You can
experiment with different values via:
adb shell setprop windowsmgr.max_events_per_sec 35
The new value is picked up when you let go and retouch the screen. No
reboot needed.
Also the following changes were made after profiling:
- In WindowManagerService, limit the call to userActivity() when we
have a flood touch events.
- In PowerManagerService, skip checking of permission if the caller
is system user.
- In PowerManagerService, integrated the functionality of gatherState()
into reactivateWakeLocksLocked(). They loop through the same data
structure and are called back to back.
BUG=1692771

Automated import of CL 148368
om/android/server/PowerManagerService.java
om/android/server/WindowManagerService.java
7a1355950172b7a549820e9a2cd4a9b2099ec32f 06-May-2009 Dianne Hackborn <hackbod@google.com> merged 231cc608d06ffc31c24bf8aa8c8275bdd2636581
dccc39b17ab85ad5b970dc299d95c0b53b4e7f25 06-May-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 777 into donut

* changes:
Rewrite SyncStorageEngine to use flat files and in-memory data structures.
17ac18e280b7667c3f25af2dd913811f8b4c617e 06-May-2009 Christopher Tate <ctate@google.com> am f417247: Further development of backup file handling

Merge commit 'f417247fa68524f2f34960f7389168eed7eb4a88'

* commit 'f417247fa68524f2f34960f7389168eed7eb4a88':
Further development of backup file handling
f417247fa68524f2f34960f7389168eed7eb4a88 06-May-2009 Christopher Tate <ctate@google.com> Further development of backup file handling

Put backup data in flight into /cache
Close the files and delete the intermediates after backup pass
om/android/server/BackupManagerService.java
231cc608d06ffc31c24bf8aa8c8275bdd2636581 28-Apr-2009 Dianne Hackborn <hackbod@google.com> Rewrite SyncStorageEngine to use flat files and in-memory data structures.

The previous implementation used a database for storing all of its state, which could cause
a significant amount of IO activity as its tables were updated through the stages of a sync.
This new implementation replaces that in-memory data structures, with hand-written code
for writing them to persistent storage.

There are now 4 files associated with this class, holding various pieces of its state that
should be consistent. These are everything from a main XML file of account information that
must always be retained, to a binary file of per-day statistics that can be thrown away at
any time. Writes of these files as scheduled at various times based on their importance of
the frequency at which they change.

Because the database no longer exists, there needs to be a new explicit interface for
interacting with the sync manager database. This is provided by new APIs on IContentService,
with a hidden method on ContentResolver to retrieve the IContentService so that various
system entities can use it. Other changes in other projects are required to update to the
new API.

The goal here is to have as little an impact on the code and functionality outside of
SyncStorageEngine, though due to the necessary change in API it is still somewhat extensive.
om/android/server/ConnectivityService.java
3cbab32afe8004483c3cb9b28c10703d690084a6 05-May-2009 Christopher Tate <ctate@google.com> am 22b8787: Squashed commit of the following:

Merge commit '22b8787ed4be8d4b7ed5d54802f9913fedb41425'

* commit '22b8787ed4be8d4b7ed5d54802f9913fedb41425':
Squashed commit of the following:
22b8787ed4be8d4b7ed5d54802f9913fedb41425 05-May-2009 Christopher Tate <ctate@google.com> Squashed commit of the following:

Author: Christopher Tate <ctate@google.com>
Date: Mon May 4 16:38:11 2009 -0700

IBackupService now passes ParcelFileDescriptors rather than int fds

The outlines of backup state file / data file handling are now in place as well
in the BackupManagerService.

Author: Christopher Tate <ctate@google.com>
Date: Thu Apr 30 12:40:19 2009 -0700

Hide the backup stuff for now

Also adjust based on comments:
+ changed service intent string to conform to usage guidelines
+ only publish the IBackupService binder when invoked with the right
intent action
+ docs tweaks
om/android/server/BackupManagerService.java
176ef2dfa4f0741ab5fab0545de01d47ad2842be 05-May-2009 Android (Google) Code Review <android-gerrit@google.com> am 1ab6e21: Merge change 909 into donut

Merge commit '1ab6e21237fc9f436be002d4f3821fce963a0a2a'

* commit '1ab6e21237fc9f436be002d4f3821fce963a0a2a':
Let screenOrientation="behind" works as expected
3413b8983a3af1c44ab7bafd186a56a5a116e5cc 02-May-2009 Owen Lin <owenlin@google.com> Let screenOrientation="behind" works as expected
om/android/server/WindowManagerService.java
e90c0da675a945a86ac06098c1f5694ddc4efb23 01-May-2009 Mike Lockwood <lockwood@android.com> am 275555c: location: Add support for location providers outside of the

Merge commit '275555c8eb3fb5df6e7320873b88b77cdde85a9e'

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

Also added new permissions android.permission.INSTALL_LOCATION_PROVIDER
and android.permission.INSTALL_LOCATION_COLLECTOR to the public API.

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/LocationManagerService.java
ac7a3de471da65ae3111560a1404c12985c8741f 01-May-2009 Mike Lockwood <lockwood@android.com> am 15e3d0f: location: Use ILocationProvider Binder interface for all loc

Merge commit '15e3d0f082d551f8819fbe4b0d502cc108627876'

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

This change eliminates the LocationProviderImpl class which had been used
for location providers running in the system process.
Now the LocationProvider base class is only used to implement the
LocationManager.createProvider() method for retrieving provider information.
Added a new IGpsStatusProvider interface for providers that serve GPS status.

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/LocationManagerService.java
718d8a2d7ff3e864a73879eb646f46c14ab74d07 30-Apr-2009 Fred Quintana <fredq@google.com> decouple SyncAdapter from ContentProvider
om/android/server/PackageManagerService.java
171fd532135b1bf2e585d3e28a6e5b1bd9ddecdc 01-May-2009 Android (Google) Code Review <android-gerrit@google.com> am 2cd006c: Merge change 837 into donut

Merge commit '2cd006c8f927d3e364c32f946b844377bdc56d3e'

* commit '2cd006c8f927d3e364c32f946b844377bdc56d3e':
Make the home screen come up in the simulator.
54796e740584b50323fe742a27e5d3f5be01ca06 01-May-2009 Marco Nelissen <marcone@google.com> Make the home screen come up in the simulator.
om/android/server/AppWidgetService.java
171134a0e292490b9e0737d03062cf560ef7d618 30-Apr-2009 Android (Google) Code Review <android-gerrit@google.com> am 021dce4: Merge change 811 into donut

Merge commit '021dce4198afbf602109ba5807a193c437b05361'

* commit '021dce4198afbf602109ba5807a193c437b05361':
Add android.backup.BackupManager
a8bf815c6153290b173f34b071dddb0a0034a115 30-Apr-2009 Christopher Tate <ctate@google.com> Add android.backup.BackupManager

Also tweak the dataChanged() api to have the client supply a package name. We
don't necessarily TRUST this, but we use it to narrow the set of packages requesting
a backup pass, no longer blithely scheduling a pass for all packages associated
with the caller's uid.
om/android/server/BackupManagerService.java
f8997690da3790a1ff87f1f96a6e68fbb79b5ddc 30-Apr-2009 Christopher Tate <ctate@google.com> am 487529a: First baby steps towards settings backup

Merge commit '487529a70cd1479ae8d6bbfb356be7e72542c185'

* commit '487529a70cd1479ae8d6bbfb356be7e72542c185':
First baby steps towards settings backup
487529a70cd1479ae8d6bbfb356be7e72542c185 29-Apr-2009 Christopher Tate <ctate@google.com> First baby steps towards settings backup

This change adds a sketched outline of the backup system architecture, with
all of the major pieces represented other than client-side helpers for
specific types of data. IBackupManager and BackupService are public so that
we can write test apps against SDK-domain symbols from the outset.

What code exists in this change hasn't been tested and may crash. It's the
beginnings of the real implementation but of course is barely begun.
om/android/server/BackupManagerService.java
om/android/server/SystemServer.java
212548f634e80f419b29f547afb9472d7353cf2b 29-Apr-2009 Android (Google) Code Review <android-gerrit@google.com> am 76b25e5: Merge change 692 into donut

Merge commit '76b25e5e78dde3443f9c57c47e5989ad8ff43771'

* commit '76b25e5e78dde3443f9c57c47e5989ad8ff43771':
location: Optimize use of mProviders ArrayList.
73ee32d41b4874f650be20f2f3e3c0c7d172e33c 29-Apr-2009 Mike Lockwood <lockwood@android.com> am b8adcad: location: Remove obsolete fake provider support.

Merge commit 'b8adcad61d9225ecdabde1a01b73455f484cbed7'

* commit 'b8adcad61d9225ecdabde1a01b73455f484cbed7':
location: Remove obsolete fake provider support.
05d024329604bb92dca02f1ecdff4876d6d7b28c 29-Apr-2009 Mike Lockwood <lockwood@android.com> am 79762a3: location: Move DummyLocationProvider.java and LocationProvid

Merge commit '79762a3ee34eb8be5549bcb183af844b6f19c266'

* commit '79762a3ee34eb8be5549bcb183af844b6f19c266':
location: Move DummyLocationProvider.java and LocationProviderImpl.java to the internal package.
7c8dbb5418f69e75b2f06547b94e4fc4d3190ec1 29-Apr-2009 Android (Google) Code Review <android-gerrit@google.com> am 7cb8ed2: Merge change 414 into donut

Merge commit '7cb8ed23ab81b7cffdff6fc1cad473f55732ea66'

* commit '7cb8ed23ab81b7cffdff6fc1cad473f55732ea66':
location: Run LocationManagerService in a separate thread.
093dda9dec68029278cdf28b2a2d92bc5cdedcbc 29-Apr-2009 Android (Google) Code Review <android-gerrit@google.com> am 5fa1533: Merge change 482 into donut

Merge commit '5fa153302c1c7f179bfd6ddd301e7526b8c06de5'

* commit '5fa153302c1c7f179bfd6ddd301e7526b8c06de5':
location: Location Manager wakelock cleanup, phase 2
137b0c9d6430ccb519c82a1198048cf413e06c5e 29-Apr-2009 Android (Google) Code Review <android-gerrit@google.com> am 0b8ffd1: Merge change 460 into donut

Merge commit '0b8ffd17bc6641fc522db3e842a868b6cdbf6d82'

* commit '0b8ffd17bc6641fc522db3e842a868b6cdbf6d82':
More optimization of dumpsys output.
662ea09a71ab241774456f7bd4791a3532904da3 28-Apr-2009 Mike Lockwood <lockwood@android.com> location: Optimize use of mProviders ArrayList.

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/LocationManagerService.java
b8adcad61d9225ecdabde1a01b73455f484cbed7 28-Apr-2009 Mike Lockwood <lockwood@android.com> location: Remove obsolete fake provider support.

Now that we have GPS support in the emulator and public APIs for mock providers,
the fake provider support is no longer needed.

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/LocationManagerService.java
79762a3ee34eb8be5549bcb183af844b6f19c266 28-Apr-2009 Mike Lockwood <lockwood@android.com> location: Move DummyLocationProvider.java and LocationProviderImpl.java to the internal package.

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/LocationManagerService.java
3d12b51ee38537f6760a833618948f936e75561d 22-Apr-2009 Mike Lockwood <lockwood@android.com> location: Run LocationManagerService in a separate thread.

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/LocationManagerService.java
48f17518223a2917fd82195004fbb206cb9a05a3 23-Apr-2009 Mike Lockwood <lockwood@android.com> location: Location Manager wakelock cleanup, phase 2

Remove two second timeout for wakelock when broadcasting events to
location listeners. Instead, hold wakelock until receipt of the event
is acknowledged, either via a Binder call or the
PendingIntent.OnFinished interface.

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/LocationManagerService.java
0b8ffd17bc6641fc522db3e842a868b6cdbf6d82 23-Apr-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 460 into donut

* changes:
More optimization of dumpsys output.
1d442e0d990b581357f33f5463c7c5cb49b551e8 21-Apr-2009 Dianne Hackborn <hackbod@google.com> More optimization of dumpsys output.

There are three major classes of changes here:

- Avoid writing lines where their values are often empty, false, or some other typical thing.
- Use partial writes to the PrintWriter to avoid creating temporary strings.
- Use StringBuilder where we need to generate real String objects (and where possible cache the result).
om/android/server/AlarmManagerService.java
om/android/server/AppWidgetService.java
om/android/server/IntentResolver.java
om/android/server/PackageManagerService.java
om/android/server/WindowManagerService.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/AppBindRecord.java
om/android/server/am/BatteryStatsService.java
om/android/server/am/BroadcastFilter.java
om/android/server/am/ConnectionRecord.java
om/android/server/am/ContentProviderRecord.java
om/android/server/am/HistoryRecord.java
om/android/server/am/IntentBindRecord.java
om/android/server/am/PendingIntentRecord.java
om/android/server/am/ProcessRecord.java
om/android/server/am/ReceiverList.java
om/android/server/am/ServiceRecord.java
om/android/server/am/TaskRecord.java
om/android/server/am/UriPermission.java
74008f608af0c567456d37e63d48643689388c74 23-Apr-2009 Jean-Baptiste Queru <jbq@google.com> Merge donut into master
a0e3cd3853da1d14da4918c49d25128622cf0610 22-Apr-2009 Mike Lockwood <lockwood@android.com> Fix timing problem that was introduced when we removed location provider polling

The wake lock was not being held until after we enabled location tracking,
so the check to see if the wake lock was held before propogating a
new location prevented us from receiving a network location as soon as we
enabled the provider.
This check is not necessary anyway, so this change removes it.

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/LocationManagerService.java
9ce7217c8eb4141bda68b85641814958da58a7ab 22-Apr-2009 Mike Lockwood <lockwood@android.com> location: Remove support for a message that never actually gets sent.

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/LocationManagerService.java
61fc286e8f7e33d0dd2a1e72ae9ef73ed3f42a00 22-Apr-2009 Mike Lockwood <lockwood@android.com> location: Remove unnecessary code that monitors the screen on/off state.

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/LocationManagerService.java
3ea1f8759ddc0b714558d3c8f1e153d1d89f301f 22-Apr-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 372 into donut

* changes:
WifiService: Cleanup parsing of wifi scan results.
b30475ecef84303600302b6790420bcc66631bf0 21-Apr-2009 Mike Lockwood <lockwood@android.com> WifiService: Cleanup parsing of wifi scan results.

Also add support for possitive RSSI values, fixing b/1786306

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/WifiService.java
6de3154674a268b0e109990a1f4c2742dfdc9c66 21-Apr-2009 Mike Lockwood <lockwood@android.com> location: Add some null pointer checks.

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/LocationManagerService.java
31d40ab260bbf8b73a50dea29995192579a11947 21-Apr-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 360 into donut

* changes:
location: Location Manager wakelock cleanup, phase 1
e2b44c5aaff312fbb00e66dd42b8444938017672 21-Apr-2009 Mike Lockwood <lockwood@android.com> location: Location Manager wakelock cleanup, phase 1

Move cell and wifi lock from LocationManagerService to NetworkLocationProvider

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/LocationManagerService.java
c421e9ad74cd4244bf51bb68dbe3019b3959b290 20-Apr-2009 Dmitry Shmidt <> Merge branch 'readonly-p4-master'
69d27108e493c9d0b7e51199799f85780d618b38 20-Apr-2009 Dmitry Shmidt <> AI 146935: am: CL 146934 Make TI Wifi driver choice framework-independent - part 1
Original author: dimitrysh

Automated import of CL 146935
om/android/server/WifiWatchdogService.java
6d31eb895340f3b25f1388dd4ce1a4314de9a267 20-Apr-2009 Dmitry Shmidt <> Merge branch 'readonly-p4-donut' into donut
42554c10b61f747c0689f2304f19a2af17b886ce 20-Apr-2009 Dmitry Shmidt <> AI 146934: Make TI Wifi driver choice framework-independent - part 1
BUG=1786365

Automated import of CL 146934
om/android/server/WifiWatchdogService.java
98cb66797422c4ccdee6f1a07636146d784a471b 18-Apr-2009 Mike Lockwood <lockwood@android.com> More Location Manager cleanup:

Move LocationCollector support out of GpsLocationProvider.
Don't disable GPS when screen is off.

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/LocationManagerService.java
2f82c4eb0b4d315481ad79725ad6f52c5ec69685 17-Apr-2009 Mike Lockwood <lockwood@android.com> location: Generalize support for location provider usage tracking.

This replaces two different mechanisms that were used for GPS and Netork
location provider tracking.
Move BatteryStats logging of GPS usage from LocationManagerService to
GpsLocationProvider.
Clean up tracking of location listeners in LocationManagerService and remove
some HashMaps that are no longer needed.

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/LocationManagerService.java
a55c321329ae52a2db7a4f2bd36673a20b8f271d 15-Apr-2009 Mike Lockwood <lockwood@android.com> location: Move geocoding support from ILocationProvider to a new interface.

Signed-off-by: Mike Lockwood <lockwood@android.com>
om/android/server/LocationManagerService.java
f2aad4a468da1958bb12277d42754ccb42038537 14-Apr-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 132 into donut

* changes:
Let's do bug #1769910 actually right.
f210d6b75e2c0fe60b90c074ff9f615c1137f23e 14-Apr-2009 Dianne Hackborn <hackbod@google.com> Let's do bug #1769910 actually right.

My original implementation was computing averages and medians. Now we do binning, as requested. So much simpler, too! In addition, it fixes a bug where when hoping across activities we were only accounting for the last activity as the total time; now we count the time from the start of the initial activity.

This also includes some reduction and optimization of the activity manager dumpsys output.
om/android/server/am/ActivityManagerService.java
om/android/server/am/ConnectionRecord.java
om/android/server/am/ContentProviderRecord.java
om/android/server/am/HistoryRecord.java
om/android/server/am/ProcessRecord.java
om/android/server/am/ReceiverList.java
om/android/server/am/ServiceRecord.java
om/android/server/am/UsageStatsService.java
0887540fa8cad30fa7688d3cd86904d61c9550c3 13-Apr-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 63 into donut

* changes:
Remove references to android.util.Config
06ba55476ee9703c876d223cd41bd73c5f85f42d 10-Apr-2009 Christopher Tate <ctate@google.com> Integrate new power connnect/disconnect broadcasts

Two new broadcasts, Intent.ACTION_POWER_CONNECTED and
Intent.ACTION_POWER_CONNECTED, that are issued when the device is plugged
and unplugged from USB or AC power. This pulls two changes from the
open-source Gerrit repo into the internal Donut codeline:

1241 fda6fae Added broadcasts for external power events.
9491 37f8ca1 Fix system service crash when booting while on battery power

The current.xml API description has also been updated to include the
new Intent fields; the new API was approved in the original OSS change.
om/android/server/BatteryService.java
cfe6524071624b6679e5fa4db847328e8d0317c8 09-Apr-2009 Dave Bort <dbort@android.com> Remove references to android.util.Config

The semantics of Config.DEBUG will be changing soon, and all other
Config.* fields will become deprecated/hidden.
om/android/server/WindowManagerService.java
3267062d9c6a34786025bc25abe6484244c731cb 09-Apr-2009 Nick Pelly <> Merge branch 'readonly-p4-master'
babf19136cc373e5f169abc9be5c1f25f243d9d0 09-Apr-2009 Nick Pelly <> AI 145203: am: CL 145201 Hold wakelock while delaying for audio route switch after headset unplug.
Fixes bug where we go to sleep before switching audio, and we lose audio until the apps CPU wakes up again.
Original author: npelly

Automated import of CL 145203
om/android/server/HeadsetObserver.java
7680d67dc7445ba65a4fc4307afe24b20b333a52 09-Apr-2009 Nick Pelly <> Merge branch 'readonly-p4-donut' into donut
9ac932179c704822c7ae5c7accb02119b578254e 09-Apr-2009 Nick Pelly <> AI 145201: Hold wakelock while delaying for audio route switch after headset unplug.
Fixes bug where we go to sleep before switching audio, and we lose audio until the apps CPU wakes up again.
BUG=1774615

Automated import of CL 145201
om/android/server/HeadsetObserver.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.
om/android/server/BatteryService.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/BatteryStatsService.java
om/android/server/am/HistoryRecord.java
om/android/server/am/UsageStatsService.java
c92bb0cfe3dac076bc621f4c2844b3174561d169 06-Apr-2009 Mike Lockwood <> Merge branch 'readonly-p4-master'
c1e8aa4c448807fc3ee9d21e8b67bb886fa065aa 06-Apr-2009 Mike Lockwood <> AI 144664: am: CL 144663 Use Binder interfaces between NetworkLocationManager and LocationManagerService.
This fixes a hack that was added when NetworkLocationManager was moved out of the framework.
This also lays the groundwork for supporting location providers outside of the system process.
BUG=1729031
Original author: lockwood

Automated import of CL 144664
om/android/server/LocationManagerService.java
e932f7f2a47b770c636443d411436bd29cc4bb43 06-Apr-2009 Mike Lockwood <> AI 144663: Use Binder interfaces between NetworkLocationManager and LocationManagerService.
This fixes a hack that was added when NetworkLocationManager was moved out of the framework.
This also lays the groundwork for supporting location providers outside of the system process.
BUG=1729031

Automated import of CL 144663
om/android/server/LocationManagerService.java
113853c3f82551f52ca1aca83322b300431e16cf 06-Apr-2009 Mike Lockwood <> Merge branch 'readonly-p4-master'
a3e952e3251081e2dfe3c747346d3b7006beeee5 06-Apr-2009 Mike Lockwood <> AI 144621: am: CL 144620 Clean up interface between NetworkLocationProvider and LocationManagerService (part 1)
Move broadcast receivers for wifi scan results and battery status
from LocationManagerService to NetworkLocationProvider
Add a Service for the NetworkLocationProvider, so we can install it from its
own thread rather than from BOOT_COMPLETED or callback from LocationManagerService.
(this Service was also required for receiving Intents in NetworkLocationProvider)
BUG=1729031
Original author: lockwood

Automated import of CL 144621
om/android/server/LocationManagerService.java
f113fbe67b878b356fba11873276d7633ec1af22 06-Apr-2009 Mike Lockwood <> AI 144620: Clean up interface between NetworkLocationProvider and LocationManagerService (part 1)
Move broadcast receivers for wifi scan results and battery status
from LocationManagerService to NetworkLocationProvider
Add a Service for the NetworkLocationProvider, so we can install it from its
own thread rather than from BOOT_COMPLETED or callback from LocationManagerService.
(this Service was also required for receiving Intents in NetworkLocationProvider)
BUG=1729031

Automated import of CL 144620
om/android/server/LocationManagerService.java
50e4aa3ccf93283287930b293b8291111f309fd4 05-Apr-2009 Mike Lockwood <> Merge branch 'readonly-p4-master'
33aa27856f4aa1ad870de3552089973a9afad6ca 05-Apr-2009 Mike Lockwood <> AI 144600: am: CL 144599 Location Manager cleanup:
Move PhoneStateListener for listening to cell location changes from LocationManagerService
to the NetworkLocationProvider.
Move CellState class out of the core framework to the NetworkLocationProvider service.
NetworkLocationManager now notifies the collector of its state, rather than LocationManagerService.
BUG=1729031
Original author: lockwood

Automated import of CL 144600
om/android/server/LocationManagerService.java
66eb4acb89a5e54bdb5b9973e9a1c1b9853d154d 05-Apr-2009 Mike Lockwood <> AI 144599: Location Manager cleanup:
Move PhoneStateListener for listening to cell location changes from LocationManagerService
to the NetworkLocationProvider.
Move CellState class out of the core framework to the NetworkLocationProvider service.
NetworkLocationManager now notifies the collector of its state, rather than LocationManagerService.
BUG=1729031

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

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

Automated import of CL 144452
om/android/server/LocationManagerService.java
48554fc78e981590708cc2cb78ce3c09642e2c4d 03-Apr-2009 Mike Lockwood <> Merge branch 'readonly-p4-master'
bd2a7126e5b42e022228c6aac25e95b671e5263b 03-Apr-2009 Mike Lockwood <> AI 144415: am: CL 144372 Cleanup Settings support for enabling and disabling location providers:
LocationManagerService now listens for changes to settings,
making LocationManager.updateProviders() unnecessary.
Removed LocationManager.updateProviders()
Added Settings.Secure.setLocationProviderEnabled(), which is a thread-safe way
of enabling or disabling a single location provider.
This is safer than reading, modifying and writing the LOCATION_PROVIDERS_ALLOWED directly.
BUG=1729031
Original author: lockwood

Automated import of CL 144415
om/android/server/LocationManagerService.java
f6afef350aa9958c75f14db5469caf068730ff01 03-Apr-2009 Evan Millar <> Merge branch 'readonly-p4-master'
0ba31ed95ed7ac9b5627973f0bb1b5d9147ea95f 03-Apr-2009 Evan Millar <> AI 144410: am: CL 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).
Original author: emillar

Automated import of CL 144410
om/android/server/BatteryService.java
om/android/server/am/BatteryStatsService.java
9bb6ef5ad3c387467232da40c99f23384423d505 03-Apr-2009 Amith Yamasani <> Merge branch 'readonly-p4-master'
3e276b18b4c502b9a169442525b76c56588f2436 03-Apr-2009 Amith Yamasani <> AI 144395: am: CL 144257 am: CL 144256 Need to show opt-in screen for location collection.
Added a screen to the setup wizard, after login, to ask user to
opt-in for location collection.
Added a dialog to Settings when user turns on Network location.
Fixed a security permission issue in LocationManagerService related
to this change.
Original author: yamasani
Merged from: //branches/cupcake/...
Original author: android-build

Automated import of CL 144395
om/android/server/LocationManagerService.java
9637d474899d9725da8a41fdf92b9bd1a15d301e 03-Apr-2009 Mike Lockwood <> AI 144372: Cleanup Settings support for enabling and disabling location providers:
LocationManagerService now listens for changes to settings,
making LocationManager.updateProviders() unnecessary.
Removed LocationManager.updateProviders()
Added Settings.Secure.setLocationProviderEnabled(), which is a thread-safe way
of enabling or disabling a single location provider.
This is safer than reading, modifying and writing the LOCATION_PROVIDERS_ALLOWED directly.
BUG=1729031

Automated import of CL 144372
om/android/server/LocationManagerService.java
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
om/android/server/BatteryService.java
om/android/server/am/BatteryStatsService.java
d3af72792792dbd332446993c941e2714032d09f 02-Apr-2009 The Android Open Source Project <initial-contribution@android.com> Merge branch 'readonly-p4-master'

Conflicts:

telephony/java/com/android/internal/telephony/gsm/RIL.java
resolved by removing gsm/RIL.java
e1ccba2113910acc95284abc1f1a0a477b8af36f 02-Apr-2009 Amith Yamasani <> AI 144257: am: CL 144256 Need to show opt-in screen for location collection.
Added a screen to the setup wizard, after login, to ask user to
opt-in for location collection.
Added a dialog to Settings when user turns on Network location.
Fixed a security permission issue in LocationManagerService related
to this change.
Original author: yamasani
Merged from: //branches/cupcake/...

Automated import of CL 144257
om/android/server/LocationManagerService.java
29c1c42e18a72a3c5760a9fb741031877293d5aa 02-Apr-2009 Amith Yamasani <> AI 144256: Need to show opt-in screen for location collection.
Added a screen to the setup wizard, after login, to ask user to
opt-in for location collection.
Added a dialog to Settings when user turns on Network location.
Fixed a security permission issue in LocationManagerService related
to this change.
BUG=1752566

Automated import of CL 144256
om/android/server/LocationManagerService.java
04e71b3db84fd5f7fc4eefb49a33154ea91ec9fc 02-Apr-2009 Wink Saville <> AI 144245: Fix merge conflict for megering in the CDMA changes in to master from donutburger.

Automated import of CL 144245
om/android/server/status/StatusBarPolicy.java
767a662ecde33c3979bf02b793d392aca0403162 02-Apr-2009 Wink Saville <> AI 144185: Integrate cdma into the main code base.

Automated import of CL 144185
om/android/server/status/StatusBarPolicy.java
caee1703fee75fbf37ba7774db64479a33cda82b 01-Apr-2009 The Android Open Source Project <initial-contribution@android.com> Merge commit 'goog/readonly-p4-master'
7ac3f67c179ec77caeee59b86d87d4ec007c4586 01-Apr-2009 Dianne Hackborn <> AI 143901: am: CL 143899 am: CL 143896 Fix issue #1748954 and #1737952:
#1748954 (New status bar fades into all white background): FrameLayout wasn't updating its foreground drawable when its padding changed, which would happen as the status bar is shown and hidden. To fix this I also ended up fixing a problem in the view debug stuff where we couldn't get a bitmap for a view that is the full screen size because it is too big... actually I just went ahead and added another function to snapshot the view hierarchy which works a lot better for us anyway.
#1737952 (Home screen icons overlap with the notification bar after exiting any camera app): Originally I punted this because it only happened in rare situations, but now that home is always portrait it happens a lot more so it is more important to fix. This involved a few things to clean up hiding/showing the status bar:
- We now determine when to hide and show it during layout, which allows us to do this at the time it is actually needed rather than during animation after we can actually catch it for the initial display of a window. This required tweaking the layout API so the policy can request a second layout pass if needed.
- When doing layout, we are now much more aggressive about skipping the layout of windows. Basically anything that we know will be hidden in the near future is ignored for layout, so that it doesn't glitch as it is transfered out of the screen. The theory being that it is better to leave it as it was originally placed while we are transitioning it out, than to switch it to something slightly more correct.
Original author: hackbod
Merged from: //branches/cupcake/...
Original author: android-build
Merged from: //branches/donutburger/...

Automated import of CL 143901
om/android/server/WindowManagerService.java
958b9adc086f126dcd757d29f0d7f443ae9064b2 01-Apr-2009 Dianne Hackborn <> AI 143899: am: CL 143896 Fix issue #1748954 and #1737952:
#1748954 (New status bar fades into all white background): FrameLayout wasn't updating its foreground drawable when its padding changed, which would happen as the status bar is shown and hidden. To fix this I also ended up fixing a problem in the view debug stuff where we couldn't get a bitmap for a view that is the full screen size because it is too big... actually I just went ahead and added another function to snapshot the view hierarchy which works a lot better for us anyway.
#1737952 (Home screen icons overlap with the notification bar after exiting any camera app): Originally I punted this because it only happened in rare situations, but now that home is always portrait it happens a lot more so it is more important to fix. This involved a few things to clean up hiding/showing the status bar:
- We now determine when to hide and show it during layout, which allows us to do this at the time it is actually needed rather than during animation after we can actually catch it for the initial display of a window. This required tweaking the layout API so the policy can request a second layout pass if needed.
- When doing layout, we are now much more aggressive about skipping the layout of windows. Basically anything that we know will be hidden in the near future is ignored for layout, so that it doesn't glitch as it is transfered out of the screen. The theory being that it is better to leave it as it was originally placed while we are transitioning it out, than to switch it to something slightly more correct.
Original author: hackbod
Merged from: //branches/cupcake/...

Automated import of CL 143899
om/android/server/WindowManagerService.java
b3785307143556f3aba228f4c81fac96fda09ea1 01-Apr-2009 Dianne Hackborn <> AI 143896: Fix issue #1748954 and #1737952:
#1748954 (New status bar fades into all white background): FrameLayout wasn't updating its foreground drawable when its padding changed, which would happen as the status bar is shown and hidden. To fix this I also ended up fixing a problem in the view debug stuff where we couldn't get a bitmap for a view that is the full screen size because it is too big... actually I just went ahead and added another function to snapshot the view hierarchy which works a lot better for us anyway.
#1737952 (Home screen icons overlap with the notification bar after exiting any camera app): Originally I punted this because it only happened in rare situations, but now that home is always portrait it happens a lot more so it is more important to fix. This involved a few things to clean up hiding/showing the status bar:
- We now determine when to hide and show it during layout, which allows us to do this at the time it is actually needed rather than during animation after we can actually catch it for the initial display of a window. This required tweaking the layout API so the policy can request a second layout pass if needed.
- When doing layout, we are now much more aggressive about skipping the layout of windows. Basically anything that we know will be hidden in the near future is ignored for layout, so that it doesn't glitch as it is transfered out of the screen. The theory being that it is better to leave it as it was originally placed while we are transitioning it out, than to switch it to something slightly more correct.
BUG=1748954,1737952

Automated import of CL 143896
om/android/server/WindowManagerService.java
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
om/android/server/HardwareService.java
om/android/server/PowerManagerService.java
om/android/server/WifiService.java
om/android/server/WindowManagerService.java
om/android/server/am/BatteryStatsService.java
bed30e1b6ea4a1d71dbe5e731c274cc66974283a 31-Mar-2009 Dianne Hackborn <> AI 143823: am: CL 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/...
Original author: android-build
Merged from: //branches/donutburger/...

Automated import of CL 143823
om/android/server/HardwareService.java
om/android/server/PowerManagerService.java
om/android/server/WifiService.java
om/android/server/WindowManagerService.java
om/android/server/am/BatteryStatsService.java
65c8e11a31ded66cf024ec800a63f76dc4c83dab 31-Mar-2009 Dianne Hackborn <> AI 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.
BUG=1743326

Automated import of CL 143748
om/android/server/HardwareService.java
om/android/server/PowerManagerService.java
om/android/server/WifiService.java
om/android/server/WindowManagerService.java
om/android/server/am/BatteryStatsService.java
762d30a31365e5cae9ba7c2802de60a2f8c3513d 29-Mar-2009 The Android Open Source Project <initial-contribution@android.com> Merge branch 'open_source' into google_internal

Conflicts:
core/java/android/widget/TwoLineListItem.java
core/res/res/values/public.xml
preloaded-classes
5711fadfc48f0e77bc25a91ef36c76acb0d2f55a 28-Mar-2009 Eric Shienbrood <> AI 143266: am: CL 143124 Fix bug #1731826, in which auto-connect to remembered networks does not
take place.
This has the same underlying cause as bug #1739874, so this fixes that
bug as well. The problem was that if the supplicant was in the DORMANT
state at the time a scan-only Wi-Fi lock was released, the command to
stop the Wi-Fi driver would never be issued. This had two main results:
first, the driver would stay awake when the screen was blank and it was
supposed to be sleeping, leading to excessive battery drain, and second,
when the screen was turned back on, there would be no DRIVER-STARTED
event generated (because the driver was already running). The
DRIVER-STARTED event is the trigger for the framework to issue a
RECONNECT command to the supplicant to cause it leave the DORMANT state
and look for available remembered networks.
To assist in tracking down this problem, and any such problems in the
future, I added four counters to keep track of how many times full and
scan-only Wi-Fi locks are acquired and released. The counter values
are output in the dump() method of WifiService. While doing this, I
noticed that because of missing "break" statements, the battery stats
that keep track of how much time Wi-Fi locks are held were including
the time for full locks in the time reported for scan-only locks.
Original author: ers
Merged from: //branches/cupcake/...

Automated import of CL 143266
om/android/server/WifiService.java
eeced213029d25047788eaec52db4d8b7e0ac280 28-Mar-2009 Eric Shienbrood <> AI 143395: am: CL 143266 am: CL 143124 Fix bug #1731826, in which auto-connect to remembered networks does not
take place.
This has the same underlying cause as bug #1739874, so this fixes that
bug as well. The problem was that if the supplicant was in the DORMANT
state at the time a scan-only Wi-Fi lock was released, the command to
stop the Wi-Fi driver would never be issued. This had two main results:
first, the driver would stay awake when the screen was blank and it was
supposed to be sleeping, leading to excessive battery drain, and second,
when the screen was turned back on, there would be no DRIVER-STARTED
event generated (because the driver was already running). The
DRIVER-STARTED event is the trigger for the framework to issue a
RECONNECT command to the supplicant to cause it leave the DORMANT state
and look for available remembered networks.
To assist in tracking down this problem, and any such problems in the
future, I added four counters to keep track of how many times full and
scan-only Wi-Fi locks are acquired and released. The counter values
are output in the dump() method of WifiService. While doing this, I
noticed that because of missing "break" statements, the battery stats
that keep track of how much time Wi-Fi locks are held were including
the time for full locks in the time reported for scan-only locks.
Original author: ers
Merged from: //branches/cupcake/...
Original author: android-build
Merged from: //branches/donutburger/...

Automated import of CL 143395
om/android/server/WifiService.java
b41349409b75cdc23558241eeb255e4ac4f46222 28-Mar-2009 The Android Open Source Project <initial-contribution@android.com> Merge commit 'goog/cupcake'
052eb7131bae3b8c6939cf147ab7b0c6d736202a 28-Mar-2009 Dianne Hackborn <> AI 143323: am: CL 143173 am: CL 142879 Fix issue #1732012 (Only show screen rotation animation when triggered by sensor) -- set the new surface flag as appropriate.
Original author: hackbod
Merged from: //branches/cupcake/...
Original author: android-build
Merged from: //branches/donutburger/...

Automated import of CL 143323
om/android/server/WindowManagerService.java
e4fbd6235c8d1c5b0ed4883ec275dd3fc9c919fb 28-Mar-2009 Dianne Hackborn <> AI 143318: am: CL 143169 am: CL 142870 Fix issue #1724917 (Applications (browser, maps, gmail) fail to retain their landscape state after coming out of sleep mode). We now rely on the listeners last known orientation, and make sure to clear it when enabling/disabling.
Also do most of the work for issue #1732012 (Only show screen rotation animation when triggered by sensor). This just needs to be hooked up to the surface flinger API when that appears.
Original author: hackbod
Merged from: //branches/cupcake/...
Original author: android-build
Merged from: //branches/donutburger/...

Automated import of CL 143318
om/android/server/WindowManagerService.java
f8dd2e1d4b3a24bd4afdc391cc5fcdf555c991b1 28-Mar-2009 Mike Lockwood <> AI 143287: am: CL 143095 Location Manager cleanup: move MockProvider to a separate file.
BUG=1729031
Original author: lockwood
Merged from: //branches/donutburger/...

Automated import of CL 143287
om/android/server/LocationManagerService.java
321ae681cad03d00ad1efc6f06f74268e00172a9 28-Mar-2009 Dianne Hackborn <> AI 143173: am: CL 142879 Fix issue #1732012 (Only show screen rotation animation when triggered by sensor) -- set the new surface flag as appropriate.
Original author: hackbod
Merged from: //branches/cupcake/...

Automated import of CL 143173
om/android/server/WindowManagerService.java
1e880dba106b14619c3eaf94c5dc2d1a943645bc 28-Mar-2009 Dianne Hackborn <> AI 143169: am: CL 142870 Fix issue #1724917 (Applications (browser, maps, gmail) fail to retain their landscape state after coming out of sleep mode). We now rely on the listeners last known orientation, and make sure to clear it when enabling/disabling.
Also do most of the work for issue #1732012 (Only show screen rotation animation when triggered by sensor). This just needs to be hooked up to the surface flinger API when that appears.
Original author: hackbod
Merged from: //branches/cupcake/...

Automated import of CL 143169
om/android/server/WindowManagerService.java
e1861133d51b9e6a6f658eb366630ad4f4d3ff8f 27-Mar-2009 The Android Open Source Project <initial-contribution@android.com> Merge commit 'korg/cupcake'

Conflicts:
core/java/android/webkit/WebView.java
core/java/android/widget/TwoLineListItem.java
preloaded-classes
50108e9282031bbd3a22683061496285a806403e 27-Mar-2009 Eric Shienbrood <> AI 143124: Fix bug #1731826, in which auto-connect to remembered networks does not
take place.
This has the same underlying cause as bug #1739874, so this fixes that
bug as well. The problem was that if the supplicant was in the DORMANT
state at the time a scan-only Wi-Fi lock was released, the command to
stop the Wi-Fi driver would never be issued. This had two main results:
first, the driver would stay awake when the screen was blank and it was
supposed to be sleeping, leading to excessive battery drain, and second,
when the screen was turned back on, there would be no DRIVER-STARTED
event generated (because the driver was already running). The
DRIVER-STARTED event is the trigger for the framework to issue a
RECONNECT command to the supplicant to cause it leave the DORMANT state
and look for available remembered networks.
To assist in tracking down this problem, and any such problems in the
future, I added four counters to keep track of how many times full and
scan-only Wi-Fi locks are acquired and released. The counter values
are output in the dump() method of WifiService. While doing this, I
noticed that because of missing "break" statements, the battery stats
that keep track of how much time Wi-Fi locks are held were including
the time for full locks in the time reported for scan-only locks.
BUG=1731826,1739874

Automated import of CL 143124
om/android/server/WifiService.java
7ec434e2e179776d75c8a4da66dcfd2ee630c5d8 27-Mar-2009 Mike Lockwood <> AI 143095: Location Manager cleanup: move MockProvider to a separate file.
BUG=1729031

Automated import of CL 143095
om/android/server/LocationManagerService.java
cc95667b9cb1c8e61b4addd6b1aff7f09902d5c8 26-Mar-2009 Dianne Hackborn <> Automated import from //branches/cupcake/...@142879,142879
om/android/server/WindowManagerService.java
02771bcb5d2156a58b825a5f8132fdf575ea862d 26-Mar-2009 Dianne Hackborn <> Automated import from //branches/cupcake/...@142870,142870
om/android/server/WindowManagerService.java
2ad63a9d773ba987e85ee6a23b0a0724d86d4b0e 26-Mar-2009 Chris Tate <> Automated import from //branches/donutburger/...@142784,142784
om/android/server/WindowManagerService.java
9ed4a4b0d7dadeadd57bd81e2cc538670d9654b9 26-Mar-2009 Dianne Hackborn <> Automated import from //branches/donutburger/...@142722,142722
om/android/server/PowerManagerService.java
om/android/server/WindowManagerService.java
82a0c4615e838bba11f50e111f6ca4a7243528ae 26-Mar-2009 Chris Tate <> Automated import from //branches/master/...@142785,142785
om/android/server/WindowManagerService.java
0f8fc102b9e309a32e76c05c969d3b5e03f8b39e 26-Mar-2009 Chris Tate <> Automated import from //branches/cupcake/...@142783,142783
om/android/server/WindowManagerService.java
95518a712c48c7718eab6301cf348a7e0f1c46d3 26-Mar-2009 Dianne Hackborn <> Automated import from //branches/master/...@142765,142765
om/android/server/PowerManagerService.java
om/android/server/WindowManagerService.java
2f847b9e052abc6eb5950b733b4718bb7820dd42 25-Mar-2009 Dianne Hackborn <> Automated import from //branches/cupcake/...@142651,142651
om/android/server/PowerManagerService.java
om/android/server/WindowManagerService.java
603073430bbcb1bd29db7afb9b14e2732ad589fb 25-Mar-2009 Fred Quintana <> Automated import from //branches/master/...@142414,142414
om/android/server/SystemServer.java
d86c7821270a0d4e4710f8eef6ee111e80bd5125 25-Mar-2009 Dianne Hackborn <> Automated import from //branches/master/...@142402,142402
om/android/server/WindowManagerService.java
4840e143df9804e3399a4e0341c0601f80d65d6e 25-Mar-2009 Dianne Hackborn <> Automated import from //branches/master/...@142348,142348
om/android/server/TelephonyRegistry.java
om/android/server/am/BatteryStatsService.java
om/android/server/status/StatusBarPolicy.java
c485a60a32342ff4e5db5c707f28a0816b4c2ff4 25-Mar-2009 Dianne Hackborn <> Automated import from //branches/donutburger/...@142397,142397
om/android/server/WindowManagerService.java
627bba736d022c39696b7c582a6af5592d2b8c33 25-Mar-2009 Dianne Hackborn <> Automated import from //branches/donutburger/...@142347,142347
om/android/server/TelephonyRegistry.java
om/android/server/am/BatteryStatsService.java
om/android/server/status/StatusBarPolicy.java
18523b6f317f7a75eba30810855b4d3dbb40073a 25-Mar-2009 Ed Heyl <> Automated import from //branches/master/...@142240,142240
om/android/server/am/ActivityManagerService.java
7379823e59e3769a9c547fe253def34bbffcaf38 25-Mar-2009 Ed Heyl <> Automated import from //branches/donutburger/...@142239,142239
om/android/server/am/ActivityManagerService.java
84108d918a64ee3d92e047f5a8c1ca5029f2a056 25-Mar-2009 Suchi Amalapurapu <> Automated import from //branches/master/...@141959,141959
om/android/server/PackageManagerService.java
c4dd60fd4a8df20f01f3f43c3e7b15a5252f51a7 25-Mar-2009 Suchi Amalapurapu <> Automated import from //branches/donutburger/...@141958,141958
om/android/server/PackageManagerService.java
3119a4522bacb7760f45c36ee2a713d189b08152 25-Mar-2009 Romain Guy <> Automated import from //branches/master/...@141525,141525
om/android/server/PackageManagerService.java
96f4357e065124eda502ee5ad29b6d327d7ad446 25-Mar-2009 Romain Guy <> Automated import from //branches/donutburger/...@141523,141523
om/android/server/PackageManagerService.java
a9ccf3e79983e8bf795e1312d455c53b5d8c803a 25-Mar-2009 Joe Onorato <> Automated import from //branches/master/...@141410,141410
om/android/server/PowerManagerService.java
64c62ba503c73eee1fb647ffcc1b3df287640ab1 25-Mar-2009 Joe Onorato <> Automated import from //branches/donutburger/...@141409,141409
om/android/server/PowerManagerService.java
8a7dc17790b7f24e8e819eca46d14c4471230eba 25-Mar-2009 Chris Tate <> Automated import from //branches/donutburger/...@141391,141391
om/android/server/am/ActivityManagerService.java
8f91d2b5c93017330264f71afc17848295250bf6 25-Mar-2009 Chris Tate <> Automated import from //branches/master/...@141392,141392
om/android/server/am/ActivityManagerService.java
9d4de636236f7e9a09bd73bd16378c287c82b017 25-Mar-2009 Dianne Hackborn <> Automated import from //branches/cupcake/...@142392,142392
om/android/server/WindowManagerService.java
c1e8446279381bdd728688d10285951ef8228ed1 25-Mar-2009 Joe Onorato <> Automated import from //branches/donutburger/...@141086,141086
om/android/server/HardwareService.java
om/android/server/NotificationManagerService.java
95e4f70624ae9695bdd9029eb22a9e271401fbd5 25-Mar-2009 Joe Onorato <> Automated import from //branches/master/...@141087,141087
om/android/server/HardwareService.java
om/android/server/NotificationManagerService.java
99c6026218a87074e50b3c0921c1ab7786887cc8 25-Mar-2009 Dianne Hackborn <> Automated import from //branches/cupcake/...@142342,142342
om/android/server/TelephonyRegistry.java
om/android/server/am/BatteryStatsService.java
om/android/server/status/StatusBarPolicy.java
ef49c57bdcdb6c808870570c205434b002431c37 25-Mar-2009 Dianne Hackborn <> Automated import from //branches/donutburger/...@141079,141079
om/android/server/WindowManagerService.java
79050e84fd832e653943ffc9e0d5955e447bc12e 25-Mar-2009 Dianne Hackborn <> Automated import from //branches/master/...@141080,141080
om/android/server/WindowManagerService.java
e68ffcb5764152da6d36adc8f2918200b4472c23 25-Mar-2009 Joe Onorato <> Automated import from //branches/donutburger/...@140997,140997
om/android/server/PowerManagerService.java
om/android/server/WindowManagerService.java
36197e77c34b33135b4a3dc89d36ce80320dcd72 25-Mar-2009 Joe Onorato <> Automated import from //branches/master/...@141000,141000
om/android/server/PowerManagerService.java
om/android/server/WindowManagerService.java
2ce107ce3177053eccd1b0b492a74bd6ce943c24 25-Mar-2009 Jim Miller <> Automated import from //branches/cupcake/...@142154,142154
om/android/server/am/ActivityManagerService.java
7f0ed3c071132a2ad1f4a7a973de06415881c365 25-Mar-2009 Suchi Amalapurapu <> Automated import from //branches/cupcake/...@141957,141957
om/android/server/PackageManagerService.java
a1baba701741e2496cd1c371abf1696ee34c6d42 25-Mar-2009 Joe Onorato <> Automated import from //branches/master/...@140851,140851
om/android/server/PowerManagerService.java
128e729c493042d694df9d285ea390e25e2c3fde 25-Mar-2009 Joe Onorato <> Automated import from //branches/donutburger/...@140846,140846
om/android/server/PowerManagerService.java
f63220f58e29673eba1c6228c04b43fb680af5f2 25-Mar-2009 Dianne Hackborn <> Automated import from //branches/donutburger/...@140828,140828
om/android/server/PackageManagerService.java
om/android/server/am/ActivityManagerService.java
04750b6b431b8a43c62ae06ec3201fbd30caa178 25-Mar-2009 Dianne Hackborn <> Automated import from //branches/master/...@140830,140830
om/android/server/PackageManagerService.java
om/android/server/am/ActivityManagerService.java
d2bf42a96e052019d71f10cba652246fe09e09cb 25-Mar-2009 Eric Fischer <> Automated import from //branches/donutburger/...@140781,140781
om/android/server/status/DateView.java
209bdae7b3a70e8391176dcfd9587791aa7a18da 25-Mar-2009 Eric Fischer <> Automated import from //branches/master/...@140786,140786
om/android/server/status/DateView.java
f93f02fb8a6b6bdbc294085d89e733dcd5078630 25-Mar-2009 Eric Shienbrood <> Automated import from //branches/master/...@140680,140680
om/android/server/WifiService.java
om/android/server/am/BatteryStatsService.java
d4c5f8919b0522bcaab41a5863c313fec52d3a79 25-Mar-2009 Eric Shienbrood <> Automated import from //branches/donutburger/...@140679,140679
om/android/server/WifiService.java
om/android/server/am/BatteryStatsService.java
c2ad241504fcaa12d4579d3b0b4038d1ca8d08c9 20-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake_rel/...@141571
om/android/server/HardwareService.java
om/android/server/NotificationManagerService.java
om/android/server/PackageManagerService.java
om/android/server/PowerManagerService.java
om/android/server/WifiService.java
om/android/server/WindowManagerService.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/BatteryStatsService.java
om/android/server/status/DateView.java
105925376f8d0f6b318c9938c7b83ef7fef094da 19-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake_rel/...@140373
om/android/server/BatteryService.java
om/android/server/HardwareService.java
om/android/server/HeadsetObserver.java
om/android/server/InputMethodManagerService.java
om/android/server/KeyInputQueue.java
om/android/server/LocationManagerService.java
om/android/server/NotificationManagerService.java
om/android/server/PackageManagerService.java
om/android/server/PowerManagerService.java
om/android/server/SystemServer.java
om/android/server/ViewServer.java
om/android/server/WifiService.java
om/android/server/WindowManagerService.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/BatteryStatsService.java
om/android/server/status/StatusBarPolicy.java
om/android/server/status/StatusBarService.java
om/android/server/status/TrackingPatternView.java
2a73de7b21a89aa2ba4c254d28658b49793425b2 18-Mar-2009 Jean-Baptiste Queru <jbq@google.com> Merge commit 'remotes/korg/cupcake' into merge

Conflicts:
core/java/android/view/animation/TranslateAnimation.java
core/jni/Android.mk
core/res/res/values-en-rGB/strings.xml
libs/audioflinger/AudioFlinger.cpp
libs/surfaceflinger/LayerScreenshot.cpp
packages/SettingsProvider/src/com/android/providers/settings/SettingsProvider.java
ba87e3e6c985e7175152993b5efcc7dd2f0e1c93 13-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake_rel/...@138607
om/android/server/MountService.java
om/android/server/PackageManagerService.java
om/android/server/TelephonyRegistry.java
c39a6e0c51e182338deb8b63d07933b585134929 11-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@137873
om/android/server/AppWidgetService.java
om/android/server/GadgetService.java
om/android/server/SystemServer.java
om/android/server/WindowManagerService.java
b2a3dd88a53cc8c6d19f6dc8ec4f3d6c4abd9b54 09-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@137197
ndroid.mk
om/android/server/InputMethodManagerService.java
om/android/server/WifiService.java
f5b4b98fada53d91c4c2ebeb5a1d33ccc95c94d2 06-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@136745
om/android/server/am/ActivityManagerService.java
4df2423a947bcd3f024cc3d3a1a315a8dc428598 05-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@136594
om/android/server/InputMethodManagerService.java
om/android/server/LocationManagerService.java
om/android/server/SensorService.java
om/android/server/WindowManagerService.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/HistoryRecord.java
c474dec3ffa1c0fe37edb3e701684188f7e8e7bc 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135863
om/android/server/WindowManagerService.java
9066cfe9886ac131c34d59ed0e2d287b0e3c0087 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
om/android/server/AlarmManagerService.java
om/android/server/AttributeCache.java
om/android/server/BatteryService.java
om/android/server/BootReceiver.java
om/android/server/BrickReceiver.java
om/android/server/ClipboardService.java
om/android/server/ConnectivityService.java
om/android/server/DemoDataSet.java
om/android/server/DeviceStorageMonitorService.java
om/android/server/FallbackCheckinService.java
om/android/server/GadgetService.java
om/android/server/HardwareService.java
om/android/server/HeadsetObserver.java
om/android/server/InputDevice.java
om/android/server/InputMethodManagerService.java
om/android/server/Installer.java
om/android/server/IntentResolver.java
om/android/server/KeyInputQueue.java
om/android/server/LoadAverageService.java
om/android/server/LocationManagerService.java
om/android/server/MasterClearReceiver.java
om/android/server/MountListener.java
om/android/server/MountService.java
om/android/server/NetStatService.java
om/android/server/NotificationManagerService.java
om/android/server/PackageManagerService.java
om/android/server/PowerManagerService.java
om/android/server/ProcessMap.java
om/android/server/ProcessStats.java
om/android/server/SensorService.java
om/android/server/SystemServer.java
om/android/server/TelephonyRegistry.java
om/android/server/ViewServer.java
om/android/server/WallpaperService.java
om/android/server/Watchdog.java
om/android/server/WifiService.java
om/android/server/WifiWatchdogService.java
om/android/server/WindowManagerService.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityResult.java
om/android/server/am/AppBindRecord.java
om/android/server/am/AppErrorDialog.java
om/android/server/am/AppErrorResult.java
om/android/server/am/AppNotRespondingDialog.java
om/android/server/am/AppWaitingForDebuggerDialog.java
om/android/server/am/BaseErrorDialog.java
om/android/server/am/BatteryStatsService.java
om/android/server/am/BroadcastFilter.java
om/android/server/am/BroadcastRecord.java
om/android/server/am/ConnectionRecord.java
om/android/server/am/ContentProviderRecord.java
om/android/server/am/DeviceMonitor.java
om/android/server/am/FactoryErrorDialog.java
om/android/server/am/HistoryRecord.java
om/android/server/am/IntentBindRecord.java
om/android/server/am/PendingIntentRecord.java
om/android/server/am/PendingThumbnailsRecord.java
om/android/server/am/ProcessRecord.java
om/android/server/am/ReceiverList.java
om/android/server/am/ServiceRecord.java
om/android/server/am/TaskRecord.java
om/android/server/am/UriPermission.java
om/android/server/am/UsageStatsService.java
om/android/server/am/package.html
om/android/server/status/AnimatedImageView.java
om/android/server/status/CloseDragHandle.java
om/android/server/status/DateView.java
om/android/server/status/ExpandedView.java
om/android/server/status/FixedSizeDrawable.java
om/android/server/status/IconData.java
om/android/server/status/IconMerger.java
om/android/server/status/LatestItemView.java
om/android/server/status/NotificationData.java
om/android/server/status/NotificationLinearLayout.java
om/android/server/status/NotificationViewList.java
om/android/server/status/StatusBarException.java
om/android/server/status/StatusBarIcon.java
om/android/server/status/StatusBarNotification.java
om/android/server/status/StatusBarPolicy.java
om/android/server/status/StatusBarService.java
om/android/server/status/StatusBarView.java
om/android/server/status/Ticker.java
om/android/server/status/TickerView.java
om/android/server/status/TrackingView.java
om/android/server/status/package.html
d83a98f4ce9cfa908f5c54bbd70f03eec07e7553 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
om/android/server/AlarmManagerService.java
om/android/server/AttributeCache.java
om/android/server/BatteryService.java
om/android/server/BootReceiver.java
om/android/server/BrickReceiver.java
om/android/server/ClipboardService.java
om/android/server/ConnectivityService.java
om/android/server/DemoDataSet.java
om/android/server/DeviceStorageMonitorService.java
om/android/server/FallbackCheckinService.java
om/android/server/GadgetService.java
om/android/server/HardwareService.java
om/android/server/HeadsetObserver.java
om/android/server/InputDevice.java
om/android/server/InputMethodManagerService.java
om/android/server/Installer.java
om/android/server/IntentResolver.java
om/android/server/KeyInputQueue.java
om/android/server/LoadAverageService.java
om/android/server/LocationManagerService.java
om/android/server/MasterClearReceiver.java
om/android/server/MountListener.java
om/android/server/MountService.java
om/android/server/NetStatService.java
om/android/server/NotificationManagerService.java
om/android/server/PackageManagerService.java
om/android/server/PowerManagerService.java
om/android/server/ProcessMap.java
om/android/server/ProcessStats.java
om/android/server/SensorService.java
om/android/server/SystemServer.java
om/android/server/TelephonyRegistry.java
om/android/server/ViewServer.java
om/android/server/WallpaperService.java
om/android/server/Watchdog.java
om/android/server/WifiService.java
om/android/server/WifiWatchdogService.java
om/android/server/WindowManagerService.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityResult.java
om/android/server/am/AppBindRecord.java
om/android/server/am/AppErrorDialog.java
om/android/server/am/AppErrorResult.java
om/android/server/am/AppNotRespondingDialog.java
om/android/server/am/AppWaitingForDebuggerDialog.java
om/android/server/am/BaseErrorDialog.java
om/android/server/am/BatteryStatsService.java
om/android/server/am/BroadcastFilter.java
om/android/server/am/BroadcastRecord.java
om/android/server/am/ConnectionRecord.java
om/android/server/am/ContentProviderRecord.java
om/android/server/am/DeviceMonitor.java
om/android/server/am/FactoryErrorDialog.java
om/android/server/am/HistoryRecord.java
om/android/server/am/IntentBindRecord.java
om/android/server/am/PendingIntentRecord.java
om/android/server/am/PendingThumbnailsRecord.java
om/android/server/am/ProcessRecord.java
om/android/server/am/ReceiverList.java
om/android/server/am/ServiceRecord.java
om/android/server/am/TaskRecord.java
om/android/server/am/UriPermission.java
om/android/server/am/UsageStatsService.java
om/android/server/am/package.html
om/android/server/status/AnimatedImageView.java
om/android/server/status/CloseDragHandle.java
om/android/server/status/DateView.java
om/android/server/status/ExpandedView.java
om/android/server/status/FixedSizeDrawable.java
om/android/server/status/IconData.java
om/android/server/status/IconMerger.java
om/android/server/status/LatestItemView.java
om/android/server/status/NotificationData.java
om/android/server/status/NotificationLinearLayout.java
om/android/server/status/NotificationViewList.java
om/android/server/status/StatusBarException.java
om/android/server/status/StatusBarIcon.java
om/android/server/status/StatusBarNotification.java
om/android/server/status/StatusBarPolicy.java
om/android/server/status/StatusBarService.java
om/android/server/status/StatusBarView.java
om/android/server/status/Ticker.java
om/android/server/status/TickerView.java
om/android/server/status/TrackingView.java
om/android/server/status/package.html
076357b8567458d4b6dfdcf839ef751634cd2bfb 03-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@132589
om/android/server/AlarmManagerService.java
om/android/server/BatteryService.java
om/android/server/GadgetService.java
om/android/server/HardwareService.java
om/android/server/LocationManagerService.java
om/android/server/MountService.java
om/android/server/NotificationManagerService.java
om/android/server/PackageManagerService.java
om/android/server/PowerManagerService.java
om/android/server/SystemServer.java
om/android/server/TelephonyRegistry.java
om/android/server/WindowManagerService.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/BaseErrorDialog.java
om/android/server/am/BatteryStatsService.java
om/android/server/status/StatusBarPolicy.java
om/android/server/status/StatusBarService.java
3dec7d563a2f3e1eb967ce2054a00b6620e3558c 03-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@137055
om/android/server/AlarmManagerService.java
om/android/server/BatteryService.java
om/android/server/GadgetService.java
om/android/server/HardwareService.java
om/android/server/LocationManagerService.java
om/android/server/MountService.java
om/android/server/NotificationManagerService.java
om/android/server/PackageManagerService.java
om/android/server/PowerManagerService.java
om/android/server/SystemServer.java
om/android/server/TelephonyRegistry.java
om/android/server/WindowManagerService.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/BaseErrorDialog.java
om/android/server/am/BatteryStatsService.java
om/android/server/status/StatusBarPolicy.java
om/android/server/status/StatusBarService.java
15ab3eae2ec3d73b3e8aa60b33ae41445bf83f4b 20-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@132569
om/android/server/PowerManagerService.java
om/android/server/WindowManagerService.java
3001a035439d8134a7d70d796376d1dfbff3cdcd 19-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@132276
om/android/server/BatteryService.java
om/android/server/DeviceStorageMonitorService.java
om/android/server/GadgetService.java
om/android/server/InputMethodManagerService.java
om/android/server/LocationManagerService.java
om/android/server/PowerManagerService.java
om/android/server/SensorService.java
om/android/server/SystemServer.java
om/android/server/WindowManagerService.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/BatteryStatsService.java
om/android/server/status/AnimatedImageView.java
om/android/server/status/StatusBarService.java
da996f390e17e16f2dfa60e972e7ebc4f868f37e 13-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@131421
om/android/server/GadgetService.java
om/android/server/InputMethodManagerService.java
om/android/server/LocationManagerService.java
om/android/server/PackageManagerService.java
om/android/server/PowerManagerService.java
om/android/server/WifiService.java
om/android/server/WindowManagerService.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/UsageStatsService.java
d24b8183b93e781080b2c16c487e60d51c12da31 11-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@130745
om/android/server/AlarmManagerService.java
om/android/server/BatteryService.java
om/android/server/ConnectivityService.java
om/android/server/FallbackCheckinService.java
om/android/server/GadgetService.java
om/android/server/HardwareService.java
om/android/server/HeadsetObserver.java
om/android/server/InputMethodManagerService.java
om/android/server/KeyInputQueue.java
om/android/server/LocationManagerService.java
om/android/server/MountListener.java
om/android/server/MountService.java
om/android/server/NetStatService.java
om/android/server/NotificationManagerService.java
om/android/server/PackageManagerService.java
om/android/server/PowerManagerService.java
om/android/server/SensorService.java
om/android/server/SystemServer.java
om/android/server/TelephonyRegistry.java
om/android/server/WifiService.java
om/android/server/WindowManagerService.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/BatteryStatsService.java
om/android/server/am/HistoryRecord.java
om/android/server/am/UsageStatsService.java
om/android/server/status/StatusBarPolicy.java
om/android/server/status/StatusBarService.java
94cbba0933e50d593c1c462cff698dd3387ba95b 22-Jan-2009 The Android Open Source Project <initial-contribution@android.com> Merge branch 'cupcake'
f1e484acb594a726fb57ad0ae4cfe902c7f35858 22-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@127436
om/android/server/DeviceMemoryMonitor.java
om/android/server/DeviceStorageMonitorService.java
om/android/server/GadgetService.java
om/android/server/PackageManagerService.java
om/android/server/WindowManagerService.java
om/android/server/am/ActivityManagerService.java
om/android/server/status/StatusBarService.java
7547115694ef213f6c4ead3841296370cc07b4af 20-Jan-2009 The Android Open Source Project <initial-contribution@android.com> Merge branch 'cupcake'
22f7dfd23490a3de2f21ff96949ba47003aac8f8 20-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@127101
om/android/server/GadgetService.java
om/android/server/SystemServer.java
om/android/server/WifiWatchdogService.java
0fda766e53fba7e829fe6e145738f6a94ce48bda 16-Jan-2009 android-build SharedAccount <android-build@undroid16.corp.google.com> Merge branch 'cupcake'
9266c558bf1d21ff647525ff99f7dadbca417309 16-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@126645
om/android/server/InputMethodManagerService.java
om/android/server/KeyInputQueue.java
om/android/server/WifiService.java
om/android/server/WifiWatchdogService.java
om/android/server/WindowManagerService.java
om/android/server/am/ActivityManagerService.java
om/android/server/status/StatusBarService.java
e570a0fa86c2eea2680f07e2c0c546f104bea948 10-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@125939
b798689749c64baba81f02e10cf2157c747d6b46 10-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@125939
om/android/server/HeadsetObserver.java
om/android/server/InputMethodManagerService.java
om/android/server/LocationManagerService.java
om/android/server/MountService.java
om/android/server/PackageManagerService.java
om/android/server/PowerManagerService.java
om/android/server/Watchdog.java
om/android/server/WifiService.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/PendingIntentRecord.java
e1dc1d6dc8064740b78562c3028ccc526a44597e 19-Dec-2008 Jean-Baptiste Queru <jbq@google.com> Merge commit 'remotes/korg/cupcake'

Conflicts:
core/java/com/android/internal/app/AlertController.java
core/res/res/values/strings.xml
media/java/android/media/AudioSystem.java
services/java/com/android/server/LocationManagerService.java
f013e1afd1e68af5e3b868c26a653bbfb39538f8 18-Dec-2008 The Android Open Source Project <initial-contribution@android.com> Code drop from //branches/cupcake/...@124589
om/android/server/AlarmManagerService.java
om/android/server/BatteryService.java
om/android/server/ConnectivityService.java
om/android/server/DeviceStorageMonitorService.java
om/android/server/HeadsetObserver.java
om/android/server/InputDevice.java
om/android/server/InputMethodManagerService.java
om/android/server/KeyInputQueue.java
om/android/server/LocationManagerService.java
om/android/server/MountService.java
om/android/server/NotificationManagerService.java
om/android/server/PackageManagerService.java
om/android/server/PowerManagerService.java
om/android/server/SensorService.java
om/android/server/SystemServer.java
om/android/server/TelephonyRegistry.java
om/android/server/Watchdog.java
om/android/server/WifiService.java
om/android/server/WifiWatchdogService.java
om/android/server/WindowManagerService.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/AppErrorDialog.java
om/android/server/am/AppNotRespondingDialog.java
om/android/server/am/BatteryStats.java
om/android/server/am/BatteryStatsService.java
om/android/server/am/ProcessRecord.java
om/android/server/am/ServiceRecord.java
om/android/server/status/DateView.java
om/android/server/status/StatusBarIcon.java
om/android/server/status/StatusBarPolicy.java
om/android/server/status/StatusBarService.java
cf734f4e4e3b7a18c68732871f55c323d0d95d68 09-Dec-2008 Jon Larimer <jlarimer@gmail.com> fix (more) style issues from change #5124
om/android/server/LocationManagerService.java
56fe6be0c3e1eaa7d5d1ba96910008c504a6c362 08-Dec-2008 Jon Larimer <jlarimer@gmail.com> Enforce permission for using addGpsStatusListener. Even though it's currently hidden and inaccessible from the SDK, it's still
possible for an Android app to use, so it needs to check perms.
om/android/server/LocationManagerService.java
fda6fae156e31a287e3cfbf66e51ea1405cdf479 23-Oct-2008 Cliff Spradlin <cliff_spradlin@htc.com> Added broadcasts for external power events.
om/android/server/BatteryService.java
54b6cfa9a9e5b861a9930af873580d6dc20f773c 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
om/android/server/AlarmManagerService.java
om/android/server/AttributeCache.java
om/android/server/BatteryService.java
om/android/server/BootReceiver.java
om/android/server/BrickReceiver.java
om/android/server/ClipboardService.java
om/android/server/ConnectivityService.java
om/android/server/DemoDataSet.java
om/android/server/DeviceMemoryMonitor.java
om/android/server/HardwareService.java
om/android/server/HeadsetObserver.java
om/android/server/InputDevice.java
om/android/server/Installer.java
om/android/server/IntentResolver.java
om/android/server/KeyInputQueue.java
om/android/server/LoadAverageService.java
om/android/server/LocationManagerService.java
om/android/server/MasterClearReceiver.java
om/android/server/MountListener.java
om/android/server/MountService.java
om/android/server/NetStatService.java
om/android/server/NotificationManagerService.java
om/android/server/PackageManagerService.java
om/android/server/PowerManagerService.java
om/android/server/ProcessMap.java
om/android/server/ProcessStats.java
om/android/server/SensorService.java
om/android/server/SystemServer.java
om/android/server/TelephonyRegistry.java
om/android/server/ViewServer.java
om/android/server/WallpaperService.java
om/android/server/Watchdog.java
om/android/server/WifiService.java
om/android/server/WifiWatchdogService.java
om/android/server/WindowManagerService.java
om/android/server/am/ActivityManagerService.java
om/android/server/am/ActivityResult.java
om/android/server/am/AppBindRecord.java
om/android/server/am/AppErrorDialog.java
om/android/server/am/AppErrorResult.java
om/android/server/am/AppNotRespondingDialog.java
om/android/server/am/AppWaitingForDebuggerDialog.java
om/android/server/am/BaseErrorDialog.java
om/android/server/am/BatteryStats.java
om/android/server/am/BroadcastFilter.java
om/android/server/am/BroadcastRecord.java
om/android/server/am/ConnectionRecord.java
om/android/server/am/ContentProviderRecord.java
om/android/server/am/DeviceMonitor.java
om/android/server/am/FactoryErrorDialog.java
om/android/server/am/HistoryRecord.java
om/android/server/am/IntentBindRecord.java
om/android/server/am/PendingIntentRecord.java
om/android/server/am/PendingThumbnailsRecord.java
om/android/server/am/ProcessRecord.java
om/android/server/am/ReceiverList.java
om/android/server/am/ServiceRecord.java
om/android/server/am/TaskRecord.java
om/android/server/am/UriPermission.java
om/android/server/am/package.html
om/android/server/status/AnimatedImageView.java
om/android/server/status/CloseDragHandle.java
om/android/server/status/DateView.java
om/android/server/status/ExpandedView.java
om/android/server/status/FixedSizeDrawable.java
om/android/server/status/IconData.java
om/android/server/status/IconMerger.java
om/android/server/status/LatestItemView.java
om/android/server/status/NotificationData.java
om/android/server/status/NotificationLinearLayout.java
om/android/server/status/NotificationViewList.java
om/android/server/status/StatusBarException.java
om/android/server/status/StatusBarIcon.java
om/android/server/status/StatusBarNotification.java
om/android/server/status/StatusBarPolicy.java
om/android/server/status/StatusBarService.java
om/android/server/status/StatusBarView.java
om/android/server/status/Ticker.java
om/android/server/status/TickerView.java
om/android/server/status/TrackingView.java
om/android/server/status/package.html