Commit Graph

215 Commits

Author SHA1 Message Date
Anthony Chen
b3f0849c3e Merge "Refactor notification to allow for overlay by Android Auto." 2017-02-02 18:09:43 +00:00
Jason Monk
2db4619153 QS: Remove circles and add lines
- Remove circles from icons.
 - Add lines to indicate tiles with dual tap targets.
 - Change default order

Test: visual
Change-Id: I1eb02641757a76ddf3e3876182f7b2503161bc9e
2017-02-01 17:22:51 -05:00
Anthony Chen
3cb3ad9998 Refactor notification to allow for overlay by Android Auto.
Android Auto requires different styling for notifications. In
particular:

- Background of scrim to be a different color
- Notification shade should always be full width
- No quick settings
- User switcher always visible
- Card styling, such as rounded corners and more spacing between items.
- Notification shade to be triggered from a button on the navigation
  bar.

Refactored different areas of the framework to allow for this. This
mostly means extending notification code and overriding methods where
appropriate.

Test: manually tested
Bug: 33487455
Change-Id: Ifcea70e121c1cbbeb057bb6ce8d351336ae41554
2017-02-01 10:05:07 -08:00
TreeHugger Robot
1df8f1ea95 Merge "Reverts ag/1803954 and ag/1828349 and left only split custom action" 2017-01-28 01:13:25 +00:00
Matthew Ng
32acecc073 Reverts ag/1803954 and ag/1828349 and left only split custom action
Test: manual - used Talkback
Fixes: 29360763
Change-Id: I50a5fd8fb438cba045ab4e86b4495af8a8fdf8f3
2017-01-27 15:23:45 -08:00
Jason Monk
2a6ea9c2a1 Delete BaseStatusBar
It is a relic of a more complex time, but has passed out of all
knowledge for too long.

Test: manual testing on phones and TV
Change-Id: I62a15d9413ea4bda3ac82bf6f7d22c096e2c1cdc
2017-01-26 15:17:45 -05:00
Jason Monk
ea05f87b25 Tuner: Nav bar tuner
Usable edition.

Test: Manual
Change-Id: I20ec31560b89df8ded089974b7da1b60423cdb8b
2017-01-24 19:43:36 -05:00
Andrew Sapperstein
e33525615e Add Settings.Global configs to high temp warning.
Test: manual
Bug: 34480261
Change-Id: Icfd08c1c7dae456920b3978918ee01469e1dec95
2017-01-23 16:43:35 -08:00
Matthew Ng
b7035f3a47 Added open, dismiss and split screen as custom accessibility actions
In overview with talkback, swiping would select the individual apps
instead of the open and dismiss views. The open and dismiss actions
are changed to accessibility custom actions with the additional action
to split the current app into multi-window mode.

Test: manual - used talkback with running all three actions in
landscape and portrait
Fixes: 29360763
Change-Id: Ie0bec99b849c5754d45577c66b17fa6b0c7e985c
2017-01-20 13:47:55 -08:00
Andrew Sapperstein
7518471ab6 Add temperature config for high temp warning.
Adds an integer resource (config_warningTemperature) that is used
to display the high temp warning. If it is set to less than 0,
the value from HardwarePropertiesManager#getDeviceTemperatures(
HardwarePropertiesManager.DEVICE_TEMPERATURE_SKIN,
HardwarePropertiesManager.TEMPERATURE_THROTTLING) is used instead.

Test: manual
Bug: 30995038
Change-Id: I05aa1b5930c6c151ebac439dfd5c00b3305dc46d
2017-01-05 16:45:37 -08:00
Andrew Sapperstein
b7caf1d06d Show notif when device reaches throttling temp
Adds logic to SystemUI that shows a notification alerting the user
that their phone has reached a certain temperature and has throttled
itself in order to cool down.

The logic is controlled by a configuration resource:
R.bool.config_showTemperatureWarning. If false, no action is taken.

When true, PowerUI checks every 30 seconds if the current temp of
HardwarePropertiesManager.DEVICE_TEMPERATURE_SKIN is greater than
the throttling temp of HardwarePropertiesManager.DEVICE_TEMPERATURE_SKIN.
If any one of the temperatures returned is greater, a notification is shown.

Clicking on the notification will show a dialog explaining more details
about what the device is doing in response to the high temperature.

The notification will disappear once the temperature drops below
the throttling temperature.

In order to check the temperature in SystemUI, HardwarePropertiesManager
has been updated to also allow any calls made by callers holding the
signature-level DEVICE_POWER permission.

Test: runtest systemui
Bug: 30995038

Change-Id: I1b3f122341911c68e90c8a49ad35267ac382b356
2016-12-20 18:19:03 -08:00
Oleksiy Avramchenko
f9fc128d7f Customize camera gesture vibrator pattern
Value for camera gesture vibrator pattern changes between versions, e.g.
it was changed from 1000 to 750 in 7.0, which seems arbitrary and OEMs do
not stick with this value, but change it according to their requirements.

This change allows the value to be customized using overlays.

Bug: 32789246
Change-Id: I19e59d1fa191657a8575c486008db3991b347fc5
2016-11-10 15:09:45 -08:00
Adrian Roos
b7e4e10618 Separate ambient display triggers
Allows configuring notification and sensor triggers
separately. Introduces a helper class that hosts the
logic for determining what kinds of triggers a device
supports.

Bug: 32073185
Change-Id: Ie7e8eb6b895dcc54e6f972e70642c7248b9e223a
Test: disable "ambient display", sensor triggers should still work
2016-10-18 10:43:44 -07:00
TreeHugger Robot
afae61eae7 Merge "DozeService: Seperate double tap and pickup" into nyc-mr1-dev 2016-09-27 19:09:22 +00:00
Adrian Roos
7294c115fd DozeService: Seperate double tap and pickup
Adds handling for a separate double tap gesture
and allows enabling double tap and pickup
individually.

Test: Turn screen off, toggle gestures with `adb shell settings put secure doze_pulse_on_pick_up 0/1` and `adb shell settings put secure doze_pulse_on_double_tap 0/1`
Bug: 30595437
Change-Id: Id7b79f90b28429cf321544a3e425cf33c575d1c3
2016-09-27 19:07:36 +00:00
Will Harmon
3629af022f Remove location tile from the list of default-enabled QuickSettings tiles
Fixes: 31708103
Change-Id: I0218beee23199df2e6969e3e858294e65db6c0f8
2016-09-23 19:11:12 +00:00
Adrian Roos
d13602f1e7 Ambient: Pulse for every noisy notification exactly once
Also increases the pulse duration and switches timing to
elapsed realtime instead of wall time for robustness. Also
remove triggering for notification light for simplifying code.
Only noisy notifications are able to trigger the light anyway and
noisy notifications already trigger ambient on their own.

Change-Id: I4efbe530bb1a60cabaa46c2b04bcd5e12cdef680
Fixes: 31004875
2016-08-23 13:58:31 +02:00
Jorim Jaggi
ceb7bfa6af Reduce duration for pick-up animation
Bug: 30316167
Change-Id: I39f34089fab70bfcc6fbf378411f017c67eafe00
2016-08-02 08:49:16 +00:00
Robert Greenwalt
37d34ba893 Add support to hide LTE+ in UI.
Some carriers may not want LTE_CA to show in status bar/QS
so added a config overlay setting for this.

bug:30394970
Change-Id: I6e318aa9bd5921f76ded477415269f2996e5534c
2016-07-27 14:54:34 -07:00
Adrian Roos
5753f05e85 Doze: Add config for fine grained proximity checks
Bug: 29619338
Change-Id: Ic9ff7fc78f47873858881c1a4ac14bc2b834ab84
2016-07-13 12:34:23 -07:00
Jason Monk
5aa661d7c0 resolve merge conflicts of fbf366d to nyc-mr1-dev
Change-Id: If2c3d07d680c36b206fe49a8e8e7dc20619a5c42
2016-06-08 16:24:16 -04:00
Sudheer Shanka
31a37ed77f Merge "Disable some QS functionality in retail demo mode." into nyc-mr1-dev 2016-06-08 17:15:04 +00:00
Jason Monk
487e1f8500 QS: Show date even on small screens
People don't like to lose their date, so instead take away their
detailed alarm information.

Change-Id: Ia6a1c7b1ecdb73eeeadd45fc3708531eac588eee
Fixes: 28773347
2016-06-07 15:59:51 -04:00
Will Harmon
beb1f177ef Bug: 28875393
Bug: 28879732

Fixes a bug where setting an app as a default quicksettings tile will
show it twice.

Change-Id: Ie71746d85c6782810966c62be416a62545329859
2016-06-06 14:52:40 -07:00
Sudheer Shanka
ad79049c54 Disable some QS functionality in retail demo mode.
- Remove user switcher
- Remove edit functionality
- Remove some tiles

Change-Id: I5fb2a766dd044a5b5e40a5e3a39c4723bdc0df8b
Fixes: 29103713
2016-06-03 10:58:41 -07:00
Winson
3f32e7eba7 Tweaks to make overview animations to match spec.
- Fixing incompatible app message text color
- Fixing drag target hover color
- Fixing final frame jank when animating home from overview
- Adding animation prop setter for initial play time

Bug: 27154882
Change-Id: Ia8a90434da2174d3c78a353b881509a8b1d525ba
2016-04-22 14:24:16 -07:00
Jason Monk
85b866d5e4 Update QS header to handle 320dp without overlapping
Change-Id: I7f52ed8aac14bea6c2cdc9a6ef8087ff6ef1b802
Fixes: 28181221
2016-04-20 10:08:55 -04:00
Jorim Jaggi
e370e15056 Slow down entrance animation on tablets a bit
Also fix an issue where resize was not called.

And make the translation a bit larger, because the
animation is longer.

Bug: 27870534
Change-Id: Ia6128db8108fe57bee96816fc95fd0811d941ffb
2016-04-15 14:34:55 -07:00
Jason Monk
917c06a0fb Merge "Work on QS landscape fitting" into nyc-dev 2016-04-07 14:27:42 +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
aeb298c4db Fixing bad regression in alt-tab layout.
- Removing the notion of drawing the task header thumbnail on preload.
  This would not work because we could not know the stack state until
  showRecents() is actually called.  Instead, we keep a cached thumbnail
  bitmap that we draw into when we start the activity, which is only
  updated when the layout changes.
- Ensuring that with the smaller task views in the focused layout
  overlap and do not show a gap between them (this was introduced when
  the task views were made smaller to show more of the task behind it)
- Ensure that both alt-tab and paging both default to focused state
- Always reset the stack layout to clear the task overrides so that
  we don’t inadvertently get overrides when alt-tabbing

Bug: 28014191
Change-Id: Ibc93597e9c027ce5abd65a8b77c0628864814c9b
2016-04-05 15:55:27 -07:00
Winson
3b6ba1ab14 Adding clear-all button.
Change-Id: Ife637438b191c4a5004f3c6551bc75691e8e426b
2016-03-29 17:57:56 -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
Jason Monk
96ab63640f Battery graph in QS Detail
Add new usage graph view to SettingsLib that shows usage with
same labels and whatnot.

Use that graph in the battery detail panel to show more stuffs.

Change-Id: I397b1314f65f668df566e93bdbc15420e1b3a280
2016-02-16 16:25:44 -05:00
Winson
1bcf3c4742 Moving dim calculation into the stack layout.
- This simplifies code and also prepares the code for dimming certain
  tasks when focused.
- Ensuring that cancelling transitions will completely remove all 
  listeners in a given animation.

Change-Id: I77050d94097f9af404250c287522d83c146cfb25
2016-02-12 17:07:14 -08:00
Jason Monk
e24194f079 Update QS defaults list
Also allow custom tiles to be in the default list.

Bug: 26425051
Change-Id: I88af8b251dda333f1392e9959c8505e85f4cbafa
2016-02-05 14:55:05 -05: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
Winson
50448630a4 Tweaking enter from/exit to home animations.
Change-Id: Idedf00457055b6f0268c0f93a0a14c6a553e1168
2016-02-02 12:25:36 -08:00
Rubin Xu
491d1f7b36 Enable work mode quick settings tile
Bug: 22541941
Change-Id: Ide90bb9824fa8a89111eeb7cd5309b4a22ac149a
2016-01-27 11:08:54 +00: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
Jorim Jaggi
cdb06caebb Grow recents when in multi-window on phones
- Make sure all methods in RecentsImpl are called from the main thread.
- On secondary users, call dockTopTask in correct process.
- When opening recents, split it differently when on phones.

Change-Id: I10224452b1a9c0ae691d64cceeae5bb93cc4f6d8
2016-01-26 12:21:29 -08:00
Jason Monk
a20818257e Make nav bar customizable through Tunable
Change-Id: I18c6bc3db1555ca8ec94f1ce594eb01158f32736
2016-01-22 09:47:08 -05:00
Winson
65c851e6e9 Fixing several regressions with affiliated tasks.
- Now that we are sorting tasks for freeform and history, ensure that
  the affiliated tasks have a useful active time (based on the task
  they are affiliated with) for sorting
- Fix issue with the initial stack and focus state not taking the
  launch task into account due to the launchTask flag not being set
  until the activity was started (now set in RecentsTaskLoadPlan)
- Fixing issue with affiliated tasks not being launched from the stack
  due to the animation trigger not firing when the action button is
  already hidden/visible
- Fixing issue with title text being occasionally hidden (something we
  only need for freeform tasks)
- Tweaking the launch/enter animations for tasks occluded affiliated
  tasks

Bug: 26685208

Change-Id: I0f6e9dbf8deec2e4fc15364e686367cc0f57b41f
2016-01-21 16:07:31 -08:00
Winson
8aa9959413 Starting the dismiss animation in parallel with the gesture.
- Introduces notion of ignored tasks for the purposes of layout in 
  TaskStackView.  This can be used during drag and drop, and while 
  dismissing to calculate the state of the stack without the task that
  the user is currently interacting with.
- Fixing minor layout issue when the front/back task transforms are 
  improperly calculated when there is a single task
- Fixing minor issue when the anchor task is calculated incorrectly when
  dismissing task views

Change-Id: I1eb0864a52e53562e4d573a6ed4f8a5a1615aff9
2016-01-21 16:05:53 -08:00
Xiyuan Xia
6a13e3be66 Merge "Refactoring for better extendability" 2016-01-15 17:31:32 +00:00
Peter Schiller
b124d5607f Indicator for task auto-select
Change-Id: I081222b84a5f90e77890724977821ed481fe3924
2016-01-14 14:37:11 -08:00
Xiyuan Xia
1b30f79cff Refactoring for better extendability
- Exposing members of PhoneStatusBar, StatusBarKeyguardViewManager and
  KeyguardBouncer to sub class;
- Add a configuable SystemUIFactory as class factory for components;
- Add logoutCurrentUser and switchToByUserId to UserSwitcherController;

BUG:22407003
Change-Id: I3902baf3c721d89217b27a6310c4202a198cb209
2016-01-14 09:47:57 -08:00
Winson
f24f21695f Refactoring and unifying TaskView animations.
- Adding notion of a TaskViewAnimation to animate a TaskView to a
  specific TaskViewTransform
- Refactoring task view enter/exit/launch/delete animations into
  a separate class so that we can improve them easier
- Removing individual TaskView view property animations in favor
  of using the existing TaskStackView stack animation. This ensures that
  we don't have to add separate logic when animating TaskViews.  It is
  all handled by the TaskStackView now.
- Breaking down the TaskStackView synchronize method into binding
  TaskViews and updating them to transforms.  This allows us to
  synchronously update in many cases and is cleaner than the many
  request* calls.

Change-Id: Ib26793568a14e837e6782358155f21158a133992
2016-01-06 14:55:20 -08:00
Jason Monk
ec9af01df5 Fix default QS tiles
Also add emergency only to header.

Bug: 26124044
Change-Id: If39fa2cca052b711516bd5a92a91f541ad00e62a
2015-12-10 11:10:23 -05:00
Jason Monk
deba7a42ed Make the new QS the new QS
Some UI updates to the header, then make the new QS the default
state for everyone.

Change-Id: I82b6bebb0b21a5c9eb926cb1a761cac340a293df
2015-12-08 16:19:13 -05:00