Commit Graph

103 Commits

Author SHA1 Message Date
Lucas Dupin
7a7fd76151 Make media buttons shrink when tapped
We already illuminate the background, but a small scale animation
when tapping makes it feel a bit more polished.

Bug: 155796337
Test: manual
Change-Id: I5ec186af10cb6651a6c23addecae02845b6e18ac
2020-05-17 22:05:27 -07:00
Lucas Dupin
b1a8e02293 Add proper interpolator to controls
Fixes: 153040823
Test: visual
Change-Id: I2078a9b478dbed7cc8f177d5347221181da896d4
2020-04-14 19:10:29 -07:00
Lucas Dupin
6843f576a2 Make buttons react to tap
Bug: 153040823
Test: visual
Change-Id: I2cd643160eed5efd2149f332329ea7033f88a069
2020-04-13 14:42:43 -07:00
Matt Pietal
dc78c84748 Controls UI - Support detail panels
Allow apps to specify whether to show full screen or within detail
panels. Default camers and thermostats to use the panel by default
when the following flag is enabled.

Enable by:
adb shell settings put secure systemui.controls_use_panel 1

Change offset from the top in Px:
adb shell settings put secure systemui.controls_panel_top_offset XXX

Bug: 152528130
Test: manual, use camera, thermostat devices

Change-Id: Ia1b12afcf4de2a0bcf7957e6425b282b1e220f46
2020-04-10 13:36:26 -04:00
Lucas Dupin
ad2577e1c0 LockIcon fixes
Gather state inisitally, then consolidate it on a pre-draw listener.
Before we were deciding when to change the icon based on various
variables, now I'm centralizing the decision on getState(), to avoid
cancelling animations.

Test: At AOD2, lock animates in
Test: When locked, press power button: lock icon animates in
Test: Press power button: lock icon animates in scanning and unlocks
Test: Unlock without bypassing, let device sleep, go to AOD2
Test: Long press padlock when it's open
Test: Look at padlock from SIM PIN screen
Test: Look at padlock when lock screen is not secure (no pin/pwd)
Fixes: 135587352
Fixes: 135960400
Change-Id: I85260b6c373d675bd6076046e33519816221157f
2019-06-26 18:24:25 -07:00
Lucas Dupin
f0e61db6dd New unlock animations
Test: visual, by changing themes
Bug: 130327302
Change-Id: I13056feafd5ec947aab9d0bb1c25108977912371
2019-06-13 17:01:45 -07:00
Amin Shaikh
5877c020e5 Update lockscreen animations for all themes.
Resource overlays cannot reference resources that only exist within the
overlay package, so using resources with aapt tags is not possible.
Breaking up these resources to not use appt tags is fairly error prone,
so instead we're including lockscreen animations for all themes in
SystemUI and selecting them at runtime.

Fixes: 118757654
Test: make; change themes and view animations
Change-Id: I4b489bbe94dbb4b351470e7d00bf4be6a5da5280
2019-05-24 14:32:23 -04:00
Amin Shaikh
2cea87986d Update systemui animations to GM2.
- Update wifi, bluetooth and hotspot transient animations for pixel and
3 themes
- Move animations from SystemUI to framework so they can be overlayed
(resources cannot reference other resources that only exist in the
target package)
- Remove unused animations
- Holding off on themed lockscreen animations until they are all
complete
- Note that expand/collapse animations are not overlayed since they are
not used in production code (only tuner)

Fixes: 118757654
Test: visual
Change-Id: Id66a2f76ff1f46b2e32f61b709b648aa0fa49672
2019-04-30 15:52:17 -04:00
Amin Shaikh
7ebe920c7b Remove unused work mode animations
Use the status bar icon as the QS icon. No visual change.

Bug: 129398746
Test: make
Change-Id: Ibbd78c678d1b1c5e9c7bff7b974c0e183613724c
2019-03-27 15:09:41 +00:00
Lucas Dupin
c9e5d76952 New lock iconography
Change-Id: Ie8b269a2bdfa1946e0c3591717142a34c1b15c67
Fixes: 122058242
Test: visual
2019-01-31 16:43:35 -08:00
Brad Stenning
8d1a51c4da Move car related code from SystemUI to CarSystemUI
Test: Emulator phone and Car
Change-Id: Ia64a23c1d3643899118e578b82c665c034af1c8e
2018-12-04 09:19:36 -08:00
Fabian Kozynski
cddef9467f Removed unused animations
Test: builds and atest passes.
Bug: 120090468
Change-Id: Iee6f7ec86136fa7cbbaff49ce6d0040f32a2e480
2018-12-03 14:53:29 -05:00
Winson Chung
2dbcf0973b Moving SysUI with legacy Recents to another build target
- Move all legacy recents code out of the core sysui code
- Add separate target for products which still depend on it
- Move overview proxy implementation into another implementation of the
  recents interface

Test: atest SystemUITests
Test: Push SystemUiWithLegacyRecents to the system image
      adb shell pm disable com.google.android.apps.nexuslauncher/com.android.quickstep.TouchInteractionService
      and ensure that the old recents implementation still works (and split
      screen)

Change-Id: Iad67218ec37c13c79b6393d87f6bdc4f3996e2c6
Signed-off-by: Winson Chung <winsonc@google.com>
2018-10-26 10:15:50 -07:00
Beverly
47fb7e76bb Use AVD files for wireless charging animation
- use avd files instead of programatically drawing animation

Test: manual
Change-Id: I387080a0e8412fecdf7d935c0ab26f3d5e9f02cc
2018-07-25 11:19:26 -04:00
Lin Guo
a65cf94800 Support arrow down animation
1. No need to use a FrameLayout for PagedListView.
2. Support arrow drop down animation.

BUG: 78474304,73134851
Test: manual

Change-Id: Iec4e046f1abca40d76bd76ab3d5dc2a02e4dfcc2
2018-04-27 02:14:11 +00:00
Amin Shaikh
d64e6269da Display mobile data type icons in status bar.
Instead of showing the type in the top left corner of the signal.
- Add new status bar mobile data indicator assets
- Remove unused qs/status bar mobile data indicator assets

Bug: 72540392
Test: visual using demo mode
Change-Id: Ic63ad3307daabf2e0f023308b7e0682dbd29f1ca
2018-03-09 10:44:45 -05:00
Bryan Eyler
ba88b3e711 Add expand icon for user switcher.
Adds the arrow to the left of the user name.
Animates the arrow in a sweet 180 degree rotation.

Bug: 65423882
Change-Id: I13a40dbd65c1335fdb579223d7c7cbd8623b3d6b
(cherry picked from commit f4d69c2b575940eca4620db5aec6d42b98b53071)
2017-12-04 17:16:13 -08:00
Bryan Eyler
ab28b99d9d Cascade animation of users in switcher.
- Adds animations of user pods, page indicator, and username in user switcher.
- Adds delay between user pods to add cascading effect.

Bug: 36812644
Bug: 65423882

Change-Id: I369719d1d692c5b7414d33801007854d522882d8
(cherry picked from commit ca567d817f75da0bcfd5de29a33ded00bc737985)
2017-12-04 17:16:07 -08:00
Bryan Eyler
715bdbcd42 Add pagination dots and fix animation of user switcher.
- Adds pagination dots to user switcher dropdown.
- Adds device name text view for when devices are associated with users.
- Fixes the layout of the user grid to handle changing height for
  proper animation.

Bug: 65423882
Tested on Mojave with longer animation times to ensure correctness.

Change-Id: I54ae5cc93f9caa9d6c4a5c2c7e9e2488a6257001
(cherry picked from commit 0de35b5386ad7e00f13a7611fce36ca990b201e0)
2017-12-04 17:16:02 -08:00
TreeHugger Robot
aa6ee67d67 Merge "Update work briefcase asset." 2017-07-31 15:02:45 +00:00
Kenny Guy
d49d28a8ae Update work briefcase asset.
Bug: 36497538
Test: Manual - visually checked icons.

Change-Id: I1d5dd1b80bd32667e47dfc4a1c355a5106271d72
2017-07-27 16:58:06 +01:00
Evan Laird
b0ddf87130 Fix error color states and alphas and sizes of lock screen icons
Use "wallpaperTextColor" for the main colors and "colorError" for the
error colors. Remove the tint override in
keyguard_bottom_area that messes with the intended drawables' colors.

When fixing the size of the transition back to the lock (trusted state),
I had to also make the error icon smaller. So this may need new anim
assets to fix that.

Test: visual
Bug: 63991143
Change-Id: I6212a7ac532134c8fdc48889630c7d10cfab6b85
2017-07-26 10:08:23 -04:00
Evan Laird
99d4134dd0 Update animations in QS
- Hotspot transient
- Bluetooth transient
- Trusted -> error
- Error -> trusted
- Fingerprint -> error
- Error -> Fingerprint
- Expand/collapse caret (shows up in volume and QS footer)

Test: visual
Bug: 62386498
Fixes: 63236324
Fixes: 62387135
Change-Id: I283dd2d34cd75634911cc7190b49c65d6328bd2e
2017-07-11 15:24:46 -04:00
Evan Laird
801949ed37 Update Landscape <-> Autorotate QS animations
Now with rounded edges!

Test: visual
Bug: 62386498
Change-Id: If66764c3f9723fcb89629e668d48b06ab8329808
2017-06-30 10:18:34 -04:00
Evan Laird
802320ef91 Update auto rotate / portrait QS icon
Animations and new icon for auto rotate. No landscape included here.

Test: visual
Bug: 62386498
Change-Id: If2862c24bed78be2110b2d58d1b4326b04b40c9d
2017-06-29 15:38:22 -04:00
Evan Laird
64fcfe7b9d Remove unused slash animations
These will be done in code via the SlashDrawable later. This is just
cleanup to pre-empt that.

Test: make; runtest systemui
Change-Id: Iaa4177f757a226e2154236d4be288440cb83e7e7
2017-05-12 14:45:26 -04:00
Jaewan Kim
e630923b55 TV PIP: Remove onboarding activity and overlay activity
Remove both activities until the new OC UX spec is finalized.

Bug: 36370535
Test: Manual test (Checked that onboarding nor overlay activities aren't
    shown after the FDR)
Change-Id: I97c4b2038aabf4f00cac957af6b79dcd874000ae
2017-04-17 19:36:27 +09:00
Jason Monk
110e5f6c16 QS: Add transient animations for bluetooth and wifi
Test: runtest systemui
Change-Id: I04a81e1b36a6595bfb102603ad07b079c8b0ee77
Fixes: 26781226
2017-03-31 13:51:03 -04:00
Jason Monk
e645aee45a QS: Add transient icon for hotspot
Will make the loading time more clear.

Test: visual
Bug: 32270851
Change-Id: I0ea7591da132ff65fb7fc16b03b2891891e66598
2017-03-31 13:49:21 -04:00
Sid Soundararajan
0e88d32b96 RecentsTV : Remove all Recents TV Code
This patch will remove the Recents TV Code from SystemUI.

Test: To test this removes the Recents Feature and has no
side effects, try to launch recents with long-press HOME. This
should result in launching the phone version of recents.

BUG: 36035359
Change-Id: I9026b480968575ce08e1ce344512f168fdc5fe87
2017-03-08 16:19:04 -08: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
Jaewan Kim
a9e0621f33 PIP: Improve PIP control row's focus change animation in Recents
This includes following changes for performance
1. Passes the key events directly between the windows instead of using
   dummy Views and OnFocusChangeListener to prevent main thread from
   handling unnecessary focus changes.
2. Limits the window size for PIP controls to reduce unnecessary draw.

Here's the test result. Test is performed with paused PIP video
1. 5 visible recents task
  Focus down: 48.14 fps -> 85.396 fps (+77.39%)
  Focus up: 24.67 fps -> 45.33 fps (+83.77%)
2. 3 visible recents task
  Focus down: 51.98 fps -> 132.72 fps (+155.34%)
  Focus up: 30.91 fps -> 53.38 fps (+72.69%)

Bug: 28042495
Change-Id: I363232176975b160e122748c9997ef4b46b73a28
2016-05-27 08:41:48 +00:00
Jaewan Kim
dded3aa8bd PIP: Show background scrim for PIP controls in Recents
Scrim will fade in after the PIP control's focus losing animation,
and will be gone immediately when PIP control gets focus.

Bug: 28041690
Change-Id: Ibb7fa0ce15ba1af13781a1bd5e87609fefa95cc0
2016-05-03 06:55:27 +09:00
Jaewan Kim
1e2c754c28 PIP: Changed the wording and background of the PIP onboarding screen
Bug: 28300868
Change-Id: I73e465ddac5520e0b70098bf6a39fb85d59ad0f9
2016-04-23 08:51:55 +09:00
Jaewan Kim
9d712faa45 PIP: Implement new onboarding spec
Bug: 27954437
Change-Id: Ib939a4ca5f304821036a43971ae7f45b7802ed8a
2016-04-15 01:17:42 +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
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
Jaewan Kim
4ba16e66fe PIP: Implement overlay text fade in/out
Bug: 28030603
Change-Id: Iac3e0007b66173f13082b3625c0dbfc8e6990ffa
2016-04-12 00:15:06 +09: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
Jason Monk
ace22ae26c Merge "Update the QS page indicator" into nyc-dev 2016-03-28 14:18:04 +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
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
008ee15fe8 Completely removing dead code related to search widget.
Bug: 27742174
Change-Id: Ie478c562f6152338417aca5262b7f33ee4ca7ed5
2016-03-23 18:49:22 -07:00
Jason Monk
6113397545 Update the QS page indicator
Give it the new assets/animations and make sure it hides
when only one page.

Bug: 27064317
Change-Id: I6019d3435a6311b8d23691cbf742d66af480fcd8
2016-03-17 15:36:46 -04: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
Rubin Xu
1205fb1d92 Quick setting tile to toggle work mode for managed profiles
Status bar will also show a different badge icon when managed profile
is in quiet mode i.e. work mode is off. The tile is invisible for now
until the full feature lands.

Bug: 22541941
Change-Id: I53f33ea346cd9215ecee2ca42de137af61e4c8a2
2015-12-07 18:24:39 +00:00
Winson
e86deb8adb Ensuring that fast-alt tab works from Home as well as other apps.
Change-Id: Ie4a6e95e790483c283d4257b15cf1b7dd315db28
2015-11-13 22:53:28 +00:00
Bart Sears
0c22429bfa Revert "Ensuring that fast-alt tab works from Home as well as other apps."
This reverts commit 55ff9de8ae.

Change-Id: I37213ea9bbd43a83835a9de6f873ccd1b549ad17
2015-11-12 19:20:31 +00:00
Winson
55ff9de8ae Ensuring that fast-alt tab works from Home as well as other apps.
Change-Id: I920fdd06d5b9e3e63d197dce5a366a4316361ed5
2015-11-12 18:27:03 +00:00
Jason Monk
2681dcb6c5 QS: Add long-press to customize prototype - part 3
Adding FAB button to QS customization screen, currently it does
nothing.

Change-Id: I4d4d4cd0a6dd5d2104cf21011855fcfce13c70d7
2015-09-09 14:00:17 -04:00