2169 Commits

Author SHA1 Message Date
Daniel Sandler
cca3295f3e am b409323f: am 22891671: Merge "Multiuser support for notifications, take 1." into jb-mr1-dev
* commit 'b409323fd5a68f5699644dc6373842524ace7752':
  Multiuser support for notifications, take 1.
2012-08-15 21:08:19 -07:00
Daniel Sandler
228916713d Merge "Multiuser support for notifications, take 1." into jb-mr1-dev 2012-08-15 21:03:26 -07:00
Daniel Sandler
528baa90f9 am ecfbf455: am 2b197db7: Merge "Confine the quick settings trigger to the right third of the status bar." into jb-mr1-dev
* commit 'ecfbf4556adad4c112c39fc7d1b8633db2b0f087':
  Confine the quick settings trigger to the right third of the status bar.
2012-08-15 20:07:48 -07:00
Daniel Sandler
b9301c3a68 Multiuser support for notifications, take 1.
Notifications for background users are hidden from the
panel and status bar.

Still need to add a concept of "any user" notifications (for
things coming from the system) and notification visibility
controls (for access to icons + possibly masked text of
a background user's notifications).

Change-Id: Iba121f35a6c25c2e1c44db029d776a5a59a6a008
2012-08-15 23:00:56 -04:00
Daniel Sandler
cf591db049 Confine the quick settings trigger to the right third of the status bar.
Pulling down anywhere on the status bar when a panel is
already showing will switch to the other panel.

Also adjust gesture recorder output to track the settings
panel and annotate it separately.

Change-Id: I0ca3b395b5f2c6c8767237126bce26d0e8c9b8c0
2012-08-15 22:52:03 -04:00
Daniel Sandler
861e030314 am 2b207837: am 978f853d: Fix situations where the panel wouldn\'t descend.
* commit '2b2078370372e1e7c95c5ca466198a1db384db51':
  Fix situations where the panel wouldn't descend.
2012-08-15 12:55:47 -07:00
Daniel Sandler
978f853d18 Fix situations where the panel wouldn't descend.
Change-Id: I41c1d6a973b2693487062f3a5fbf922ff2025897
2012-08-15 15:48:43 -04:00
Daniel Sandler
7e6c9a7c24 am acd7716a: am 2db99c56: Merge "Turn off chatty logging for everyone." into jb-mr1-dev
* commit 'acd7716a31e2e7896c9525a4eba4fffbc578831d':
  Turn off chatty logging for everyone.
2012-08-15 12:08:07 -07:00
Daniel Sandler
2db99c56f7 Merge "Turn off chatty logging for everyone." into jb-mr1-dev 2012-08-15 12:03:58 -07:00
Jeff Brown
76a2a59966 am e4e71e1d: am 194b6e97: Merge "Power manager rewrite." into jb-mr1-dev
* commit 'e4e71e1d06442726e23f8ccf66c75468634008c4':
  Power manager rewrite.
2012-08-15 10:30:52 -07:00
Jeff Brown
194b6e9716 Merge "Power manager rewrite." into jb-mr1-dev 2012-08-15 10:26:03 -07:00
Daniel Sandler
bf4aa9d5bc Turn off chatty logging for everyone.
Change-Id: I6c6f48012df8a551ae4f2b2a9cd2713184234763
2012-08-15 10:49:28 -04:00
Daniel Sandler
dac17a275f am 05b5391f: am 9cc9aeb0: Merge "Quick settings come to all Android devices." into jb-mr1-dev
* commit '05b5391f55de04f8aa9fe9ac107a4bbb021d08ca':
  Quick settings come to all Android devices.
2012-08-15 06:57:30 -07:00
Daniel Sandler
8e72c9e19c Quick settings come to all Android devices.
I mean, real soon now.

Change-Id: I9a15b49f271e7ae06eb48a402f58270d8adccbf4
2012-08-15 09:52:43 -04:00
Jeff Brown
9630704ed3 Power manager rewrite.
The major goal of this rewrite is to make it easier to implement
power management policies correctly.  According, the new
implementation primarily uses state-based rather than event-based
triggers for applying changes to the current power state.

For example, when an application requests that the proximity
sensor be used to manage the screen state (by way of a wake lock),
the power manager makes note of the fact that the set of
wake locks changed.  Then it executes a common update function
that recalculates the entire state, first looking at wake locks,
then considering user activity, and eventually determining whether
the screen should be turned on or off.  At this point it may
make a request to a component called the DisplayPowerController
to asynchronously update the display's powe state.  Likewise,
DisplayPowerController makes note of the updated power request
and schedules its own update function to figure out what needs
to be changed.

The big benefit of this approach is that it's easy to mutate
multiple properties of the power state simultaneously then
apply their joint effects together all at once.  Transitions
between states are detected and resolved by the update in
a consistent manner.

The new power manager service has is implemented as a set of
loosely coupled components.  For the most part, information
only flows one way through these components (by issuing a
request to that component) although some components support
sending a message back to indicate when the work has been
completed.  For example, the DisplayPowerController posts
a callback runnable asynchronously to tell the PowerManagerService
when the display is ready.  An important feature of this
approach is that each component neatly encapsulates its
state and maintains its own invariants.  Moreover, we do
not need to worry about deadlocks or awkward mutual exclusion
semantics because most of the requests are asynchronous.

The benefits of this design are especially apparent in
the implementation of the screen on / off and brightness
control animations which are able to take advantage of
framework features like properties, ObjectAnimator
and Choreographer.

The screen on / off animation is now the responsibility
of the power manager (instead of surface flinger).  This change
makes it much easier to ensure that the animation is properly
coordinated with other power state changes and eliminates
the cause of race conditions in the older implementation.

The because of the userActivity() function has been changed
so that it never wakes the device from sleep.  This change
removes ambiguity around forcing or disabling user activity
for various purposes.  To wake the device, use wakeUp().
To put it to sleep, use goToSleep().  Simple.

The power manager service interface and API has been significantly
simplified and consolidated.  Also fixed some inconsistencies
related to how the minimum and maximum screen brightness setting
was presented in brightness control widgets and enforced behind
the scenes.

At present the following features are implemented:

- Wake locks.
- User activity.
- Wake up / go to sleep.
- Power state broadcasts.
- Battery stats and event log notifications.
- Dreams.
- Proximity screen off.
- Animated screen on / off transitions.
- Auto-dimming.
- Auto-brightness control for the screen backlight with
  different timeouts for ramping up versus ramping down.
- Auto-on when plugged or unplugged.
- Stay on when plugged.
- Device administration maximum user activity timeout.
- Application controlled brightness via window manager.

The following features are not yet implemented:

- Reduced user activity timeout for the key guard.
- Reduced user activity timeout for the phone application.
- Coordinating screen on barriers with the window manager.
- Preventing auto-rotation during power state changes.
- Auto-brightness adjustment setting (feature was disabled
  in previous version of the power manager service pending
  an improved UI design so leaving it out for now).
- Interpolated brightness control (a proposed new scheme
  for more compactly specifying auto-brightness levels
  in config.xml).
- Button / keyboard backlight control.
- Change window manager to associated WorkSource with
  KEEP_SCREEN_ON_FLAG wake lock instead of talking
  directly to the battery stats service.
- Optionally support animating screen brightness when
  turning on/off instead of playing electron beam animation
  (config_animateScreenLights).

Change-Id: I1d7a52e98f0449f76d70bf421f6a7f245957d1d7
2012-08-15 03:06:24 -07:00
Amith Yamasani
2aff6927ff am c144d2ad: am 07d1b289: Merge "Launch ASSIST intent on the current user" into jb-mr1-dev
* commit 'c144d2ad107a139390751f66fd9e17837a900d01':
  Launch ASSIST intent on the current user
2012-08-14 16:39:03 -07:00
Amith Yamasani
07d1b28904 Merge "Launch ASSIST intent on the current user" into jb-mr1-dev 2012-08-14 16:34:48 -07:00
Daniel Sandler
4f2a430a70 am e189e544: am 41f71dc8: Merge "Use a color resource to specify the dim behind panels." into jb-mr1-dev
* commit 'e189e544bbe30789f13044d73a2d16eb5bb9cccf':
  Use a color resource to specify the dim behind panels.
2012-08-14 13:28:30 -07:00
Daniel Sandler
1cef71176a am a1512fe8: am 2846ea4e: Merge "Fix bug with swipe-to-dismiss." into jb-mr1-dev
* commit 'a1512fe8c0b3b459cd4589ede74c855e392739a9':
  Fix bug with swipe-to-dismiss.
2012-08-14 13:25:49 -07:00
Daniel Sandler
41f71dc814 Merge "Use a color resource to specify the dim behind panels." into jb-mr1-dev 2012-08-14 13:22:53 -07:00
Daniel Sandler
e7237fceb1 Fix bug with swipe-to-dismiss.
(Clearing all notifications prevents notifications from
being subsequently swiped away.)

Change-Id: Ia15704c390d95f16675e2eea6040379099f44430
2012-08-14 16:08:27 -04:00
Amith Yamasani
c1d07a4bd2 Launch ASSIST intent on the current user
Lockscreen and statusbar now launch the intent on the current user.
Make sure that the intent resolution is made to the package manager
for the specific user, as the app could have been disabled for that
user or may have an alternative app installed.

Change-Id: I93b0f972d6c7e8880b146da83dc3d08a68fe7e51
2012-08-14 12:39:29 -07:00
Daniel Sandler
1c1edaa5f1 Use a color resource to specify the dim behind panels.
Change-Id: I551d9969dc1f4032f26fd94cf9719f07873abb5e
2012-08-14 11:28:38 -04:00
Daniel Sandler
da4ab9114a am b7b6f820: am a6aef1bb: Merge "New status bar capable of multiple sliding panels." into jb-mr1-dev
* commit 'b7b6f8200dca3e65fe84cf41342197fb29acecb6':
  New status bar capable of multiple sliding panels.
2012-08-14 08:01:00 -07:00
Daniel Sandler
08d05e3d1d New status bar capable of multiple sliding panels.
There are some visual glitches but almost everything should
be put back pretty much where it was.

Change-Id: I2f9b0591d44599b07bd83f03c4e09e6dd98e1448
2012-08-13 15:23:51 -04:00
Baligh Uddin
f3124b79af Import translations. DO NOT MERGE
Change-Id: If6567f2759f5de02bdd6a0a47abfa371d54ad40a
Auto-generated-cl: translation import
2012-08-13 12:16:32 -07:00
Amith Yamasani
dda851ce9a am 7871b629: am f83d2d6f: Merge "User Manager service to manage users and query user details" into jb-mr1-dev
* commit '7871b629a63a542fb81179c9239c21255a7a42ad':
  User Manager service to manage users and query user details
2012-08-11 21:42:07 -07:00
Amith Yamasani
258848d2ae User Manager service to manage users and query user details
Moved a bunch of methods from PackageManager to UserManager.

Fix launching of activities from recents to correct user.

Guest creation APIs

Change-Id: I0733405e6eb2829675665e225c759d6baa2b708f
2012-08-11 18:24:07 -07:00
Daniel Sandler
3f0e4e70d7 am fd36f14f: am f5fd82ac: Merge "Capture orientation change data in the gesture log." into jb-mr1-dev
* commit 'fd36f14f70789ac8cb67fc84105524d4a916ef31':
  Capture orientation change data in the gesture log.
2012-08-10 13:53:20 -07:00
Daniel Sandler
747a9e986c Capture orientation change data in the gesture log.
Change-Id: I19719f82f1b6b6563b33edc85b4a8a259d04ba0c
2012-08-10 16:39:19 -04:00
Daniel Sandler
045b878748 am 4f924dd2: am 69509926: Merge "More termination conditions for Dreams." into jb-mr1-dev
* commit '4f924dd254b2798aaa0a1ece06163babcfdb954d':
  More termination conditions for Dreams.
2012-08-10 07:30:17 -07:00
Daniel Sandler
a2fbe53f1e More termination conditions for Dreams.
Default implementation of Dreams will finish() on KEYCODE_BACK.

PhoneStatusBar will awaken() from any Dream when the Home key is pressed.

Change-Id: I55e2a5d533a7fb93debc4c54514dba3b9098f009
2012-08-10 01:19:03 -04:00
Amith Yamasani
7f0e543de3 am 4fe1082e: am 8264408f: Start the correct settings from the status bar.
* commit '4fe1082ec60359baef1ccac2b3a74834fe862303':
  Start the correct settings from the status bar.
2012-08-08 16:57:19 -07:00
Amith Yamasani
8264408f59 Start the correct settings from the status bar.
Added a new method to Context: startActivityAsUser() requiring the
INTERACT_ACROSS_USERS_FULL permission.

Show the correct Recents list, based on current user.
Added a getRecentTasksForUser() in ActivityManager. Hidden and requires
the INTERACT_ACROSS_USERS_FULL permission.

Change-Id: If5b56465efdd3ead36601a3b51ed4af157bbf35c
2012-08-08 16:52:53 -07:00
Jason Simmons
015009af89 am 54925058: am 336b31c2: Merge "Add an empty stub status bar service implementation" into jb-mr1-dev
* commit '5492505847a7d2e0a57d06b927f8029aa72fa4aa':
  Add an empty stub status bar service implementation
2012-08-07 16:24:37 -07:00
Jason Simmons
336b31c28a Merge "Add an empty stub status bar service implementation" into jb-mr1-dev 2012-08-07 16:14:50 -07:00
Christopher Tate
acad183238 Add an empty stub status bar service implementation
For kiosk-type devices that do not present any navigation UI.  This allows
for clean selection of the implementation based on resource overlays,
without the need for the tablet or phone status bar implementations to
accomodate the desired behaviors.

Bug 5824373

Change-Id: Idcec70eef437904edda452b69e5eb7a3cc7094f7
(cherry picked from commit 5717f80927944c141f059162ecd69649488f8049 in ics-aah)

Signed-off-by: Mike J. Chen <mjchen@google.com>
2012-08-06 14:40:50 -07:00
Daniel Sandler
650ff92dc5 am 4d3190a8: am f6a34124: Move lots of layout-port/ resources to layout/ .
* commit '4d3190a849306a5f3be9ccfde5fca2a78c9e0ee8':
  Move lots of layout-port/ resources to layout/ .
2012-08-06 12:35:55 -07:00
Daniel Sandler
f6a341248d Move lots of layout-port/ resources to layout/ .
The framework is no longer letting us skate by without a
default (unqualified) for of each resource; in particular,
the land/port aspect of the configuration appears to be
binding much later than it used to.

Bug: 6937365
Change-Id: I6bf72c76e707548168fefa9466dc196ffde33ab3
2012-08-06 15:29:09 -04:00
Wink Saville
bd2ebfb377 am 3d62c325: am bb01fd01: am 1971df5d: am e20a19cb: Merge "show 3G icon for CDMA/1xRTT"
* commit '3d62c325fefbfc6d810ed30db4fd000b35332c50':
  show 3G icon for CDMA/1xRTT
2012-08-04 08:17:21 -07:00
Wink Saville
bb01fd0111 am 1971df5d: am e20a19cb: Merge "show 3G icon for CDMA/1xRTT"
* commit '1971df5d4296f077cccff704201057a32b733235':
  show 3G icon for CDMA/1xRTT
2012-08-04 08:12:48 -07:00
Wink Saville
1971df5d42 am e20a19cb: Merge "show 3G icon for CDMA/1xRTT"
* commit 'e20a19cb541f8621f04be0f3d3501f2fc51a0e82':
  show 3G icon for CDMA/1xRTT
2012-08-04 08:07:49 -07:00
Chris Wren
af5209ce4e am 62e30723: am 5345c310: Merge "Don\'t allow the status bar to collapse things we\'re touching." into jb-mr1-dev
* commit '62e30723fb2589b3d1a693c66332307d00c64f19':
  Don't allow the status bar to collapse things we're touching.
2012-08-03 10:10:13 -07:00
Chris Wren
5345c310af Merge "Don't allow the status bar to collapse things we're touching." into jb-mr1-dev 2012-08-03 09:52:09 -07:00
Madan Ankapura
68cad3a0fa show 3G icon for CDMA/1xRTT
when config_showMin3G is enabled to true in a CDMA device

Change-Id: I79a4fa200dc406fc7f9f4527165046541961ef69
Signed-off-by: Madan Ankapura <mankapur@sta.samsung.com>
2012-08-02 19:10:22 -07:00
Svetoslav Ganov
b16c018ca3 am c171d515: am 25dd892c: am e1c47324: am 9a59f6e0: Merge "Notification panel on tablet does not handle back and home key events." into jb-dev
* commit 'c171d515b3b2d31d0bc58dcf0563b7daf1116fc7':
  Notification panel on tablet does not handle back and home key events.
2012-08-02 16:13:46 -07:00
Svetoslav Ganov
25dd892ce9 am e1c47324: am 9a59f6e0: Merge "Notification panel on tablet does not handle back and home key events." into jb-dev
* commit 'e1c47324fc22f86f378cb6ccc51e4554eec5156b':
  Notification panel on tablet does not handle back and home key events.
2012-08-02 16:07:35 -07:00
Svetoslav Ganov
e1c47324fc am 9a59f6e0: Merge "Notification panel on tablet does not handle back and home key events." into jb-dev
* commit '9a59f6e02fdcabbf2debd5b836b01f7b22a4b21a':
  Notification panel on tablet does not handle back and home key events.
2012-08-02 15:19:03 -07:00
Chris Wren
453eb4fc54 am c0e102cf: am dfa6c268: Merge "Venetian blinds policy for one-finger notification expansion." into jb-mr1-dev
* commit 'c0e102cf3b2155d10c6333e23a464e2c2249c77e':
  Venetian blinds policy for one-finger notification expansion.
2012-08-02 15:10:24 -07:00
Chris Wren
3ddab0dcc1 Don't allow the status bar to collapse things we're touching.
Bug: 6538918
Change-Id: Ie4e79aa593ac2097d0e6402f84816df934160687
2012-08-02 16:55:08 -04:00