9881 Commits

Author SHA1 Message Date
Jeff Brown
22aa512026 Capture input dispatcher's last ANR state in bug report.
Some ANR bugs are very difficult to localize because by the time
the bug report has been captured, the relevant information is
gone.  Work around this by capturing a log of the input dispatcher's
state at the exact time of the ANR before anything has changed
and include this information in the bug report.

Also fixed a nit related to some format strings that had
improper field widths specified.

Bug: 6680398
Change-Id: I5323bf18ec5e47a767cd053209753cc46852bf4c
2012-06-17 15:51:30 -07:00
Dianne Hackborn
2fe8fb276c 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
2012-06-15 17:23:16 -07:00
Nick Pelly
10c45b6965 Merge "Include WIFI scan's in Battery Stats." 2012-06-15 16:55:41 -07:00
Nick Pelly
6ccaa540a1 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
2012-06-15 16:10:38 -07:00
Amith Yamasani
a0ecfde69e Merge "SearchManagerService made multi-user aware" 2012-06-15 14:15:21 -07:00
Dianne Hackborn
6e3d6daa37 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
2012-06-15 12:12:56 -07:00
Amith Yamasani
5bb87cd9b8 SearchManagerService made multi-user aware
Cache Searchables per user and query package manager through the
private interface.

Change-Id: I1d24fdd27cce8c27be45287cbfcb4df1e2ce2cf1
2012-06-15 10:24:47 -07:00
Dianne Hackborn
4ca38ff44e 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
2012-06-14 21:38:55 -07:00
Dianne Hackborn
4879c1e8b3 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
2012-06-14 21:35:55 -07:00
Dianne Hackborn
734f0214ec Merge "Help out issue #6654729: CAB + screen off during playback" into jb-dev 2012-06-14 21:33:48 -07:00
Christopher Tate
d71aae2329 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
2012-06-14 19:40:22 -07:00
Dianne Hackborn
b80395c17d 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
2012-06-14 19:38:20 -07:00
Christopher Tate
0d732fe68c 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
2012-06-14 19:37:45 -07:00
Christopher Tate
0e44a6beea Merge "Don't finish noHistory="true" activities behind the lock screen" into jb-dev 2012-06-14 19:35:58 -07:00
Christopher Tate
88c0699539 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
2012-06-14 18:30:51 -07:00
Daniel Sandler
90e76aaac7 am 8ce090d9: am 68a808bc: Merge "Show even fewer notifications in Setup." into jb-dev
* commit '8ce090d936efc65dd68ba9fc15f99e1029cf58f2':
  Show even fewer notifications in Setup.
2012-06-14 18:30:31 -07:00
Christopher Tate
5eed873f10 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
2012-06-14 17:37:05 -07:00
Christopher Tate
7661bc6c5a Merge "Run the screen on/off broadcasts at foreground priority" into jb-dev 2012-06-14 17:34:28 -07:00
Craig Mautner
7cf23ee478 am de90d67b: am 8b9c6d51: Merge "Expose apps when keyguard animating." into jb-dev
* commit 'de90d67b2f3da4d931455df3c58d9c0f8ea3ffb5':
  Expose apps when keyguard animating.
2012-06-14 17:08:57 -07:00
Christopher Tate
2cb1357d1b Run the screen on/off broadcasts at foreground priority
Bug 6643559

Change-Id: I392f11dabea518238d0f4336c3663bf5c7d46146
2012-06-14 17:00:48 -07:00
Christopher Tate
d3f175c817 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
2012-06-14 16:51:58 -07:00
Robert Greenwalt
cb4ea2f5f3 Merge "Make tethering ignore bad inputs" 2012-06-14 16:43:49 -07:00
Daniel Sandler
8ce090d936 am 68a808bc: Merge "Show even fewer notifications in Setup." into jb-dev
* commit '68a808bc702f03536bd0cf3e2556127e364119d6':
  Show even fewer notifications in Setup.
2012-06-14 16:09:30 -07:00
Daniel Sandler
68a808bc70 Merge "Show even fewer notifications in Setup." into jb-dev 2012-06-14 16:07:45 -07:00
Robert Greenwalt
adfb0d0cf1 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
2012-06-14 16:03:44 -07:00
Craig Mautner
de90d67b2f am 8b9c6d51: Merge "Expose apps when keyguard animating." into jb-dev
* commit '8b9c6d51d59898375089e9708325604c227812e0':
  Expose apps when keyguard animating.
2012-06-14 14:57:31 -07:00
Craig Mautner
8b9c6d51d5 Merge "Expose apps when keyguard animating." into jb-dev 2012-06-14 14:55:19 -07:00
Michael Jurka
69be9f7dee am 2e820417: am a676cdab: Merge "Tweak recents launch app animation" into jb-dev
* commit '2e820417d6f06272b6408d8c015ac45f18677a06':
  Tweak recents launch app animation
2012-06-14 14:51:34 -07:00
Michael Jurka
2e820417d6 am a676cdab: Merge "Tweak recents launch app animation" into jb-dev
* commit 'a676cdab11ace948a054b5ca342727a3d0eb29b2':
  Tweak recents launch app animation
2012-06-14 14:46:38 -07:00
Michael Jurka
a676cdab11 Merge "Tweak recents launch app animation" into jb-dev 2012-06-14 14:33:55 -07:00
Craig Mautner
f03e4c55fc Expose apps when keyguard animating.
Continuing in the trend of not hiding apps while the keyguard is
animating.

Fixes bug 6653600.

Change-Id: I151315084a13dcec061d2d6edccd31e1133610f4
2012-06-14 14:11:27 -07:00
Daniel Sandler
590d515d91 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
2012-06-14 16:10:13 -04:00
Michael Jurka
b9a38c57fc 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
2012-06-14 11:57:50 -07:00
Svetoslav Ganov
03afbe3323 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.
2012-06-14 11:10:10 -07:00
Svetoslav Ganov
0b0ca3c551 am 9b1767bb: Merge "Active window not updated window not updated properly." into jb-dev
* commit '9b1767bbb451e96ae6b2216a7ea26aa4a937ad55':
  Active window not updated window not updated properly.
2012-06-14 11:05:18 -07:00
Svetoslav Ganov
9b1767bbb4 Merge "Active window not updated window not updated properly." into jb-dev 2012-06-14 10:48:09 -07:00
Svetoslav Ganov
5d043ce8cc 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
2012-06-14 10:40:12 -07:00
Svetoslav Ganov
e8a0623de8 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.
2012-06-14 10:34:54 -07:00
Nick Pelly
2ebd25368a 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().
2012-06-14 10:34:31 -07:00
Craig Mautner
9d909d31b3 am 129167cf: am 4323d6ea: Merge "Do not hide animating window behind keyguard." into jb-dev
* commit '129167cfe641c505fcea6c37a1ed086bbeadf8c1':
  Do not hide animating window behind keyguard.
2012-06-14 10:33:11 -07:00
Craig Mautner
0b73f8fbc6 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.
2012-06-14 10:32:53 -07:00
Winson Chung
58c35bbe34 Merge "Updating AppWidgetHost to receive a callback when any appWidget has changed. (Bug 6602951)" 2012-06-14 10:30:34 -07:00
Svetoslav Ganov
c4d3a0d8df 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.
2012-06-14 10:06:04 -07:00
Svetoslav Ganov
52d3465d05 Merge "If a gesture cannot be detected the device should transition to touch exploration state." into jb-dev 2012-06-14 10:03:59 -07:00
Nick Pelly
da58f39374 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().
2012-06-14 08:36:30 -07:00
Nick Pelly
bfd125a0bf Merge "Fix NPE when public API removeProximityAlert() used before addProximityAlert()." into jb-dev 2012-06-14 08:34:13 -07:00
Svetoslav Ganov
95068e5d1b 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
2012-06-13 21:14:16 -07:00
Nick Pelly
01ed75c82f Fix NPE when public API removeProximityAlert() used before addProximityAlert().
Bug: 6313992
Change-Id: I905ad9ea771286727ce4a3a2334f2a0dac967c3d
2012-06-13 16:45:27 -07:00
Craig Mautner
129167cfe6 am 4323d6ea: Merge "Do not hide animating window behind keyguard." into jb-dev
* commit '4323d6ea5143a3f2c419b3db28f956755652d78a':
  Do not hide animating window behind keyguard.
2012-06-13 15:36:51 -07:00
Winson Chung
7fbd28438c Updating AppWidgetHost to receive a callback when any appWidget has changed. (Bug 6602951)
Change-Id: I76d688b10ee7775b4ebe81259713f2aaf0009d05
2012-06-13 15:29:19 -07:00