Commit Graph

16966 Commits

Author SHA1 Message Date
TreeHugger Robot
07c15cb88a Merge "Add flag to SysUI for Hybrid notification" 2018-01-25 01:49:22 +00:00
Beverly Tai
5d0f8f0772 Merge "QS DND tile secondary text added" 2018-01-25 00:47:07 +00:00
TreeHugger Robot
3741b3499f Merge "[QS] Update night light time from 24 to 12-hr" 2018-01-24 22:04:09 +00:00
TreeHugger Robot
8b4e2ddc41 Merge "Slider always represents absolute brightness" 2018-01-24 21:45:07 +00:00
Evan Laird
df598a67d1 Merge "Add status bar icons to QQS" 2018-01-24 21:06:37 +00:00
TreeHugger Robot
edf9ab2b4a Merge "DND qs tile primary text is always Do not disturb" 2018-01-24 20:45:52 +00:00
TreeHugger Robot
dbcb0a355e Merge changes I204d0ba7,Ifc51143b,I4b15fac9
* changes:
  Show swipe up onboarding after 2 apps instead of 3
  Change swipe up onboarding color based on nav bar color
  Add swipe up onboarding from apps
2018-01-24 20:02:47 +00:00
Salvador Martinez
bb902fcda4 Add flag to SysUI for Hybrid notification
This CL adds some configurable flags to the logic for showing the
hybrid notification.

Test: Tests still pass
Bug: 72122935
Change-Id: I8b13346167a79691ecc3cb21e45b42f8ae99e7b8
2018-01-24 11:24:19 -08:00
Rohan Shah
d3aa56c14f [QS] Update night light time from 24 to 12-hr
Fixing a small typo (capitalization) in the date time pattern for the
formatter. This'll fix the time format for the night light's secondary
label.

Test: visual
Bug: 69973398
Change-Id: I1fd48b33e140bb3b6e0587be89e10297d036aa2a
2018-01-24 11:17:39 -08:00
Mike Digman
64d5682dce Merge "Make rotation locked orientation flow ignore forced landscape" 2018-01-24 18:07:33 +00:00
Geoffrey Pitsch
d997d191ed Merge "Security model for moving sharesheet to systemui" 2018-01-24 17:33:59 +00:00
TreeHugger Robot
ebf2577fc8 Merge "Basic workspace wireless charging animation" 2018-01-24 17:19:29 +00:00
Beverly
9758cff8b2 QS DND tile secondary text added
Bug: 63077372
Test: manual (set automatic rules, toggle dnd manually in settings)
Change-Id: Ibe598423e4c1d668bc7c828ff66c9b572cc21192
2018-01-24 11:30:07 -05:00
Michael Wright
d846023804 Slider always represents absolute brightness
Currently the slider represents a gamma adjustment to the brightness
curve when auto brightness is enabled and the absolute screen brightness
when it's not. This is a fairly confusing behavior to most people, so
this consolidates them to a single behavior: the slider always
represents the current brightness and auto-brightness will automatically
adjust it.

This also moves a bunch of the brightness methods from PowerManager over
to DisplayManager, since it's really the DisplayPowerController that's
responsible for determining and setting the display brightness.

Test: atest com.android.server.display.BrightnessMappingStrategyTest
Bug: 69406898
Change-Id: I73b5982809a94cd50d563426a72d7965e923c994
2018-01-24 15:55:05 +00:00
Julia Reynolds
f5e4182d2f Output chooser layout updates
- Anchor output chooser to volume buttons
- Dismiss output chooser if volume dialog becomes visible

Test: manual, runtest systemui
Fixes: 72319160
Bug: 63096355
Change-Id: Ibca7576f287655fb5c98554e67781ec53152ddef
2018-01-24 15:22:25 +00:00
Julia Reynolds
25ff1cd41f Volume layout updates
- Add shadow
- make the sliders to LTR  in landscape
- make all sliders horizontal in landscape
- stack volume rows in landscape

Test: manual
Bug: 63096355
Change-Id: I5452aa3b962727982d5fc103313518e9cbf2750e
Fixes: 72303358
Fixes: 72260231
Fixes: 72260096
2018-01-24 15:21:55 +00:00
TreeHugger Robot
c8d6489c65 Merge "Display smart replies in notifications" 2018-01-24 15:18:24 +00:00
Beverly
7999ba90c6 DND qs tile primary text is always Do not disturb
In P, do not disturb in quick settings always uses priority-only
do not disturb, so there is no reason to distinguish between
priority-only/alarms only/total silence modes.  Users can still change
the behavior of priority-dnd in settings, but this will not chang the
primary text of the quick settings tile for dnd.

Change-Id: I5b6e911cb2542a7a1d0696871607eb8abc95cd43
Fixes: 72418705
Test: manual (toggle on/off dnd qs tile)
2018-01-24 10:09:55 -05:00
Beverly
ae79ab9d87 Basic workspace wireless charging animation
(No animation on ambient or lockscreen yet)

Test: manual (testing w/o wireless charger, set DEBUG_WIRELESS=true)
Bug: 67598445
Change-Id: Ifeef72805930187b8f78e72fd44bd7da25724e0c
2018-01-24 09:27:59 -05:00
Petr Cermak
9a3380c08c Set "results source" on RemoteInput intents sent from System UI
If the input comes from RemoteInputView (the user manually typed an
inline reply), the source is set to RemoteInput.SOURCE_FREE_FORM_INPUT.
If the input comes from SmartReplyView (the user tapped on a smart reply
button), the source is set to RemoteInput.SOURCE_CHOICE.

Bug: 67765414
Test: atest RemoteInputViewTest SmartReplyViewTest
Change-Id: Icff46b903a968bd8457624b358d626b457569352
2018-01-24 11:54:00 +00:00
Petr Cermak
7997d7a0c5 Display smart replies in notifications
If a notification contains a RemoteInput with non-empty choices,
NotificationContentView will add a SmartReplyView to
smart_reply_container in the expanded notification layout (if present).

This feature is guarded behind
Settings.Global.ENABLE_SMART_REPLIES_IN_NOTIFICATIONS.

Screenshot: https://screenshot.googleplex.com/jEzeL2ZYLMj.png

Bug: 67765414
Test: Viewed a notification with smart replies from Android Messages
Change-Id: I24d16df086edb58f51ae63830212d68166c74f52
2018-01-24 11:53:57 +00:00
TreeHugger Robot
70ffca95b1 Merge "Update work profile related strings" 2018-01-24 08:23:22 +00:00
Kevin Chyn
5b47a78ec5 Merge "Minor cleanup for FingerprintDialog" 2018-01-24 04:58:32 +00:00
TreeHugger Robot
098b1b58b3 Merge "[QS] Add secondary label to Hotspot tile" 2018-01-24 03:42:30 +00:00
TreeHugger Robot
3127bb5e15 Merge "Volume dialog should never reflect DND mode" 2018-01-24 03:20:29 +00:00
Evan Laird
9589695fa5 Add status bar icons to QQS
Also add a alpha animation to QuickStatusBarHeader so status icon can do
the opposite fade that the footer does.

Test: visual
Bug: 70799006
Change-Id: I863517a43084285f022edf9133cf6ea326816977
2018-01-23 21:30:41 -05:00
Kevin Chyn
e8f3e1bf29 Minor cleanup for FingerprintDialog
Bug: 67497360

Test: Manual test with test app
Change-Id: I72b4502da411ee92491d6884d6deb72e027a8e9e
2018-01-23 18:10:12 -08:00
Kevin Chyn
179e117cbe Merge changes from topic "fingerprint-dialog"
* changes:
  Add Fingerprint Dialog to SysUI
  Add FingerprintDialog API and related plumbing
2018-01-24 02:07:54 +00:00
Maggie Wang
d2c4f7f610 Merge "Deprecate location modes" 2018-01-24 01:47:54 +00:00
Julia Reynolds
229b300a77 Volume dialog should never reflect DND mode
In Priority only DND.

Bug: 63096355
Test: manual
Change-Id: I76878882787dad602329a82f005118ffd831a072
2018-01-24 00:57:56 +00:00
Tony Wickham
64f1cd53d6 Show swipe up onboarding after 2 apps instead of 3
Test: manual

Bug: 70180942
Change-Id: I204d0ba7e625539e12563f0f84e8d977497d184b
2018-01-23 16:06:30 -08:00
Tony Wickham
0239d5fa74 Change swipe up onboarding color based on nav bar color
If the nav bar icons are dark, the onboarding content is
also dark on a white background. Otherwise the onboarding
content is white on a black background.

Also updated a couple of visuals:
- Added a divider to the top of onboarding
- Increased text size to 16sp
- Added ripple to dismiss "X"

Test: manual

Bug: 70180942
Change-Id: Ifc51143ba7e32015bc1519f9d79f9249849787a5
2018-01-23 16:03:46 -08:00
Tony Wickham
fb63fe85f2 Add swipe up onboarding from apps
After launching 3 apps, we create a window at the bottom
attached to the nav bar to teach users to swipe for recents.
There is an X on this window to dismiss it, but we will keep
showing the onboarding every time they open apps until they
perform the swipe up action.

Test: manual

Bug: 70180942
Change-Id: I4b15fac918b7b1633a3c09ab0819f2acb1dce697
2018-01-23 16:02:27 -08:00
Rohan Shah
e4071127a6 [QS] Add secondary label to Hotspot tile
Added info to callback and leveraged WifiManager API to get the number
of connected devices. There's some minor state cleanup done and the
fire callback mechanism was slightly updated.

The secondary label is updated based on the connected devices & enabled
state.

Screenshot: https://screenshot.googleplex.com/jHMKmg2nO08

Test: manual
Bug:68058038
Change-Id: Iafcebd3476d2c13e25939b45e78f32a5bd24cb68
2018-01-23 15:49:45 -08:00
TreeHugger Robot
2180c89c24 Merge "Force screenshots to heads-up priority." 2018-01-23 23:12:56 +00:00
Mike Digman
85ff7fa168 Make rotation locked orientation flow ignore forced landscape
Fixes: 72206087
Test: manual
2018-01-23 14:59:52 -08:00
Kevin Chyn
42653e8d50 Add Fingerprint Dialog to SysUI
Bug: 67497360

Test: Modify settings to use new API
Change-Id: I93ef475852c15e4a1a2a54bdd23ae4b8a0b8b7d7
2018-01-23 14:55:23 -08:00
Kevin Chyn
aae4a15a22 Add FingerprintDialog API and related plumbing
This commit adds the plumbing which sends the signals from the API
to the component in SysUI. The dialog will be implemented in another
CL in this topic.

Bug: 67497360

Test: Modify Settings to use the new API
Test: FingerprintDialogImpl is able to notify FingerprintDialog clients
      of user events
Test: System dialog is dismissed when client application is killed
      unexpectedly
Test: Open FP settings, lock device, authenticate, authenticate. Repeat

Change-Id: Id28ec9691646bed765dc069cceb4678d9f6db92e
2018-01-23 14:54:48 -08:00
Beverly Tai
7055369352 Merge "Putting ZenModePanel xml resources to SettingsLib" 2018-01-23 22:20:53 +00:00
Rohan Shah
e57d5c7301 Merge "[QS] Update secondary text + label for bluetooth tile" 2018-01-23 22:11:25 +00:00
Lucas Dupin
44026b7f48 Merge "Hide keyguard slice when pulsing" 2018-01-23 21:23:15 +00:00
Maggie
aa080f9676 Deprecate location modes
1. Mark public fields as deprecated: LOCATION_MODE, LOCATION_MODE_HIGH_ACCURACY, LOCATION_MODE_SENSORS_ONLY,
LOCATION_MODE_BATTERY_SAVING, LOCATION_MODE_OFF.

2. Add new public  methods to LocationManager:
setLocationEnabled(boolean)
isLocationEnabled()
setLocationProviderEnabled(String, boolean)

3. Remove LOCATION_PREVIOUS_MODE and constant
LOCATION_MODE_PREVIOUS. Refactor code that references
LOCATION_MODE_PREVIOUS to use LocationManager.setLocationEnabled or
LOCATION_MODE_HIGH_ACCURACY.

4. Mark deprecated fields and methods as removed: LOCATION_PROVIDERS_ALLOWED, setLocationProviderEnabled(), isLocationProviderEnabled()

5. Refactor logic in Settings app and Quick Settings to call
LocationManager.setLocationEnabled() instead of setting location mode.

Bug: 70990911
Test: Manual
Change-Id: Ia49b385f8b6a358b62291983eb0146af0ecf8e02
2018-01-23 10:45:49 -08:00
Bryan Eyler
3bddc867f3 Merge changes from topic "User Switcher CP to Master"
* changes:
  Fix users not showing up in fullscreen selection.
  Update user names on changes in settings/user.
  Add expand icon for user switcher.
  Cascade animation of users in switcher.
  Add pagination dots and fix animation of user switcher.
2018-01-23 18:38:18 +00:00
TreeHugger Robot
0cfd9aa73a Merge "Enable quickscrub with system prop flag" 2018-01-23 18:26:10 +00:00
TreeHugger Robot
c5c4afac54 Merge "Shorter separator" 2018-01-23 18:08:22 +00:00
Alison Cichowlas
08abf6df97 Force screenshots to heads-up priority.
Test: updated ChannelsTest; manually verified heads up ss posted and old channel deleted.

Change-Id: Iafc1c65d3e8a5929ba922a2814848ce5bc036747
2018-01-23 12:55:50 -05:00
Beverly
92c2568b55 Putting ZenModePanel xml resources to SettingsLib
Move resources for ZenModePanel to SettingsLib for new
EnableZenModeDialog in settings

Test: runtest -x /extra/master/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/volume/ZenModePanelTest.java
Bug: 63077372
Change-Id: Iea9060b063ccfb807b39affcdac29d12420bd93b
2018-01-23 11:19:43 -05:00
Geoffrey Pitsch
88f3d4dbe1 Security model for moving sharesheet to systemui
ResolverActivity (still in frameworks) now requests a "permission token"
that it hands to a stubbed system ui activity ChooserActivity.

This permission token allows an app (SysUI) with the signed permission
"START_ACTIVITY_AS_CALLER" to call
ActivityManagerService#startActivityAsCaller. Permission tokens are a
one-time use, limited-time offer.

Test: runtest systemui && manual testing
Bug: 69850752
Change-Id: I3600e1a8ff9eea7397f5f59853423c79b6401f98
2018-01-23 10:23:55 -05:00
Lucas Dupin
a6c9e34b4d Shorter separator
Shorter separator on keyguard slice

Test: visual
Bug: 64155983
Change-Id: I86b56fec780b531c9c3064e7147e59add6b9e4a3
2018-01-22 22:00:21 -08:00
TreeHugger Robot
9683b889d9 Merge "add atom and logging for Picture-in-Picture feature" 2018-01-23 05:34:29 +00:00