344 Commits

Author SHA1 Message Date
Daniel Sandler
b6d3dc6897 Implement new lights-out mode in system bar.
When an app requests fullscreen display, "shadows" of the
visible system bar UI elements are drawn in their place. The
user can still interact with these elements by poking the
shadows; the widgets will temporarily shine through, long
enough for the user interaction.

Known issues:
 - if the notification panel is up for too long, the shadow
   will not be re-enabled on the notification area (need to
   route all hide/show requests through the
   shadowcontroller)
 - status bar hide/show animations have been temporarily
   turned off to make this work correctly; they'll be put
   back later

Bug: 3203171
2010-11-17 16:51:26 -05:00
Joe Onorato
8a576713e2 Add the quick settings panel. There's currently nothing in it.
Change-Id: I71195c7b0bd2b902da1c60527b6e23964b1ea4fc
2010-11-15 17:45:03 -08:00
Joe Onorato
fd52b18d9b The beginnings of the new status bar.
There is a lot of rough stuff still, but most of the functionality is here again.

Change-Id: I4b1241e61270f1434e798481afa83634233ee670
2010-11-15 11:52:33 -08:00
Gilles Debunne
39b13c6277 Created missing assets by up/down scaling the one in other dpi
Some of these assets may no longer be used. An other CL will remove these later.
Needed to remove warnings in new aapt version.

Change-Id: Iac296247012a05757bd3264ab50212d37ce80adf
2010-11-04 17:12:11 -07:00
Daniel Sandler
b73617de46 Rotation lock.
IWindowManager now supports two new methods,
freezeRotation() and thawRotation(), that allow a caller to
temporarily stash the device's current rotation as the
default rotation (when no other constraints are present).

The system bar uses this to implement a user-accessible
rotation lock by calling freezeRotation() and then turning
off accelerometer-based display rotation; unless overridden
by an app, the display will continue to appear in the frozen
rotation until the rotation is unlocked by the user (either
via the rotation lock icon in the system bar or by checking
"rotate screen automatically" in Settings).

Bug: 2949639
Change-Id: Icd21c169d1053719590e72401f229424b254622f
2010-11-04 16:55:29 -04:00
Joe Onorato
7e750b1b84 Put back the back button
Change-Id: I0aea487eb2123d3d7e689c2f8ef24e9025a34aee
2010-11-02 00:14:33 -07:00
Gilles Debunne
dde799deb2 Rescaled/updated mdpi assets added.
Change-Id: Idce2f1a3fb66565abe2c710281dab1ec6650d0c2
2010-11-01 17:18:10 -07:00
Joe Onorato
10523b4d0c Make the low battery dialog work again.
Change-Id: I97232a3645e6a817c9c5f5f90b88a7e925d36d13
2010-10-27 11:26:00 -07:00
Jim Miller
44c66fe2cd Fix 3117937: Add simplified "recent apps".
This adds a simplified recents view for devices that
don't handle 3D well.

Change-Id: I8307cd340caf1d65c8fce80eaf55a1d21bc64312
2010-10-25 19:32:04 -07:00
Joe Onorato
bd5dba3571 make the back (previous track) button into a cancel button.
Change-Id: Iab93a7d8bd722536fcc5a12ed3274bda3e92aaf6
2010-10-24 14:29:01 -07:00
Justin Ho
3162a3cee0 DO NOT MERGE - Re-adding missing status_bar_close_on.9 for mdpi emulator
Change-Id: Ia855f0461a984974e3f54d8f8f5fe146ff330c4f
2010-10-22 11:55:58 -07:00
Daniel Sandler
271ea12dc2 Refinements to the notification icon area.
- New icon states per revised UX designs.
 - Basic implementation of do-not-disturb mode.
 - Removed unused grippies.

Change-Id: I506dcdc8ceb855902f2401e3145c3c676c0de207
2010-10-22 14:06:10 -04:00
Joe Onorato
ea70e63c0d Swap the navigation buttons and notification icons.
Left: BACK, HOME, RECENT, [MENU], [CLIPBOARD].
  Right: NOTIFICATIONS, PANEL TRIGGER.

Many Bothans participated in usability tests to bring us
this change.

Change-Id: I45a0847226fd6264a3d62c60001e2b906ac15133
2010-10-22 11:32:28 -04:00
Daniel Sandler
524f568802 New system bar "shirt pocket", for quickly stashing draggable bits.
Anything that can be dragged using the new drag manager APIs
(View#startDrag) can be dropped here; the pocket will hold
it for you until you're ready to drag it out again.

Known issues:
 - currently discarding the clipping whenever you drag it
   out; in the future we will only discard it once you
   actually drag it somewhere
 - there's a bug where dragging things back out of the
   pocket's window requires an extra tap (i.e. tap once then
   tap and drag)
 - almost nothing uses the new drag manager yet :)

Change-Id: Iff3103e4117f31023e1e96667632d77912e21d30
2010-10-21 14:54:00 -04:00
Justin Ho
852fcaf183 Updated GPS icons and new status bar background
Change-Id: If901a145b7cdb33b32076dcfb6964be59e3967da
2010-10-14 18:25:50 -07:00
Daniel Sandler
a84a69f2eb Start of input method control on system bar.
This change creates a new icon to the right of the
notification area for the IMM to expose control over the
current IME. Currently it shows the IME subtype picker.

TODO: Connect directly to the IMMService to show the correct
icon (and hide the icon entirely when the input panel is not
visible).

Bug: 2975425
Change-Id: If07f30867b81950a0a86b00807a41e2ff2af389c
2010-10-08 10:39:46 -04:00
Gilles Debunne
e91398d134 Revert for 68833 and 68483 which introduced new assets instead of just updating.
Change-Id: Ib37c0a61c5a2b061e4e70268db6d02a9adde10c2
2010-10-04 17:25:29 -07:00
Adam Powell
a57ae3f438 DO NOT MERGE Fix bug 3026771, other design/asset fixes.
* Button text changed to bold by default.
* Change notification divider to lighter gray (new asset).
* Change "Clear" notification button to use system small button assets.

Change-Id: Id1f1bdcf8c034186ad9acbdbdd544546bd32bbd8
2010-10-01 14:35:22 -07:00
Gilles Debunne
51ed8aa9d2 am ed1cf3da: am f0fa2674: Merge "New assets: wifi signal 1, no sim card." into gingerbread
Merge commit 'ed1cf3dab59d7af51240269308007546a816b1f4'

* commit 'ed1cf3dab59d7af51240269308007546a816b1f4':
  New assets: wifi signal 1, no sim card.
2010-09-30 11:00:19 -07:00
Gilles Debunne
888dc9d117 New assets: wifi signal 1, no sim card.
Change-Id: I2f7571769079998a171ac90d088ca4e82a53ce99
2010-09-28 17:10:33 -07:00
Gilles Debunne
c49b259a62 Updated assets in status bar. DO NOT MERGE.
Unlock has a 1 pixel offset that has to be fixed by code.

dropdown untested on device.

Most of these should be removed from SystemUI (revert 68833).

Pass 4.

Change-Id: Ibbbe4cc404151ec28768af98509082d77b303abe
2010-09-27 15:56:26 -07:00
Joe Onorato
a4a6503d30 Don't show X for notifications that can't be cleared
Bug: 3038418
Change-Id: Ic27c2e686b918c0238b85658700925c51311df06
2010-09-27 15:53:44 -07:00
Chet Haase
657028c293 new assets
Change-Id: I077fd2162e0901b6f31b815459873586f813a753
2010-09-17 12:55:03 -07:00
Robert Greenwalt
5b7c5e0552 am f434dd16: am 134b28a7: Merge "Update Inet Connection Status display" into gingerbread
Merge commit 'f434dd1660f222a1ee85e77c98893b90857805c2'

* commit 'f434dd1660f222a1ee85e77c98893b90857805c2':
  Update Inet Connection Status display
2010-09-15 19:49:53 -07:00
Robert Greenwalt
1e9aac2bd8 Update Inet Connection Status display
Cellular signal strength should also be green - these assets aren't, but
the art guys are working on that.

Also using a new intent so we don't overload the CONNECTIVITY_ACTION and
confuse the apps.
bug:2994024

Change-Id: I6fe8f65dd6e9869d9724064c4fae45340491a4d8
2010-09-15 17:54:17 -07:00
Robert Greenwalt
8a300c6107 am d4e722b7: am 34763928: Merge "add ART for inet connection condition" into gingerbread
Merge commit 'd4e722b74f4a5c58db03dd94d79f192c0a9b3004'

* commit 'd4e722b74f4a5c58db03dd94d79f192c0a9b3004':
  add ART for inet connection condition
2010-09-10 11:29:54 -07:00
Robert Greenwalt
26faee3945 add ART for inet connection condition
bug:2978624
Change-Id: I608c3d1657a4b75c42f95147ffd5e95927fc108d
2010-09-10 09:49:04 -07:00
Daniel Sandler
d39e388e6d Redesigned system bar and quick settings panel.
Change-Id: Ie26767a8c25af64809cf2fd1d8364791cb7e55ed
2010-09-02 11:34:20 -04:00
Daniel Sandler
8f8fcfa319 Notifications are now light-on-dark in the windowshade.
Finally.

This also fixes that little 1px gap that would occasionally
show through to the carbon fiber background (changed to
steel cord for now) between the last notification and the
windowshade's handlebar. It still gaps a little while you're
dragging, due to the asynchronous motion of the various
windows involved, but when the panel is still you shouldn't
see any background. (Man, that drove me crazy.)

Bug: 2949229

Change-Id: If085f4ab7dfb7c3868c30469661907d5d63f070b
2010-09-01 14:02:30 -04:00
Daniel Sandler
0776deff39 More obsolete status bar bits. DO NOT MERGE
Bug: 2949215
Change-Id: Ibf39d37df63ce4bbd0e0da5325495feec9d69a67
2010-08-27 22:57:39 -04:00
Daniel Sandler
764b4da4a8 System bar improvements.
- Updated artwork for buttons and signal/battery meters.
- Layout change: meters on either side of clock
- RSSI for mobile data. The algorithm is more or less the
  same as the one used in the phone status bar. Note that
  mobile data is only shown if Wi-Fi is unavailable.

Bug: 2924643
Change-Id: Idaa0c52422db4a63616475bde96626d1953830b4
2010-08-25 16:36:30 -04:00
Daniel Sandler
aead95f339 More final artwork for status bar.
Change-Id: Iaa79567bf6f1c36bd4249eb756e694dc74730fef
2010-08-24 15:41:28 -04:00
Daniel Sandler
35887dc152 Final status bar artwork.
Change-Id: I7933388ec090a049447ff1b2b3e1560df064c32b
2010-08-24 15:24:04 -04:00
Daniel Sandler
1e3ed8fc95 Battery meter now functioning in the system bar and settings panel.
Change-Id: I08881a597f166eaeabd01d550a59109661535639
2010-08-13 15:04:40 -04:00
Daniel Sandler
6425ef950c System bar settings panel: first pass.
Implemented: Clock, brightness, silent toggle, airplane mode
(although this seems not to be working well yet on the
device).

Unimplemented: Orientation lock, battery, wifi signal, date.

Change-Id: Iec9cc833103a68aecccf46cd6eeffc2128d64eea
2010-08-12 02:29:57 -04:00
Daniel Sandler
dfa08db165 Incremental system bar improvements.
- scrolling list of notifications
 - fixed crashes when inserting notifications
 - new "expand" icon in prep for different touch behavior on
   notification icons
 - adjustments to the Ticker API in preparation for Kicker
   work

Change-Id: I18908cbb2bbbfb7969c7bb48dbda67697732c438
2010-08-10 16:19:33 -04:00
Daniel Sandler
0f0b11c871 Basic support for notification payloads in the panel.
Line-item veto is there, but allows you to cancel some
notifications you probably shouldn't be canceling. (Should
hide the "X" in those cases.)

No preference given to "sticky" notifications, because
there's no such thing yet.

Notifications are now limited to 4 visible icons, per spec.
The implementation is a total hack for now.

Change-Id: Ibdf433ae94189117f983c510fe5e0cff0bf5c44c
2010-08-05 09:34:50 -04:00
Gilles Debunne
b0dde8e9b5 Move pngs from drawable to drawable-mdpi in project frameworks/base
After error during file transfer...

Change-Id: I21da694f81a4290e9af1f7647a8ceb6c6d3d806b
2010-08-02 15:21:27 -07:00
Daniel Sandler
294c9fb899 Improved graphics for the intruder alert.
Change-Id: I9aa6c8995da39f332b724fabe67ed5efe584552f
2010-06-30 15:32:26 -04:00
Daniel Sandler
5dbd05ed18 Intruder alert! (First try at the immersive-mode alert bar.)
When a FLAG_HIGH_PRIORITY notification is posted and the
foreground activity is immersive, this window will be shown
to the user. It disappears after a while (currently 10s,
which is far too long to be usable but is very handy for
testing) and can be dismissed by a tap.

Artwork is extremely rough; please ignore the aesthetics.

Still TODO:
  - sticky alerts for ongoing priority notifications
  - tap to launch PendingIntent associated with the
    notification

Change-Id: Ief4a98b84cc836d33359bd7d65de9909f5186317
2010-06-28 16:33:27 -04:00
Joe Onorato
7a0f36bd93 Move status_bar_latest_event and LatestItemView into SystemUI.apk.
Then, now that StatusBarManagerService is the only thing in that package,
move it up to the regular services package.  (I've been waiting for 4 years
to delete that package!)

Change-Id: If5faf44641319fd19e486d1f4e5bc1c6dfcff3ad
2010-06-09 14:33:30 -07:00
Daniel Sandler
87937dbcd1 New shadowy status bar, direct from Z'ha'dum.
Artwork is FPO but serviceable enough. Many hardcoded font
colors & styles were moved to styles.xml where they belong.
AM/PM finally given the old heave-ho (but configurable in
StatusBarPolicy.java).

Notification content remains on a light-gray background for
now (so as not to screw up custom RemoteViews) but status
icons will definitely need across-the-board rework to look
better against a dark background.

(Re-integrated on top of new status bar code.)

Change-Id: Ia180b3c2ba8e23c9a2f50cf46f98f12958022b53
2010-06-02 14:48:45 -07:00
Joe Onorato
798ac4c7d7 Start moving resources to SystemUI.apk.
Change-Id: Ibf30b8196d65d7fbca1177968cefa5f7a875bf1d
2010-06-02 14:48:45 -07:00
Joe Onorato
79de0c5500 Move the StatusBarPhone package into a new catch-all SystemUI.apk. 2010-06-02 14:48:45 -07:00