2418 Commits

Author SHA1 Message Date
Daniel Sandler
b17a726f2f Notification & settings panel help.
Comes up the first time you touch the status bar; explains
where quick settings is, and even allows you to swipe down
to try it (instead of touching "OK").

Bug: 7209412
Change-Id: I72b1a91902e64b4623e0fcaf1555dc703870b59f
2012-10-07 14:48:24 -04:00
Craig Mautner
2874a54068 Merge "Add flag for displaying non-user's Windows to user." into jb-mr1-dev 2012-10-05 16:14:12 -07:00
Craig Mautner
88400d3a31 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
2012-10-05 15:29:25 -07:00
Daniel Sandler
c38bbc391a Lubricate a sticky notification panel.
If the panel was left open when the screen was turned off,
in some cases it might get stuck in an "open" state (the
panel's expanded height would be nonzero) although the
status bar window is in fact fully collapsed (due to
makeExpandedInvisible). The next time the user would go to
open the panel, things would be in an inconsistent state and
the panel wouldn't come down (on phones, the settings panel
would be attempted, but still nothing would happen).

This was easiest to reproduce on the keyguard (turn on
screen, pull down panel, turn off screen).

Bug: 7260868
Change-Id: Iec0000ba020e5a519eb5b4d42ac273b6689a18bd
2012-10-05 12:21:38 -04:00
Daniel Sandler
a801f68624 Restore rubberbanding on initial pulldown.
Broken by change Id93d6a00.

Bug: 7286201
Change-Id: I4155076df09d548aa00ae3793f78e6c154cde5f1
2012-10-05 11:01:05 -04:00
Daniel Sandler
2a04e74097 Merge "Updated clock hands for Quick Settings." into jb-mr1-dev 2012-10-04 22:09:31 -07:00
Daniel Sandler
96b248affa Updated clock hands for Quick Settings.
Bug: 7281063
Change-Id: I03e7ca236c8cdc809e112e2e844a0006e73ab504
2012-10-05 01:07:07 -04:00
Baligh Uddin
b29088540b Merge "Import translations. DO NOT MERGE" into jb-mr1-dev 2012-10-04 21:53:02 -07:00
Daniel Sandler
f5e2b2c26c Merge "DreamService API revisions." into jb-mr1-dev 2012-10-04 20:56:08 -07:00
Daniel Sandler
2d78490292 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
2012-10-04 23:38:15 -04:00
Baligh Uddin
fb442c8398 Import translations. DO NOT MERGE
Change-Id: Ia8a06130c50c0d369a188f0b780399b51f998f3a
Auto-generated-cl: translation import
2012-10-04 13:16:23 -07:00
John Spurlock
3c008f26ca Merge "Disable quick settings panel in setup wizard (user 0)." into jb-mr1-dev 2012-10-04 13:13:01 -07:00
Daniel Sandler
c30b6da804 Merge "Bring back the notification panel handle peek animation." into jb-mr1-dev 2012-10-04 12:41:41 -07:00
Daniel Sandler
0c1b75c17b Bring back the notification panel handle peek animation.
Bug: 7286201
Change-Id: Id93d6a00689ffb7f97e89af935460b1debec3850
2012-10-04 15:37:13 -04:00
Daniel Sandler
0a890b3ce2 Merge "Remove Start Dreaming^W^W Sleep Now 1x1 widget." into jb-mr1-dev 2012-10-04 12:14:15 -07:00
Daniel Sandler
7aa88f7aad Remove Start Dreaming^W^W Sleep Now 1x1 widget.
If you need its functionality for testing:

  $ adb shell am start -n com.android.systemui/.Somnambulator

Bug: 7267723
Change-Id: I9e0dd9d020e251d1ced4377329436ea46c3a8af5
2012-10-04 15:03:22 -04:00
Baligh Uddin
b3f55fdef6 Merge "Import translations. DO NOT MERGE" into jb-mr1-dev 2012-10-04 10:55:33 -07:00
John Spurlock
e4e8c5619c Disable quick settings panel in setup wizard (user 0).
Already fixed for additional users, but not the main user.

Bug:7285805
Change-Id: I1ab29470e23b0d06cd21919c72be72c092c86b2c
2012-10-04 09:55:01 -04:00
Chris Wren
6295ef3251 Merge "hide the redundant clock when the notification shade is open." into jb-mr1-dev 2012-10-04 06:37:11 -07:00
Baligh Uddin
5120adbee7 Import translations. DO NOT MERGE
Change-Id: I3948ca1d5441099dae59c6e0b95e3f53acc47437
Auto-generated-cl: translation import
2012-10-03 19:36:28 -07:00
Daniel Sandler
88c3a51123 Merge "Fix a bug in double-swiping panels..." into jb-mr1-dev 2012-10-03 16:58:01 -07:00
Daniel Sandler
4377d1494c Port unmerged notification changes from jb-dev to jb-mr1-dev
Bug 7150006

Single finger notification expansion.

If you liked these changes...

  Change Ie4e79aa5
  Change I8a6f8606
  Change I824937e9
  Change I957b6d50

You'll love this one!

Conflicts:
	packages/SystemUI/res/values/config.xml
	packages/SystemUI/res/values/dimens.xml

Fix notification gestures.

Broken by recent changes to ScaleGestureDetector, which we
were using incorrectly.

Conflicts:
	packages/SystemUI/res/values/config.xml
	packages/SystemUI/res/values/dimens.xml

Change-Id: Ie534c5b2d320296531a36a9b1c22f9dd6901e0b8
2012-10-03 15:27:04 -07:00
Chris Wren
85db803e7c hide the redundant clock when the notification shade is open.
Bug: 7204705
Change-Id: I88ef58938c5e96c4828dbda5d93f9874535b212f
2012-10-03 17:03:15 -04:00
Daniel Sandler
750bb9bff9 Fix a bug in double-swiping panels...
...that could cause them both to be shown at once.

Bug: 7179458
Change-Id: I32e51bd6d4f5773d0f4f5d3e99a84d299cd4b766
2012-10-03 16:24:50 -04:00
Daniel Sandler
7636693824 Merge "Increase the anti-jitter threshold for status bar flings." into jb-mr1-dev 2012-10-03 12:29:01 -07:00
Daniel Sandler
db9a376278 Increase the anti-jitter threshold for status bar flings.
You must move the panel at least 20dp overall, or at a speed
of 150dp/sec or more (actually quite easy; most normal
flings are 500dp/s or more) for it to be considered a fling.

Bug: 7179458
Change-Id: Ic1f4edc641cd2aa1cde89b2ee02eefdf5a0cc044
2012-10-03 15:27:40 -04:00
Chris Wren
4b576e39f0 Merge "change string for wifi not connected state." into jb-mr1-dev 2012-10-03 12:19:32 -07:00
Chris Wren
daab6af91d change string for wifi not connected state.
Bug: 7217026
Change-Id: I8b593b85fe32f37880ee1a0b3ef869b36e80ba5b
2012-10-03 15:13:10 -04: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
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
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
Daniel Sandler
151f00d8f0 Disable statusbar pulldown gesture tracking.
Bug: 7164602
Change-Id: Ie6569a7a8a9f462e844ef3088098c3256653f630
2012-10-03 11:50:02 -04: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
Jeff Sharkey
1ed299f822 Merge "Make USB services multi-user aware." into jb-mr1-dev 2012-10-02 18:11:48 -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
Baligh Uddin
4736039f33 Import translations. DO NOT MERGE
Change-Id: I40d09593fab0006cbe483fae9267ca93148a215b
Auto-generated-cl: translation import
2012-10-02 14:56:03 -07:00
John Spurlock
ec9b13dc48 Merge "Disable quick settings for users until USER_SETUP_COMPLETE." into jb-mr1-dev 2012-10-02 14:15:23 -07:00
Chris Wren
6ac833c9e3 Merge "re-use status bar DateView in QuickSettings." into jb-mr1-dev 2012-10-02 13:57:30 -07:00
Michael Jurka
fb4a113a29 Merge "Fix jump cut when dismissing items in Recents" into jb-mr1-dev 2012-10-02 13:49:57 -07:00
John Spurlock
919adac28b Disable quick settings for users until USER_SETUP_COMPLETE.
If the current user has not yet made it through the setup wizard,
disable the quick settings panel entirely.

Use Settings.Secure.USER_SETUP_COMPLETE as the signal.  This is a
per-user setting, so be careful to observe only on the current user's
behalf.

Bug:6712493
Change-Id: I3076a8a550165a9eeccf7fb129d470ef4ddeaed4
2012-10-02 16:48:24 -04:00
Michael Jurka
841594b2db Fix jump cut when dismissing items in Recents
(fixing horizontal scroll view in this CL... whoops).

Bug: 7070897
Change-Id: I3a63799ce7f3d9a50869755ee3289e641fa82fa4
2012-10-02 21:30:35 +02:00
Michael Jurka
f175525be4 Merge "Fix bug 7138446: Icon blips in during Recents animation" into jb-mr1-dev 2012-10-02 12:28:38 -07:00