57 Commits

Author SHA1 Message Date
Michael Jurka
99a9655b93 Making recents faster
Improving load time by:
- using window animation for fade-in and not
    waiting to create HW layer
- starting loading of thumbnails/icons earlier
- only initially creating views for the first
    screenful of items
- recycling views

Change-Id: I529b1085fe35d81aaafeb7433ccaed8e0537f01c
2012-02-13 19:11:40 -08:00
Daniel Sandler
bbbf6b9c49 am 70828a1d: am 5b08738a: Merge "Suppress mobile-out-of-service label if wifi connected." into ics-mr1
* commit '70828a1d40c9bf0e5066166216013093298de034':
  Suppress mobile-out-of-service label if wifi connected.
2012-01-26 15:47:06 -08:00
Daniel Sandler
62a1eb8972 Suppress mobile-out-of-service label if wifi connected.
Carrier name is shown if
 - in service and connected to mobile data
 - in service and connected to wifi

Carrier name is blanked if out of service and connected to
wifi.

"No internet connection" is shown if out of service without
any other route.

Bug: 5903914
Change-Id: I59d4d0c90e4153d73c38f7f0e150becf7e021a5b
2012-01-26 15:35:03 -05:00
Daniel Sandler
e08c3e1520 am aaa7b772: am 639ed754: Hide mobile RSSI on devices without mobile data.
* commit 'aaa7b7728f3ced062273b54e1fc3b9d7d815bdcd':
  Hide mobile RSSI on devices without mobile data.
2012-01-23 09:18:24 -08:00
Daniel Sandler
639ed754bb Hide mobile RSSI on devices without mobile data.
Also fixes some minor layout glitches along that row of
icons (Bluetooth vertical alignment & spacing, battery text
width, inter-icon padding).

Bug: 5895226
Change-Id: I303c2899bf21ddb7e28914d8fb36efd7090ac5e2
2012-01-20 14:37:54 -08:00
Daniel Sandler
494a17761d am 66e66e1d: am 755a967b: Merge "Clean up wifi/mobile indicators in the expanded panel." into ics-mr1
* commit '66e66e1d70bdcf184a29bc5eb8cfdeecffdb799f':
  Clean up wifi/mobile indicators in the expanded panel.
2012-01-12 13:37:54 -08:00
Daniel Sandler
5962fd5ec9 Clean up wifi/mobile indicators in the expanded panel.
We now have two separate RSSI icons, one for wifi and one
for mobile data, as originally proposed in bug 5544770.
Each has an accompanying label showing the appropriate
network description string (PLMN or SSID or "No internet
connection"); these will be truncated as necessary to avoid
clobbering other UI elements in the panel.

Bug: 5543495
Bug: 5621224
Change-Id: I8fc322f8471fc94000e7230de359d3f1fe561b1e
2012-01-11 16:57:51 -05:00
Daniel Sandler
1ba22cc33d am b490d8d6: am 29933fb2: Merge "Improve handling of small largeIcons in tablet ticker." into ics-mr1
* commit 'b490d8d6214114391622b4302ca2f5f39b2166c6':
  Improve handling of small largeIcons in tablet ticker.
2011-12-07 17:43:39 -08:00
Daniel Sandler
a3850b6839 Improve handling of small largeIcons in tablet ticker.
The tablet system bar is too short for a full notification
row, but it will show the largeIcon of a new notification in
its full frame, intruding into the main application content
rectangle a bit. This is a good thing---the notifications
really pop out at you---but it looks a little odd if the
largeIcon is actually *small*: the icon is vertically
centered in the larger (invisible) rectangle, making it look
poorly centered on the system bar.

This change will detect short largeIcons and center them in
the system bar's height instead. Additionally, it applies
the same ticker background all the way to the left
underneath largeIcons that are not full-frame (and therefore
have transparent regions).

Bug: 5708907
Bug: 5560485
Change-Id: I32af45632df164c58fb960110063dbaa08b5536c
2011-12-07 15:53:00 -05:00
Daniel Sandler
328310c6fa System bar now renders the back button for recents
We used to render the back button in Recents
itself, but that had an inconsistent visual
experience.

As a part of this change, add the early beginning
of support for private status bar APIs for dimming
navigation buttons.

Bug: 3448536
2011-12-06 17:22:19 -08:00
Michael Jurka
bfd24acd31 Updating recent apps visuals on tablet
- getting rid of blue glow (5529032)
- moving app icon position
- show message if there are no recent apps (5533332)
- fixing rare IllegalStateException on orientation change (5584344)

Change-Id: I2210e584957869c8f02339e6841daf39364a9dad
2011-11-14 23:49:10 -08:00
Daniel Sandler
989b9f2100 Fix scaling on notification panel wifi/battery icons.
Still needs a redesign.

Bug: 5544770
Change-Id: I27f6ea9f788110d7027b3ea788ca98216fa4fe28
2011-11-07 17:09:57 -05:00
Peter Ng
80c3c87ff0 Merge "Asset updates for tablet notifications and layout fixes to quicksettings" into ics-mr1 2011-11-01 13:45:18 -07:00
Daniel Sandler
0f167d7566 Restore bluetooth icons on tablets.
- status bar
- notification panel header area

Bug: 5385369
Change-Id: I382b9e4fbd3dd440919484c70d50b00ce85a8fa1
2011-10-27 14:58:52 -04:00
Peter Ng
3336e7d728 Asset updates for tablet notifications and layout fixes to quicksettings
Bug: 5522957
Change-Id: I5c13fd3d05c3634ced0d703b2dae02e813b41725
2011-10-26 19:26:17 -07:00
Michael Jurka
412cba8aa1 Make Recent Apps faster
- start loading on touch down
- avoid unneeded calls to onLayout
- don't fade in thumbnails if they've been loaded before we show recent apps
- don't pause between loading thumbnails
- fade in thumbnails+shadow (rather than just thumbnail as before)

Change-Id: I6dd4be7f52f9e8b51284ae052614719db8e71dc5
2011-10-18 15:48:18 -07:00
Daniel Sandler
58d807f66a Merge "Fix contentDescriptions in status bar." 2011-10-03 11:08:52 -07:00
Michael Jurka
7daf95d552 Fixing accessibility support in Recent Apps
- also switching "Recent applications" to "Recent apps" as per our new language guidelines

Change-Id: Ib625429ad22ce75ede782d59c0f45894d00c8502
2011-09-30 16:44:01 -07:00
Daniel Sandler
bcf6ef0b82 Fix contentDescriptions in status bar.
- Strings for signal strength
- Strings for the clear-all-notifications button
- Adjust phrasing for the clear-one-notification button
- Adjust phrasing for the settings button

Bug: 5285136
Bug: 5325056
Change-Id: I489e49f3b3d88a6b599ababe68d0535302eb0ae2
2011-09-30 12:48:35 -04:00
Michael Jurka
57e4d44f09 Speeding up Recent Apps
- removing unused calls on startup
- no longer compositing bitmaps against a background bitmap

Change-Id: If26812ef475d5d972d98dd1cb9f7f741eeb99dae
2011-09-19 14:49:59 -07:00
Michael Jurka
0e8063a3b4 Bug fixes in Recents
- Making thumbnails invisible until loaded (fixes regression)
- Speed up dismiss animation from menu
- Make the max swipe velocity greater
- Make only the thumbnail and app title long-clickable
- No more click sound when tapping outside the thumbnails to dismiss Recents
- Tweaking color of recents app label text

Change-Id: If7b6cd59e92feb0472eb3ea266733549cb9f4d4b
2011-09-12 16:55:04 -07:00
Peter Ng
02038e3cbb Updated Recent Apps visuals
-added padding to portrait and landscape layout recent item
-updated drawable stroke on press and drag

Change-Id: I98e0073f5fba6d13f041871337e4dc534bbc1460
2011-09-08 20:35:19 -07:00
Daniel Sandler
cbdc9d2e9c Merge "Use holo_blue_light for statusbar clocks." 2011-09-07 08:25:59 -07:00
Daniel Sandler
1a21f0ab60 Use holo_blue_light for statusbar clocks.
Also use the same style for the date in the phone
notification panel (which already had the same net
appearance).

Bug: 5231182
Change-Id: Ie0b44c2b9021a4f6ad56b0e1a78fdc9d8cf16f88
2011-09-06 13:32:25 -04:00
Michael Jurka
faa790c4f5 Fix the pressed state for thumbnails in Recents
- pressed state is now in foreground
- also, keep drawing pressed drawable on long press

Change-Id: I1a2025b5a79a5bfd4aaacf5312d52404fc3361a1
2011-09-02 19:32:05 -07:00
Michael Jurka
c6461ca5a0 Fix regression: recents did not dismiss after launching apps (5252649)
also:
- when using menu to "remove from list" in landscape, animate items upward (5149577)
- dismiss recents when tapping on whitespace regions (5115883)

Change-Id: I0f38c7567281583898a49f572cf92d6c59464649
2011-09-02 14:58:10 -07:00
Peter Ng
622a97646d updating visuals of Recent Apps
- replacing background PNGs with 9 patches
- removing border around thumbnails by default
- when swiping thumbnails, draw a border around them
- fix callout line length
- make recents window smaller on tablets
- deleting unused assets

Change-Id: If5bb1ba0d55a6d10e36ee14274c23596f0ba73b9
2011-09-01 16:38:16 -07:00
Michael Jurka
3cd0a59393 Improve Recent Apps scrolling performance
- 20fps improvement using software rendering
- 10fps improvement using hardware rendering
- in sw mode, rendering recents background in the recent items themselves and using a bitmap cache to draw individual items (gives perf gains for sw mode)
- in sw and hw mode, no longer doing a fade on the recents scroll view (gives perf gains for hw mode) - instead we draw a black gradient where we would normally fade
- fading recents & notifications immediately when swiped
- removing unused code

Change-Id: I908e2a25b89c9dfbf9b8c8f3810fa43064261b33
2011-08-31 17:48:40 -07:00
Dianne Hackborn
fc8fa63861 Fix issue #5128639: SystemUI grows by 10MB after taking a screenshot
We now do the screenshot in a separate process.

Also change the recents panel to not use hardware acceleration
on lower-end devices.  And improve how it gets shown to not
load all data up-front which results in a long delay when you have
lots of recents.

Change-Id: Ia309a90f9939e5405758621b3f7114597bd0c02a
2011-08-17 17:45:05 -07:00
Daniel Sandler
9a5505f025 Merge "Fix drawing artifacts on glowing navigation buttons." 2011-08-17 16:22:01 -07:00
Daniel Sandler
96f4818ef4 Fix drawing artifacts on glowing navigation buttons.
Bug: 5162661
Change-Id: I49d78124cc179221492af2f7bee6adf7bfe34426
2011-08-17 13:45:01 -04:00
Daniel Sandler
3e1cee60dd Merge "Breathing room between RSSI and battery on tablets." 2011-08-17 06:47:11 -07:00
Daniel Sandler
90e496bd3f Breathing room between RSSI and battery on tablets.
Bug: 5161042
Change-Id: Ibad52f40d9ddb7fda6a7867f9242e0d47b036d01
2011-08-16 16:08:03 -04:00
Christian Robertson
2e347429df New RSSI cluster in status bar.
Bug: 5147463
2011-08-12 10:15:31 -04:00
Daniel Sandler
298a2a816a Disable peeking at individual notifications.
Now tapping anywhere on the notification/clock/status end of
the system bar will bring up the notification panel.
Swiping up anywhere in that region works as well.

This change also adds visual touch feedback to the panel
trigger area.

Bug: 4723688
Change-Id: I5e24fea1231b798c41ddd48c0c42c283c92ebe65
2011-08-11 16:25:57 -04:00
Daniel Sandler
06a0d4b5c3 Clear all notifications on tablet actually works now.
Also, the panel is no longer buried below the screen edge
when there are no notifications.

Bug: 5115158
Change-Id: I01bc8a65ceebd64143a4c4c52d63641dc3cd1c77
2011-08-05 00:29:58 -04:00
Daniel Sandler
1347c30824 Refresh tablet notification drawer.
* New "X" button appears in the system bar, allowing the
    user to clear all notifications. Only appears when the
    notifications list is showing and there are clearable
    items. (Note: the textual button on phones has also been
    replaced with an X.)

  * Updated panel background artwork and positioning.

  * Removed a bunch of old art.

Bug: 4970588
Bug: 4974043
Bug: 3509407 (regression)

Change-Id: Ibadb638cd18c4faa751cd1f311d73ceda65cb3ca
2011-08-02 01:38:55 -04:00
Daniel Sandler
a375c94fca New richly-appointed navigation buttons.
- Beautiful new touch feedback animations
 - Romantic icon dimming
 - Supple Corinthian leather

Bug: 4541219
Change-Id: I8c4e1ec73aba910a17001795d2b03200c5af1788
2011-07-29 00:38:55 -04:00
Daniel Sandler
2b69735e01 New stacked RSSI icons.
The signal strength, network type & flow indicator, and
battery have all been moved out of the policy and into the
status bar implementation itself, mirroring the change on
tablets. This means that they no longer use status bar icon
slots but instead are bespoke layouts and views.

GPS has also been removed and will return as a notification
(again, as was done in the Honeycomb tablet UI).

Bug: 4691638
Change-Id: I60df4871209b64209bfc5b3bf398651cc2e77b24
2011-07-26 08:17:28 -04:00
Svetoslav Ganov
6179ea3196 Adding accessibility support to the Status Bar.
1. Added content description to pretty much all animals
   in the zoo including buttons in the navigation bar,
   notifications and status icons for battery, signal,
   data, etc.

2. Rectored to avoid ovelaying views since they block
   touch exploratino. In general overlaying views
   cause trouble for touch exploration and accessibility
   in general.

3. Avoid sending accessibility events in case the user is
   touching outside of the StatauBAr panels to avoid
   confusion.

4. Added records to accessibility events in the places where
   this would help the presentation. So the event comes from
   a given "leaf" view and its predecessor is adding a record
   to the event for itself to provide more cotext. It is up
   to the accessiiblity service to choose how to present that.

bug:4686943

Change-Id: I1c1bd123d828fb10911bca92130e9a05c1f020b3
2011-07-21 12:04:54 -07:00
Jim Miller
c0d2731047 Fix 5023708,4689527: Add popups and overlays to recents. Misc bug fixes.
Adds selection overlay to recents to comply with UX design.
Adds longpress popup for removal and inspection of items.

Change-Id: Ic23c3f135b6ed107cc5156505d8f163daa94c52e
2011-07-18 12:57:40 -07:00
Daniel Sandler
ebce0115e2 ICS updates to notification layouts.
Of note:

1. There is no "X" (veto) button anymore. (Well, there is,
   but it's offscreen so it should still be available to
   assistive devices.) Users can use "Clear all" or the new
   swipe-to-veto gesture to clear notifications.

2. As a consequence of #1, your layout goes all the way to
   the right edge of the notifications panel again. Enjoy
   the extra space!

3. The numeric bubble in the notification icon is now capped
   at "999+" like it is in the expanded notification view.
   (Note that this involves a couple of new public framework
   resources: one to indicate the number beyond which the
   substitution string will be used, and one specifying a
   localizable substitution string.)

Bug: 4651514
Bug: 4686329
Bug: 4501990
Change-Id: I0e6bdb6aec4fe5bfc927eb1aba955d444a9414ec
2011-06-17 13:28:56 -04:00
Michael Jurka
d727cf7e3f Merge "Port recent apps from tablet to phone" 2011-06-15 16:51:22 -07:00
Michael Jurka
3b1fc47d00 Port recent apps from tablet to phone
- wire up to long press on home
- remove unused recents activity
- remove duplicate recents resources in -large directories (using -sw600dp instead)
- fix issue with zoom/scale translation when recents was brought up

Change-Id: I45538ccaff49b46ac3659c4828f9e2b0cd075241
2011-06-15 16:50:04 -07:00
Justin Ho
f4b56eaaba am 40fc6e0d: am c407ef22: am f4096041: Merge "Updated art for compat mode dialog." into honeycomb-mr2
* commit '40fc6e0de578198c9cc5d9a493cb7db77bc938b8':
  Updated art for compat mode dialog.
2011-06-15 15:01:42 -07:00
Daniel Sandler
e25f8336a0 Updated art for compat mode dialog.
Also finalizes on the following language & ordering in the menu:

  ( ) Stretch to fill screen
  ( ) Zoom to fill screen

Bug: 4595256
Change-Id: Ie92b1e0d829341fd73043a562e78437af2b128ec
2011-06-15 16:14:55 -04:00
Daniel Sandler
d7c8b6d2a4 am 2897fc4c: am fbb09347: am 5994bff9: Merge "One-time-only compatibility mode explanation dialog." into honeycomb-mr2
* commit '2897fc4cc320d9fea2c6a81d7e2b05b6b820acf0':
  One-time-only compatibility mode explanation dialog.
2011-06-15 06:36:56 -07:00
Daniel Sandler
2932645d99 am d163a616: am 2fdf5880: am 97d5081a: Merge "Final UI for compatibility mode." into honeycomb-mr2
* commit 'd163a6162891f0e14d4536460d839262d2693e9a':
  Final UI for compatibility mode.
2011-06-15 06:36:35 -07:00
Daniel Sandler
552b1f0d22 One-time-only compatibility mode explanation dialog.
Don't miss it!

Bug: 4595256
Change-Id: I80c0949e6118e3ea3af089d4cad160ce63e7d8ce
2011-06-15 01:03:02 -04:00
Daniel Sandler
3b0543acf1 Final UI for compatibility mode.
Bug: 4595256
Change-Id: Idaa96393fb809c828b5f661f29e8b687fdf3d104
2011-06-15 00:12:01 -04:00