3432 Commits

Author SHA1 Message Date
John Spurlock
27735a4ba5 Maintain TRANSIENT_*_BAR flags until transient bars hidden.
Also factor common bar-management code into a separate helper
class called BarController instead of continuing to pollute
PhoneWindowManager with duplicate logic.

Bug:10345412
Change-Id: I880900e61daa6c2c53b169e4885e68ebc62ecb6c
2013-08-15 17:16:28 -04:00
John Spurlock
2b5d0264b2 am ac0a1ea0: Merge "Recover tracking pointer going up mid-gesture in shade." into klp-dev
* commit 'ac0a1ea06f4a11550e3ee476bbb89ece2984e826':
  Recover tracking pointer going up mid-gesture in shade.
2013-08-15 09:42:47 -07:00
John Spurlock
ac0a1ea06f Merge "Recover tracking pointer going up mid-gesture in shade." into klp-dev 2013-08-15 16:38:46 +00:00
Daniel Sandler
f9310baf2e am da68124d: Merge "Defend against NPE." into klp-dev
* commit 'da68124da23acadc192ba996d0e64f6d362a9a26':
  Defend against NPE.
2013-08-15 09:11:57 -07:00
Daniel Sandler
da68124da2 Merge "Defend against NPE." into klp-dev 2013-08-15 16:06:49 +00:00
John Spurlock
48fa91a818 Recover tracking pointer going up mid-gesture in shade.
Keep track of the pointer id used in driving the gesture. If
it happens to go up mid-gesture (another pointer is still down),
continue the gesture with another down pointer, instead of
abruptly jumping on next ACTION_MOVE.

Bug:10246050
Change-Id: Ia6e59658635fd696974fe415f37811d27da80519
2013-08-15 09:29:31 -04:00
Baligh Uddin
0046317044 Import translations. DO NOT MERGE
Change-Id: Ibb2df782552963c6a3a39f57c8fd8cce6f2f7654
Auto-generated-cl: translation import
2013-08-14 11:47:49 -07:00
Daniel Sandler
7a4c1afb7a am 3dfa5eb9: Merge "Toward regularizing color & level across battery indicators." into klp-dev
* commit '3dfa5eb9d9eeb12d761194cb06dc1ba63ed61e95':
  Toward regularizing color & level across battery indicators.
2013-08-13 23:33:11 -07:00
Daniel Sandler
3dfa5eb9d9 Merge "Toward regularizing color & level across battery indicators." into klp-dev 2013-08-14 06:29:05 +00:00
Daniel Sandler
dfaf3bdeeb Toward regularizing color & level across battery indicators.
Each of our existing assets is slightly incorrect in some
way: inconsistent pixel jumps from one percent to the next,
inconsistent color change, etc. The only way to get it
perfectly right is to draw it programmatically.

Bug: 8504254 // inconsistent color change threshold
-- previously --
Bug: 3136046 // in Gingerbread
Bug: 3387973 // Honeycomb
Bug: 5070948 // ICS
Change-Id: I6a3e7409ecec55e10328541ecb1e9d54aebdbe96
2013-08-13 23:21:08 -07:00
Daniel Sandler
0a565f3dcf am 0155a90e: Merge "How did that get there?" into klp-dev
* commit '0155a90eb4197a9aa1f8d53c90b02e5b53167183':
  How did that get there?
2013-08-13 22:30:10 -07:00
Daniel Sandler
0155a90eb4 Merge "How did that get there?" into klp-dev 2013-08-14 05:24:34 +00:00
Daniel Sandler
8800e46d84 How did that get there?
Whoever checked this in: Turn in your badge and your gun.

Change-Id: I635dbc3bae6a58bf425241fb4105e26cc03a9869
2013-08-13 22:19:50 -07:00
Daniel Sandler
24e028e0ec Defend against NPE.
During SystemUI startup, populating accessibility for other
views can race with attaching SignalClusterView to its parent.

Bug: 9999664
Change-Id: Iba34a3edba403ae65ff3c37b953d0736068a67b9
2013-08-13 20:18:01 -07:00
Daniel Sandler
7b9173b6f0 am a53d38bc: Merge "Drop simultaneous pointer events when tracking velocity." into klp-dev
* commit 'a53d38bc286ee35ab77843ad5b4c6b2fb9e81ac5':
  Drop simultaneous pointer events when tracking velocity.
2013-08-13 19:41:59 -07:00
Daniel Sandler
a53d38bc28 Merge "Drop simultaneous pointer events when tracking velocity." into klp-dev 2013-08-14 02:35:33 +00:00
Daniel Sandler
69f756fe9b Drop simultaneous pointer events when tracking velocity.
They're not really simultaneous, but within 1ms of one
another, which is too close for getEventTime() to
distinguish; these events were causing the velocity
computation to become (understandably) confused and
resulting in failed panel flings.

Bug: 10246454
Change-Id: I3829192cdf9ad2a222ec8deca031d772d58de0da
2013-08-13 19:24:19 -07:00
David Christie
72e6b98fec am 2163bb09: Merge "Don\'t allow airplane mode to affect location status icon. Gps still operates when airplane mode is on, and consumes just as much power so the icon shouldn\'t be hidden." into klp-dev
* commit '2163bb0924235dd3c3f47cbd8f25734cd8647ae9':
  Don't allow airplane mode to affect location status icon. Gps still operates when airplane mode is on, and consumes just as much power so the icon shouldn't be hidden.
2013-08-13 17:16:19 -07:00
David Christie
ef20fd1ea0 Don't allow airplane mode to affect location status icon.
Gps still operates when airplane mode is on, and consumes
just as much power so the icon shouldn't be hidden.

Change-Id: I10edc8771d3dd1831e94d26c6f61ca82d805cc12
2013-08-13 16:14:10 -07:00
John Spurlock
5d2268ad8d am e932e30e: Distinguish transient + transparent bar styles.
* commit 'e932e30eadb5978591316ffe3d21d60604c0cd91':
  Distinguish transient + transparent bar styles.
2013-08-13 10:34:49 -07:00
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
8fb569e86c am 34e13d90: Update transient navigation confirmation logic.
* commit '34e13d90eda9bfda7a70998d190a95c88aa3d3d1':
  Update transient navigation confirmation logic.
2013-08-13 10:24:24 -07: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
8810a0c3c2 am 69b9eff1: 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
* commit '69b9eff155254f1c274b8adbbf5501ddec4da089':
  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.
2013-08-12 18:47:21 -07: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
262f3ff288 am 8ffe17ae: Merge "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." into klp-dev
* commit '8ffe17ae32e72e5d872a36d5048bf912d28e766f':
  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.
2013-08-08 15:55:58 -07:00
John Spurlock
d5e9f2c159 am c059dbe9: Merge "Fix recent regression in hideytoast." into klp-dev
* commit 'c059dbe9c46d4b7f096826f9ce27f01491cc8087':
  Fix recent regression in hideytoast.
2013-08-08 15:55:39 -07:00
Daniel Sandler
4a76922e6c am d646882a: Add missing densities for HUN backgrounds.
* commit 'd646882af9a545c65bc591f85d0015fa45558e9e':
  Add missing densities for HUN backgrounds.
2013-08-08 15:55:36 -07:00
Daniel Sandler
9a81e154cc am f6971c80: Merge "OK, now it\'s a release." into klp-dev
* commit 'f6971c80fd413cad8e5333cd3184f41fcf64e14b':
  OK, now it's a release.
2013-08-08 15:55:33 -07:00
John Spurlock
d9c51fdcbe am 7a605df3: Merge "Don\'t always auto-collapse an empty notification shade."
* commit '7a605df3137ee571dec855761c0cb15b28513d26':
  Don't always auto-collapse an empty notification shade.
2013-08-08 15:55:28 -07:00
Chris Wren
60708eaf2f am e97f90b9: on screen off: convert heads up to full screen intent.
* commit 'e97f90b9bbe3e75db058827887a842c5f4a0dda0':
  on screen off: convert heads up to full screen intent.
2013-08-08 15:55:25 -07:00
Chris Wren
e7ea9466a0 am 6ccf0aff: Merge "heads up notifications always take the top spot"
* commit '6ccf0affd0a286ea4af9d48b54070deb9e476e90':
  heads up notifications always take the top spot
2013-08-08 15:55:23 -07:00
Chris Wren
4cbafb6a9a am d4db6cbc: don\'t bump an active heads up for a corrupt notification
* commit 'd4db6cbc0fa5b3b1ff7ea18f7b861f0753518e4f':
  don't bump an active heads up for a corrupt notification
2013-08-08 15:55:18 -07:00
Chris Wren
10afd0f095 am 464a8ce9: Merge "Animate the heads up notification into the shade."
* commit '464a8ce9cc6cfa19bce1abb5b744eff50a8a677d':
  Animate the heads up notification into the shade.
2013-08-08 15:55:15 -07:00
Chris Wren
457d901b13 am bb8b602b: Merge "ensure heads up slider is initialized."
* commit 'bb8b602b7826e7e819beee673a836629d78c3cbb':
  ensure heads up slider is initialized.
2013-08-08 15:55:13 -07:00
Chris Wren
944e41fe32 am 10dc5d97: Merge "proper geometry for heads up on tablets."
* commit '10dc5d97d4f1186ab9ea0eac254427e4082872a9':
  proper geometry for heads up on tablets.
2013-08-08 15:55:10 -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