86 Commits

Author SHA1 Message Date
Daniel Sandler
c26185bb7b Expand the navbar dead zone briefly after touches elsewhere.
For now, each time the dead zone captures a touch, it will
flash to let you know that's what happened. We should
probably turn this off before shipping.

Note also that this currently only expands the navbar on
ACTION_DOWN elsewhere in the UI (because this is the only
time ACTION_OUTSIDE is generated); this isn't perfect and
we'll need to do some mucking about with the input system to
get information about ongoing drags or additional pointers
down, but this CL is a good start and introduces the general
mechanism for expanding and contracting the dead zone.

Change-Id: I43e63aed1e541fd07d83fde4d66bcb5be89b69d2
2012-08-29 20:11:21 -04: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
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
Jim Miller
a592d22473 Minor cleanup of left overs from GlowPadView integration.
- remove unused "chevron" assets
- reduce memory footprint in SystemUI by not loading unused handle drawable.

Change-Id: Iad1799d1a8a764c6abb4201520aa47ba84d33c38
2012-06-29 18:29:08 -07:00
Jim Miller
a7da8afe6d Fix 6693743: update animation ring for keyguard and search panel
This is a partial revert of change Ibce96f45eb6a94582c694108b99e243fd57b1955.

This change:
- shows the expanding ring animation on keyguard and navbar search
- disables the first ping wave animation on both.
- restores the outer ring

Change-Id: I429d23a49ca2868dc00872b8b8fde000d6a53a6d
2012-06-19 16:17:19 -07:00
Jim Miller
5892e2ec25 Fix 6683092: tune GlowPadView wave animation
This adds some aesthetic changes to the wave animation for GlowPadView:
- wave shape is no longer symmetric
- disable expand in keyguard
- enable expand in SearchPanelView (when mAlwaysTrackFinger == true)
- if a current wave animation isn't finished yet, don't start a new one
- various timing changes

Change-Id: Ibce96f45eb6a94582c694108b99e243fd57b1955
2012-06-18 17:04:58 -07:00
Michael Jurka
53f109bf49 Change snap behavior for lock screen
Use angle and distance from center, rather than
distance from target.

Change-Id: Ic970bc4b05d341dbb6aab334e3f630794f2a211c
2012-06-14 10:56:33 -07:00
Jim Miller
955a016922 Fix 6613962: Update keyguard to use new GlowPadView UX design.
Change-Id: I4f1ef3107e5550f7df9dcb412943a84b66432b7d
2012-06-12 19:16:08 -07:00
Jeff Brown
615fd3dff2 Merge "Implement new rotation policy." into jb-dev 2012-06-05 19:11:13 -07:00
Jeff Brown
207673cdbb Implement new rotation policy.
Rotation lock does not override NOSENSOR mode anymore.

Centralize the rotation policy settings into a new class shared by
the System UI and Settings applications.

Add a new setting to specify whether rotation-lock is being hidden
because the "auto-rotate screen" option has been toggled in the
Accessibility settings panel.

Bug: 6523269
Change-Id: I15173280d25bc5d101e89a9c65913aefc53fc33a
2012-06-05 17:59:46 -07:00
John Spurlock
804df70112 StatusBar: Improve framerate on reveal animation.
Ensure reveal animation runs after notification panel is completely drawn.
Align minimum close handle position to proper height with new super status bar.

Bug: 6555172
Change-Id: I7ae978caa1f28932ee56f65484b18330a4406b80
2012-06-05 10:09:08 -04:00
Jim Miller
a073e57078 Fix 6398209: General animation improvements for swipe to search
This cleans up the animation for swipe to search from the navbar.  In particular:
1. Wait for initial animation to finish if gesture was too quick.
2. Better fade animation
3. Hide background and fade in when ring is selected
4. Smoother target and outer ring animation when switching between states.

Change-Id: I401197760cf9f06b6ff3e1cdb80bee86a03ef276
2012-05-29 12:49:23 -07:00
Jim Miller
58a69d24c4 Merge "Fix 6398209: Re-enable vibrate for search gesture." into jb-dev 2012-05-17 17:11:48 -07:00
Jim Miller
64fffadf00 Fix 6398209: Re-enable vibrate for search gesture.
Change-Id: Iabcfa21aae05fa55ec3fdc76eeed76577b962de5
2012-05-17 17:01:15 -07:00
Daniel Sandler
3ac558b6bf Hide the expanded status bar view when not in use.
Bug: 6511388
Change-Id: I8df11f80871cbd739712179034e04f49bb6b0d9d
2012-05-17 13:38:11 -04:00
Daniel Sandler
8e18dc7757 Black out the status bar when the shade comes down.
Also move the shade up and forward to overlap the (now
empty) status bar.

As a side effect, DISABLE_SYSTEM_INFO now works for phones.

Bug: 6418617
Change-Id: I3b129e4bb26d3aba55403bf03baf8f4c8ad0ff46
2012-05-17 00:57:11 -04:00
Jim Miller
c6e523ea9b Fix 6486099: Fix clipping issues with MultiWaveView on phone/tablet
This fixes a problem where the bounds of the view weren't being
calculated properly when a separate outer radius was specified.

The code now takes the maximum of the ring drawable's width/height
and that specified in the resource files.

This gives it the best default look on all devices while still
allowing minor tweaks.

Change-Id: I5daa40ff4f14653c8cc89b39102816afb976e4f7
2012-05-12 14:23:23 -07:00
Daniel Sandler
bf6e0ba99d Don't show rotation lock on phone-sized devices.
Bug: 6476409
Change-Id: Ife4476ab08a96337fe78ef2892ac5d73f90b3e8c
2012-05-11 10:41:18 -04:00
Jim Miller
354619c1cc Fix 6397736: Swipe up to search layout fixes
This fixes several layout issues on phones and tablets with MultiWaveView.

It adds a new background scrim to be shown behind the MultiWaveView
on the navigation bar.

MultiWaveView is updated to handle gravity constraints which makes layouts
much more flexible across devices.

Change-Id: I64068f4eaa81ef6c464247049117d53432fcacbd
2012-05-06 22:39:18 -07:00
Daniel Sandler
c4f2a5652d Back button dismisses notifications again.
Bug: 6441337
Change-Id: Iabc97cd2a3f66ee2af5406807b3023908965b8c8
2012-05-04 11:58:01 -04:00
Daniel Sandler
21b274e8a0 Large-screen notification panel size + positioning.
On sw600 devices we show the notification panel in a smaller
rectangle, centered in portrait and left-aligned in
landscape.

Also remove a bunch of -large resources that shouldn't be
used anymore.

Bug: 6297838
Change-Id: I8ed3445ccb7df16e30870a4322d89786467c54df
2012-05-03 01:14:07 -04:00
Daniel Sandler
4f85eb5872 Move legacy menu key to bottom right on sw600dp.
It's too easy to press if it's *all* the way to the right,
though, so there a 2dp margin separating it from the bezel.

Bug: 6399312
Change-Id: If4ebcd4cfcee0c667bcc6142af86c04445f41fea
2012-05-01 13:50:29 -04:00
Jim Miller
3b291870d3 Fix 6299832: Improvements to navbar's "swipe to search"
This uses the new global search intent provided by SearchManager.

It also fixes the layout on tablets.

Change-Id: I9dd97785a454a4793aed7da1f5e260377f648354
2012-04-24 19:18:38 -07:00
Daniel Sandler
6ae7b5807a Expand hit rectangles of main navigation buttons.
There's now no dead space between them. Also, increase the
visual size of the nav icons by 30% (just a quick resample
of the current artwork, to be replaced by custom-drawn
graphics at 130%).

The background glow looks kind of comical right now.

Bug: 6381833
Change-Id: I03ef0ea64a9e953f9f2b29cc03097d250ff52134
2012-04-23 17:15:15 -04:00
Daniel Sandler
4a066c5c77 Update SystemUI for sw600dp devices.
Devices between 600 and 719dp will now use the two-bar
(phone) SystemUI layout, or something like it, derived from
PhoneStatusBar. Devices above 720dp will use the system bar
from TabletStatusBar.

However, this distinction is not to be made based on dp, at
least, not by the SystemUI; the goal is to drive most of
this switch from the window manager. Therefore most of
SystemUI's sw600dp resources have been folded into the main
set of resources (renaming them to avoid collisions where
appropriate). This allows SystemUI to choose which set of
resources to use entirely by switching status bar
components, entirely independent of Configuration.

(For some resources, particularly around recents, it seemed
more expeditious to keep relying on the device
configuration, so those resources have been bumped up to
sw720dp.)

Bug: 6297838
Change-Id: I3f5414a6a718bdc83f51930d6878cdf97df48c9c
2012-04-21 00:19:47 -04:00
satok
01038492ff Show physical keyboard control button on the input method switch dialog
Bug: 5240095
Change-Id: Ica768083f95c33dc1e494a28ba7d8b6eb989b0ef
2012-04-11 15:49:35 +09:00
Michael Jurka
55a25faa6f Reducing height of scroll fade in Recents on phone
Bug: 5149089
Change-Id: I163d3e9b888501999e812cff00d015bed36ca0d6
2012-04-03 04:40:35 -07:00
Andrew Flynn
c5bad6956e am 36fde268: am dfc87c82: Merge "Use a different width for nav icons in sw600dp-port." into ics-scoop
* commit '36fde2688bc32ddd5ed5de834a39ce3c7cd2b6cf':
  Use a different width for nav icons in sw600dp-port.
2012-03-09 11:43:53 -08:00
Andrew Flynn
1d9af30b74 Use a different width for nav icons in sw600dp-port.
Change-Id: I6c4024e9f60e14c072d7c01f29fabc89fc51dfb8
2012-03-08 15:56:10 -08:00
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