5897 Commits

Author SHA1 Message Date
Adam Cohen
c68fda4575 am fead8f97: Merge "Ensure appwidgets are loaded before usage."
* commit 'fead8f976700906101714b3265e64e30c0a80180':
  Ensure appwidgets are loaded before usage.
2011-09-02 17:36:16 -07:00
Adam Cohen
fead8f9767 Merge "Ensure appwidgets are loaded before usage." 2011-09-02 17:35:00 -07:00
Dianne Hackborn
59a12eb2cc am 6b0c11da: Merge "Fix issue #5150899: Call activity takes 15MB we never get back."
* commit '6b0c11da5a7a7ea236fd9dc409d1ce7a33bff9c2':
  Fix issue #5150899: Call activity takes 15MB we never get back.
2011-09-02 17:20:44 -07:00
Dianne Hackborn
6b0c11da5a Merge "Fix issue #5150899: Call activity takes 15MB we never get back." 2011-09-02 17:18:32 -07:00
Dianne Hackborn
5d927c2d8e 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
2011-09-02 12:22:18 -07:00
Mike Lockwood
189a6db36b am c4589608: Merge "Fix logic for power button overridding the "wait for prox negative state" after a call"
* commit 'c458960886322a4403a1deb89ffbe3a24f9ee470':
  Fix logic for power button overridding the "wait for prox negative state" after a call
2011-09-02 10:06:15 -07:00
Mike Lockwood
db97f60054 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>
2011-09-02 11:59:08 -04:00
satok
735e67bf57 am bffb83e9: Merge "Add an option for the implicitly selected subtype"
* commit 'bffb83e96c2f3d01bf42490737201ab4de79c91b':
  Add an option for the implicitly selected subtype
2011-09-02 04:48:08 -07:00
satok
bffb83e96c Merge "Add an option for the implicitly selected subtype" 2011-09-02 04:44:41 -07:00
satok
a86f5e448c Add an option for the implicitly selected subtype
Bug: 5057886
Change-Id: Iddde4724891501b4f18cade6a3d2c64b6124e58a
2011-09-02 20:27:38 +09:00
satok
4ef47c22ec am ee5e77ca: Make setAdditionalInputMethodSubtypes async
* commit 'ee5e77cafec2eae70890abdcc1646ed39b06eddd':
  Make setAdditionalInputMethodSubtypes async
2011-09-02 03:32:26 -07:00
satok
ee5e77cafe Make setAdditionalInputMethodSubtypes async
Bug: 5120261
Change-Id: Ic7869cfaa5361531e08d58d7dfa5ba0feab0613e
2011-09-02 19:22:50 +09:00
Jeff Sharkey
15d161f61b Ensure appwidgets are loaded before usage.
Before accessing appwidget details, always ensure that configuration
is loaded from disk.

Change-Id: Ic71dd62fcdb1d1e5f7bae397efa8dce787434ba5
2011-09-01 22:35:19 -07:00
Jeff Sharkey
5472ac3c70 am 9b69a04e: Merge "Sample network statistics for sanity check."
* commit '9b69a04e24e70a8e82e1820c877c8f4df0c7a980':
  Sample network statistics for sanity check.
2011-09-01 21:32:42 -07:00
Jeff Sharkey
ece369ad5e am c7f159e2: Merge "Selectively add stats based on iface active state."
* commit 'c7f159e29f1522a8c362145f8d454c21fc1e920e':
  Selectively add stats based on iface active state.
2011-09-01 21:32:39 -07:00
Jeff Sharkey
9b69a04e24 Merge "Sample network statistics for sanity check." 2011-09-01 21:31:21 -07:00
Jeff Sharkey
c7f159e29f Merge "Selectively add stats based on iface active state." 2011-09-01 21:31:15 -07:00
Dianne Hackborn
0d772c766f am 7de6578f: Merge "Fix issue #4974633: Block the HOME button using TYPE_KEYGUARD"
* commit '7de6578f1c4bf97c9f856f819d4985d25163012a':
  Fix issue #4974633: Block the HOME button using TYPE_KEYGUARD
2011-09-01 16:54:31 -07:00
Dianne Hackborn
7cbbb8b1a3 am 69666e07: Merge "Fix issue #5229575: Youtube link shared through messaging is not..."
* commit '69666e078152362b19d02d9ee79bbd5fc69e09c3':
  Fix issue #5229575: Youtube link shared through messaging is not...
2011-09-01 16:54:23 -07:00
Dianne Hackborn
7de6578f1c Merge "Fix issue #4974633: Block the HOME button using TYPE_KEYGUARD" 2011-09-01 15:56:36 -07:00
Dianne Hackborn
69666e0781 Merge "Fix issue #5229575: Youtube link shared through messaging is not..." 2011-09-01 15:54:43 -07:00
Jeff Sharkey
0fea823673 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
2011-09-01 15:23:38 -07:00
Jeff Sharkey
07b0dd9a09 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
2011-09-01 15:07:19 -07:00
Dianne Hackborn
ba24e4d8bb 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
2011-09-01 12:39:17 -07:00
Dianne Hackborn
0e60db221c 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
2011-09-01 11:17:57 -07:00
Robert Greenwalt
81f2a36a53 am 2d012c12: Merge "Create new isNetworkSupported API"
* commit '2d012c128fda793be3bf443f0b8596fbe23ca323':
  Create new isNetworkSupported API
2011-08-31 17:46:41 -07:00
Robert Greenwalt
2d012c128f Merge "Create new isNetworkSupported API" 2011-08-31 17:44:50 -07:00
Robert Greenwalt
9b2886e243 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
2011-08-31 16:53:12 -07:00
Dianne Hackborn
8aab8b5759 am 1434ab98: Merge "Use floating point window positions."
* commit '1434ab98e690cbcfcdcd2296b491a44bff14cc55':
  Use floating point window positions.
2011-08-31 14:22:37 -07:00
Dianne Hackborn
d040edbae9 Use floating point window positions.
Gets rid of gapps between windows during animations.

Change-Id: I17d2ef0af214008f0eabd7eb19268f145fe83b39
2011-08-31 14:18:32 -07:00
Romain Guy
e5fd23f885 am dcc882ed: Merge "Make ViewServer more quiet Bug #5231539"
* commit 'dcc882edfe530e1bbd61e776a7d2c8b874768e1d':
  Make ViewServer more quiet Bug #5231539
2011-08-31 14:14:34 -07:00
Romain Guy
dcc882edfe Merge "Make ViewServer more quiet Bug #5231539" 2011-08-31 14:12:18 -07:00
Romain Guy
cbe67d5b33 Make ViewServer more quiet
Bug #5231539

Change-Id: Ib1f3e0d7592b4af802efe4e9630a220c23450521
2011-08-31 14:11:07 -07:00
Jeff Brown
79753f387a am 9d4bc852: Merge "Fix input channel leak. Bug: 5156144"
* commit '9d4bc852ea459c2a4347a87ce0357b3328a25db8':
  Fix input channel leak. Bug: 5156144
2011-08-31 13:03:26 -07:00
Jeff Brown
9d4bc852ea Merge "Fix input channel leak. Bug: 5156144" 2011-08-31 13:01:16 -07:00
Mike Lockwood
056d76183e ActivityManager: Make sure BOOT_COMPLETED Intent is sent when running headless
Change-Id: I7419d14e1f2ac1e045bb95d16f5658a0217a9d81
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-08-31 14:48:35 -04:00
satok
04a68e59df am c593380d: Fix crash in setAdditionalInputMethodSubtypes
* commit 'c593380d1bccbfbd45c404954b2670b65acc287f':
  Fix crash in setAdditionalInputMethodSubtypes
2011-08-31 05:59:41 -07:00
satok
c593380d1b Fix crash in setAdditionalInputMethodSubtypes
Bug: 5142455
Change-Id: I5eca4c1a3d9a964db04c819fc671670ef1b81817
2011-08-31 21:26:04 +09:00
satok
a0315b91b6 am ed2b24ec: Fix set additional subtypes.
* commit 'ed2b24ecc7842b27178fc584a9e5bd5b1ab07635':
  Fix set additional subtypes.
2011-08-31 02:52:11 -07:00
satok
ed2b24ecc7 Fix set additional subtypes.
Bug: 5102787
Change-Id: Ic38db8c33b6496a083e8158cd79fb54c21187b04
2011-08-31 18:03:21 +09:00
satok
77eb4f3ec5 am 8da2a004: Merge "Fix DeadObjectException of the spell checker"
* commit '8da2a004b883dc4526bddb3198476414b2f3819c':
  Fix DeadObjectException of the spell checker
2011-08-31 00:52:22 -07:00
satok
c7b60f72dd Fix DeadObjectException of the spell checker
Bug: 5119646
Change-Id: I2938a2206b79645c13a54cc7200f64c2c0aa3836
2011-08-31 16:30:27 +09:00
Jeff Brown
cc4f7db698 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
2011-08-30 21:40:28 -07:00
Christopher Tate
d5415c3cac am 8ec83219: Merge "Properly handle PACKAGE_REPLACED in addition to _ADDED and _REMOVED"
* commit '8ec83219e8cbac105054fb60101e6d98a972bcc2':
  Properly handle PACKAGE_REPLACED in addition to _ADDED and _REMOVED
2011-08-30 18:36:50 -07:00
Christopher Tate
cc55f8136e 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
2011-08-30 18:23:13 -07:00
Dianne Hackborn
9a3fe4744e am 9c93db60: Merge "Fix issues #5233826 and #5209847 -- live wallpapers."
* commit '9c93db60e6d9172e1957e5e31a6c5b82e2494420':
  Fix issues #5233826 and #5209847 -- live wallpapers.
2011-08-30 15:50:35 -07:00
Dianne Hackborn
9e4e727b4a 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
2011-08-30 14:56:31 -07:00
Mike Lockwood
a72177a4e8 Merge "New Serial Manager API:" into ics-aah 2011-08-30 09:59:19 -07:00
Mike Lockwood
8b3b98d622 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: I6afa78ceacf08486aaebced4156ecd2e33051879
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-08-30 12:56:26 -04:00
Mike Lockwood
b9797b08f4 am 7c267b24: Merge "Extinguish notification LED when user passes through lock screen"
* commit '7c267b24c69685ee623efb61bd98707869e92f5d':
  Extinguish notification LED when user passes through lock screen
2011-08-30 08:47:21 -07:00