2327 Commits

Author SHA1 Message Date
Christopher Tate
5e08af03a3 Respect per-user rotation lock et alia
Various per-user settings such as rotation lock are relevant to the
singleton PhoneWindowManager object.  We now listen for user-switch
broadcasts and reconfigure the active state based on the newly-
active user's settings.

The RotationPolicy toolset has also been updated to do the right
thing, as has the Quick Settings UI.

Bug 7213638

Change-Id: Iee2109e48df550b4c979d3f9c91b5d2b71a6a08e
2012-09-27 18:56:23 -07:00
Winson Chung
efba3235fc Fixing various QS issues. (Bug 7217102)
- Certain tiles were not updating strings based on configuration changes
- Updating bluetooth icon
- Fixing issue where QuickContacts is not being launched per-user

Change-Id: I5936e856b5454d608f9c7ddb6b81d9b566bb03ea
2012-09-27 17:18:23 -07:00
Baligh Uddin
6c805cb53d Merge "Import translations. DO NOT MERGE" into jb-mr1-dev 2012-09-27 10:04:08 -07:00
Daniel Sandler
4735a1e12c Merge "New notification/settings panel handle assets." into jb-mr1-dev 2012-09-27 08:23:28 -07:00
Daniel Sandler
4e32ba7ce7 New notification/settings panel handle assets.
Bug: 7171620
Change-Id: Ie6bc31345eafe91c03ca2bd09399419e54831f33
2012-09-27 10:34:41 -04:00
Baligh Uddin
43d1c2dbce Import translations. DO NOT MERGE
Change-Id: Id53f9a240b652c58886b3c46323ce84d14bfc168
Auto-generated-cl: translation import
2012-09-26 17:05:30 -07:00
Jeff Brown
62c82e4d92 Make DreamManagerService more robust.
Clearly isolated the DreamManagerService and DreamController
responsibilities.  DreamManagerService contains just enough logic to
manage the global synchronous behaviors.  All of the asynchronous
behaviors are in DreamController.

Added a new PowerManager function called nap() to request the device
to start napping.  If it is a good time to nap, then the
PowerManagerService will call startDream() on the DreamManagerService
to start dreaming.

Fixed a possible multi-user issue by explicitly tracking for
which user a dream service is being started and stopping dreams
when the current user changes.  The user id is also passed to
bindService() to ensure that the dream has the right environment.

Fix interactions with docks and the UI mode manager.  It is
important that we always send the ACTION_DOCK_EVENT broadcast
to the system so that it can configure audio routing and the like.
When docked, the UI mode manager starts a dock app if there is
one, otherwise it starts a dream.

This change resolves issues with dreams started for reasons other
than a user activity timeout.

Bug: 7204211
Change-Id: I3193cc8190982c0836319176fa2e9c4dcad9c01f
2012-09-26 15:24:27 -07:00
Jeff Sharkey
1951db86f5 Merge "Multi-user ringtone playback." into jb-mr1-dev 2012-09-26 13:38:22 -07:00
Jeff Sharkey
65c4a2b26c Multi-user ringtone playback.
Change RingtonePlayer to open content:// Uris based on requesting
UserHandle.  Grant SystemUI visibility to all emulated storage so
it can play ringtones for apps without READ_EXTERNAL_STORAGE.

Resolve canonical file:// Uris before passing out of source app,
replacing any /emulated_legacy/-style paths with user-specific
variant so they can be opened by SystemUI.  Calling for RemoteViews,
Ringtones, and Notifications.

Bug: 7202982
Change-Id: Ibf0eca8df80c1486711144a7b648f464aadfe099
2012-09-26 10:49:35 -07:00
Svetoslav Ganov
2fd6cb0439 Merge "Fixing the build" into jb-mr1-dev 2012-09-25 17:05:04 -07:00
Svetoslav Ganov
063158561e Fixing the build
Change-Id: Ia3a7051bf26001da019b08d1b718d0a63d6c7919
2012-09-25 17:03:12 -07:00
Jeff Brown
b32e221699 Merge changes I332f020f,I632648ac into jb-mr1-dev
* changes:
  Update references to migrated global settings.
  Handle user switched for settings changes.
2012-09-25 17:03:11 -07:00
Winson Chung
282c51d391 Merge "Updating time/alarm tiles, fixing issue with empty space under QuickSettings (Bug 7205141, Bug 7222371)" into jb-mr1-dev 2012-09-25 16:51:11 -07:00
Svetoslav Ganov
c91fb5875b Merge "Adding a global accessibility action to open quick settings." into jb-mr1-dev 2012-09-25 16:47:06 -07:00
Winson Chung
c86b23b9a6 Updating time/alarm tiles, fixing issue with empty space under QuickSettings (Bug 7205141, Bug 7222371)
Change-Id: If42308a0bbc4a31ffb7f5f0b66063c3b1418ca3e
2012-09-25 16:44:29 -07:00
Michael Jurka
99f19db697 Merge "Fix 7216326: Recents has a "dead zone" on tablets" into jb-mr1-dev 2012-09-25 16:22:31 -07:00
Michael Jurka
76218b8a16 Fix 7216326: Recents has a "dead zone" on tablets 2012-09-25 16:17:12 -07:00
Svetoslav Ganov
e20a177d3f Adding a global accessibility action to open quick settings.
1. Added APIs for opening the quick settings to the StatusBarManagerService
   and the local StatausBarManager. The new APIs are protected by the old
   EXPAND_STATUS_BAR permission.
   Renamed the expand* and collapse* non-public APIs that are expanding
   the notifications to expandNotifications* collapseNotifications* to
   better convey what they do given that this change adds
   expandQuickSettings* and collapseQuickSettings*.
   Added a global action to the accessibility layer to expand the quick
   settings which is calling into the new status bar manager APIs.

bug:7030487

Change-Id: Ic7b46e1a132f1c0d71355f18e7c5a9a2424171c3
2012-09-25 16:07:59 -07:00
Michael Jurka
150443a99f Merge "Fix 7216870: recents relaunches dismissed activity" into jb-mr1-dev 2012-09-25 16:04:53 -07:00
Amith Yamasani
98edc95171 Load resources for the correct user
For apps that are only installed on secondary users, the SystemUI is
unable to see them by default. Added some methods to explicitly pass the
userId of the user the resources are requested for by the StatusBarIcon

Bug: 7214384

Also fix binding to remote views

Bug: 7192802

Change-Id: I5d6c5f624aa37fb231f3467f9764c8d99077a91d
2012-09-25 15:45:27 -07:00
Jeff Brown
bf6f6f9de7 Update references to migrated global settings.
Fixed one setting that was migrated but not marked deprecated.

Removed a hidden setting that is no longer used by the new
power manager service.

Bug: 7231172
Change-Id: I332f020f876a18d519a1a20598a172f1c98036f7
2012-09-25 15:27:51 -07:00
Baligh Uddin
b1c4ab5c2a Merge "Import translations. DO NOT MERGE" into jb-mr1-dev 2012-09-25 14:53:43 -07:00
Baligh Uddin
3df0e3467f Import translations. DO NOT MERGE
Change-Id: I11ec4fc53b9af6b332260ffe8ee1e2503699be04
Auto-generated-cl: translation import
2012-09-25 14:06:12 -07:00
Michael Jurka
08e8d8462d Fix 7216870: recents relaunches dismissed activity 2012-09-25 13:52:35 -07:00
Romain Guy
ade54e5b36 Merge "Fix recents animation in landscape on tablet" into jb-mr1-dev 2012-09-25 13:21:11 -07:00
Romain Guy
a752e7c809 Fix recents animation in landscape on tablet
Change-Id: I8b550c38fb5392d7d0b7f72ba565256ad2751cc3
2012-09-25 13:20:05 -07:00
Winson Chung
89ba270c66 Merge "Fixing various QS issues. (Bug 7216908, Bug 7217154)" into jb-mr1-dev 2012-09-25 12:20:18 -07:00
Daniel Sandler
173bae2c67 Improvements to notification/settings panels:
A) Hide icons corresponding to the active panel with a
   downward push animation. Notes:
   1. this animation will now apply any time the status bar
	  icons are disabled via DISABLE_NOTIFICATION_ICONS.
   2. DISABLE_SYSTEM_INFO will now only hide the right hand
      icons (system status icons, battery, clock). But you
	  weren't using it anyway, right?

B) Stop pulling down the panels in response to just a touch
   on the status bar. (That should never have worked.) In
   general, we now require that a fling proceed more than
   10dp to be treated as a fling with velocity (as opposed
   to a v=0 fling, or "let-go").

C) If a panel is pulled down more than halfway and then let
   go with v=0, it is expanded. If less than halfway, it is
   contracted. (Helps fix B) above, plus it just makes good
   sense.)

Bug: 7211541 (A)
Bug: 7227237 (B)
Bug: 7228541 (B)
Change-Id: I5662269b753376804bf629239835dc212716d5c3
2012-09-25 14:38:43 -04:00
Winson Chung
f4b5ab193c Fixing various QS issues. (Bug 7216908, Bug 7217154)
- Making distinction between wifi not connected and unavailable
- Removing periods from carrier names
- Updating airplane mode icons

Change-Id: I8a629f07375faaa34a1b5ebeb307605f12f75173
2012-09-25 10:26:39 -07:00
Jean-Baptiste Queru
3b772c6b67 Merge into jb-mr1-dev
Change-Id: Idc74e8e0f3cea76b995f4262428006949708ce32
2012-09-25 09:46:54 -07:00
Jean-Baptiste Queru
b8d4c9ff22 Merge into jb-mr1-dev
Change-Id: Iaee05ce2bc5103c46fe9a148ad166f694c246c2f
2012-09-25 09:45:48 -07:00
Jean-Baptiste Queru
7e886bc3f7 Merge into jb-mr1-dev
Change-Id: I2e1eee6976ef4682c9f8daffed699ee4c59060c3
2012-09-25 09:45:19 -07:00
Romain Guy
03de511af7 Fix graphics glitch and layouts in recents on 10" display
Change-Id: I7fa58a84d4e899ea995aa680ee550b5ddb30b6a6
2012-09-25 09:44:46 -07:00
Jean-Baptiste Queru
a7546e3623 Merge into jb-mr1-dev - do not merge
Change-Id: I3582e3a68c6c38569884e9a903b5230bf890e7fa
2012-09-25 09:43:59 -07:00
Jean-Baptiste Queru
7951c459ae Merge into jb-mr1-dev
Change-Id: Ifc2328e30a52c2baebc1322c9b161104dcf21618
2012-09-25 09:36:32 -07:00
Daniel Sandler
5a8aefa6c8 No more double-swiping to toggle panels on tablets.
This also fixes up the drag regions so that quick settings
is only assigned the right 1/3 of the display (or 100dp,
whichever is larger). It had been that more than half of the
status bar, when dragged, would pull down QS.

Bug: 7217002
Change-Id: I515b6e19deab305b99784c7287d8f04fa9b22dc7
2012-09-25 10:20:00 -04:00
Daniel Sandler
666d47502b Return carrier label to notification panel.
If it makes you feel any better, it was there all along...

Bug: 7027535
Change-Id: Ib1add55f1bfe1958e15fa6a2960a821ccfb9d949
2012-09-25 01:21:06 -04:00
Amith Yamasani
ea7e91514e AppInfo from Notifications for secondary users
Required wiring up startActivitiesAsUser()

Bug: 7224950

Also fix a bug in navigateUp in secondary user

Change-Id: I114ae2de0457362d62e899fdb94b12239a3eb778
2012-09-24 17:19:03 -07:00
Chris Wren
482410de94 reduce notification pad on large displays.
Bug:7053073
Change-Id: Icbb98ba31b79e25ca37757bf6e898f2575c0e487
2012-09-24 18:41:18 -04:00
Michael Jurka
0988524683 Fix build
Change-Id: I476664d9c0116fb4b135d443dd36ee7ebe3c25f4
2012-09-24 14:42:01 -07:00
Daniel Sandler
598cfcad42 Merge "Properly launch quicksettings activities." into jb-mr1-dev 2012-09-24 13:42:36 -07:00
Baligh Uddin
583fab5e99 Import translations. DO NOT MERGE
Change-Id: I54dbefbe0ed8fc87bc3f0f8123f4c5185f125192
Auto-generated-cl: translation import
2012-09-24 13:21:40 -07:00
Dianne Hackborn
cd11b223f3 Merge "Fix issue #7214090: Need to be able to post notifications to all users" into jb-mr1-dev 2012-09-24 10:58:20 -07:00
Dianne Hackborn
50cdf7c306 Fix issue #7214090: Need to be able to post notifications to all users
Also fix a bunch of system services that should be doing this.  And
while doing that, found I needed to fix PendingIntent to evaluate
USER_CURRENT at the point of sending, not creation.

Note that this may end up with us having some notification shown to
non-primary users that lead to settings UI that should only be for
the primary user (such as the vpn notification).  I'm not sure what
to do about this, maybe we need a different UI to come up there or
something, but showing the actual notification for those users at
least seems less broken than not telling them at all.

Change-Id: Iffc51e2d7c847e3d05064d292ab93937646a1ab7
2012-09-24 10:55:46 -07:00
John Spurlock
2ce1ae8e63 Merge "Migrate away from lightsOut() in BeanBagDream." into jb-mr1-dev 2012-09-24 05:52:46 -07:00
Daniel Sandler
3ffdcc70c2 Properly launch quicksettings activities.
- As current user
 - Dismissing keyguard if necessary
 - Dismissing all status bar windows and panels

Also move some QS-specific stuff out of PanelView and into
SettingsPanelView.

Bug: 7217006
Change-Id: I4d8ac84cc0f43e78f70553599c3207305c4f5c74
2012-09-24 00:43:51 -04:00
Jeff Sharkey
11820f7386 Merge "Allow acquiring ContentProviders across users." into jb-mr1-dev 2012-09-23 13:22:27 -07:00
Dianne Hackborn
b939e35274 Merge "Fix issue #7209355, #7214271." into jb-mr1-dev 2012-09-23 12:58:10 -07:00
Dianne Hackborn
8da429e80d Fix issue #7209355, #7214271.
Issue #7209355: Intent on the secondary user results in an intent picker
in the Primary user.
Issue #7214271: Crash in system UI

Also fix a bug where I recently broke the removeTask() operation in the
activity manager where it would remove the wrong task.

Change-Id: I448c73a0e83a78d9d8d96b4629658c169888d275
2012-09-23 12:53:34 -07:00
Winson Chung
c4b16f1acb Merge "Fixing various QuickSettings issues (Bug 7210343, Bug 7174839, Bug 7174738)" into jb-mr1-dev 2012-09-22 14:37:02 -07:00