3349 Commits

Author SHA1 Message Date
John Spurlock
e932e30ead Distinguish transient + transparent bar styles.
Transient bars = 30% black scrim per spec (formerly view alpha).
Transparent nav bar = Simple gradient drawable from 50% to 0% black.
Transparent status bar = Fully transparent.

Smoother transitions between bar modes will be tricky due to
coordination with window manager, and thus deferred to a separate
future change.

Pre-baked assets instead of the gradient drawable will also be
part of a separate future change, this change is simply meant to
move closer to the final look and feel to minimize confusion for
those kicking the tires on the new flags.

Bug:10012887
Change-Id: I8c35a660187903224a6bfe604b5313e9115c4a73
2013-08-13 13:29:43 -04:00
John Spurlock
34e13d90ed Update transient navigation confirmation logic.
Show the confirmation toast when hiding the transient
navigation bar only the first time per app, per reboot.

Hitting the power key while the transient nav is hidden
is taken as a signal of possible user confusion, so reshow
the prompt the next time.

This requires the confirmation prompt to live in policy
(not sysui).  It arguably should have been here in the first
place, since the transient bar state/policy was here, and
sysui should not have not been able to fail to display
the prompt correctly.

Also take this opportunity to remove a hack wrt positioning
the confirmation properly while the nav bar is transitioning.
Toasts now support LAYOUT_HIDE_NAVIGATION if applied to the
toast's view.

Bug: 10246225
Change-Id: Ieb6355e4ca975c0758918a39e3c2ec13da81c7f4
2013-08-13 13:18:14 -04:00
Baligh Uddin
43e56c4a91 Merge "Import translations. DO NOT MERGE" into klp-dev 2013-08-13 07:29:07 +00:00
David Christie
69b9eff155 Merge "Update Quick Settings to use new consolidated master location method. This is an effort to consolidate the logic of what the "master location switch" means. Quick settings will no longeer explicitly enable/disable gps and network providers." into klp-dev 2013-08-13 01:44:42 +00:00
Baligh Uddin
2bab15e513 Import translations. DO NOT MERGE
Change-Id: Iff45d8191fc4ac1fb7ae48c680cebd3f9dcf83da
Auto-generated-cl: translation import
2013-08-12 09:06:40 -07:00
Baligh Uddin
78a4740aa5 Import translations. DO NOT MERGE
Change-Id: I8e06a2ad389d19787557ab26ef10b20e6d667ec4
Auto-generated-cl: translation import
2013-08-09 00:29:33 -07:00
David Christie
d4544b75f1 Update Quick Settings to use new consolidated master location method.
This is an effort to consolidate the logic of what the "master
location switch" means.  Quick settings will no longeer explicitly
enable/disable gps and network providers.

Change-Id: I78e1337561f72aca81ba5b14321845a0a9d0b597
2013-08-08 14:23:20 -07:00
David Christie
c750c1fb83 Update gps status icon to be a "high power" location icon.
Move icon to right side of the screen and synchronize status with
AppOpsManager.OP_MONITOR_HIGH_POWER_LOCATION.

Change-Id: Iea2570501cb18be0489669fd4ea240dc63f9567a
2013-08-08 14:06:25 -07:00
John Spurlock
c059dbe9c4 Merge "Fix recent regression in hideytoast." into klp-dev 2013-08-08 19:17:31 +00:00
Daniel Sandler
d646882af9 Add missing densities for HUN backgrounds.
Bug: 10242598
Change-Id: I4bb48102c1d1f94e61c6c8f61e567be919a5fbdf
2013-08-08 14:32:53 -04:00
Daniel Sandler
f6971c80fd Merge "OK, now it's a release." into klp-dev 2013-08-08 17:50:00 +00:00
John Spurlock
bcb21a8390 Fix recent regression in hideytoast.
Bug:10240896
Change-Id: Iba7af673bdfd878a02932e19dd594e3f9667d7a1
2013-08-08 13:31:47 -04:00
Daniel Sandler
06c0e408c4 OK, now it's a release.
Bug: 10239687
Change-Id: I38a86926f32e5877cd47ae5e4b625a811478aadc
2013-08-08 12:03:38 -04:00
John Spurlock
7a605df313 Merge "Don't always auto-collapse an empty notification shade." 2013-08-08 11:27:30 +00:00
Chris Wren
e97f90b9bb on screen off: convert heads up to full screen intent.
Let the app handle screen off as appropriate.

Bug: 10209767
Change-Id: I3949def1980118c0380b173a83148321ad8c5d95
2013-08-08 07:23:13 -04:00
Chris Wren
f0048ce66f heads up notifications always take the top spot
If it was important enough to be a heads up, it should get top spot.
Make this sticky so bumping out of the HUN doesn't require a shade sort.
Split view creation and insertion so we can get the shade order correct.

Bug: 10001616
Change-Id: I4c1f2581e11a94241269984a01b92289a8943065
2013-08-08 07:16:38 -04:00
Chris Wren
d4db6cbc0f don't bump an active heads up for a corrupt notification
Change-Id: I405d6438e003b08fc3e144bb870c3b3233f71e26
2013-08-08 07:06:15 -04:00
Chris Wren
464a8ce9cc Merge "Animate the heads up notification into the shade." 2013-08-08 10:48:31 +00:00
Chris Wren
bb8b602b78 Merge "ensure heads up slider is initialized." 2013-08-08 10:47:02 +00:00
Chris Wren
10dc5d97d4 Merge "proper geometry for heads up on tablets." 2013-08-08 10:46:02 +00:00
John Spurlock
1caf7eb599 Don't always auto-collapse an empty notification shade.
If the user is actively interacting with the shade, don't
collapse it from underneath them.

Bug:10226720
Change-Id: Idf26c8f59dc5a1a5ae3b4314f1ca81740b0517e7
2013-08-07 18:06:18 -04:00
Baligh Uddin
b83f62236c Merge "Import translations. DO NOT MERGE" 2013-08-07 17:11:35 +00:00
Chris Wren
9afc50deda Animate the heads up notification into the shade.
Bug: 10001874
Change-Id: I14ece05dbc29a93a551381c6ddc3cbbb8a331430
2013-08-07 11:07:21 -04:00
Chris Wren
4c91312d55 ensure heads up slider is initialized.
Change-Id: I4095b89133b64dd5c5d81e3b7fab288ee5538654
2013-08-07 11:07:21 -04:00
Chris Wren
0f2aa68e3c proper geometry for heads up on tablets.
also some code cleanup since things are getting complicated.

Bug: 10074485
Change-Id: I900a60f0fdda8d2ef1bcfe01035d6f716e14aa56
2013-08-07 11:07:21 -04:00
John Spurlock
166bc5b664 Merge "Introduce new transparent bars sysui flags." 2013-08-06 22:29:17 +00:00
Dianne Hackborn
614b4c4cd4 Merge "Refactor ProcessStats, ProcessTracker." 2013-08-06 21:32:42 +00:00
Dianne Hackborn
d2932243e3 Refactor ProcessStats, ProcessTracker.
ProcessStats is now called ProcessCpuTracker.

ProcessTracker is now ProcessStatsService, and its inner State
class is broken out into a separate top-level ProcessStats class.
This ProcessStats is moved to the framework, so we will be able
to use it elsewhere.

Change-Id: I6a127bcb835b6b474b72647c0b99b82c2137e5c5
2013-08-06 13:54:07 -07:00
Alan Viverette
3ed2ba3e76 Merge "Avoid creating new objects when DateView updates time" 2013-08-06 18:18:06 +00:00
John Spurlock
e1f366faf8 Introduce new transparent bars sysui flags.
Two new public sysui flags for views to request transparent
bars:
  View.SYSTEM_UI_FLAG_TRANSPARENT_STATUS
  View.SYSTEM_UI_FLAG_TRANSPARENT_NAVIGATION

This first change simply introduces the flags at the framework
level, and makes the requisite layout tweaks to WM.

As part of this change, expunge the term "hideybars" from the
codebase. The flag to declare support for transient bars is called:
  View.SYSTEM_UI_FLAG_ALLOW_TRANSIENT

Final visuals/transitions between opaque/transparent bars will be
done as a subsequent change. Right now the transparent style is
identical to the transient bars.

Change-Id: I5ead9c5e7b77f212df5b2a5f6e770596cd2226f3
2013-08-06 14:17:22 -04:00
Baligh Uddin
7f29a1642f Import translations. DO NOT MERGE
Change-Id: I0c6999034ab12cf0a9e6b7344e03b8b866406fde
Auto-generated-cl: translation import
2013-08-05 20:46:27 -07:00
David Christie
c90896a602 Revert icon changes in "Modify quicksettings to have new location behavior." (b/10184973)
This reverts icon changes in commit 03ed0127dae141d99b003ede9ba3ea937128e471.

Change-Id: I78e3af4a745dd4f182369edd9df9c296854e7762
2013-08-05 14:36:58 -07:00
Baligh Uddin
ec4d2aa50d Import translations. DO NOT MERGE
Change-Id: I0799c647e037d672f16c11d39489926a4938e71f
Auto-generated-cl: translation import
2013-08-05 09:47:33 -07:00
John Spurlock
32230ef4e6 Merge "Collapse/disable shade when hiding status bar window." 2013-08-05 13:18:54 +00:00
David Christie
03ed0127da Modify quicksettings to have new location behavior.
Location tile is always present, and long pressing
toggles the master location enabled switch.

Change-Id: I54d5ccaa3b04e14ebebd68f5fafa8e65311debb4
2013-08-02 13:10:10 -07:00
Baligh Uddin
b291b5e0b7 Import translations. DO NOT MERGE
Change-Id: I412cb6d16cfd7efb9befa89fbaaf46aba6839b46
Auto-generated-cl: translation import
2013-08-01 10:54:29 -07:00
John Spurlock
9764218ff9 Collapse/disable shade when hiding status bar window.
Provide system bar window visibility (showing/hiding) to sysui,
information it did not have before.

Use this new info to disable shade interaction when bars are hiding.

Bug: 8682123
Change-Id: I4105b789866f847582af1c68a703240d773fa71e
2013-07-31 14:54:03 -04:00
Chris Wren
c743dfd5a9 Merge "insistent heads up should not time out" 2013-07-30 15:37:46 +00:00
Chris Wren
eda110fdf1 insistent heads up should not time out
Bug: 10000289
Change-Id: Ic263d9d6e90a61cc766844a8394c71d281f93976
2013-07-30 11:32:52 -04:00
Alan Viverette
6e9b0477f9 Avoid creating new objects when DateView updates time
Change-Id: I74f8b44a58cf5c88dd6ead781acf36e1f51d847a
2013-07-29 13:46:43 -07:00
Craig Mautner
211cb86ab2 Move Recents task to back when hiding view.
Whenever the Recents activity actively hides itself move its task
to the back of the activity stack behind the home task. Otherwise
we get into a loop of the bck key returning to the Recents task
when it is intended to move to the home app.

Fixes bug 9750207.

Change-Id: I7d69f28368db148cb493bf54867df084907910ec
2013-07-28 17:59:09 -07:00
John Spurlock
9deaa286d8 Dismiss hideybars on touch outside.
When the system bars are revealed in auto-hiding mode, the user
should be able to dismiss them before the timeout by interacting
with the underlying activity.

Bug:8682187
Change-Id: I79169005baafda27fb5ad9c29ab1ec67600b2eb6
2013-07-25 14:42:48 -04:00
John Spurlock
a5baf89102 Remove obsolete optimization.
Reverts JB optimization I7ae978caa1f28932ee56f65484b18330a4406b80
made obsolete by I2f9b0591d44599b07bd83f03c4e09e6dd98e1448 in MR1.

Change-Id: I8a738624f9a902648e317f2eac25fd56c3b47a46
2013-07-25 13:15:42 -04:00
Chris Wren
51c7510e49 allow rich notifications in the heads up.
new shouldInterrupt logic: screen on, not locked, not dreaming, and
  priority above HIGH and noisy, or has fullscreen intent
draft of API allowing devs to give hints about head up display

reuse inflateViews()
add an expand helper to the heads up space
move some things into Entry for reuse

don't allow touches in first second
delay decay if touched
make decay time a resource

add a custom viewgroup for notification rows to get view management
out of the NotificationData class.

Change-Id: I36464f110cfa0dabc3f35db7db6c35c27e8ee2ba
2013-07-23 11:38:56 -04:00
Baligh Uddin
94edfc99c8 Merge "Import translations. DO NOT MERGE" 2013-07-19 17:19:20 +00:00
Satoshi Kataoka
c0743ec466 Merge "Fix an issue on hardcoded alarm settings intent" 2013-07-19 03:26:53 +00:00
Baligh Uddin
25a78901fd Import translations. DO NOT MERGE
Change-Id: I9a868474b1fa886a461c5f5d81126aabc8d98bef
Auto-generated-cl: translation import
2013-07-18 11:45:05 -07:00
John Spurlock
209bede6b9 Remove trailing whitespace from system ui.
Baseline existing .java files, no excuses going forward.

Change-Id: I4bd0f25bbda6f2ec832e34ef5c70d4830bf07f99
2013-07-17 12:23:27 -04:00
Chris Wren
574a55e9ee unify variable naming scheme.
inflateViews() and updateNotification() reference the same objects
with different names, and it was confusing.  #cleanup

Bug: 6497005
Change-Id: I0d9a94d7ec156b6bfcf4b85c777f9b58311d07d0
2013-07-16 14:34:46 -04:00
Chris Wren
157026f820 heads up notifications, v0.1
1. re-name intruder alerts to heads up notifications
2. use interrupt for the verb form, instead of intrude
3. new policy: no full screen, high priority, screen on, not locked or dreaming
4. controlled by global setting, with an observer
5. only content view for now, expandable is a todo

to turn it on:
  adb  shell settings put global heads_up_enabled 1
calendar notifications (not pop-up) work well.

Change-Id: I253418c217d0a5cf81dc2fa001f4bad90fafcce5
2013-07-09 11:12:49 -04:00