9700 Commits

Author SHA1 Message Date
Jeff Sharkey
f52773fd62 More DocumentsUI material iteration.
Move to using Toolbar for all actions.  Drawer contains its own
Toolbar with separate title, and hamburger is always visible.  Change
drawer items to match spec.  Switching to Toolbar allows us to remove
nasty dialog-on-tablet hacks, yay!  This also means we can finally
get real IME resizing support.

Move to using elevation for all shadows; this removes more nasty
hacks around drawing directory shadows.

Bug: 15836082
Change-Id: Iba70b898f385a7debd8aabfc98ff39d20bca860d
2014-07-29 23:19:45 +00:00
Jorim Jaggi
5ad92c5278 Optimize alpha handling for stack scroller
Use a layer when an alpha is set. Currently, this breaks shadows
when alpha != 1f, however, b/15860114 will fix this.

Change-Id: I094d5896a5433ba9a0ecc17549ef2944f6b7881e
2014-07-29 22:07:21 +00:00
Jorim Jaggi
c503896a4d Fix crash in ExpandHelper
Bug: 16645584
Change-Id: Ifbcd8c88cda0a390061c162aa43d8615d1311f19
2014-07-29 18:06:55 +00:00
Jim Miller
604e7558ef Add new DevicePolicyManager API to allow fine-grained TrustAgent management
This adds a new feature that allows a device admin to specify a
whitelist of features that are allowed for the given admin.

Change-Id: I83f853318efbcf72308532d0a997374f73fa9c10
2014-07-28 21:32:01 -07:00
Winson Chung
b1b191ad66 Merge "Updating lock-to-app look." into lmp-dev 2014-07-25 21:16:23 +00:00
Winson Chung
2915b9d148 Updating lock-to-app look.
- Adding seek bars for tweaking values when in debug mode

Change-Id: I92ae7b431ee170f5d8b31f34349d51a6b7f9ddef
2014-07-28 22:26:36 +00:00
Baligh Uddin
95c58ed763 Merge "Import translations. DO NOT MERGE" into lmp-dev 2014-07-24 15:37:54 +00:00
Baligh Uddin
c9c3a9c9db Import translations. DO NOT MERGE
Change-Id: I0495a69db49b3475537a3546bcb4d246b4dd018b
Auto-generated-cl: translation import
2014-07-28 23:12:12 +00:00
Baligh Uddin
df84404d58 Import translations. DO NOT MERGE
Change-Id: I1fcd1e840d7fbcc47d41e1dc997b685b6c4b9205
Auto-generated-cl: translation import
2014-07-28 23:12:31 +00:00
Jorim Jaggi
ab71126576 Fix QS overscroll flickering
Change-Id: I7f514285ec8de185e6f443d6943f0bd711dcac26
2014-07-28 20:38:32 +00:00
Jorim Jaggi
02609c1d48 Update alarm icon in status bar.
Now that we have new icons on Keyguard and QS, update it to the same
icon in status bar as well.

Change-Id: I87831a18b51719bb2b90b2198597ae20f61f8bb5
2014-07-28 20:01:10 +00:00
Jorim Jaggi
4b04a3a164 Clear all notifications improvements
- Fix a bug with visibility.
- Improve fling behavior such that the shade open animation still
  looks like that we are decelerating towards the last card.

Change-Id: I1ad167ce0001ff6850f49e819bab944943fa529d
2014-07-28 19:13:35 +00:00
RoboErik
e0b8c378b7 Merge changes I87f551a7,Icb8dc76c,I66fbf585,I0c9506e7 into lmp-dev
* changes:
  Add context to MediaController constructor
  Add getPackageName to MediaController
  Expose a way to set a PendingIntent for restarting playback
  Finish plumbing for launch intents in sessions
2014-07-25 21:16:23 +00:00
RoboErik
031149cd5f Add context to MediaController constructor
This also adds a convenience method to MediaSession to allow getting
a controller instead of having to create and cache your own.

bug:16561220
Change-Id: I87f551a7474e71f1cf2f07e0e541c3a4515cd977
2014-07-28 11:02:15 -07:00
RoboErik
aa4e23bbb3 Add getPackageName to MediaController
This removes the MediaSessionInfo class and adds a method on the
controller to get the package name. This also converts code that
depended on the session's UUID to use the token for comparison or
the Tag in the case of test code that needs a string identifier.

Change-Id: Icb8dc76c70e23e897da8fd07651c524b96372bf9
2014-07-25 16:22:59 -07:00
John Spurlock
e2efefe19d QS: Allow hotspot tile on secure keyguard.
Bug:16234190
Change-Id: I82a724e46f0a6ddd5c719742ef9c4f86feb791dc
2014-07-28 11:20:29 -04:00
Adrian Roos
e32dac8ff1 Update KeyguardStatusView on user and alarm changes
Refreshes both owner info and the next alarm when
the current user changes. Also updates the next
alarm when it changes.

Bug: 16531212
Change-Id: Ibc9de5d28b2cafd6946fc56602f12769d3526728
2014-07-28 17:02:59 +02:00
Winson Chung
c37e129539 Fixing issue with Recents not triggering correctly for secondary users. (Bug 15689540) 2014-07-25 22:47:33 +00:00
Winson Chung
2b92253021 Announcing when a task is dismissed (for accessibility). (Bug 9181212) 2014-07-25 21:58:26 +00:00
John Spurlock
543650bb10 Merge "Volume: Show safe media warning in settings." into lmp-dev 2014-07-24 23:36:47 +00:00
John Spurlock
351346092a Volume: Show safe media warning in settings.
If the safe media warning is enabled, make sure
we display it from the new inline slider preference in
Settings (without showing the volume dialog itself).

Also:
 - Update the warning dialog to the new sysui theme.
 - Separate the warning sentences with an additional line.
 - Fix the auto-dismiss timeout.
 - Add a system property to additionally enable the safe
   media warning for testing
 - Add more information to audio service dumpsys.

Bug:15434662
Change-Id: I95fec12c9049bbfdb7ebdf246160e4b12c0c5be3
2014-07-25 11:27:51 -04:00
Dan Sandler
13b8159e90 Do not colorize bare notification icons in the overflow.
Change-Id: I3377a7d6024e495172a5ccefde1beaa46ec88283
2014-07-25 13:36:37 +00:00
Adrian Roos
2daf7a056d Merge "Remove brightness dialog timeout" into lmp-dev 2014-07-24 15:36:05 +00:00
Jorim Jaggi
4e0880e395 Synchronize album fade away with Keyguard dismissal
Change-Id: I7aaa6213f6070f0db14131a248a62b317309a3bf
2014-07-25 13:09:37 +00:00
Adrian Roos
5a46f8c98a Remove brightness dialog timeout
Required to make the dialog accessible.

Bug: 14116737
Change-Id: Ib126068672cdafccd4470de47e11e2b1efd90e72
2014-07-25 15:03:26 +02:00
John Spurlock
09890b3a90 Merge "QS: Handle all camera api exceptions during init." into lmp-dev 2014-07-24 15:36:51 +00:00
John Spurlock
553b48b50a QS: Handle all camera api exceptions during init.
Temporary workaround to unblock certain devices.

Bug:16547333
Change-Id: I80d8ec609e5c32b9db290576c5ec791ad915c45c
2014-07-24 18:12:58 -04:00
Adrian Roos
c3d5ead837 Merge "Restart trust agents when updated or when they are dead" into lmp-dev 2014-07-24 15:36:04 +00:00
Adrian Roos
c5f95cea26 Restart trust agents when updated or when they are dead
ActivityManager restarts the trust agent service for us
when it gets killed automatically. This does not apply
when its process crashes too often or when its package
gets updated however.
To catch the update case, the trust agent connection
is removed as soon as the package disappears, and then
readded when the new package appears.
To catch the repeated crashing case, the connection is
reset if it hasn't successfully connected for several minutes.

Also adds a button to SampleTrustAgent to simulate a crash.

Bug: 16137258
Change-Id: I1b18fc7a3025e23e25ca1623b6af658d5430a94b
2014-07-24 21:44:02 +02:00
Dan Sandler
99137c5e8d Merge "Notification inspector." into lmp-dev 2014-07-24 15:36:02 +00:00
Winson Chung
a4cc966050 Adding content description for task view buttons. 2014-07-25 19:12:28 +00:00
Dan Sandler
4247a5c162 Notification inspector.
When longpressing a notification, instead of popping up a
menu we now replace the notification's view with an
inspector showing the app name and icon inline, along with a
proper app info button.

Bug: 15892646
Change-Id: I905e2fd5c9ea5cbbaccabd633f4b8257227a10bc
2014-07-25 15:10:36 -04:00
Jorim Jaggi
bc976e3f4c Fix ordering of notifications, user switcher and QS panel
Also closes the user switcher when opening QS on Keyguard because
touch logic would interleave with QS.

Change-Id: I391dc9bcba7f9e2e99c0854d34ed0ec6efbb2f44
2014-07-25 19:03:47 +00:00
Dan Sandler
eceda3d838 Reintroduced the clear all button
A new text button is added to the bottom of the notification list
enabling the user to clear all notifications.

Bug: 14826666
Change-Id: I34dcccb59346798cca321bc1a19252b00e7c5689
2014-07-25 19:25:46 +02:00
Jorim Jaggi
48bc36af05 Handle cases for going to SHADE_LOCKED
- When the user drags down in the empty (not on a notification), we
  scale up the clock in the interaction.
- If there are no notifications at all, we stay in KEYGUARD and let
  the clock spring back.
- Rubberbanding is different for the case when there are no
  notifications or only low-priority notifications, to indicate what
  the user can expect when they lift his finger.

Bug: 16216907
Change-Id: I69d6552c96ef9e3d0d0b526bbd232d68bef47960
2014-07-28 15:46:49 +02:00
Jorim Jaggi
87d84d4d95 Make user avatar bigger on lockscreen when it is tappable
Also fix some other paddings there.

Change-Id: I6c54b070cde96e7fd21ff3533ee6a4b58547028c
2014-07-28 15:35:09 +02:00
Jorim Jaggi
c7dea6ee9b Implement next alarm info in expanded QS.
Also make the representation of alarm on lockscreen consistent with
QS. In addition, fix a bug where pending app transition was overriden
to make the alarm click interaction look nice.

Bug: 15392951
Bug: 15856205
Change-Id: Iacdf6a38c5c1a7484b4b328c9a3fa4d25e071c64
2014-07-28 15:34:59 +02:00
Jorim Jaggi
0d266899da Fix status icon reappearing for legacy activities
When closing the shade, and underneath was an activity without
colored status bars, the animation for letting the status icons
reappear was strange and the icons faded from 0% alpha. The cause was
possibly that we set hasOverlappingRendering on the whole group but
but inner views used layers for setting the alpha value which
violated the contract in the documentation of
hasOverlappingRendering: "The current implementation of the saveLayer
and saveLayerAlpha methods in Canvas necessitates that a View return
true if it uses the methods internally without passing the
CLIP_TO_LAYER_SAVE_FLAG."

Change-Id: I4b0accc8ec3fb8cb553c6860eb7dba8a12d04364
2014-07-28 15:05:15 +02:00
Jorim Jaggi
629718fdc4 am 1698281b: am 91755f3f: am 54815675: Preview layouts for phone/camera affordance.
* commit '1698281bd8eabfc866655277283d446601cc4891':
  Preview layouts for phone/camera affordance.
2014-07-28 12:20:20 +00:00
Jorim Jaggi
8d51a477b5 am 91755f3f: am 54815675: Preview layouts for phone/camera affordance.
* commit '91755f3fbf96da62ad747526e8c0994c27aa1817':
  Preview layouts for phone/camera affordance.
2014-07-28 12:15:43 +00:00
Jeff Sharkey
4410b3ab7f am fc957aee: am 61f85e47: am a43d13db: Merge "First pass at Materializing DocumentsUI!" into lmp-dev
* commit 'fc957aeed158f8a0758d1e8a6a99ddbef2b6de07':
  First pass at Materializing DocumentsUI!
2014-07-28 12:14:42 +00:00
Jorim Jaggi
3e0808d1d5 am 54815675: Preview layouts for phone/camera affordance.
* commit '54815675290855c41303478c5c9fc34323f23221':
  Preview layouts for phone/camera affordance.
2014-07-28 12:11:26 +00:00
Jeff Sharkey
60c7992588 am 61f85e47: am a43d13db: Merge "First pass at Materializing DocumentsUI!" into lmp-dev
* commit '61f85e476799766877e80a6525a0f48d4a5629c2':
  First pass at Materializing DocumentsUI!
2014-07-28 12:09:29 +00:00
Jorim Jaggi
b6cdcbc66b Preview layouts for phone/camera affordance.
Bug: 15126905
Change-Id: I72cbb90718e6add22a7c579a647f9f405793961a
2014-07-28 12:06:24 +00:00
Jeff Sharkey
7348179b7e am a43d13db: Merge "First pass at Materializing DocumentsUI!" into lmp-dev
* commit 'a43d13db8d8cdc32be0deb3169482a263c852662':
  First pass at Materializing DocumentsUI!
2014-07-28 11:59:07 +00:00
John Spurlock
92a7512f40 am 892d84c7: am fec13d8e: am 416c134e: QS: Cellular tile icon state tweaks.
* commit '892d84c718d608a6fc6b4e26712133f0e4621b71':
  QS: Cellular tile icon state tweaks.
2014-07-27 16:10:50 +00:00
John Spurlock
13755c958c am fec13d8e: am 416c134e: QS: Cellular tile icon state tweaks.
* commit 'fec13d8e1d557d0f7adae99ddf7c78c8bc4b9930':
  QS: Cellular tile icon state tweaks.
2014-07-27 16:07:15 +00:00
John Spurlock
05810e2c5a am 416c134e: QS: Cellular tile icon state tweaks.
* commit '416c134e8909bfd5a72463ea89e6ca1c135f9514':
  QS: Cellular tile icon state tweaks.
2014-07-27 16:02:43 +00:00
John Spurlock
d5cd2fd15b QS: Cellular tile icon state tweaks.
Bug:16371677
Bug:15586604
Change-Id: Id66fc8fc0353221aa3ed4f6ebd09b499ccba6b98
2014-07-27 11:55:10 -04:00
Wink Saville
41ea01ff24 am f46fca60: am 2337a859: am cb2871b3: Fix hasService and use it in updateTelephonySignalStrength.
* commit 'f46fca60eb31fc8318c8f5571d93cf090f63a63f':
  Fix hasService and use it in updateTelephonySignalStrength.
2014-07-27 00:57:25 +00:00