Commit Graph

173 Commits

Author SHA1 Message Date
Jason Monk
58be7a675b Add colorError
Remove scatered references to old error color and replace them with
references to new colorError

Test: make & visual
Change-Id: Icca8cd790db351c3dfce2197f2046879d062a2c0
2017-02-24 14:57:27 -05:00
Geoffrey Pitsch
df44b606f3 Updated Inline Notification Controls
Removed old xml resources, strings, dimens, etc
Different behavior when sent from the default channel.
Display how many notification categories are used by the app.
Group label when channel is associated with group.
Add package icon.
Fix tap-away-to-save behavior

Test: runtest systemui
Change-Id: Ib41a536a5c4e7c7747a2453eddc3b4b4b99ffa7a
2017-02-10 13:24:54 -05:00
Mady Mellor
04d7a0fca0 Add snooze to notification menu row
Moves the snooze plugin code into system UI.
Does not include assistant suggestions.

Test: manual
Change-Id: Ie2c51d65381530c9a72cd8a871efdbf0d63da490
2017-01-25 13:43:09 -08:00
TreeHugger Robot
3b8eaf3f3c Merge "Remove style TextAppearance.StatusBar.TextButton" 2017-01-21 00:31:18 +00:00
Jason Monk
3250885c9f Visual refresh for QS
Adds circles and things

Test: visual
Change-Id: I7d974fcfe6257357abfd1a7d0ee521f0e6cee588
2017-01-20 11:29:25 -05:00
Lei Yu
2cba0e8b0f Merge "Remove hardcoded color for cellular data usage view" 2017-01-05 18:57:57 +00:00
Lei Yu
fe6648912d Merge "Move textColor to style StatusBar.Expanded.Date" 2017-01-05 18:49:56 +00:00
jackqdyulei
b68fd7ae0a Remove hardcoded color for cellular data usage view
1. Remove hardcoded color and create colorStateList instead
2. Remove warning color and use attr textColorError instead
3. Add function to extract color from colorStateList

Bug: 32592245
Test: manual - Take screenshots
Change-Id: I7f0a54b304b09b99ba1f255952e7e99e009a4d2a
2017-01-04 16:12:44 -08:00
jackqdyulei
abefa92502 Remove style TextAppearance.StatusBar.TextButton
Cannot find any usage of this style in systemui, so delete it.

Bug: 32592245
Test: manual - by building the project
Change-Id: I4d6c01ca4c6418dbb921b4ce59b14b9582da21f0
2017-01-04 14:04:19 -08:00
jackqdyulei
77880db705 Move textColor to style StatusBar.Expanded.Date
Bug: 32592245
Test: Manual - take an screenshot
Change-Id: Iebcd9046bfdfcebb06f51bbfa26b59684ba47699
2017-01-04 13:44:03 -08:00
jackqdyulei
9cbffcba23 Remove hardcoded color for tuner and emergency call
1. Add tint color for icon tuner
2. Remove hardcoded color for emergency call in styles.xml

Bug: 32592245
Test: manual - Take a screenshot
Change-Id: I64de3f95506ac977cc30726305a79e0024b5bd17
2017-01-04 13:33:42 -08:00
Winson Chung
c75ffe8ccb Fixing some interaction issues with the PIP menu.
- Due to jank when finishing the PIP menu activity, we handle the
  menu visibility explicitly and keep the menu activity around
  once triggered (until PIP ends), instead of finishing and
  recreating it each time it is invoked.  This also gives us the
  flexibility to control how the animation looks of both the menu
  and individual actions.
- Allow dragging the PIP while the menu activity is showing and
  taking input
- Tapping outside of the PIP now hides the menu

Test: Enable the tap-to-interact in the SysUI tuner and drag while
      the menu is showing.

Change-Id: Iac74710100d793e6825b00c7c0d71b85fb420fa0
Signed-off-by: Winson Chung <winsonc@google.com>
2017-01-03 11:28:37 -08:00
Geoffrey Pitsch
4dd5006ff5 Change Notification Inline Settings for Channels
Removes slider advanced settings.
Move more Guts internals out of BaseStatusBar.

Test: runtest systemui
Change-Id: I0cf7f144859d1248bd54e281cfe0b35a817376a6
2016-12-28 10:13:02 -05:00
Manu Cornet
8e17342610 Delete the separate grid recents activity and related code
Bug: 32101881
Test: Made sure everything builds & boots on sw600dp device and checked recents
Change-Id: I1236a1ec5f5d2f485d9825c39702130bbfc243ca
2016-12-16 16:31:19 -08:00
Manu Cornet
c733803433 Revert "Grid recents: tweak task header layout to better match mocks"
This reverts commit 4701b99356.

Change-Id: Id1a2f93f55b32e6544083254bb16e3d3722aa3dd
2016-12-13 17:32:20 +00:00
Manu Cornet
4701b99356 Grid recents: tweak task header layout to better match mocks
Test: Checked layout on local sw600dp device
Bug: 32101881
Change-Id: Ic205beea47fc67fca9b3c95b3d1318c156ccc9c1
2016-12-13 07:26:03 -08:00
Lei Yu
c3823f9d8a Merge "Rename the Theme.DeviceDefault.Settings.Dark to QuickSettings" 2016-12-12 18:58:27 +00:00
jackqdyulei
8c5a516e92 Rename the Theme.DeviceDefault.Settings.Dark to QuickSettings
This theme is only used in systemui for quick settings panel

Bug: 32592245
Test: Manual
Change-Id: I529f7719dc85b8b04cf2b5952dff5c78417422a0
2016-12-08 12:57:06 -08:00
jackqdyulei
1b515eeb98 Remove hardcode color in styles.xml
In this cl, we made the change below:
1. textcolor in clock style
2. textcolor in TextAppearance.QS

Bug: 32592245
Test: manual
Change-Id: Ic7b2d1212c1c7f18a791688d5c82467e40c2ff5d
2016-12-01 17:06:08 -08:00
Manu Cornet
e138bd1955 Change the task layout to better match mocks, add "in" animation
This only adds an animation when transitioning into recents. "Out"
animations will come later as they need to be run in parallel with
launching the activity not to introduce any latency.

Test: Open recents on sw600dp device, check recents layout/animations
Bug: 32101881
Change-Id: I367f8e5c106cd06d2a7833c165ecb960a7821ed9
2016-11-23 14:48:30 -08:00
Winson Chung
15504af3f7 Experiment with allowing tap to break through to interact with the PIP.
Test: Enable SysUI tuner, tap once on PIP to interact with the activity.
      This is only experimental behaviour, and
      android.server.cts.ActivityManagerPinnedStackTests will be updated
      accordingly if we keep this behavior.

Change-Id: I278ab8c360c44718cfcac0fd761f476a875f9b15
2016-11-02 18:11:36 -07:00
Andrew Sapperstein
b72ba561c5 Use DeviceDefault.Settings.Dark for systemui_theme am: ed9fa424e9 am: 98cfc83433
am: dfd169d1db

Change-Id: Ib64bfa5dc82429f9a4ef23e98bdb076a1d65b950
2016-09-14 19:53:56 +00:00
Andrew Sapperstein
ed9fa424e9 Use DeviceDefault.Settings.Dark for systemui_theme
It was using DeviceDefault which is black in AOSP. It should be using
the blue grey primary color instead used by DeviceDefault.Settings.

Bug: 30748928
Change-Id: I7e7ed87f74f654f412c106a44906d7fba4e992dc
2016-09-12 16:17:21 -07:00
Jorim Jaggi
95148de2f4 Don't use fullscreen theme for forced resizable info activity am: 3f09052eb9 am: b0ba9599c8
am: 403a545e87

Change-Id: I109f607cf3c319f70e707e996f697d2185e031e5
2016-08-25 21:50:23 +00:00
Jorim Jaggi
3f09052eb9 Don't use fullscreen theme for forced resizable info activity
Change-Id: I74b5443645dd532ff597d4a1773bbd5a38d71192
Fixes: 29278265
2016-08-23 20:40:10 +00:00
Andrew Sapperstein
ef4e98c1d3 Merge \\"Update the volume panel to use a system color.\\" into nyc-mr1-dev am: ac44c9ef45
am: 482212da93

Change-Id: I56b0f31f946f09fa8341c0d352a6599f0bd07782
2016-06-30 20:43:39 +00:00
Andrew Sapperstein
c10b4dc90c Update the volume panel to use a system color.
Removes all hardcoded usages of blue_grey_200 and replaces
them with the use of one color resource that's defined in the
framework.

Change-Id: Ic6450f8ec03c3d9cbf915fa5de6f1184bf64266e
Fixes: 29574243
2016-06-30 10:14:53 -07:00
Andrew Sapperstein
7fe3adcf26 Merge \"Merge \\"Add colorSecondary theme attribute.\\" into nyc-mr1-dev am: ddb980de05\" into nyc-mr1-dev-plus-aosp
am: cd10a1fce1

Change-Id: I645b91c902e1772b40a42b10504316990ef74ae6
2016-06-23 19:09:33 +00:00
Andrew Sapperstein
da26da973b resolve merge conflicts of 83b1a18 to master
Change-Id: Ibbb4f9cff0224fb4ca3607f60a4ed9d6fafe8216
2016-06-21 13:56:01 -07:00
Andrew Sapperstein
c11df2521e Add colorSecondary theme attribute.
Value is defined only for .Settings themes.

Uses new attribute in SystemUI to set the switch bar background in
System UI Tuner and the edit UI background in Quick Settings.

BUG: 28625050
Change-Id: I840597670fb8826c7e2172c933ff618e52fc9ac1
FIXES: 28625105
FIXES: 29003223
2016-06-21 13:41:02 -07:00
Andrew Sapperstein
5c3734456e Update System UI to use theme colors.
Instead of using hardcoded values, use colorPrimary, colorAccent, etc
to style system UI. Required setting a theme on several views to
get the proper accent color in the right place.

Deletes a lot of hard-coded colors from the app.
Deletes an unused view: StatusBarHeaderView

BUG: 28625050
BUG: 29003410
BUG: 28625105
Change-Id: I46cd8eba7cf5afdab53c7882aa4aac5af46772a9
2016-06-21 11:15:19 -07:00
Muyuan Li
92c91412ba sysui: refactor for extensibility.
Bug: 28466607
Change-Id: I73b017240d86dd3d1be9f76bad284ef6f3c91c9f
(cherry picked from commit a78c415c79287f5d03086d0ebd9a7d970ac5360c)
2016-05-11 18:15:29 +00:00
Julia Reynolds
da01ac82e2 Swap radio button alphas.
Change-Id: I9fb4ff64a3e92659c614cfff3f23e2ba8fa3b2cd
Fixes: 27597108
2016-05-11 08:54:19 -04:00
Julia Reynolds
682d73fb3a Align radio buttons with app icon, change text color.
Bug: 27597108
Change-Id: Id821b46b6f2898295ae711ec33f56fed1b529584
2016-04-20 15:04:49 -04:00
Chong Zhang
6eee0e131a Disable starting window for Recents
When using a starting window, transition could start early before
real app window is drawn. We don't want this with Recents, so disable
it explicitly.

bug: 27812497
Change-Id: I648b2de3f91923978ef8b3d4f2629f0f73321b98
2016-04-14 23:22:48 +00:00
Jorim Jaggi
2917dc4918 Add shadow for minimized dock
Bug: 27972642
Change-Id: Ic4c8145f61694ff2bb0e237da1142093c6a4d965
2016-04-12 19:17:24 -07:00
Jorim Jaggi
af80db4489 Fix a few issues with non-resizable info activity
- If stack doesn't have focus, we execute TASK_TO_FRONT transition.
Set the correct animation for this transition type.
- Make sure to execute app transition when we are finishing an
activity that isn't resumed.
- Correctly set mAnimatingExit for the case if the activity is
already paused.

Bug: 27327287
Bug: 27154882
Change-Id: I253938727ba0eea76ebadba242315bd2d305d0b4
2016-04-09 01:18:40 +00:00
Xiaohui Chen
2f3551b04d sysui: refactoring qs for extensibility
Bug: 27100060
Change-Id: I4913999e57ff1a1b473649009b8822e24c0393c8
2016-04-07 18:41:23 +00: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
Julia Reynolds
490ee4b755 Tune visuals for inline settings
Bug: 27597108
Change-Id: I351be8a3ea8ed157d8af2923427ddac33bcfb783
2016-03-18 09:23:39 -04:00
Adrian Roos
8a27cdf890 Fix some color issues with Inline Reply
Bug: 27706728
Change-Id: I2401297d38379ed6a4128b26f71f1a051f18bc8f
Fixes: 27706728
2016-03-16 18:37:52 -07:00
Jason Monk
a8321e6ab7 Set QS edit overflow bg
Bug: 27396825
Change-Id: I656e49f66518f23bd05d59392f43fc1227207666
2016-03-11 11:00:20 -05:00
Julia Reynolds
aebacc94c0 Redlines for inline settings.
Change-Id: I535f84f70444caf376b671352da8da94b764b1eb
2016-03-04 14:37:45 -05:00
Jason Monk
30014c4a57 Shrink button ripple on QS btns to 36dp
Bug: 27388390
Change-Id: I1efbedfdf720edf4cf5d43797da59904d91cb543
2016-03-02 14:52:27 -05:00
Adam Lesinski
4c44359d91 Fix up some small resource issues
- the "save" string is a duplicate, and is overriden by the next definition below it.
  Due to the way AAPT handles overlays, this was accepted.
- the style attribute should not start with '@'.
- the 'raw' type is reserved for file references. Values should not be 'raw'.

Change-Id: Id611d5915207ce624d7a743b5d79bbb1258d3d51
2016-02-12 23:51:28 -08:00
Winson
40a2273377 Minor tweak to enter/exit animation for the home activity.
- Fixing issue where the animation props was not applied to the progress
  and callback animations correctly
- Ensuring that all tasks animate the same distance on enter/exit, and 
  not just to the edge of the screen
- Removing unused styles and animation resources

Change-Id: I88bd0f79f386304373fe63b49e92f02eeb882e55
2016-02-04 17:33:26 -08:00
Selim Cinek
a3d3b91a6e Adapted the style of notification groups
The title is now not using the spanned styling anymore
and the overflow is divided differently. Also fixed the
layout for RTL languagues and BIDI.

Change-Id: I5963e1990fe0efefd0355fcaae249546cbb75181
2016-02-03 20:29:36 -08: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
f0c6f64e5b SysUI Tuner: Color mod v2
Change-Id: Id2734c2f4ee8724ef7d7e633fed124454e2d8c5a
2016-01-27 23:03:36 -05: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