933 Commits

Author SHA1 Message Date
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
Sid Soundararajan
6e54775a8d Merge "Add dismiss animation for Recents TV and Enable Dismiss" into nyc-dev 2016-03-22 21:31:49 +00:00
Julia Reynolds
196c8f7935 Merge "Tune visuals for inline settings" into nyc-dev 2016-03-22 20:57:12 +00:00
Selim Cinek
482c7da6ab Merge changes Ia9502056,I97dc60c4 into nyc-dev
* changes:
  Fixed the group expand motion to better reflect the overflow
  Introduced a number indicating more children in a group
2016-03-22 20:04:47 +00:00
Sid Soundararajan
4bdb6879bd Add dismiss animation for Recents TV and Enable Dismiss
Redo rect calculations for new positions.

Refactor some code to make a RecentsTvImpl.

Change-Id: Ifa269fe18ea40ea9a102ec0207a6c7ab796e6f77
2016-03-22 11:10:28 -07:00
Selim Cinek
c897bd3e91 Introduced a number indicating more children in a group
Bug: 25376106
Change-Id: I97dc60c4fea599c668c9e74e11b7d693fd78589b
2016-03-22 11:00:59 -07:00
Jaewan Kim
82ac50d607 PIP: Fix NPE when an activity is PIPed again immediately
More proper fix would be not showing Recents after an activity is PIPed,
but NPE shouldn't be happen so let me propose the CL as the first step.

Bug: 27634771
Change-Id: Ie98293b7dd2d206567ded08d54134164aa78ca9c
2016-03-22 12:01:53 +09:00
Andrei Stingaceanu
844927d62d Keyboard shortcuts: new layout for keys container
Introduces a new layout which wraps and right aligns
children. Also contains minor fixes.

Change-Id: Icfd98b468cc35867928e4d67cf1fedebbf1bc5c0
2016-03-18 14:09:55 +00:00
Julia Reynolds
490ee4b755 Tune visuals for inline settings
Bug: 27597108
Change-Id: I351be8a3ea8ed157d8af2923427ddac33bcfb783
2016-03-18 09:23:39 -04:00
Adrian Roos
f18d70ba28 Merge "A11y: Content Description for Inline Reply" into nyc-dev 2016-03-17 19:57:15 +00:00
Adrian Roos
237be37fad Merge "Copy/Paste on RemoteInputView" into nyc-dev 2016-03-17 19:55:19 +00:00
Adrian Roos
0bd8a4b29b Copy/Paste on RemoteInputView
Also fixes a bug where the remote input view stays focused
when the inline settings open.

Also prevents sharing from contexts that are not activities,
and prevents text processing when the device is not provisioned.

Bug: 27633360
Change-Id: I8b6e7f661bd873d88e7e2460d043c2aa5f849516
2016-03-17 18:43:55 +00:00
Sid Soundararajan
29f6a9be03 Merge "Add Transition for App -> Recents on TV." into nyc-dev 2016-03-17 18:16:07 +00:00
Jason Monk
6a29da0a60 Merge "Fix up label in QS detail" into nyc-dev 2016-03-17 13:32:53 +00:00
Adrian Roos
3225b49acb A11y: Content Description for Inline Reply
Bug: 27498293
Fixes: 27498293
Change-Id: Iba5670791089cf4d41e914981ecfee29776b70c9
2016-03-16 18:26:12 -07:00
Sid Soundararajan
fa61ce343e Add Transition for App -> Recents on TV.
Some changes to numbers to smooth the transition for Recents -> App.

Change-Id: Ifd0c90428d9a38ecafd0b41b2f18b11b99cbbb5d
2016-03-16 11:52:29 -07:00