9800 Commits

Author SHA1 Message Date
Dan Sandler
52e5701eea Move LOCK_SCREEN_SHOW_NOTIFICATIONS to per-user Settings.Secure.
Bug: 15331132
Change-Id: Ia80ccb2cfdf60116bd50601e60ff131619eafcc5
2014-08-06 18:00:53 +00:00
Geoff Mendal
ea844f92a3 Merge "Import translations. DO NOT MERGE" into lmp-dev 2014-08-05 00:29:22 +00:00
Geoff Mendal
1375bf9316 Import translations. DO NOT MERGE
Change-Id: Ifcaa00a5e222bebdd9d9d2608d0c4fdeed236c42
Auto-generated-cl: translation import
2014-08-06 10:37:51 -07:00
Jason Monk
256a22663d Turn off/on wifi to correspond with hotspot
Add logic to act the same way Settings does.  Without this sometimes
wifi is in the wrong state (on) and the hotspot wont turn on.

Bug: 16818232
Change-Id: Iaa7950a1c2097cfd798eddb604b49b3a152f1260
2014-08-06 13:04:06 +00:00
Winson Chung
cdcd487aba Fixing issue where home was triggered on top of other activities being launched. (Bug 16823617)
- Also fixes issue with the Recents hide message being clobbered
2014-08-06 01:02:15 +00:00
Jeff Sharkey
fa5ec770ec Use system collator for display names.
Continue sorting directory names first, but use system collator in
case-insensitive ordering.

Bug: 13545569
Change-Id: I24b314c9ef42f397bc96f474d9593bdefc0061d1
2014-08-06 00:56:45 +00:00
Jorim Jaggi
1328569d33 Fix more card on Keyguard overflow.
Bug: 15719165
Change-Id: Ie1e99dd722d7fcd52c0ce2eda968885835004b2b
2014-08-05 23:37:31 +00:00
Jorim Jaggi
5eb4c19043 Fix pressed state when long pressing nav bar buttons
Bug: 16018025

Change-Id: Ic2bc96feae8a68e471fe902ae05611719ecf8dad
2014-08-05 23:13:40 +00:00
Brian Colonna
793a3d1643 Merge "Bug 16147163: Secure camera can now be launched with FUL running" into lmp-dev 2014-08-05 00:35:13 +00:00
Brian Colonna
d45c6d4f40 Bug 16147163: Secure camera can now be launched with FUL running
This change introduces a class that handles launching the secure camera even
when other apps may be using the camera hardware.  It does this by sending out
a broadcast telling apps to stop using the camera as soon as the user begins to
swipe to use the secure camera.  It then waits until either the camera is
available or a timeout period has expired before it fires off the intent to
start the secure camera.

Secure camera apps can indicate (via their meta-data) that they will instead
handle the responsibility of waiting for the camera to be available.  In this
case, the new class still handles sending out the broadcast telling other apps
to close the camera, but it fires off the intent to start the secure camera
before the camera hardware is available.  This is optimal because some of the
time spent closing the camera can happen in parallel with the time spent
starting the secure camera app.  Since we can't depend on third-party apps to
wait for camera availability, the default is for us to wait for the camera to
be available before firing off the intent.  However, our first party app is
able to take the optimized approach.

Change-Id: I1eaed94875e8f50018cffab25aa1e9b21d85f25b
2014-08-06 12:06:32 -04:00
Jorim Jaggi
fc4a648f0e Merge "Implement face unlock running indicator on Keyguard." into lmp-dev 2014-08-05 00:35:13 +00:00
Jorim Jaggi
e7b1252e24 Implement face unlock running indicator on Keyguard.
Icon is still dummy.

Bug: 16502879
Change-Id: Ibea1e594f322e919049a42a26ff858d2169415e7
2014-08-06 16:41:21 +02:00
John Spurlock
72d19f4671 Merge "Zen: Show subhead for Indefinitely." into lmp-dev 2014-08-05 00:15:52 +00:00
John Spurlock
89fe1cb9de Zen: Show subhead for Indefinitely.
Bug:16824870
Change-Id: Ic10d68df39c5afe06503d3b37a960c9319f84056
2014-08-06 10:31:55 -04:00
John Spurlock
e87457f105 Merge "PowerUI: Remove notification action icons." into lmp-dev 2014-08-05 00:35:13 +00:00
John Spurlock
04c8fd3366 PowerUI: Remove notification action icons.
Bug:16839950
Change-Id: I1f8c1c80a2c849e115396e1e22d344a52a2dbe3f
2014-08-06 10:07:30 -04:00
Jorim Jaggi
e0640dd524 Allow closing the whole panel when QS is open
If the user drags below the notifications, we close everything. Only
implemented for the SHADE, and not on Keyguard because of
time constraints.

Bug: 15414856
Change-Id: I4cf656484bc1217d552211c2bfdd7598eb52dad7
2014-08-05 23:01:56 +00:00
Jorim Jaggi
28f0e59329 Edge swipes should also dismiss notifications
To prevent falsing with phone/camera affordance.

Bug: 16571057
Change-Id: I5da5efc5529af8211357b556f1db4858e8775e05
2014-08-05 23:01:34 +00:00
John Spurlock
5f72e16847 Merge "AudioService: getMasterStreamType -> RING on tablets." into lmp-dev 2014-08-05 00:35:13 +00:00
John Spurlock
4f0f120316 AudioService: getMasterStreamType -> RING on tablets.
Since all service-internal checks use stream alias, and the alias
for NOTIFICATION is RING, even on tablets.

This is a followup to ag/506532.

Ensure that #getMasterStreamType always follows the stream_system
alias, and update the system alias for tablets per the new policy.
Update the associate javadoc comment in AudioManager to make this
clear.

Note: there is now no difference in the alias maps between phones
and tablets.

Also fix a condition affected by this in VolumePanel.

Bug:16626879
Change-Id: I2700a48d2a3e7703607f771a1ab7f325596fd789
2014-08-05 16:23:14 -04:00
Jorim Jaggi
488b792eee Fix not being able to dismiss panel with single tap
Bug: 16562847
Change-Id: Ic409b9dd23df7e79a20b83a8a63eaaf1f76b3dd0
2014-08-05 19:26:13 +00:00
Jorim Jaggi
dd5b88684d Navbar scrim when in QS
Bug: 16644711
Change-Id: I91d823671919068500a29878f3dfe9b481000a58
2014-08-05 19:22:53 +00:00
Jorim Jaggi
781c29c9a8 Show bouncer if secure camera would show chooser.
Bug: 16570873
Change-Id: I2a86fb3a823d5255c0c35a78c1832c273e3a1578
2014-08-05 18:47:54 +00:00
Jeff Sharkey
ab1e9bddd8 Scan after writing external storage files.
Kicks off media scanner after files are written.

Bug: 13557203
Change-Id: I61613f28e07b068573079cc1e362fd3fe135684e
2014-08-05 18:34:37 +00:00
Jason Monk
966e258396 Merge "Disable heads up when DISABLE_NOTIFICATION_ALERT" into lmp-dev 2014-08-05 00:15:52 +00:00
Jorim Jaggi
9cf1f37737 Update keyguard icon paddings to spec.
Bug: 15381387
Change-Id: Ia75394fd68f66233ebabe9ec4f62b42d40d19eb9
2014-08-05 17:18:55 +00:00
Jason Monk
f701954d4e Disable heads up when DISABLE_NOTIFICATION_ALERT
When notification alerts are disabled also turn off heads up. This
will fall back to the old behavior, which can allow the fullscreen
intent to be triggered instead.

Bug: 14157742
Change-Id: I4b6e3d9383894b1674d600c374ff8968ca53513e
2014-08-05 17:16:56 +00:00
Jeff Sharkey
f75eb0dd60 DocumentsUI is only dialog when really large.
Bug: 16780860
Change-Id: Ib20ef9771855beba5b31d19887c1c9c1b8e8e5ed
2014-08-05 17:16:44 +00:00
Jorim Jaggi
f641174eb9 Revert "Clean up hiden notifications on Keyguard handling"
This reverts commit d9267cae958b572b715d22a4905b18749a369c9f.

Too much performance regression - need to figure out something else.

Change-Id: I2d399add74402e1c036235ec095a053a6d5b828e
2014-08-05 17:10:43 +00:00
Jorim Jaggi
62a7c831d5 Clean up hiden notifications on Keyguard handling
Change-Id: Ifeabfdd1ed8c11b0796cc79bba81752518921be3
2014-08-05 17:00:22 +00:00
RoboErik
75847b98f3 Add display metadata and change strings to CharSequences
This adds some fields for display purposes to MediaMetadata and also
makes the default for all text CharSequence instead of String. Also
adds a hidden method for getting a Description for the metadata.

bug: 11708293
Change-Id: I0ed58d9ac3aeff41325c4ccf5fed0539bbf03b4d
2014-08-05 14:30:27 -07:00
Jorim Jaggi
81a0d40839 Merge "Empty notification shade state." into lmp-dev 2014-08-04 23:37:12 +00:00
Jorim Jaggi
a2052ea218 Empty notification shade state.
Bug: 16483230
Change-Id: I7953a7954cae12124146f462ed8c0dc44769a38f
2014-08-05 16:38:02 +02:00
Jorim Jaggi
f479792e05 New swipe-up assist animation for L.
Bug: 16307470
Bug: 14623152
Change-Id: Ib7e0381d118bda177981cc56ec9a8fb418dfb0e3
2014-08-05 15:24:26 +02:00
Adrian Roos
ca4ab058ec Merge "QS: Enable availability listener for flashlight" into lmp-dev 2014-08-05 00:19:02 +00:00
Adrian Roos
034a6c9667 QS: Enable availability listener for flashlight
Enables the availability listener now that the
underlying framwork is stable.

Bug: 16483222
Change-Id: I586a43941ade1ee8a8f3cb1a087e5356539703c1
2014-08-05 16:54:13 +02:00
John Spurlock
9c84aab892 Merge "QS: Share usage tracking timeout with color inversion tile." into lmp-dev 2014-08-05 00:19:02 +00:00
John Spurlock
3976f3d943 QS: Share usage tracking timeout with color inversion tile.
Pull out 30-day feature timeout code into a separate helper, use
in both ColorInversionTile and HotspotTile.

Expose an intent to force a reset of the timeout.

Change-Id: Ic0b89913fd5cec4e1df3cb0d5a548f052a60550f
2014-08-05 00:41:04 -04:00
Jorim Jaggi
05204dc227 Merge "Dismiss all layout updates." into lmp-dev 2014-08-05 00:15:52 +00:00
Jorim Jaggi
2ae259df68 Dismiss all layout updates.
Bug: 14826666
Change-Id: I19773d0afaf34f92d987a5292de861b5963a7d8a
2014-08-05 00:07:16 +02:00
Jorim Jaggi
ae44128776 Animate public/private notification layouts
This change move the boolean whether we hide sensitive contents into
AmbientState, which makes it consistent with the other stack states
and allows for a orchestrated transition between public/private
layouts. We need this transition when going into the full shade.

Bug: 16291973
Change-Id: I379a6119b5b73eca900a4a2ba9d5ec95b293e487
2014-08-03 18:55:33 +00:00
Jorim Jaggi
dbc3dce886 Handle go to full shade motion for redacted case
Bug: 16291973
Change-Id: Idc5ea93548e17ef9cd2d7c36416b293950554703
2014-08-03 18:52:28 +00:00
John Spurlock
19328fab0e QS: Fix detail clip reverse transition.
Give it a layer during the transition to workaround a recent
regression in the clip animation.

Also:
 - Dial down the transition alpha a bit
 - Do a delayed reverse transition on exit

Change-Id: I622d6eb863d6186293b0126dda8fca3a04a80a85
2014-08-03 11:47:35 -04:00
John Spurlock
1bb480a3a4 Battery saver: new policy changes + SystemUI tweaks.
- Service policy changes: allow the user to turn off (snooze)
   saver mode below the auto-trigger level.  Plugging in the
   device always exits saver mode.
 - Default trigger level is now 0 (never) instead of 15.
 - SystemUI now also listens to a new POWER_SAVE_MODE_CHANGING,
   since waiting for _CHANGED can take seconds.
 - Move shared feature description text into the framework so it
   can be shared.
 - Tweak dialog title + action strings.
 - Remove trigger-level from SystemUI, it no longer needs it.
 - Add the ability to turn off saver mode directly from the
   notification.
 - Migrate saver confirmation dialog to common system UI dialog
   helper, and add a few convenience methods.
 - Fix bug where the status bar area would be orange over the keyguard
   in SHADE_LOCKED mode.

Bug:16214395
Change-Id: I3d1ded1eec9e63e7d97469486f6a320e1bebbccd
2014-08-02 17:12:43 -04:00
John Spurlock
bc53cb41f4 Merge "QS: Fix detail flashing during transition." into lmp-dev 2014-08-01 18:14:18 +00:00
John Spurlock
8af525dd7d QS: Fix detail flashing during transition.
And modify the background a bit during the transition
to enhance the clip effect.

Change-Id: I2b4f4b18cb9c1b41efc2e6b38bc8f7d2a944511e
2014-08-02 10:56:05 -04:00
John Spurlock
494c590f94 QS: Update auto-rotation icon.
Bug:16739860
Change-Id: Id85beb935cbccbecf97a071f114b2eed3e5cc258
2014-08-02 09:24:26 -04:00
Wink Saville
6d13bc8e3b Turn off extra debugging
Change-Id: I3d7c68d3d7bcef5be084398807389f4a485bedb0
2014-08-01 12:36:54 -07:00
Jason Monk
2daf62ce40 Don't show guest when user switcher is simple
Bug: 15729059
Change-Id: I9e88f0e7d01044a7096d6fc8d67bcd328014a625
2014-08-01 18:37:01 +00:00
Winson Chung
b99b18e78e Fixing scrolling regression with layout changes.
Change-Id: Ic440d147ca13bf13d7f311b6d9876e3c02d4f189
2014-08-04 22:55:43 +00:00