6241 Commits

Author SHA1 Message Date
Jeff Brown
d5bb82d18c 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
2011-10-12 15:05:59 -07:00
Jeff Brown
2b5b83bda8 Merge "Improve screenshot chord debouncing. Bug: 5011907" 2011-10-12 14:49:57 -07:00
Jeff Brown
905805ad7c 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
2011-10-12 14:34:23 -07:00
Jamie Gennis
c2091130ae am 075e4c3d: Merge "SurfaceFlinger: update orientation via transactions" into ics-mr0
* commit '075e4c3d2e6a8a9eb3506dfedc8da938fb65fb65':
  SurfaceFlinger: update orientation via transactions
2011-10-12 13:04:36 -07:00
Jamie Gennis
075e4c3d2e Merge "SurfaceFlinger: update orientation via transactions" into ics-mr0 2011-10-12 13:03:11 -07:00
Jeff Sharkey
a2c6f16047 am 69f364ae: Merge "Update internal state when iface is removed."
* commit '69f364ae879cfde8716de07cc3358a4bc515a05b':
  Update internal state when iface is removed.
2011-10-12 12:37:23 -07:00
Svetoslav Ganov
9dbe41432c 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.
2011-10-11 18:41:05 -07:00
Svetoslav Ganov
2e1c66bd53 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
2011-10-11 18:22:16 -07:00
Jeff Sharkey
69f364ae87 Merge "Update internal state when iface is removed." 2011-10-11 14:54:08 -07:00
Jamie Gennis
e2909e121c 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
2011-10-11 13:34:01 -07:00
Jeff Sharkey
89b8a2161a Update internal state when iface is removed.
Bug: 5433432
Change-Id: I7eb0ffe3ae07f42d5c47fe4082f490478c5099bf
2011-10-11 11:58:11 -07:00
Dianne Hackborn
0e00b30822 am 9f4021d8: Merge "Keep screen brightness at 0 while waiting for the UI to be displayed."
* commit '9f4021d86a92355539844623b782331006926a4e':
  Keep screen brightness at 0 while waiting for the UI to be displayed.
2011-10-10 19:19:15 -07:00
Dianne Hackborn
9f4021d86a Merge "Keep screen brightness at 0 while waiting for the UI to be displayed." 2011-10-10 19:16:52 -07:00
Dianne Hackborn
474fd74b88 Keep screen brightness at 0 while waiting for the UI to be displayed.
Change-Id: I957135c5423db6d83f4f30232481a1b6d77165fa
2011-10-10 18:40:22 -07:00
Jeff Sharkey
78d8308677 am 338140f7: Merge "Over-limit within handful of MTU\'s, update assets."
* commit '338140f7340a5471b5c5e8152405bc810fe56769':
  Over-limit within handful of MTU's, update assets.
2011-10-10 17:49:04 -07:00
Jeff Sharkey
338140f734 Merge "Over-limit within handful of MTU's, update assets." 2011-10-10 17:47:46 -07:00
Christopher Tate
a16ee2642d am b765e45f: Merge "Gracefully handle "needs init" transport errors at finish"
* commit 'b765e45f007a97c5b624f27a9368164ad03a4fee':
  Gracefully handle "needs init" transport errors at finish
2011-10-10 17:28:52 -07:00
Christopher Tate
b765e45f00 Merge "Gracefully handle "needs init" transport errors at finish" 2011-10-10 17:27:05 -07:00
Jeff Sharkey
50e7e51d68 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
2011-10-10 16:57:21 -07:00
Christopher Tate
e659fb9275 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
2011-10-10 16:34:50 -07:00
Dianne Hackborn
091ff486ab am 94e8471a: Merge "Fix issue #5405788: Device continuously opening and closing..."
* commit '94e8471a956d46f4fae3da2b1e79862e07209efa':
  Fix issue #5405788: Device continuously opening and closing...
2011-10-10 16:10:02 -07:00
Dianne Hackborn
58f42a59bd 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
2011-10-10 14:53:08 -07:00
satok
413d00c2d7 am af8139ee: Merge "Fix the behavior for choosing new default IME not to choose an auxiliary IME as the default IME"
* commit 'af8139ee9b97c031e5b45ac9f1175ef4794c39ee':
  Fix the behavior for choosing new default IME not to choose an auxiliary IME as the default IME
2011-10-10 01:16:17 -07:00
satok
af8139ee9b Merge "Fix the behavior for choosing new default IME not to choose an auxiliary IME as the default IME" 2011-10-10 00:59:41 -07:00
satok
dc9ddaee9a Fix the behavior for choosing new default IME not to choose an auxiliary IME as the default IME
Bug: 5420127

Change-Id: I3649de36806fc24e1c85c2b15db5e37acad1f120
2011-10-10 15:49:22 +09:00
Jeff Sharkey
1825da11a9 am d78a38ca: Merge "Move battery stats to xt_qtaguid for data stats."
* commit 'd78a38cae2f041629326d475333f43fd81ae4137':
  Move battery stats to xt_qtaguid for data stats.
2011-10-09 17:10:15 -07:00
Jeff Sharkey
1059c3c30a 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
2011-10-09 13:49:08 -07:00
Dianne Hackborn
be870e81e8 am ba8ecd20: Merge "Fix how we hide and show the nav bar."
* commit 'ba8ecd206cc6f175767f952d380c88f70ece04cf':
  Fix how we hide and show the nav bar.
2011-10-07 15:14:55 -07:00
Dianne Hackborn
ba8ecd206c Merge "Fix how we hide and show the nav bar." 2011-10-07 15:12:17 -07:00
Dianne Hackborn
df89e65bf0 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
2011-10-07 14:32:01 -07:00
Christopher Tate
b317fde4a1 am e47b89ca: Merge "Fix wallpaper restore"
* commit 'e47b89cabe38bb0a711c3b2a87be9696c7a1f074':
  Fix wallpaper restore
2011-10-07 13:38:37 -07:00
Christopher Tate
e47b89cabe Merge "Fix wallpaper restore" 2011-10-07 13:36:09 -07:00
Christopher Tate
bf6ee4f509 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
2011-10-07 12:37:42 -07:00
Svetoslav Ganov
e99b6895ba am 31743d8c: Merge "Accessibility test automation API not working."
* commit '31743d8cbbd0d54bfe8d2a43154a2b9615c8f282':
  Accessibility test automation API not working.
2011-10-06 17:30:52 -07:00
Svetoslav Ganov
31743d8cbb Merge "Accessibility test automation API not working." 2011-10-06 17:28:51 -07:00
Chia-chi Yeh
0158b427e7 am b7493155: Merge "VPN: temporarily disable the default proxy when VPN is active."
* commit 'b74931559b9e95b22ea632c243acda19fe8ea82c':
  VPN: temporarily disable the default proxy when VPN is active.
2011-10-06 15:32:27 -07:00
Chia-chi Yeh
bb53525152 am 893783ed: Merge "ConnectivityService: detach the logic of global proxy."
* commit '893783ed8768a98cbfea09c4e60093e2580dd22b':
  ConnectivityService: detach the logic of global proxy.
2011-10-06 15:32:26 -07:00
Chia-chi Yeh
b74931559b Merge "VPN: temporarily disable the default proxy when VPN is active." 2011-10-06 15:29:50 -07:00
Chia-chi Yeh
893783ed87 Merge "ConnectivityService: detach the logic of global proxy." 2011-10-06 15:29:43 -07:00
Dianne Hackborn
3c32c7a92e am 85b9edf2: Merge "Fix issue #5371530: SYSTEMUI_FLAG_HIDE_NAVIGATION reasserts itself immediately"
* commit '85b9edf2da0534bc53d139bb88cda8866d265afe':
  Fix issue #5371530: SYSTEMUI_FLAG_HIDE_NAVIGATION reasserts itself immediately
2011-10-06 15:21:12 -07:00
Christopher Tate
2bfbc40a03 am 0ded8c8a: Merge "Prevent concurrent backup operations"
* commit '0ded8c8a563e07b080b8c133cfc81708c55e5bca':
  Prevent concurrent backup operations
2011-10-06 15:18:09 -07:00
Dianne Hackborn
85b9edf2da Merge "Fix issue #5371530: SYSTEMUI_FLAG_HIDE_NAVIGATION reasserts itself immediately" 2011-10-06 15:15:32 -07:00
Dianne Hackborn
9a230e01a1 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
2011-10-06 14:57:37 -07:00
Svetoslav Ganov
b6eca6e669 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
2011-10-06 14:16:03 -07:00
Christopher Tate
0ded8c8a56 Merge "Prevent concurrent backup operations" 2011-10-06 13:09:52 -07:00
Jeff Sharkey
60e79c4536 am ca35bc5a: Merge "Refine random stats generation."
* commit 'ca35bc5acc80ad1380a9631770f13448677d0d34':
  Refine random stats generation.
2011-10-05 23:40:47 -07:00
Jeff Sharkey
ca35bc5acc Merge "Refine random stats generation." 2011-10-05 23:38:44 -07:00
Jeff Sharkey
293779f9c6 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
2011-10-05 23:31:57 -07:00
Michael Jurka
bd1b8bf707 am 093f9b79: Merge "Adding logging to debug widget deletions"
* commit '093f9b79c977cedc7a57ba1ac5884bdea2f74854':
  Adding logging to debug widget deletions
2011-10-05 22:13:19 -07:00
Adam Cohen
7bb9883d05 Adding logging to debug widget deletions
Change-Id: I15a943650f930fd3fb6163c60af85abc2865e684
2011-10-05 18:18:40 -07:00