13166 Commits

Author SHA1 Message Date
Pavel Maltsev
3311dc17a9 Merge "Fix indexOutOfBound exception in SystemUI" 2016-01-28 19:21:10 +00:00
Selim Cinek
19ba7050c3 Fixed that notification content were sometimes not readable
Because dark was only called on the visible view.

Change-Id: I4c9a00e7fcc29c107432fc7f0c61bc095c2e77a0
2016-01-28 19:20:51 +00:00
Filip Gruszczynski
2a25dd5c91 Merge "Animate pinned stack resizing." 2016-01-28 17:57:52 +00:00
Adam Powell
e7c74cc96e Revert "Pinning components in ChooserActivity"
This reverts commit ec6bc41e1835804533fd21b3ef8047ecd893bcfd.

Bug 26842512

Change-Id: I9fc775d21081885d0e26fca4ade412a18da45b7c
2016-01-28 09:04:20 -08:00
Filip Gruszczynski
84fa3351a2 Animate pinned stack resizing.
This introduces animating of stack bounds within window manager
module. It also uses this type of animation when moving an activity from
fullscreen stack to pinned stack.

Bug: 25672053
Change-Id: I75914a685d10021f8a7535b47ef12b6920b3fd5e
2016-01-28 08:47:54 -08:00
Sudheer Shanka
6a38e65b7d Merge "Update notification title when admin disallows unredacted ones." 2016-01-28 14:43:35 +00:00
Michal Karpinski
bc0ce99043 Merge "Logging of keyguard actions into security log" 2016-01-28 11:47:23 +00:00
Michal Karpinski
31502d3d95 Logging of keyguard actions into security log
Bug: 22860162
Change-Id: I7dbe68fff7d9d45b6c417d960cf025c8d0694917
2016-01-28 11:07:56 +00:00
Pavel Maltsev
04a22a26d6 Fix indexOutOfBound exception in SystemUI
Long-pressing events are optional, refactor code a little bit to avoid exceptions.

Bug:26806128
Change-Id: Ib883b4d5d31af256fc40ab2b4293ba1bf2abef3f
2016-01-27 21:56:32 -08:00
Jaewan Kim
3842e318b2 Merge "PIP: Disable translations for picture-in-picture temporarily" 2016-01-28 05:42:45 +00:00
Winson Chung
8e781d94ab Merge "Part 3: Fade in app icons" 2016-01-28 05:35:59 +00:00
Jaewan Kim
f986b458d6 PIP: Disable translations for picture-in-picture temporarily
UX and strings are not finalized yet, so do not ask for translation
for a while.

Bug: 26602353
Change-Id: I8d823ace47cae39a07a68ac8867ae58e2cd03f70
2016-01-28 13:57:06 +09:00
Jason Monk
a9f128832f Add preview section to nav bar tuner.
It uses density scaling to show a slightly smaller real time version
of the nav bar, so you can see edits without possibly breaking the
nav bar.

Also fix rotation in the tuner, cause it was broken.

Change-Id: I3de89c3df25c6adb18f0aef41b597c96446d1631
2016-01-27 23:05:11 -05:00
Jason Monk
8457ad89a8 Add keycode buttons to nav bar tuner
Allow a keycode (list generated from KeyEvent.java) and a image to
be selected as a new KeyButtonView to be shown in the nav bar.

Change-Id: I26fcad5b74a96090f2c5574fd214b4afbcadbb30
2016-01-27 23:05:11 -05:00
Jason Monk
3b58714344 Add clipboard to tuner
Allow button to be added to nav bar that acts as a drag target/source
for the clipboard.

Change-Id: I94ca3c7decd1a1b178ceb9a4b4ab9e275c90acbb
2016-01-27 23:05:06 -05:00
Jason Monk
46a196e250 Allow width control of nav bar buttons
Encode the width as part of the spec as a float. For instance:
"home[.5]" is a home button with half its normal width.

The UI will allow users to adjust the width of standard buttons and
spaces from .25 to 1.75, excluding the app shelf, which fills all
available space.

Change-Id: Icd2f498c164933d61f55d779b3e9be0afaba9c2d
2016-01-27 23:03:36 -05:00
Jason Monk
3ebd23943b Nav bar tuner
Allows reorginization of the navigation bar.  First pass.

Change-Id: If546ca5835412d15c05c41ffd5c5aa0857b9417f
2016-01-27 23:03:36 -05:00
Jason Monk
f0c6f64e5b SysUI Tuner: Color mod v2
Change-Id: Id2734c2f4ee8724ef7d7e633fed124454e2d8c5a
2016-01-27 23:03:36 -05:00
Winson
6d5b8b8e44 Part 3: Fade in app icons
- Fixing misordered call to remove the callbacks when recycling before
  unloading the actual task data
- Prevent thumbnails from being fetched while loading icons in the
  history view.

Change-Id: I8f5dc65f867e60c2d062bb8222c91bf98f54f6d6
2016-01-27 18:37:41 -08:00
Winson Chung
bed00cc437 Merge "Part 2: Adding clear-all to history" 2016-01-28 02:20:55 +00:00
Winson
214f0f0dc8 Part 2: Adding clear-all to history
Change-Id: I9cd51f2a97ebe0f306e4934cdcac1a522526cf50
2016-01-27 17:25:02 -08:00
Adam Powell
ec6bc41e18 Pinning components in ChooserActivity
Move ChooserActivity to SystemUI. This is a safer place for it to live
and still be able to persist data to storage.

Add a context menu to long press for chooser targets allowing users to
'pin' a target component from an app. This causes it to sort to the
front of the list so that a user's favorite apps are always available
from share UIs, etc. Similarly, all ChooserTargets from a pinned
component receive an impossibly large boost for sorting so that they
will always appear first.

Bug 26791843

Change-Id: Ib4e603d9d4263403e98ce619287452ddab593044
2016-01-27 17:17:31 -08:00
Winson Chung
3f64f3a3c3 Merge "Part 1: Tweaking history transition to match design." 2016-01-28 00:35:36 +00:00
Sudheer Shanka
f5b850e694 Update notification title when admin disallows unredacted ones.
Currently, we use "Contents hidden" message in either case where user
wants to hide sensitive content or admin disallows  unredacted
notifications. Updated to use a different message when the
admin disallows it.
Change-Id: Idc73968ff7894e96d8f9b5be4621cc02f682e0aa
2016-01-27 23:43:06 +00:00
Sudheer Shanka
ff2feb4ca6 Merge "Fix UserAvatarView.setDisabled method." 2016-01-27 23:20:52 +00:00
Winson
49df4209cf Part 1: Tweaking history transition to match design.
- Adding background scrim that can be controlled across transitions 
  within recents.  As a result, we can remove the status bar scrim.
- Moving the history view into the RecentsView now that it animates in
  parallel with the task stack
- Transition home from history no longer goes back to stack view first
- Removing some extra allocations when going into history and loading 
  tasks

Change-Id: I665baefcdd619de5e9366923eaaf4c558261141a
2016-01-27 15:15:44 -08:00
Jorim Jaggi
c573aa7c3a Merge changes I80100f39,I4b39c1c4,I65ce9a23,I5094a137,Id898752f, ...
* changes:
  Make sure SysUI is not constantly redrawing status bar
  Fix app staying in drag resizing when undocking
  Fix flicker when dismissing non-docked stack
  Start drawing immediately
  Improve dismiss/scrolling handling in recents
  Dim harder when dismissing
2016-01-27 22:23:39 +00:00
Jorim Jaggi
936233c78e Make sure SysUI is not constantly redrawing status bar
When status bar was collapsed, bounds were negative thus triggering
a infinite draw loop.

Change-Id: I80100f394fa5e0dd5858569f9535563eac3aeeb4
2016-01-27 14:16:21 -08:00
Jorim Jaggi
9b0a2c921a Improve dismiss/scrolling handling in recents
Make sure to only enter dismiss mode if xDiff is bigger than yDiff,
and only start scrolling if yDiff is bigger than xDiff.

Change-Id: Id898752ff7a08df549e234678aed0dad074b202d
2016-01-27 13:46:39 -08:00
Jorim Jaggi
8f8155ba8a Dim harder when dismissing
Also fix a bug when selecting the dim target stack.

Change-Id: Id9d5e28caf5e810c7eef1e3b0fd7a9f945f8d146
2016-01-27 13:46:14 -08:00
Jason Monk
13548550a3 Merge "Add data disabled icon" 2016-01-27 20:34:28 +00:00
Jason Monk
1a95c86281 Add data disabled icon
Change-Id: Ic6d7c367e99a9460a42d9eaab062c73a75c292fd
2016-01-27 15:32:22 -05:00
Xiaohui Chen
5c461fc36d Merge "sysui: refactor NavigationBarInflaterView" 2016-01-27 19:19:15 +00:00
Anthony Chen
63a398fea4 Merge "Allow volume dialog dimensions to be customized." 2016-01-27 19:15:54 +00:00
Anthony Chen
2f60d111eb Allow volume dialog dimensions to be customized.
The volume dialog originally had the same dimensions as the regular
notification panel. However, Android Auto wants a larger dialog. As a
result, separate out the icon size and dialog size so that they can be
customized.

Change-Id: Idcaf94d64bcd5ce7d8f6f0ad5da916cf7226a527
2016-01-27 11:11:53 -08:00
Xiaohui Chen
548160030a sysui: refactor NavigationBarInflaterView
Bug: 26742568
Change-Id: Id0cb541c39457b3d15b09c98552a22e2d533102d
2016-01-27 18:58:19 +00:00
Chris Wren
f6e9228b8a move framework metrics over to new proto
Change-Id: Ie46e946dc787350c15c10aa4385a6b7df7e181a8
2016-01-27 13:47:40 -05:00
Geoff Mendal
aa14f7f5c6 Import translations. DO NOT MERGE
Change-Id: I8d49ae1bb88b9bbd14d68d59cfdc6052f71bfb00
Auto-generated-cl: translation import
2016-01-27 06:02:37 -08:00
Winson
4b9cded143 Enabling fast switching for all users.
- Consolidating notion of fast toggling and indicator in the tuner - if 
  it is enabled, the indicator will be enabled
- Upon entering recents, immediately enable the timer to jump to the 
  previous task
- Allowing for multiple durations in the first and subsequent toggles
- Disabling fast-toggle on freeform devices and when touch exploration 
  is enabled
- Simplifying UserInteractionEvent to a reusable event

Change-Id: Id1ca3cd035f4eded5141b2b333a2cab5434b79ee
2016-01-26 21:05:06 -08:00
Winson Chung
80a5314ad3 Merge "Fixing notification of the docked stack state for the current user." 2016-01-27 01:50:20 +00:00
Jorim Jaggi
f3e87908cd Merge changes I10224452,I7af4149f
* changes:
  Grow recents when in multi-window on phones
  Add animation when docking top task with long press
2016-01-27 01:21:00 +00:00
Winson
dcf4826c52 Fixing notification of the docked stack state for the current user.
- When there are multiple users, ensure that we check that there are
  tasks in the docked stack for each user (instead of just the presence
  of the docked stack) and re-notify listeners of the state of the
  docked stack when the user is switched.

Change-Id: I911c4a32db187f9cd29d462309bd0cf7febb1993
2016-01-27 01:11:13 +00:00
Shishir Agrawal
05a7dfc48d Merge "Unhiding MSIM APIs." 2016-01-27 00:32:26 +00:00
Youngsang Cho
d475e1a27c Merge "Handle TaskStackListener.onPinnedActivityRestartAttempt in PIP system UI" 2016-01-26 23:58:05 +00:00
Selim Cinek
61633a8db8 Added bigger notification paddings above and below groups
Bug: 24866646
Change-Id: I0bca7a1abcbc0fa816aeed5729e650de24f523f0
2016-01-26 15:30:28 -08:00
Selim Cinek
277a8aa409 Replacing alpha with shadowAlpha
Change-Id: I1fc75e395321d77fb959dd3e8ce520bd8378cfeb
2016-01-26 15:30:28 -08:00
Selim Cinek
cacc604115 Fixed the divider height to be at least 1px high
Also adapted the children divider to be consistent

Change-Id: I158167f70e9e0bc9e251785078a4b271720919c5
2016-01-26 15:30:28 -08:00
Selim Cinek
d35c2793a3 Added transparency to the notification backgrounds on the lockscreen
To achieve a decent lockscreen animation we also need to account for alpha.

Change-Id: Iba75f9c304962da309e0e2d32a58d757b6607b5b
2016-01-26 15:30:28 -08:00
Selim Cinek
614576e37b Animating background of the notifications now
Change-Id: Ia94e1a0ca67922e6983697dfbc68d5681de02f7e
2016-01-26 15:30:28 -08:00
Selim Cinek
6811d728fb Drawing the background of the notifications as a grey color now
Some cases are still not working perfectly as the background is
never animating

Change-Id: I4b357161d53d62f4cf5c0fbf76e70e5f3465bd68
2016-01-26 15:30:28 -08:00