85647 Commits

Author SHA1 Message Date
Adam Powell
b25629b123 Merge "Close a Spinner dropdown if its anchor view goes away." into jb-mr1-dev 2012-10-03 12:11:02 -07:00
Raph Levien
484de9db7c Merge "Fix for bug 6954231 text wraps on second line and is fused..." into jb-mr1-dev 2012-10-03 12:07:26 -07:00
Christopher Tate
1795325af7 Merge "Make settings backup/restore work in the new multi-user world" into jb-mr1-dev 2012-10-03 11:54:01 -07:00
Adam Powell
f16daf6127 Close a Spinner dropdown if its anchor view goes away.
PopupWindow already tracks when anchor views scroll, but it doesn't
catch other layout changes.

Bug 7267264

Change-Id: I1e20f9335057832c78c3002aa931f533dd77514b
2012-10-03 11:53:06 -07:00
Daniel Sandler
cbfcf5a329 Merge "Panel physics changes." into jb-mr1-dev 2012-10-03 11:43:13 -07:00
Daniel Sandler
67eab79051 Panel physics changes.
- You can start pulling down another panel before the first
  one has fully expanded. (Protip: tap many times on the
  statusbar to invoke Schwarzenegger Mode.)
- When starting to pull down a panel, other panels are
  immediately sent running (rather than placing them on a
  literal seesaw).
- Rubberbanding is a little less aggressive: if it looks
  like you're moving your finger upward, we'll just close
  the panel outright rather than sticking to the bottom of
  the visible content. (tablets only)
- This has some implications for the background fade; you'll
  see a brief increase in brightness as you swap panels
  because the fade fraction is based on the sum of all the
  panels' fractional visibility. At times there will not be
  enough "panel" visible, in the aggregate, to justify
  holding the fade steady.

Bug: 7260868 // can't pull down panel, possibly fixed
Bug: 7204435 // double-swipe for QS
Bug: 7179458 // fling & rubberbanding heuristics
Bug: 7172453 // collapse other panels when dragging a new one
Bug: 7221970 // grabbing a flying panel causes twitching
Change-Id: Iad7c1f92c4edab9102cdda45605ef0ead4cc16c5
2012-10-03 14:24:02 -04:00
Craig Mautner
8bd206b548 Don't set keyboard insets if keyboard is hidden.
Makes sense.

Bug: 7256294 fixed.
Change-Id: I435fc2e6e5acdf5c4d70b9dad1a30d7fe7c11b31
2012-10-03 10:32:02 -07:00
Adam Powell
7ba4b4823d Merge "Fix build" into jb-mr1-dev 2012-10-03 09:51:47 -07:00
Adam Powell
e1339bf493 Fix build
Change-Id: I0ec6a79ab4e82de04c438b2fb3fa914b21554593
2012-10-03 09:47:33 -07:00
Baligh Uddin
9e85191e26 Merge "Revert "Import translations. DO NOT MERGE"" into jb-mr1-dev 2012-10-03 09:43:09 -07:00
Raph Levien
6b558994d4 Fix for bug 6954231 text wraps on second line and is fused...
When breaking a line, the paragraphs below the new line break were still
being drawn in their old location. This only happened when the height
was fill_parent, otherwise the height change would force a relayout,
which in turn would do a full invalidation.

This patch checks for changes to the layout height (not just the widget
height, which won't change when it's fill_parent), and invalidates.

Change-Id: I64adb9f5eae0479c1c9c8d37c10c2c27a6f582a8
2012-10-03 09:34:24 -07:00
Baligh Uddin
dfef9b09c9 Merge "Revert "Import translations. DO NOT MERGE"" into jb-mr1-dev 2012-10-03 09:30:00 -07:00
Baligh Uddin
f97262bf3e Revert "Import translations. DO NOT MERGE"
This reverts commit 4736039f3347675796a4d7e589584da3d1af275e

Change-Id: Ie271f9a3872578cea458389a5ba7ccaf93beff29
2012-10-03 09:28:27 -07:00
Chris Wren
3edcf5ee90 Merge "make bluetooth iconography consistent with other quicksettings icons." into jb-mr1-dev 2012-10-03 09:19:11 -07:00
Chris Wren
b2a7d27bbe make bluetooth iconography consistent with other quicksettings icons.
Bug: 7217026
Change-Id: I880ee26e1d92ffa49885cf53b8dbab6b13887423
2012-10-03 12:11:49 -04:00
Baligh Uddin
b92df330d8 Revert "Import translations. DO NOT MERGE"
Build broken

This reverts commit 6310b2099e98c843b41db0f83461bf07b1a707b4

Change-Id: I14f57183122252583b9b5cde5424595908000e65
2012-10-03 09:11:19 -07:00
Baligh Uddin
6303084a50 Merge "Import translations. DO NOT MERGE" into jb-mr1-dev 2012-10-03 09:01:55 -07:00
Daniel Sandler
d14508f8c4 Merge "Disable statusbar pulldown gesture tracking." into jb-mr1-dev 2012-10-03 09:00:28 -07:00
Baligh Uddin
8a29640e15 Merge "Import translations. DO NOT MERGE" into jb-mr1-dev 2012-10-03 08:52:47 -07:00
Daniel Sandler
151f00d8f0 Disable statusbar pulldown gesture tracking.
Bug: 7164602
Change-Id: Ie6569a7a8a9f462e844ef3088098c3256653f630
2012-10-03 11:50:02 -04:00
Victoria Lease
fc6770e748 Merge "Remove checkPermission() call in getAllProviders()." into jb-mr1-dev 2012-10-03 08:43:43 -07:00
Daniel Sandler
1fd3474585 Merge "Allow QS to be closed via drag on background." into jb-mr1-dev 2012-10-03 07:59:09 -07:00
Daniel Sandler
e5f7ec0576 Allow QS to be closed via drag on background.
This was already working fine for the area of the panel
below the ScrollView, but intuitively it seems that dragging
in the unused portion of a partially-filled row would behave
the same way. Because it's part of the scrolling content,
though, drags in that region are (correctly) interpreted by
the ScrollView as scrolling requests.

The new QuickSettingsScrollView works around this by
ignoring touch events if its contents are too small to be
scrolled. So in the common case (QS tiles on a phone) you
will be able to drag in any empty area and have your taps
interpreted by the PanelView (which hands them off to the
handle to collapse the view).

We don't handle drags in empty areas when there are too many
tiles to show on-screen, and really, it's impossible to do
so: this gesture should then definitely be interpreted as a
scroll.

Bug: 7203193
Change-Id: I4cfcb029481a88d3604c7105185e8bcb7dbde8a5
2012-10-03 10:40:00 -04:00
Michael Jurka
211f2309ab Merge "Fix Recents dismiss/back button behavior" into jb-mr1-dev 2012-10-03 07:34:50 -07:00
Michael Jurka
e5923631f0 Fix Recents dismiss/back button behavior
Bug: 7238675
Change-Id: Ic97c38d5559b90c08a32751091d2587d4abfd534
2012-10-03 15:35:54 +02:00
Jim Miller
c2a2816316 Merge "Update keyguard to send userActivity events" into jb-mr1-dev 2012-10-03 02:23:52 -07:00
Dirk Dougherty
fd28053d5e am bd26b2fb: am 5958cb0d: am c395f4a3: Doc change: Add core quality and tablet quality docs, tablet developer stories.
* commit 'bd26b2fb753d47c27e181ca821f2fd62252b5ba1':
  Doc change: Add core quality and tablet quality docs, tablet developer stories.
2012-10-03 01:23:54 -07:00
Dirk Dougherty
bd26b2fb75 am 5958cb0d: am c395f4a3: Doc change: Add core quality and tablet quality docs, tablet developer stories.
* commit '5958cb0d8b619b7a42dcc9fbace3b2b9e088e89c':
  Doc change: Add core quality and tablet quality docs, tablet developer stories.
2012-10-03 01:21:48 -07:00
Dirk Dougherty
5958cb0d8b am c395f4a3: Doc change: Add core quality and tablet quality docs, tablet developer stories.
* commit 'c395f4a39cef3e0c2eaac8318b5e1723eac7d696':
  Doc change: Add core quality and tablet quality docs, tablet developer stories.
2012-10-03 01:19:45 -07:00
Dirk Dougherty
c395f4a39c Doc change: Add core quality and tablet quality docs, tablet developer stories.
Change-Id: Ia88e66818200fdc20417c0fe20672a5758284028
2012-10-03 01:16:53 -07:00
Jim Miller
5d2da713ed Update keyguard to send userActivity events
Since the new PowerManager changes are in, keyguard needs to handle
keeping the screen awake.  This change does this in a few places in
addition to the existing security screens:

- when the widget page changes
- when the user interacts with any widget other than the status widget
- when the user taps on the target in the selector screen

Fixes bug 7273646

Change-Id: If4c76a38e9b886dd359ba96cd2aae03652007b66
2012-10-03 00:41:54 -07:00
Jeff Brown
3f0a57dcd9 Merge changes Iccea764b,I624b559e into jb-mr1-dev
* changes:
  Improve the screen dim duration calculation.
  Implement screen on hack for wireless chargers.
2012-10-02 23:29:47 -07:00
Jeff Brown
5558b79e7a Merge "Fix some synchronization issues in BatteryService." into jb-mr1-dev 2012-10-02 23:28:02 -07:00
Jim Miller
6bcd73203a Switch back to user switcher in keyguard
Change-Id: I9acfb61fd34ad24a299e1f11f792e9e240f2b065
2012-10-02 22:53:26 -07:00
Adam Cohen
61cd69c378 Keyguard polish
-> Updated user switcher to be closer to spec (issue 7047393)
-> Drawing keyguard overscroll gradient manually in KeyguardWidgetFrame
   (eliminates need for assets, eliminates banding)
-> Fixed clipping of overscroll on sw600dp using negative margin

Change-Id: I90ec7f820ca7dccebf7e05628a3185e95d41af08
2012-10-02 21:55:08 -07:00
Jeff Brown
ff532540f1 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
2012-10-02 21:18:04 -07:00
Jeff Brown
f3fb895269 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
2012-10-02 20:57:05 -07:00
Scott Main
891a216102 am 39c78f0a: am b2e7d79f: am ddab47b7: update sidenav structure for localized strings dependent on change Ifcae4fcf716c8bb48f3ff18f17313b3f131c3f73
* commit '39c78f0a1fad81800e692ae117084c52a7e1fcbe':
  update sidenav structure for localized strings dependent on change Ifcae4fcf716c8bb48f3ff18f17313b3f131c3f73
2012-10-02 20:34:42 -07:00
Scott Main
39c78f0a1f am b2e7d79f: am ddab47b7: update sidenav structure for localized strings dependent on change Ifcae4fcf716c8bb48f3ff18f17313b3f131c3f73
* commit 'b2e7d79f12efca50032512b70ddd79aa74dbbc4f':
  update sidenav structure for localized strings dependent on change Ifcae4fcf716c8bb48f3ff18f17313b3f131c3f73
2012-10-02 20:33:19 -07:00
Scott Main
b2e7d79f12 am ddab47b7: update sidenav structure for localized strings dependent on change Ifcae4fcf716c8bb48f3ff18f17313b3f131c3f73
* commit 'ddab47b78ca5dff3b9ca8f79c2af8de0292a8fa4':
  update sidenav structure for localized strings dependent on change Ifcae4fcf716c8bb48f3ff18f17313b3f131c3f73
2012-10-02 20:31:09 -07:00
Adam Powell
d27f1cd30b Merge "Further refine touchMajor processing in ScaleGestureDetector" into jb-mr1-dev 2012-10-02 19:33:00 -07:00
Dianne Hackborn
75b694f1d6 Merge "Fix issue #7274813: A few sticky broadcasts aren't being sent to all users" into jb-mr1-dev 2012-10-02 19:19:41 -07:00
Craig Mautner
3e2358a0e6 Merge "Delay setting hidden until after isVisibleNow test." into jb-mr1-dev 2012-10-02 19:14:00 -07:00
Jeff Brown
a4d8204e30 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
2012-10-02 19:11:19 -07:00
Adam Powell
5b5c414e31 Further refine touchMajor processing in ScaleGestureDetector
On some devices the information coming from the touchscreen is very
noisy or otherwise unreliable. Perform some processing on the data
we have to try to provide a smoother experience.

Bug 7267507

Change-Id: I863125f58577f522de05a1361b81c2e42975fd89
2012-10-02 19:07:16 -07:00
Dianne Hackborn
720d14db87 Merge "Fix issue #7273573: Need API to find out if activity is destroyed" into jb-mr1-dev 2012-10-02 18:58:31 -07:00
Eric Laurent
06fcebc62c Merge "audio service: fix system volume settings" into jb-mr1-dev 2012-10-02 18:18:48 -07:00
Jeff Sharkey
1ed299f822 Merge "Make USB services multi-user aware." into jb-mr1-dev 2012-10-02 18:11:48 -07:00
Craig Mautner
4b5aa78c89 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
2012-10-02 18:11:25 -07:00
Jeff Sharkey
fc3f24b4b6 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
2012-10-02 18:09:10 -07:00