948 Commits

Author SHA1 Message Date
Jaewan Kim
cac7b221ae Merge "PIP: Implement new onboarding spec" into nyc-dev 2016-04-14 17:21:39 +00:00
Jaewan Kim
9d712faa45 PIP: Implement new onboarding spec
Bug: 27954437
Change-Id: Ib939a4ca5f304821036a43971ae7f45b7802ed8a
2016-04-15 01:17:42 +09:00
Sid Soundararajan
ac5a240f05 Merge "Add a fall back for when the thumbnail is not generated for a task" into nyc-dev 2016-04-14 15:19:24 +00:00
Jaewan Kim
2e27de2ea0 PIP: Fix runtime crash in System UI
Bug: 27677096
Change-Id: I182e29962b5da8355f729287a4abde1e73e66e42
2016-04-14 15:18:46 +09:00
Jaewan Kim
6309cabcda Merge "PIP: Implement focus change animation in PIP control buttons" into nyc-dev 2016-04-14 01:41:56 +00:00
Jaewan Kim
49d9c79e31 Merge "PIP: Add PIP boundary" into nyc-dev 2016-04-14 01:32:43 +00:00
Sid Soundararajan
bda1b17d45 Add a fall back for when the thumbnail is not generated for a task
Re-add scrim and shadows to cards.

This can happen on TV when an App is mid launch and the HOME button
is pressed. The Banner of the App is used as a fallback, with the
icon of the app as a final fallback. The icon should not be used
normally, since an App would fail review for not providing a banner.

BUG: 27349208
BUG: 27857124
BUG: 27953609
Change-Id: I50f6ee714eeddee1ea2b5ae31f23ea68d230bc59
2016-04-13 18:31:18 -07:00
Jason Monk
2977ba2cd7 QS: Add content description to page indicator
Change-Id: I4e9bdfe803d681484eb4c8915c44e37be40d8aa2
Fixes: 27325720
2016-04-13 13:01:14 -04:00
Jaewan Kim
1cc1e339b1 PIP: Add PIP boundary
Bug: 28040141
Change-Id: Iebd1e2cce4b3103e322bb92113c61e644a35be72
2016-04-13 14:56:56 +09:00
Jaewan Kim
1e59f2412d PIP: Implement focus change animation in PIP control buttons
This includes following animation.
  - Fix focus change animation duration among the PIP control buttons
  - Apply ripple animation for PIP control buttons
  - PIP menu enter/exit animation.

Bug: 27677096
Change-Id: I2f992416efc8a0994eeb56d5dec00201fd08a7aa
2016-04-13 13:24:19 +09:00
Jorim Jaggi
2917dc4918 Add shadow for minimized dock
Bug: 27972642
Change-Id: Ic4c8145f61694ff2bb0e237da1142093c6a4d965
2016-04-12 19:17:24 -07:00
Winson Chung
87c343cddc Merge "Updating visuals for incompatible apps." into nyc-dev 2016-04-12 01:51:06 +00:00
Winson
9b001396c2 Updating visuals for incompatible apps.
Bug: 26774190
Change-Id: I688d5dbab0305e794cad832ae92a8e5c9440737a
2016-04-11 18:48:49 -07:00
Jason Monk
97e4c5e607 Merge "Fix QS accessibility issues" into nyc-dev 2016-04-11 16:23:48 +00:00
Jason Monk
bc4574352d Fix QS accessibility issues
- Add label to quick settings expand indicator
 - Add battery tile content description

Change-Id: I112c3ba23906a4afe8068acf916e710ec9d40917
Fixes: 28073200
2016-04-11 11:36:55 -04:00
Andrei Stingaceanu
1399890890 Merge "Keyboard shortcuts: UI polish 1" into nyc-dev 2016-04-11 13:24:57 +00:00
Andrei Stingaceanu
a02965e211 Keyboard shortcuts: UI polish 1
* title color for system groups is now: "material_deep_teal_500"

* background behind shortcut keys:
** Now has 2dp rounded corners
** changed color from "material_grey_200" to "material_grey_100"

* the text items now have a minimum width equal to their height.
This means that now the text items with one character are always
the same (square) size as the icon items. Makes the UI look much
cleaner thus easier to read

* the line item now has a minimum height of 48dp and the content
is vertically centered

* minor variable renaming for increased readability

Bug: 28075364
Change-Id: Id7090b607b9c604c55513e7c393ed1084a1c8df0
2016-04-11 13:21:17 +01:00
Jorim Jaggi
7b3936977f Update visuals of force resizable
Bug: 27327287
Change-Id: I32d30a8044f683e2f6287035250126999f623e15
2016-04-09 01:14:48 +00:00
Jason Monk
3212a4c759 Merge "Visual updates to battery screen" into nyc-dev 2016-04-08 20:47:17 +00:00
Adrian Roos
f37c507619 Merge "Fix HUN Scrim" into nyc-dev 2016-04-08 20:29:17 +00:00
Jason Monk
006572a63f Visual updates to battery screen
Change-Id: Ie9e2c45201a986493bb629b02cb7421805f38d85
Fixes: 27479696
Fixes: 27678421
2016-04-08 14:43:08 -04:00
Adrian Roos
77537b9dbf Fix HUN Scrim
Fixes: 26365345
Change-Id: I2dd0250cdeb83dec5f7bbdde6719a71a802bff84
2016-04-08 11:23:31 -07:00
Evan Rosky
289d8a0850 Merge "Centralized user icon drawing with badges" into nyc-dev 2016-04-08 15:38:38 +00:00
Andrei Stingaceanu
2b2b7ed811 Merge "Keyboard shortcuts: icons for application group" into nyc-dev 2016-04-08 10:12:59 +00:00
Jorim Jaggi
7c3912e4ab Merge "Dismiss docked stack when opening non-resizable activity" into nyc-dev 2016-04-07 23:40:44 +00:00
Evan Rosky
aa7f51fe8c Centralized user icon drawing with badges
Renamed CircleFramedDrawable to UserIconDrawable and
added badge/frame support.
Replaced several instances of user icon drawing with
UserIconDrawable

Bug: 27483956
Change-Id: I10d665406ea8b085667aa8c71ffcedffe72dafbd
2016-04-07 23:09:40 +00:00
Jorim Jaggi
d53f09254e Dismiss docked stack when opening non-resizable activity
- Also move the toast to SysemUI as a cleanup.

Bug: 27341740
Bug: 28026841
Change-Id: Ic6196ed75511751c6fadb12fa24574c881100f65
2016-04-07 16:07:27 -07:00
Xiaohui Chen
2f3551b04d sysui: refactoring qs for extensibility
Bug: 27100060
Change-Id: I4913999e57ff1a1b473649009b8822e24c0393c8
2016-04-07 18:41:23 +00:00
Andrei Stingaceanu
12e9803d4f Keyboard shortcuts: icons for application group
Query the package manager and if the user has default
applications for categories (email, browser, etc.) then
show the default app icon else do not show an entry in
the group.

PS: tested with 10x apps and did not notice any visible
jank or delay.

Bug: 27453985
Change-Id: Ic8b73419518c81e3b19278341f83e91bb547c5f7
2016-04-07 18:13:08 +01:00
Jason Monk
917c06a0fb Merge "Work on QS landscape fitting" into nyc-dev 2016-04-07 14:27:42 +00:00
Andrei Stingaceanu
d15191076d Keyboard shortcuts: icons for shortcut items
Introduces the ability to display a shortcut item as
an image (if it has a resource attached). Also added
vector drawables for: up, down, left, right, enter, meta
and backspace.
Note that accessibilty wise the drawables dynamically scale
to the height of the text items (which have the text size
set in sp).

Bug: 27455410
Change-Id: I49739313d83cf661bea9378108a1fa3d6c51bd2e
2016-04-07 10:36:59 +00:00
Jason Monk
6573ef2079 Work on QS landscape fitting
Battery/DND detail panels still need some work.

Bug: 27276984
Change-Id: I0c94d1ecdbe8c230a3f991daaf65dfbd81d08b85
2016-04-06 12:46:28 -04:00
Winson
5b3b4b43c9 Remove the highlight on the overview button in the screen pinning dialog
- Now that you just long press back, we should not indicate to the user
  that you need to long press both to exit screen pinning.

Bug: 28024008
Change-Id: I1bad66e2b975f1f5943989d56348bc8e8b27fbbe
2016-04-05 15:55:33 -07:00
Jason Monk
0b349adcd8 Add app attribution to QS editing
Add a divider between where system tiles and custom tiles are and
add their app label to them as well.

Change-Id: I8890a7fee54e4c5340bbe95c6e100c58f81ee5c3
Fixes: 27874624
2016-04-04 11:18:03 -04:00
Jaewan Kim
2edfe0106a Merge "PIP: Apply the animation spec for the PIP in Recents" into nyc-dev 2016-04-01 06:19:53 +00:00
Jaewan Kim
a0d4d2588d PIP: Apply the animation spec for the PIP in Recents
Bug: 27540465
Change-Id: Ibdd4a4e3fd194978ccbc29235a1c620ebddff942
2016-04-01 15:03:51 +09:00
Winson
198523763a Putting clear-all button on the right to match design.
- Moving Clear-all button on drop-target change
- Fixing issue with end-margin on title

Change-Id: I589425980cd4503275b33a555f3dcb8391ba2695
2016-03-31 14:57:36 -07:00
Jason Monk
05ceda5ccc Merge "QS: Only allow clicking in the expand button" into nyc-dev 2016-03-30 16:33:12 +00:00
Winson
3b6ba1ab14 Adding clear-all button.
Change-Id: Ife637438b191c4a5004f3c6551bc75691e8e426b
2016-03-29 17:57:56 -07:00
Jason Monk
f7d9c49223 QS: Only allow clicking in the expand button
Also ditch the header BG so the panel can feel like one surface, as
a result need to set some clip bounds on the QSPanel to avoid some
collisions between the header and QS.

Bug: 27881430
Change-Id: Ia78c5b8a7a90bd02b97fa448efa06fc056f624ef
2016-03-29 16:29:39 -04:00
Andrei Stingaceanu
2298bb199c Keyboard shortcuts: RTL for KeyboardShortcutKeysLayout
Introduced RTL support for the KeyboardShortcutKeysLayout and
with another minor change to the dialog layout achived full
RTL support for the keyboard shortcuts UI.

Bug: 22776761
Bug: 27674152
Change-Id: I14e38dc4533208f6fd982a53a1d0305e003d926b
2016-03-29 11:55:16 +01:00
Jason Monk
39c98e652f QS edit drag and drop accessibility
Bug: 27667843
Change-Id: Ief0980af25d855942b0565e5a9bfcc0d266bdbe0
2016-03-28 09:57:39 -04:00
Jorim Jaggi
2adba07d75 Show a scrim activity if task is not resizable
Add a callback to TaskStackChangeListener which gets fired when the system
might need to inform the user that a specific app might not work in
multi-window.

Use that callback in SysUI to show a translucent activity which scrims the
activity behind to inform that it might not be resizable.

Debounce the information to once per multi-window session, to not make it
annoying.

Introduce launchTaskId to start an activity in an existing task, and protect
that with START_TASKS_FROM_RECENTS permission.

Bug: 27327287
Bug: 27431869
Change-Id: I89e8d653872ab01ba3c1e252b426e5481da0e6ca
2016-03-25 14:23:41 -07:00
Jaewan Kim
00b41d18a5 Merge "PIP: Apply the new UX spec for PIP in Recents" into nyc-dev 2016-03-25 05:01:13 +00:00
Jaewan Kim
8f584b8dee PIP: Apply the new UX spec for PIP in Recents
Detailed animations will be applied in another CL.

Bug: 27540465
Change-Id: I3664dc10efadeb8f183a4871a684c706e1472999
2016-03-25 13:30:16 +09:00
Winson
217009356e Don’t scale task thumbnails.
- Changing task view thumbnail layout.  In portrait, scale the thumbnail
  to width for portrait screenshots, and apply the same scale to 
  landscape screenshots.  In landscape, scale screenshots up to 1:1, and
  tweak the app transition to clip the sides instead of scaling.
  In both orientations, fill with the background color in the remaining
  space.
- Moving some resources related to the title bar to be calculated 
  programmatically so that we can have different header bar sizes which 
  completely overlap the action bar in the screenshot in each 
  orientation.
- Constraining the task stack width in landscape to portrait

Bug: 27504677
Change-Id: Ic9b6fdde6dd728d9f2d20a8b89c05b3a350edfbf
2016-03-24 20:03:02 -07:00
Winson
8f6ee48225 Completely removing dead code related to history view.
- This CL repurposes the history button above the stack to a more
  generic “stack action” button in preparation for a future change.

Bug: 27742174
Change-Id: I1da274bf88c77bdc09d91072683b2ea7ca022432
2016-03-23 18:49:22 -07:00
Winson
59924fe0d9 Iterating on stack layout
- Tweaking initial layout to show more of the next task
- Bounding the width of the stack to the smallest display edge length
- Fixing issue where the screen pinning button was not shown when
  entering recents from home, and the task view clip state was not
  restored correctly for tasks in front of the launch task.
- Fixing issue where there was no alpha during the transition to/from
  home
- Refactoring and removing unused dimens, and moved remaining layout
  calculation logic out of RecentsConfiguration.
- Fixing small regression in finding task anchor scroll points. This
  caused tasks to be animated strangely when swiping to dismiss and
  the task had an override task progress.
- Fixing several regressions in drag and drop due to override progresses

Change-Id: I1eac1dcea19e502bc7fe6362011b38977e3f3d6d
2016-03-23 18:48:03 -07:00
Selim Cinek
4809b07297 Merge "Fixed the default of AlphaOptimizedImageViews overlapping rendering" into nyc-dev 2016-03-22 23:12:11 +00:00
Selim Cinek
b20b75ca5f Fixed the default of AlphaOptimizedImageViews overlapping rendering
The default was true before, which lead to quite a few bugs.
Moved done the introduced attrs to support it on AnimatedImageView

Change-Id: I68714c22ceefff6bac7cd9496c83edd69256ee1b
Fixes: 27745673
2016-03-22 16:09:12 -07:00